XCOM 2
317 ratings
[WOTC] Dude, Where's My Loot?
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
187.225 KB
23 Oct, 2022 @ 12:58am
15 Jun @ 11:49am
11 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Dude, Where's My Loot?

In 1 collection by Zelfana
Bugfixes by Zelfana
12 items
Description
Overview
This mod fixes issues with loot drops related to mind control / hacking and player controlled non-XCOM units that are able to pick up loot. Essentially a fixed version of Loot Mind Control.

There are five separate 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 / unconscious enemies but you didn't get their loot or corpses. You will now get those items. This now 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.

Configuration
<Steam>\steamapps\workshop\content\268500\2878818143\Config\XComDudeWheresMyLoot.ini

You can set mind control to instantly drop enemies' timed loot drop instead of it only dropping on death or mission end.

Configure overrides for mind controlled units on mission end for special case units that don't normally drop (corpse) loot upon death. Default config includes the vanilla Andromedon and its variants 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 thanks to this mod).

There should be no compatibility issues as everything is handled via event listeners. Any loot recovered is removed from the units so another mod trying to recover the same loot should not duplicate it unless that mod didn't handle the loot correctly. In the case of Andromedon special handling the loot is added directly but should be fine as the robot stage is never spawned.

Andromedon variants handled from mods:

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

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 (yet), but they should drop the picked up loot when they die or on mission end.

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.
38 Comments
mctrevor 1 Dec, 2023 @ 10:12am 
Ok I will take your word for it. Thanks!
Zelfana  [author] 29 Nov, 2023 @ 5:19am 
@mctrevor

That is exactly one of the reasons this mod exists. And that duplication did happen for everyone, not just LWOTC users.

This mod uses a completely different method of retrieving the loot, much better.
mctrevor 28 Nov, 2023 @ 10:20pm 
Quick question: [WOTC] Loot Mind Control leads to duplicating corpses in full salvage missions in LWotC (Long War of the Chosen). Does this mod fix this behaviour, too?
LeyShade 22 Nov, 2023 @ 2:53pm 
@solvius90 - each loot is tied specifically to an enemy as part of its functioning to drop the loot.

You can change 'what' loot is dropped by each individual enemy however, by creating a loot table containing all the items you want and pointing each individual enemies loot entries to it.
solvius90 16 Nov, 2023 @ 9:12am 
How can edit in the config a universal drop chance for all enemies, and not for each one separately (sectoid, viper and others)?
solvius90 16 Nov, 2023 @ 9:08am 
Ok. Thanks. When i delete loot piñatas core started to drop normaly. As I understand it, in order for my loot to be varied, I need to register the chance of its drop in the config myself. And for each enemy separately. Damn, that's a lot of lines in the config. Although it’s not as difficult as with other games (like Original Sin 2 where you need to open a mod using a program, there are no simple configs)
Zelfana  [author] 14 Nov, 2023 @ 10:45am 
@solvius90

You have probably diluted your loot pool with Loot Pinatas so you get a lot of random items instead of Elerium Cores. I would suggest you just remove it.
solvius90 10 Nov, 2023 @ 11:48am 
I can't figure out the loot. I have different mods for loot (psionics ex machina, mele attachments, suppressors, shield attachments, tela loot). And when I run mods for sorting loot (dude were is my loot, loot piñatas) my elerium cores are missing.
I want the loot to be varied. Can you recommend anything?
Cyber Von Cyberus 3 Nov, 2023 @ 12:23pm 
Mucha Gracias Amigo.
Trivial Man 29 Mar, 2023 @ 1:20am 
I probably won't be able to play XCOM for a little while, but I appreciate you working on this seemingly at my prodding. I guess that initial report was probably just my faulty memory or something. And on the off chance I do ever see anything like it again I'll take much more thorough note of what exactly happened.