[WOTC] Complicated Red Fog

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

Author: RedDobe

Last revision: 8 Apr at 01:37 UTC (6)

File size: 1.24 MB

On Steam Workshop

Description:

Red fog lowers the stats of units in battle as they become more injured and closer to death.

An updated version of red fog that includes more levels of red fog than simple red fog. Using the latest highlander the percentage option for offense and crit is fixed.

You can configure the number of breakpoints/levels of red fog (Default 20)

You can add Red Fog for any Stat

You can set the Red Fog as a percentage or flat penalty for each stat type. When setting as a percentage the stat will have only that percentage left at the most severe case. For example, a unit has an aim stat of 70. At the default .6 setting for offense the lowest the stat could go is .6 (60%) of 70 = 42 at the most severe red fog penalty. If you set it 0 then the stat can drop all the way to 0 at the most severe case.

by Default I have the following:

Affects all enemies and Xcom

The maximum red fog penalty occurs when hp reaches 0 and is a linear penalty from full hp.

Mobility Max Red Fog = 50% of base stat
Offense Max Red Fog = 60% of base stat
Will Max Red Fog = 60% of base stat
PSIOffense Max Red Fog = 60% of base stat
Hacking Max Red Fog = 60% of base stat

ComplicatedRedFog.ini
Set as many breakpoints as you want
add or remove as many stats as you want
set percentage to false for to use a flat penalty instead of %
Exclude certain characters
and much more!

Added an option in the ComplicatedRedFog.ini to enable bonus aiming angles for all teams, not just XCom. Why not since this mod already overrides that function anyway? By default it’s disabled.

Known Issues

Any mod that overrides the GetHitChance function in X2AbilityToHitCalc_StandardAim and doesn’t apply the latest highlander updates to their override, won’t allow you to use percentage Red Fog on crit and offense. Those numbers will bug out and add a bonus offense or crit instead of penalizing the injured unit. In the ini. you would have to change the red fog percentage to false for these two stats and set a negative number value instead.

Example
StatList[1]=eStat_Offense
SevereEffect[1]=-30
bPercentage[1]=false
FriendlyName[1]=eStat_Offense

Known Mods that override the above function

Extended Information does not display the correct hit chance on the flyover when the enemy unit has red fog.

No overrides but uses a new version of XModBase V3.0.0

Credit goes to Charmed for the original version of this mod.

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.27.1Steam Workshop