Difference between revisions of "GetThreatRatio"

54 bytes added ,  19:10, 12 July 2022
m
(→‎Description: simplified presentation of the math involved, based on reverse engineering)
Line 9: Line 9:
</math>
</math>


For the threat level calculation, the armor's estimated defense and estimated offense are multiplied together. The estimated defense is their current health, divided by the inverse of their armor protection (their Damage Resistance [[actor value]] scaled by the ''fArmorScalingFactor'' [[Game Settings|game setting]]). The estimated offense is the actor's estimated DPS (damage per second) given their currently equipped [[weapon]] (defaulting to the Unarmed weapon) and [[ammo]].
For the threat level calculation, the armor's estimated defense and estimated offense are multiplied together. The estimated defense is their current health, divided by the inverse of their armor protection (their Damage Resistance [[actor value]] scaled by the ''fArmorScalingFactor'' [[Game Settings|game setting]]), with the divisor clamped to avoid a division by zero. The estimated offense is the actor's estimated DPS (damage per second) given their currently equipped [[weapon]] (defaulting to the Unarmed weapon) and [[ammo]].


==Syntax==
==Syntax==
53

edits