[WOTC] Dude, Where’s My Loot?

If you liked this item, please rate it up on Steam Workshop page.

Author: Zelfana

Last revision: 3 Jun, 2025 at 14:35 UTC (14)

File size: 191.29 KB

On Steam Workshop

Description:
Overview

This mod fixes issues with loot not dropping when it arguably should. Essentially a fixed version of Loot Mind Control.

There are several issues that are fixed:

  • Loot picked up by player controlled units that are not your own soldiers (Double Agent/Volunteer Army/other mission provided units) was lost forever if they survived the mission. That loot is now properly recovered and you won’t have to intentionally get them killed anymore. You obviously still have to win the mission or evac the units to recover the loot.
  • Mind controlled / hacked enemies dying while under your control didn’t drop any of their loot or corpses. They will now drop their loot and corpses on death like they should.
  • Missions that ended by killing all enemies ended without needing to kill mind controlled / hacked / bleeding out / unconscious / turret enemies but you didn’t get their loot or corpses. You will now get those items. This additionally drops robot stage (corpse) loot for live Andromedons.
  • If an unit not on the XCom team happened to pick up timed loot it would not drop it again upon death. That loot will now drop properly.
  • If there are any clones alive of the same Codex that dies it would not drop any kind of loot. Timed loot is now always dropped in such cases. Additionally, if you somehow ended a mission with multiple mind controlled clones of the same Codex one of them will now also drop corpse loot.
  • It was possible for Rulers/Codex/Avatar to not drop their one-of-a-kind loot if they were affected by effects that prevented looting such as Chryssalid Poison (ParthenogenicPoison). These effects are now bypassed for these enemies’ loot.
  • If an enemy that was carrying loot was knocked unconscious on a mission that is not cleared by killing all enemies (you evacuated) you would be unable to get that loot if you didn’t go out of your way to kill it with AoE. It will now drop timed loot immediately when the enemy is knocked out.

Configuration
<Steam>steamappsworkshopcontent2685002878818143ConfigXComDudeWheresMyLoot.ini

Each fix is toggleable separately if needed.

Not enabled by default, you can additionally set mind controlling or hacking an enemy instantly drop their timed or carried loot.

Configure overrides for mission end loot for special case units that don’t normally drop (corpse) loot upon death. Default config includes the vanilla Andromedon and its variants from mods.

Configure which templates are allowed to always drop their corpse loot. Default config includes enemies that drop important story items, Rulers and other Ruler-like enemies from mods.

Compatibility

Safe to add or remove at any time. There are no lasting effects of any kind (apart from any loot you were able to recover due to this mod) as this mod only uses event listeners.

Any timed and carried loot recovered is removed from the units so another mod trying to recover those can’t duplicate it. In cases of corpse loot being dropped there is no way to know if other mods also made the units drop the same loot but this should be very rare.

All self-cloning unit variants from mods should be handled if they are using X2Effect_ShouldCodexDropLoot which is on the CodexImmunities base game ability or utilize the function AreAllCodexInLineageDead directly.

Andromedon variants handled from mods:

Ruler-like units handled from mods:

Known Issues
  • Corpse loot dropped in Chosen Stronghold part 1 is not recovered. This is difficult to fix while making sure you don’t get that loot if you lose the mission.
  • Winning Chosen Stronghold part 2 by killing the Chosen while there are units still alive on the enemy team will end the mission but corpse loot from those alive enemies is not recovered.
  • Killing an enemy with Insanity/Schism and simultaneously rolling mind control on it will not drop any loot. Exact cause unknown, the mod’s checks that make sure you won’t end up with duplicate loot suggest that the game should be dropping loot in this case but just somehow isn’t.

Credits

Credit to -bg- for the original mod although this mod does everything completely differently.

Notes

Remove Loot Mind Control if you’re still using it. It does not work correctly and this mod covers everything that mod was supposed to do.

Any other stuff that would normally happen when units die like getting XP or AP obviously won’t happen for mind controlled / hacked / unconscious units on missions ending as the units are not actually killed.

Enemies or other units that should not actually pick up loot is not prevented, but they should drop the picked up loot alongside their usual loot.

Let me know if you didn’t get any loot this mod is supposed to fix or if you got loot you should not have gotten. Please include as much detail as you can when reporting issues.