1
0
KF2-Dev-Scripts/KFGame/Classes/KFAffliction_HeavyRecovery.uc
2022-11-28 00:49:25 +03:00

32 lines
1.1 KiB
Ucode

//=============================================================================
// KFAffliction_MediumRecovery
//=============================================================================
//
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
//=============================================================================
class KFAffliction_HeavyRecovery extends KFAfflictionBase;
/** */
function Activate(KFPerk InstigatorPerk, optional class<KFDamageType> DamageType = none)
{
// Attempt to interrupt the special move
if( PawnOwner.SpecialMove != SM_None )
{
PawnOwner.SpecialMoves[PawnOwner.SpecialMove].NotifyHitReactionInterrupt();
}
// Finally, 'Pause' the AI if we're going to play a medium or heavy hit reaction anim in TryPlayHitReactionAnim
if ( PawnOwner.SpecialMove == SM_None && PawnOwner.MyKFAIC != None )
{
PawnOwner.MyKFAIC.DoPauseAI( PawnOwner.DamageRecoveryTimeHeavy, true );
}
Super.Activate(InstigatorPerk, DamageType);
}
defaultproperties
{
}