1
0
KF2-Dev-Scripts/KFGame/Classes/KFAffliction_MediumRecovery.uc

32 lines
1016 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFAffliction_MediumRecovery
//=============================================================================
//
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
//=============================================================================
class KFAffliction_MediumRecovery extends KFAfflictionBase;
/** */
function Activate()
{
// 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();
}
defaultproperties
{
}