ReliableDamage_WotC

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

Author: dani

Last revision: 25 Apr, 2021 at 17:29 UTC

File size: 223.23 KB

On Steam Workshop

Description:
Description

This mod removes various RNG elements present in the game when you take a shot.
All shots will now hit but deal the expected value of the shot (<hit_chance> * <damage>) as damage rather than hit for 100% or miss for 0%.
This greatly reduces the variance in damage and makes damage output much more reliable.
Applying the expected value averages out to the exact same amount of total damage that is delivered, just without the RNG of critting / hitting / grazing / missing.

XCOM 2 version

The original mod for XCOM 2 without War of the Chosen can be found here.

Features
  • Each shot always hits but applies the expected value of the shot (<hit_chance> * <damage>) rather than 100% or 0%.
    • Example; a 6 damage shot with a 60% chance to hit has an expected value of 3.60.
    • The game cannot handle float values for damage so we roll for the resulting damage which is either 3 (40%) or 4 (60%).
    • In this example, your shot will thus always do between 3 and 4 damage. Way more reliable than the default 0 (miss) or 6 (hit).
  • Critical damage / Graze shots are removed but their effects are incorporated in every shot instead (i.e., 25% chance to crit for an additional 4 damage would simply do +1 damage on each shot instead). This is configurable, both types of shots can be restored to normal if desired.
  • Abilities like Viper’s Bind and Skirimisher’s Justice are not influenced and can still miss of course.
  • Abilities like Untouchable and Lightning Reflexes will still cause shots to miss.
  • Ammo effects such as Dragon Rounds’ burning effect are applied with a probability equal to the original hit chance, rather than on every hit (because that is 100% in this mod). Can be controlled in config.

Updates

Look in the Change Notes section.

Installation directory

This mod is installed to SteamAppsworkshopcontent2685002409840472

Shot information

If you are wondering why a certain shot did a certain amount of damage, be sure to first check your Launch.log file. It will contain a fairly detailed breakdown of every shot that was manipulated by this mod.
The log file is located here:

%USERPROFILE%DocumentsMy GamesXCOM2 War of the ChosenXComGameLogsLaunch.log

Search for <ReliableDamage.Damage> to find shot information written by the mod.

Configuration

Configuration options can be set in ConfigXComReliableDamage_WotC.ini.
That file also contains a full description of each option, so look there for more in depth information.

  • AdjustCriticalHits – Critical hits can no longer occur but their bonus damage is incorporated into every shot instead.
    • Set to 0 to revert to default XCOM behavior
  • AdjustGrazeHits – Graze hits can no longer occur but their damage reduction is incorporated into every shot instead.
    • Set to 0 to revert to default XCOM behavior
  • AdjustPlusOne – Incorporate the "PlusOne" damage of certain weapons into every shot instead.
    • For example, a Pistol has a PlusOne stat of 50. This means 50% of the time it will deal +1 damage. This mod will simply add 0.5 to the expected value of every shot instead.
    • Set to 0 to revert to default XCOM behavior
  • ApplyAmmoEffectsBasedOnHitChance – If set to 1 ammo effects like Dragon Rounds’ Burning effect will not be applied on every hit (which is 100% in this mod) but will be applied on hit with a probability equal to the original hit chance.
  • ApplyVsTheLost – To disable all effects of this mod when targeting The Lost set this to 0. Default is 1.
    • The Lost are relatively low HP so trading shot damage for a guaranteed hit is very powerful, especially combined with the "Headshot" ability that restores 1 action point when killing a Lost. It is therefore possible to disable all effects of this mod when targeting The Lost units by setting this option to 0.
  • DisableForAbilities – Disable this mod entirely for specific abilities. You can specify multiple abilities on separate lines.
    • For example, to disable the sniper standard shot and the ability Hail of Bullets you can use
      +DisableForAbilities=SniperStandardFire +DisableForAbilities=HailOfBullets
  • RemoveDamageSpread – Removes damage spread from weapons and abilities. 0 to retain all damage spread, 1 to remove. Default is 1.
  • RemoveOverwatchBasedOnHitChance – Set this option to 1 to remove Overwatch with a chance equal to the original hit chance, rather than 100% of the time (since shots do not miss anymore). Default is 1.

Overrides

This mod does not apply any hard overrides through XComGameEngine.ini.
We do selectively replace instances of the following classes with customized versions through code:

  • X2AbilityToHitCalc_StandardAim
  • X2Effect_ApplyWeaponDamage

Incompatible mods

In general, any mods that adjust and/or override the classes listed in Overrides will likely cause issues.
The list below is compiled based on comments of users and/or my own experience
If you experience issues with other mods, please let me know and I will update the list below.

  • [WOTC] Cover Damage Reduction
  • [WOTC] EU Aim Rolls

If you find any issues, please let me know in the comments.

Download
Required DLC:

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


XCOM 2: War of the Chosen