Dinorush-ItemSpawnFix icon

ItemSpawnFix

[Required by All] Fixes items and resources failing to spawn.

Last updated 16 hours ago
Total downloads 1502
Total rating 0 
Categories Client Mods Rundown Mods
Dependency string Dinorush-ItemSpawnFix-1.0.5
Dependants 3 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.1 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.1

README

Fixes resources/consumables/big pickups failing to spawn.

Specifically, this improves the spawning logic to reduce the possibility that there may not be enough space to spawn them, but if there still isn't, they will spawn on the ground instead.

This includes fixing "Surprise!" boxes so they actually work.

Technical Details

  1. The game allocates a certain number of spawns per room depending on its size. If these run out, the game allocates new spawns but it will never re-use them after creation, so only one item is added. The fix allows them to be re-used.
  2. If there are no markers left for one of the initially allocated spawns, it will not create anything. On the other hand, if it is one of the newly allocated spawns, it will create its item(s) randomly on the floor. The fix replaces this logic with the following:
    1. (Resources/Consumables) Try to place the items in empty containers in the area. If none exist, check the entire zone.
    2. Try to create the item(s) in a random area in the zone.
    3. (Resources/Consumables) Try to place the items in partially filled containers in the area. If none exist, check the entire zone.
    4. Create the item(s) on the ground. The vanilla logic for this is broken, but the fix corrects that too.