FluffyFishGames / AdvancedCompany

Repository for my AdvancedCompany mod.
Creative Commons Zero v1.0 Universal
13 stars 15 forks source link

Indoor Enemy AIs don't function when outside #76

Open nyctodarkmatter opened 10 months ago

nyctodarkmatter commented 10 months ago

Describe the bug As title stated, while likely intended (aka vanilla) behavior, indoor enemy AIs don't function properly when outside. This is because they attempt to pathfind to the indoor AI nodes instead of the outdoor ones.

To Reproduce

  1. As an example: set an indoor enemy (such as Spring) to have an outdoor spawn chance.
  2. Wait for Spring to spawn.
  3. Spring refuses to interact with players and navigates to a spot close to the ship. Other enemies have similar behavioral issues, some functioning more than others.

Expected behavior Expected indoor enemies to at least attempt to navigate and function outside.

Screenshots N/A

Additional context LethalEscape's dev adds the "isOutside" tag to the enemy when it spawns via its mod, forcing it to use the outside AI nodes. A similar fix could be applied to AdvancedCompany to force them to interact with the proper nodes when spawned.

Logfiles Don't currently have log files as I accidentally deleted the profile which deleted the log, however if you still need it despite above let me know in a reply and I will get a fresh one for you.

Add a list of all of your mods BepInExPack v5.4.2100 LethalCompany_InputUtils v0.6.2 HookGenPatcher v0.0.5 LethalLib v0.14.2 LCBetterSaves v1.7.3 LethalLevelLoader v1.0.7 SecretLabs v3.3.4 AdvancedCompany v1.0.148 LethalEscape v0.8.5

nyctodarkmatter commented 10 months ago

image_2024-02-01_203524085 Screenshot for reference.

rgmoon commented 10 months ago

Better provide a game log. Otherwise will increase the debug difficulty

nyctodarkmatter commented 9 months ago

https://thunderstore.io/c/lethal-company/p/AudioKnight/StarlancerAIFix/ AudioKnight, the guy behind StarlancerMoons made a global fix mod that should fix this. Can't say for sure it's the best way to handle it, but figured I'd mention it!