XCOM 2
Enhanced Hit Chance Displays
49 Comments
Vanden Sep 4, 2017 @ 3:30pm 
Any chance this works with WotC?
mediumvillain Mar 17, 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 Mar 2, 2016 @ 6:54pm 
Thanks for your hard work you put in on this Sectoidfodder!
QuickSaveTV Mar 2, 2016 @ 6:41pm 
It sucks that youi've discontinued it, but I guess time to switch to Perfect Information.
MysticalPotato Mar 2, 2016 @ 4:47am 
Mod doesn't work for me for some reason
GeminiGod Feb 29, 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 Feb 29, 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] Feb 29, 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 Feb 29, 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 Feb 29, 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.
Sectoidfodder  [author] Feb 29, 2016 @ 12:36pm 
Weird hit chances should be fixed now. Lemme know if any odd shot chance displays persist.
Sectoidfodder  [author] Feb 29, 2016 @ 11:06am 
Looking into the possibility of making custom multi-icon flyovers to show crit and dodge with. Didn't want to clutter the display with separate flyovers for each stat... though that's what I did in the EW version of the mod.
GeminiGod Feb 29, 2016 @ 12:14am 
I can confirm @advent. Enemy had a perfect flanking shot on me that critted me and the overhead hit chance said 25%. Something broken. It is variably inaccurate. I'm guessing some stray code is subtracting crit chances from the hit chance?? 65-40=25.
GeminiGod Feb 28, 2016 @ 11:46pm 
@Sectoidfodder,

Great work here. Minus the known kinks I'm sure you will fix, this mod overall is a lot cleaner than the similar Perfect Information mod with one key difference. Perfect information displays the crit and dodge chance, which is really valuable info, especially when playing certain other mods such as EladDv's 2nd Wave Reborn.

I am going to start a game using this mod with the hope and prayer that you will incorporate cute little icons and numbers next to your cute green aim stat for crit and dodge. :steammocking:
Juravis Feb 28, 2016 @ 9:37pm 
Just made an ambush, one of my own shots was 20% against a running uncovered target. Either thats wrong and the mod isnt taking into account Overwatch reactions modifiers properly, or XCOM itself is broken.
bilfdoffle Feb 27, 2016 @ 9:12pm 
I turned on the option to show my own hit percentages, and it's frequently different from whats displayed prior to the shot - particularly bad for snipers. I'm not sure if it's a display error on your side or the shot preview side.
Sectoidfodder  [author] Feb 25, 2016 @ 3:16am 
@Saint - Various settings are adjustable from "Steam > steamapps > workshop > content > 268500 > 624406557 > Config > XComMod_EHCD.ini".
Saint Void Feb 25, 2016 @ 1:15am 
Is there a way to hide the green Aim flyovers and just show the aim bonuses in the stat box? Setting or separate mode maybe?
Juravis Feb 19, 2016 @ 9:01pm 
Can you make a quick and dirty "Defense" mod that adds the total defense a unit has when you hover down to the left? It would help to see if EHCD displays correct information for special cases. I have a feeling XCOM2 doesnt calculate defense scores properly for stacking bonuses (Smoke/Aid/Cover for example). Thank you in advance for your time.
Juravis Feb 18, 2016 @ 10:37pm 
Thanks, this is the best mod of its kind. The graphical popup is awesome and doesnt break game immersion.
Sectoidfodder  [author] Feb 18, 2016 @ 9:01pm 
@Mashpit, @ADVENT - I derped. Rather than skipping aim assist math on reaction shots I skipped the whole flyover. Fixed now.

Also, does anyone know how Steam Workshop tags work? There's a "tags" field in ModBuddy when I submit mods but putting stuff in there doesn't seem to do anything.
Mashpit Feb 18, 2016 @ 2:13pm 
Oh, and I've already tried setting the "SHOW_FLYOVER_FRIENDLY_SHOT" line to true in XComMod_EHCD.ini. It didn't do anything.
Mashpit Feb 18, 2016 @ 1:59pm 
To echo ADVENT, I'd also like a functionality that shows the chance for overwatch shots for XCOM as well as for the aliens/ADVENT. This mod shows what I mean. Great mod, otherwise.
Juravis Feb 18, 2016 @ 11:00am 
How hard would it be to also put the display over overwatch shots from both sides? Apologies if this has been addressed before. Because this mod is the best aesthetically wise.
Juravis Feb 18, 2016 @ 10:42am 
Thank you, superb.
Sectoidfodder  [author] Feb 18, 2016 @ 2:45am 
@ADVENT added functionality to show shot breakdown by default. You may have to http://forums.nexusmods.com/index.php?/topic/3809960-psa-did-your-mod-suddenly-stop-working to fully remove the other conflicting mod and get this working. Showing the RNG roll would involve writing a new HitCalc (it currently doesn't store the roll, just the result), which would cause compatibility issues with mods like this , which I don't really want.
Juravis Feb 18, 2016 @ 1:14am 
I forgot I'd also enjoy if its possible at all to see what the actuall roll was (Missed! 86/70 for example). It helps me cope with the pain.
Juravis Feb 17, 2016 @ 6:47pm 
I'd like Always Show Shot Breakdown to be included as a parameter in this mod, because they dont cooperate well (its overwritten). Basically it opens both flaps on the sides all the time to see numbers instead of having to click the arrows.
Sectoidfodder  [author] Feb 16, 2016 @ 12:44pm 
@BFrost - I'll look into it. I limited the flyovers to abilities that the game defines as "standard aim" but even within that category there are some weird exceptions and the mod hasn't been exhausively tested.

@Bleu - I'm working on enabling those target icons on mission objectives and certain unactivated pods (they sometimes don't show properly). Will keep your suggestion in mind and see if it's doable.

@Andy - Sure. I'll also look into the ScreenListener thing from your comment thread and see if there's a better solution for compatibility.
Andy_Bell101 Feb 16, 2016 @ 11:39am 
Hey man, awesome mod! I made one to do a similar thing but gotta say yours looks much better :) I have another mod (Always Show Shot Breakdowns) that a few people have asked about getting compatibility for with this and I was wondering if I could give you my code for the UITacticalHUD_ShotWings class so people can get the benefit of both our mods
Bleu Feb 16, 2016 @ 11:06am 
This is a GREAT mod. Thank you very much.

Do you think it would be possible to mod in theoretical hit chances on top of the enemy soldier names when selecting tiles to move to, right next to the crosshair icon that is displayed on their health bar and which indicates that the enemy unit will get a shot at you?

This way one could know what hit % one would get against each enemy BEFORE spending the soldier's action points.

Not requesting (but if you do this I'd love you for it), but I'd actually want to know if this is possible)
BFrost Feb 16, 2016 @ 8:37am 
Hello RabidRabbit, love the mod!
Encountered an interesting case when a faceless attacked my soldier on the first retaliation mission and flyout showed 100%, but he missed.
Unordinal Feb 15, 2016 @ 10:15pm 
@Vanden this always happens even in the base game.
Arkanthus Feb 15, 2016 @ 8:21pm 
New Suggestion: If possible...Please create a simple new mod that shows up at the top of the head of soldiers or near them the amount of XP points they just earned by killing an alien, enemies or getting the missions objectives, arcade style! :ccknight:
Lamest Hoax Feb 15, 2016 @ 4:12pm 
Thanks for the fix! I'll be sure to spread your mod around some
Kaiser Feb 15, 2016 @ 9:47am 
Oh, instaled after reboot PC =| lol
Kaiser Feb 15, 2016 @ 4:30am 
I signed up, but do not see that events added to the section \ steamapps \ workshop \ content \ 268500 \ 624406557 \
Kaiser Feb 15, 2016 @ 4:28am 
I've got RU version.

How to instal manually?
PhysixCat Feb 14, 2016 @ 8:14pm 
Hello Rabid, loving your mod. I had a small question.

It seems this mod right over here
Always Show Shot Breakdowns is incompatible with yours, probably because they override the same files, as you mention. I was wondering if it would be at all possible to reconcile the modifications in them somehow so that they don't overwrite? Maybe by teaming up with the other creator? Because as it stands, yours overrides his fix, and I'd love to use them both.

Thanks again
Arkanthus Feb 14, 2016 @ 6:55pm 
I will not install other Mod that modifies the same values to avoid bugs and crashes. I will follow your advise, choose, keep and stick with one mod that alters very particular elements in the game. :scarecrow:
Vanden Feb 14, 2016 @ 6:15pm 
Thanks. I turned off the hit percentage flyovers, but I noticed that sometimes damage flyovers aren't finishing their animations, and sometimes they'll just be blank. I don't remember seeing this before I installed the mod, is it related?
Sectoidfodder  [author] Feb 14, 2016 @ 4:56pm 
Update: fixed hit chance display when mousing over enemy icons
Arkanthus Feb 14, 2016 @ 4:11pm 
Ok. Testing it once again now. :csgocross:
Sectoidfodder  [author] Feb 14, 2016 @ 4:01pm 
@Vanden: <Steam>\steamapps\workshop\content\268500\624406557\Config

Yes I know it's obscure, but it's where all your steam workshop subscriptions are stored by ID.

@Alex: forgot about those, I'll look into it.
Vanden Feb 14, 2016 @ 3:27pm 
So where is this XComMod_EHCD.ini file found so I can turn off flyovers?
Lamest Hoax Feb 14, 2016 @ 1:34pm 
Awesome mod! Definetly one of the most useful out there to help learn what shots to take and not to. Small inconvience however, the shot percentage displayed over the red head is not changed while the one next to the target itself and the one in large blue text are. Thought I'd point this out in case you were unaware, thanks again.
Arkanthus Feb 14, 2016 @ 12:29pm 
Amazing! Let's test it if it shows also the aim assist provided by all those weapon accessories we can attach into our weapons. :orb:
BlueRaja Feb 14, 2016 @ 12:06pm 
Nice! I might be worth emphasizing that these bonuses already exist in the game, they're just hidden from the player. I think most players don't realize that.