XCOM 2
34 ratings
[WotC] RW Realistic Aiming Angles & Highlander+
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
397.742 KB
13 Oct, 2022 @ 12:50am
27 Jul, 2024 @ 4:01am
6 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
[WotC] RW Realistic Aiming Angles & Highlander+

Description
Heavily based on Krumiro's [WotC] RW Realistic Aiming Angles, this started as a merge with Highlander 1.28.1 but has acquired some additional changes of my own. Many things are the same - see the original mod for details.

Changes

ApplyVerticalBadAngleAgainstHigherTargetAsProportionalHeightDisadvantage
is no longer used. Instead it is combined with
AllowFarCoverToGiveSomeCoverProtection
which has also changed to avoid occasionally odd behaviour. Far-cover is determined by vertically scanning the target's location and their "peek" location, which is where they're looking around any cover they may be behind. Anything not already protected by cover which does not have line-of-sight will add to their far-cover. This is relatively low precision (currently 14 samples) to keep performance up, as the AI, in particular, will check for cover quite a lot while deciding how to act. Because it's just two vertical scans the no-line-of-sight check is a bit touchy and may need some further refinement. The benefit of this method is that targets which would not normally get any cover will do so, but only if enough of the target is covered so that less than an Advent Trooper's worth of them is visible (yes, an Advent Trooper is the standard unit of hitability, didn't you know?).

Your XCOM troops are now always considered to be alerted when applying
OnlyAlertedTargetsCanHaveTheExtraProtectionOfFarCoverAndHeightDisadvantage
which makes sense to me as we're not just wandering though a city thinking "soooo bored, are there any aliens here at all?". Plus the behaviour before was inconsistent, with some player troops never getting alerted even after being shot at. That seems like a bug in the core game, but a mild one given that I don't think it's used for anything in core.

Maximum far-cover bonus now scales to whatever the high-cover bonus is set to.

Finally, the vanilla behaviour of reducing the "good angle" bonus when next to more cover has been removed as it's already accounted for by the far-cover calculations

Thanks to Krumiro for the concepts and much of the code in this mod. Any bugs and balance issues with far-cover are my own.

Now, thanks to -bg-'s [WOTC] EU Aim Rolls, with 100% less cover when running overwatch! This is independant of the EU Aim Roll configuration and is not enabled by default. To enable change the configuration
OVERWATCH_BYPASS_COVER=true

Source code is available here[nest.pijul.com]
60 Comments
Sandboxhead 14 Apr @ 4:58pm 
I choose your mod over the other 2. I was looking inside your XComRWRealisticAimingAnglesHL config file. It has this line:

UseIndividualConsecutiveRollsForHitChanceCriticalChanceDodgeChance = false ;"false" will ignore the other 2 variables

So if I change that to true, I will basically have bg's EU Aim Rolls mod?
RambelZambel 1 Apr @ 6:16am 
never asked this, does this apply to advent/factions aswell?

in another mod i found this
[XModBase_Core_3_0_0.XMBAbilityToHitCalc_StandardAim]

bBonusAimingAnglesForAll = false;
Darkling  [author] 27 Jul, 2024 @ 4:05am 
Updated. Not in an XCOM campaign at the moment but the changes were straight forward and a quick test shows no impact on the modded behaviour
Darkling  [author] 24 Jul, 2024 @ 7:43pm 
@RedDobe thanks for letting me know, shouldn't take long to update.
RedDobe 29 Apr, 2024 @ 9:31pm 
@Darkling - There is another highlander update that needs to be applied to this mod. GetHitChance has been modified. {LINK REMOVED}
Darkling  [author] 20 Oct, 2023 @ 8:24pm 
@C7 I've not had a chance to try and replicate this but it does seem to be a known issue with the base game Bulwark ability, eg., https://www.reddit.com/r/XCOM2/comments/r1sits/wait_you_can_use_the_spark_as_cover/hm0loss
Darkling  [author] 20 Oct, 2023 @ 8:12pm 
Confirmed no changes needed to make this compatible with Highlander 1.26.3
Darkling  [author] 13 Oct, 2023 @ 1:05am 
@C7 Is the cover showing as "far cover"? If not then this mod shouldn't change the full or half cover applied, only the amount of cover reduced by horizontal or vertical angle. I've seen similar behaviour using shields so can double check this shortly.
C7 12 Oct, 2023 @ 5:07am 
A weird case. When using a Spark to stand next to an enemy and trying to shoot, it is shown that the spark itself provide a full cover to the target (guessed from the full cover bonus) and that the target is no longer considered flanked by the Spark.
Darkling  [author] 28 Feb, 2023 @ 11:46pm 
@airpirata @Mid Favila Unfortunately both these mods override the X2AbilityToHitCalc_StandardAim class and so are not compatible.

It appears that the Community Highlander has added a hook for just this case so potentially Mr Nice could update their mod to use that which should remove the incompatibility.