XCOM 2
90 ratings
Enhanced Hit Chance Displays
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
300.126 KB
14 Feb, 2016 @ 11:44am
29 Feb, 2016 @ 12:35pm
7 Change Notes ( view )

Subscribe to download
Enhanced Hit Chance Displays

Description
[03/01/16]: This mod will no longer be updated. I recommend using Perfect Information, which now includes all the features in this mod, including the last of my TODO list that I never figured out.

> Shows hidden Aim Assist bonuses to your hit chance in targeting UI.
> Shows hit chances for reaction fire and enemy shots in flyover popups (does not yet count aim assist).

v1.5 [02/29/16]: Fixed code from v1.4 update leaking into and screwing up hit chances for some normal shots.

v1.4 [02/24/16]: Fixed hit chances for multi-target abilities (face off, faceless melee attack) and muton counterattacks.

v1.3 [02/19/16]: Fixed flyovers not showing on reaction shots.

v1.2 [02/18/16]: Improved shot details panel behavior - it will default to be open (ini adjustable) at the start of a new mission. If the player manually closes/opens the panel mid-mission, the change will persist for future shots.

-----------------------

Aim Assist bonuses:

Lucky - bonus to all shots based on game difficulty.
Adjusting Aim - bonus to any >50% shot, based on previously missed >50% shots in the same turn.
Last Stand - bonus to any >50% shot, if your squad has three or fewer soldiers remaining.

-----------------------

Various settings are adjustable from "Steam > steamapps > workshop > content > 268500 > 624406557 > Config > XComMod_EHCD.ini".

This mod overrides UITacticalHUD_ShotHUD, UITacticalHUD_ShotWings, UITacticalHUD_Enemies, and X2Action_ApplyWeaponDamageToUnit. Will not work with other mods that do the same.

This mod on Nexus: http://www.nexusmods.com/xcom2/mods/212

-----------------------

TODO:

> Find a way to factor Aim Assists into flyovers. May need to find a way to show flyover BEFORE shot is taken, since Aim Assists depend on pre-shot gamestate.
49 Comments
Vanden 4 Sep, 2017 @ 3:30pm 
Any chance this works with WotC?
mediumvillain 17 Mar, 2016 @ 5:46am 
:( I don't want perfect information, I just want full hit chance displays. The other mods are either too little or way too much information.
GeminiGod 2 Mar, 2016 @ 6:54pm 
Thanks for your hard work you put in on this Sectoidfodder!
QuickSaveTV 2 Mar, 2016 @ 6:41pm 
It sucks that youi've discontinued it, but I guess time to switch to Perfect Information.
MysticalPotato 2 Mar, 2016 @ 4:47am 
Mod doesn't work for me for some reason
GeminiGod 29 Feb, 2016 @ 9:07pm 
All good points. Come to think of it, I think that happened before I disabled aim assist, so it probably was that.
Juravis 29 Feb, 2016 @ 8:11pm 
@Sectoidfodder The XCOM2 original UI shows 0% when its impossible to hit, but I have a feeling that the real minimum is 1% because there is absolutely no point in taking a 0% chance shot.

It's also possible that this is because of the EW Roll mod, because in EW the minimum was 1%. It's possible it's not a bug. I don't have a save unfortunately and even if I did I have a million mods installed it wouldnt load most likely. You could probably save yourself trouble and put an INI entry that says "MinimumChance=0" for your base mod and I could just change it to 1.

@GeminiGod I saw that also once, I'm pretty sure that one is a bug because a 100% shot is 100% with a firearm. I think it's XC2 base calc melee-related, not this mod.

With so many small problems in XC2 its hard to tell when its a mod's fault or the base game engine. I dont blame the modders ever.
Sectoidfodder  [author] 29 Feb, 2016 @ 8:03pm 
I haven't seen anything in the code that would lead me to believe hit/miss is capped at 1%. Can your vanilla UI shot chance go down to 0% in XCom 2? It's theoretically the same number (barring aim assist modifiers) that the RNG rolls against, and it was very clearly capped at a minimum of 1% in Enemy Within.

@Gemini - an enemy missing with a shown hitchance of 100% could be possible because both Perfect Information and this mod shows hit chance before aim assists are applied in flyovers (this mod can only show aim assists in the shot UI atm).

@ADVENT - I don't know how an enemy can hit with a flyover shown chance of 0%. This is more likely another bug in my implementation.

If either of you have saves where you can replicate bad shot chance displays, I can run them with the game in debug mode so I can get a better idea of what's happening.
GeminiGod 29 Feb, 2016 @ 6:28pm 
@Advent, interesting! I guess that would also explain how the shapeshifter missed me once with a 100% hit chance. Must also have a 99% max. I hate all the aim assist crap they secretly programmed into vanilla but don't display, but I have to say I kinda like there always being a 1% chance of hitting or missing, and it would be nice if that was accurately displayed.
Juravis 29 Feb, 2016 @ 4:00pm 
EHCD shows incorrectly shots at 0% when the minimum is 1%. I got hit in the face with a 0% shot, so the game -does- put a minimum of 1% (I wasnt sure).

Thanks for the latest fixes.