Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2guides committed Oct 29, 2023
1 parent 689735d commit 16fe852
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions X2WOTCCommunityHighlander/Config/XComGame.ini
Original file line number Diff line number Diff line change
Expand Up @@ -282,3 +282,8 @@ iMixedCharacterPoolChance = 50
; Uncomment the following line to make the Unit Flag damage preview show minimum damage
; rather than maximum damage.
; bUseMinDamageForUnitFlagPreview = true

;;; HL-Docs: ref:DisableAimAssist
; Uncomment the following line to disable Aim Assist.
; bDisableAimAssist = true

4 changes: 4 additions & 0 deletions X2WOTCCommunityHighlander/Src/XComGame/Classes/CHHelpers.uc
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ var config int iMixedCharacterPoolChance;
// Variable for Issue #579 - makes UIUnitFlagManager use ability's minimum damage rather than maximum damage for the preview.
var config bool bUseMinDamageForUnitFlagPreview;

// Variable for Issue #1228 - disables Aim Assist.
var config bool bDisableAimAssist;


// Start Issue #885
enum EHLDelegateReturn
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,15 @@ function int GetModifiedHitChanceForCurrentDifficulty(XComGameState_Player Insti
local XComGameState_Unit Unit;
local ETeam TargetTeam;

// Start Issue #1228
/// HL-Docs: feature:DisableAimAssist; issue:1228; tags:tactical
/// This feature adds a config variable that acts as a master switch for disabling all instances of Aim Assist.
if (class'CHHelpers'.default.bDisableAimAssist)
{
return BaseHitChance;
}
// End Issue #1228

ModifiedHitChance = BaseHitChance;

History = `XCOMHISTORY;
Expand Down

0 comments on commit 16fe852

Please sign in to comment.