[MOD] Arachnophobia mod

For texture mods or other House Party mods. Texture mods are the only mods (other than Custom Stories) formally supported by Eek! Games at this time.
Forum rules
Please follow all Eek! Forum rules.

All mods posted here are user-created, and offered "as is" by those users/authors.

Any mods not posted here will be deleted immediately.

Any mod that stops functioning as intended or that unexpectedly compromises the game experience for a user or the stability of their system will be deleted immediately. Regardless of our intent to moderate, note that use of ANY of these mods is at your own risk.

Eek! reserves the right to enforce any of the above rules and/or delete mod content without warning. Create and manage your own backups.
Post Reply
seehofer
Posts: 10
Joined: Mon Nov 02, 2020 2:22 pm

[MOD] Arachnophobia mod

yeah, as the title says. removes potential spiders.
needs melonloader with my patch, see the freecam for instructions and links
get it here
Aragone.zip
(2.28 KiB) Downloaded 228 times
have fun all

code:
Spoiler

Code: Select all

using MelonLoader;
using UnityEngine;

[assembly: MelonInfo(typeof(Aragone.AragoneMod), "Aragone", "1.1.0", "Lenny")]
[assembly: MelonGame("Eek", "House Party")]

namespace Aragone
{
    public class AragoneMod : MelonMod
    {
        bool spiderRemoved = false;
        bool inGameMain = false;

        public override void OnSceneWasInitialized(int buildIndex, string sceneName)
        {
            inGameMain = sceneName == "GameMain";
        }

        public override void OnUpdate()
        {
            if (!spiderRemoved && inGameMain)
            {
                foreach (var item in Object.FindObjectsOfType<GameObject>())
                {
                    if ($"{item.name}" == "SpiderDecoration_Prefab")
                    {
                        Object.DestroyImmediate(item);
                        MelonLogger.Msg("Spider removed");
                        spiderRemoved = true;
                        break;
                    }
                }
            }
        }
    }
}

Post Reply