[WOTC] Unstuck Suppression

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

Author: Zelfana

Last revision: 22 Aug, 2023 at 02:00 UTC (2)

File size: 110.59 KB

On Steam Workshop

Description:
Overview

Makes some events clear Suppression to fix some oddities that would happen otherwise.

Things that make the target ineligible for Suppression will now remove it, like Stasis and Mind Control.

Also if the target got concealed or moved for any reason it could cause the suppressing unit to be unable to see the target anymore and therefore would be unable to shoot and the Suppression effect would get stuck until the next turn so it will be cleared in those situations as well.

This clearing will happen with low priority so the actual shot will have a chance to trigger if it is able to.

Configuration
<Steam>steamappsworkshopcontent2685002976264447ConfigXComZelfSuppressionCleanseFix.ini

You can configure which effect names will be cleared, and in which events that happens.

Default events include UnitMoveFinished, AffectedByStasis, MindControlled, MindControlLost and EffectEnterUnitConcealment.

Compatibility

Safe to add or remove at any time. Event listeners will not persist in saves.

Suppression effect names included are Suppression, AreaSuppression and LW2WotC_AreaSuppression. Should cover most of them.

As this is based on event listeners it should be compatible with everything.

Notes

Units with Shadowstep are still valid Suppression targets and the shot won’t trigger. That is vanilla behaviour and has not changed, but now the effect is removed after the unit has finished moving.

Although this will fix grappling, stealth, etc. causing Suppression to get stuck on you I recommend adding those abilities to [WOTC] Suppression For Suppression config to disallow using those under Suppression in the first place. I have done that in Assorted Fixes Config.

Improvement suggestions welcome as always.

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen
Required items:

Click the title to search on this site.


X2WOTCCommunityHighlander v1.26.3Steam Workshop
Revisions:

Old revisions of this mod are available below. Click the link to download.