XCOM 2
115 ratings
[WOTC] Configurable Immunities
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
171.543 KB
23 Jun, 2019 @ 2:54pm
7 Jul, 2019 @ 2:35am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WOTC] Configurable Immunities

In 1 collection by Boundir
Make Your Own Game
26 items
Description
Description

This mods lets you configure units immunities. It can be Aliens, ADVENT or even your soldier.
I have started this mod wanting to add immunities to rulers, and it was the Avatar after that. Then I realized this feature could be used by others for any unit.

Changes

None. This is meant to be used by other mods.
You can tweak XComImmunities.ini as you wish and share your changes.

Variables

TemplateName - String
Required - Name of the unit being modified.

RemoveOriginalImmunity - Boolean
Optional - If set to true will remove original immunities from the unit.

AddImmunityName - Array (string)
Optional - Immunity names you want to add to the unit.

RemoveImmunityName - Array (string)
Optional - Immunity names you want to remove from the unit.

List of immunities (some have not been tested)
  • Explosion
  • KnockbackDamage
  • ParthenogenicPoison
  • Disorient
  • Psi
  • Panic
  • Bleeding
  • Fire
  • Mental
  • Unconscious
  • Stun
  • Acid
  • Poison
  • Electrical
  • Melee
  • BlazingPinions
  • Falling
  • ViperCrush

Examples

[ConfigurableImmunities.OPTC_CharactersImmunities] ; Examples ; Will make Soldier units immune to Fire ;+CharacterImmunities = (TemplateName=Soldier, AddImmunityName[0]=Fire) ; Will remove immunities from Soldier units ;+CharacterImmunities = (TemplateName=Soldier, RemovePreviousImmunity=true)

Note

Some enemy units have some built in immunities as abilities. You won't be able to modify those with this mod.

Troubleshooting
Mods not working properly / at all
Mod not working? Mods still have their effects after you disable them?
43 Comments
modifieda4 28 Oct, 2022 @ 2:55pm 
hi, im trying to make lost immune to ParthenogenicPoison in an attempt to prevent cocoons. i added: +CharacterImmunities = (TemplateName=TheLost, AddImmunityName[0]=ParthenogenicPoison) and so on, even for world war L units. im not seeing any changes in a mid game save using another F1. any ideas?
Haite 25 Apr, 2022 @ 4:09am 
How about weaknesses?
Boundir  [author] 25 Sep, 2021 @ 12:59pm 
Blinded is handled differently iirc. Would probably require to make an ability immune to it using X2Effect_DamageImmunity and then attach this ability to the template you need.
Kiruka 25 Sep, 2021 @ 11:03am 
Is it possible to add immunity to Blind?
PЋФƎȠiメ 14 Aug, 2021 @ 8:13am 
Ok, thank you for clarifying.
Boundir  [author] 14 Aug, 2021 @ 1:09am 
It's different. Chosen strength are not immunities set to the character template but abilities.
You can remove it in XComGameData.ini if you're starting a new game. The ability is called ChosenImuneMelee.
If the ability is already on the Chosen you will need Repurpose Ability or WSR by Iridar to remove it.
PЋФƎȠiメ 14 Aug, 2021 @ 12:31am 
Does this work for the Chosen? I'm trying to remove their melee immunity. Where are the Template names? I don't see any files in the game's localization that mention unit names as you stated.
Titanium Highwayman 12 Nov, 2020 @ 1:10pm 
Much appreciated.
Boundir  [author] 12 Nov, 2020 @ 12:02pm 
Replace "Soldier" by whichever enemy unit character template you want. You can find them in localization files.
Titanium Highwayman 12 Nov, 2020 @ 10:50am 
I was wondering how I would use this for removing immunities for enemy units, since the examples provided in both here and the read me mainly focus on the playable characters. Reason being that I'd like to remove fire immunity for the enemies in-game and all that.