This commit is contained in:
Shtoyan 2022-02-07 15:32:45 +04:00
parent de3230c71a
commit c409579f4b

View File

@ -132,6 +132,7 @@ function TakeDamageClient(int Damage, Pawn InstigatedBy, Vector Hitlocation, Vec
PostNetReceive();
Super.TakeDamageClient(Damage, instigatedBy, hitLocation, momentum, damageType, headshotLevel, lockonTime);
TwoSecondDamageTotal += OldHealth - Health;
// fixed their one hit kill ability when you spam attack during hit animation
if( !bDecapitated && TwoSecondDamageTotal > RageDamageThreshold && !bChargingPlayer && !bShotAnim &&
(!(bWasBurning && bCrispified) || bFrustrated) )
StartChargingFP(InstigatedBy);