XCOM 2
26 ratings
[WOTC]Corpse Replacer
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
492.102 KB
16 Jun, 2023 @ 2:10am
1 Change Note ( view )
You need DLC to use this item.

Subscribe to download
[WOTC]Corpse Replacer

In 2 collections by lordabizi
LordAbizi's War Of The Glass
34 items
War Of The Glass Collection
450 items
Description
Corpse Replacer

Abstract
In the author's continued quest to make every aspect of the game exposed to config, this mod allows the easy manipulation of loot tables attached to a unit through config.


Overview
This mod allows the option to easily change the loot tables of a given unit using config only. This allows you to change the three loot tables attached to a unit - Base Loot (which includes the corpse), Timed Loot (collectible loot) and Vulture Loot. While the loot tables themselves are open to config, their attachments to unit is not. So for example, this mod allows you to have different corpses (or, in general, base loot tables) for an advanced trooper and a basic trooper. This is impossible to do with config only otherwise.

Why would anyone want to do that? Well, my use case is an entire economy overhaul I worked on, but we decided to upload this mod for the general public, so that any player, modder or otherwise, helicopter gunship, may come up with creative use cases for this mod.

By default, this mod does nothing, and is likely to be of little value for the average user.


Configuration
The configuration of this mod is done with XComCorpseReplacer.ini, see the instructions within. The config files also contain instructions on how to use Iridar's celebrated Template Master mod to create new corpses for enemies, and how to incorporate them into loot tables. This allows one to create new corpses for enemies, and then also further to create techs and items that require these corpses.



Compatibility
Depending on what the user does with this mod, it might conflict with "Corpse Dropped Revamp" by MrShadowCX, as that mod edits base loot tables. If the user sets those aliens to use different loot tables, then the changes by Corpse Dropped Revamp will do nothing.


Required Mods
Yes.


Known Issues
Some mods alter base loot tables. For example the chemthrower add-on mod adds chemthrower weapon upgrades to Purifiers. So if you edit the base loot table of Purifier, it will conflict with that mod. This can be solved by including the new Purifier drops from the mod into the base loot table used here.




Acknowledgements
The author would like to thank RustyDios for essentially writing this mod himself back in the day.
The author would like to thank the users of the MEME Discord Server for the continued emotional support.
The mod preview image was done with the help of an AI.
15 Comments
ikki 29 Aug, 2024 @ 8:45pm 
Every time I'm about to give up on an amazing idea I've had because I don't want to learn how to mod this game it turns out I had saved a niche mod doing exactly what I need in favourites idk how long ago. thank you, this is perfect
Ironmonk 23 Mar, 2024 @ 12:57pm 
great!
already experimenting with the example I gave.
With this mod, I can finally see the point in using some modded enemies that don't drop anything and thus slowdown the tech progress and/or funds gathering.
lordabizi  [author] 23 Mar, 2024 @ 9:50am 
Yes, you can use this mod to make security bits drop the drone corpses from other mods. A perfectly good application of this mod.
Ironmonk 23 Mar, 2024 @ 9:04am 
So, does this mod allow me to edit a loot table that isn't exposed or doesn't exist?

For example: "Security Bit" from "Even More Robots" that doesn't drop anything AFAIK... and I could add the corpse from "alpha's Drone Mod" "Corpse Drone" to it?
LeyShade 18 Jun, 2023 @ 12:08pm 
@Skarsatai 2.0 - DM me your config file set and I'll sort it out for you 👍
Skarsatai 2.0 17 Jun, 2023 @ 3:48am 
Stukov81-T.TV . sure of course. I tried it but CTD. I followed the instructions in the inis but no luck.
Stukov81-T.TV 17 Jun, 2023 @ 12:53am 
inserting new loot in an existing loottable can be done easily without this mod
lordabizi  [author] 16 Jun, 2023 @ 9:40pm 
@Skarsatai - this mod allows you to associate whatever loot table you want to whatever enemy you want. How you create this loot table - is your business. See the example in the config, that demonstrates how to create a new item, create a new loot table, and use this new item in that loot table.
Other than that, this mod is just a config tool, it does nothing on its own.
Skarsatai 2.0 16 Jun, 2023 @ 2:24pm 
would it be possible to insert a new item as loot ? like the magpoches from limited reload ? I miss this a loot from advent
LeyShade 16 Jun, 2023 @ 1:18pm 
@lordabizi and @Stukov - thanks for clarifying. Misunderstood as editing loot tables, now instead understand is tool for changing loot table associations.