Skip to content

X2AbilityToHitCalc_StandardAim

Editor: X2AbilityToHitCalcEditor_StandardAim · extends X2AbilityToHitCalcEditor_Base.

Own fields

Config field Type Requires Game field Description
IndirectFire bool SetIndirectFire=true bIndirectFire Treats the attack as indirect, like a grenade: it always hits, though crit, dodge and armour mitigation still apply.
MeleeAttack bool SetMeleeAttack=true bMeleeAttack Treats the attack as melee, which ignores cover and applies the intrinsic melee hit bonus.
ReactionFire bool SetReactionFire=true bReactionFire Treats the attack as reaction fire, which takes the reaction penalty and forgoes the flanking bonus.
AllowCrit bool SetAllowCrit=true bAllowCrit Whether crits are built into the hit table at all. Turning it off makes the ability incapable of critting.
HitsAreCrits bool SetHitsAreCrits=true bHitsAreCrits Converts every successful hit into a crit after the roll is made.
MultiTargetOnly bool SetMultiTargetOnly=true bMultiTargetOnly Guarantees success when the ability has no primary target, for abilities that only ever hit multi-targets.
OnlyMultiHitWithSuccess bool SetOnlyMultiHitWithSuccess=true bOnlyMultiHitWithSuccess Multi-target hits only land if the roll succeeded, as with Faceoff.
GuaranteedHit bool SetGuaranteedHit=true bGuaranteedHit Always hits, skipping the normal hit modifiers. Armour mitigation still rolls.
IgnoreCoverBonus bool SetIgnoreCoverBonus=true bIgnoreCoverBonus Ignores the target's high and low cover bonuses.
FinalMultiplier float SetFinalMultiplier=true FinalMultiplier Scales the final hit chance after everything else. Appears in the shot breakdown attributed to the ability.
BuiltInHitMod int SetBuiltInHitMod=true BuiltInHitMod Flat aim modifier the ability always carries.
BuiltInCritMod int SetBuiltInCritMod=true BuiltInCritMod Flat crit modifier the ability always carries.

Inherited fields

From X2AbilityToHitCalcEditor (1)

HitModifiers

Every one of these is documented under Shared fields or on the page for the class that introduces it.

Not editable from config
  • SHOULD_ENABLE_PENALTY_ON_ANGLE_TO_EXTENDED_HIGH_COVER — config — tune it in the game's own ini
  • SHOULD_DISABLE_BONUS_ON_ANGLE_TO_EXTENDED_LOW_COVER — config — tune it in the game's own ini
  • MAX_TILE_DISTANCE_TO_COVER — config — tune it in the game's own ini
  • MIN_ANGLE_TO_COVER — config — tune it in the game's own ini
  • MAX_ANGLE_TO_COVER — config — tune it in the game's own ini
  • MIN_ANGLE_BONUS_MOD — config — tune it in the game's own ini
  • MAX_ANGLE_BONUS_MOD — config — tune it in the game's own ini
  • MIN_ANGLE_PENALTY — config — tune it in the game's own ini
  • MAX_ANGLE_PENALTY — config — tune it in the game's own ini
  • LOW_COVER_BONUS — config — tune it in the game's own ini
  • HIGH_COVER_BONUS — config — tune it in the game's own ini
  • MP_FLANKING_CRIT_BONUS — config — tune it in the game's own ini
  • MELEE_HIT_BONUS — config — tune it in the game's own ini
  • SQUADSIGHT_CRIT_MOD — config — tune it in the game's own ini
  • SQUADSIGHT_DISTANCE_MOD — config — tune it in the game's own ini
  • REACTION_FINALMOD — config — tune it in the game's own ini
  • REACTION_DASHING_FINALMOD — config — tune it in the game's own ini
  • NormalSquadSize — config — tune it in the game's own ini
  • ReasonableShotMinimumToEnableAimAssist — config — tune it in the game's own ini
  • MaxAimAssistScore — config — tune it in the game's own ini
  • BaseXComHitChanceModifier — config — tune it in the game's own ini
  • MissStreakChanceAdjustment — config — tune it in the game's own ini
  • HitStreakChanceAdjustment — config — tune it in the game's own ini
  • SoldiersLostXComHitChanceAdjustment — config — tune it in the game's own ini
  • SoldiersLostAlienHitChanceAdjustment — config — tune it in the game's own ini
  • AlienVsTheLostHitChanceAdjustment — config — tune it in the game's own ini
  • TheLostVsAlienHitChanceAdjustment — config — tune it in the game's own ini
  • CritUpgradesThatDontUseEffects — config — tune it in the game's own ini