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

32 lines
1.1 KiB
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;
/** */
2022-11-27 21:49:25 +00:00
function Activate(KFPerk InstigatorPerk, optional class<KFDamageType> DamageType = none)
2020-12-13 15:01:13 +00:00
{
// 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 );
}
2022-11-27 21:49:25 +00:00
Super.Activate(InstigatorPerk, DamageType);
2020-12-13 15:01:13 +00:00
}
defaultproperties
{
}