1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSM_PlayerSiren_NormalScream.uc

36 lines
1.0 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSM_PlayerSiren_NormalScream
//=============================================================================
// Player controlled siren scream
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
//=============================================================================
class KFSM_PlayerSiren_NormalScream extends KFSM_Siren_Scream;
/** Restrictions for doing Scream attack */
protected function bool InternalCanDoSpecialMove()
{
if( KFPOwner.bIsSprinting )
{
KFPOwner.SetSprinting( false );
}
return super.InternalCanDoSpecialMove();
}
/** Notification called when Special Move starts */
function SpecialMoveStarted( bool bForced, Name PrevMove )
{
super.SpecialMoveStarted( bForced, PrevMove );
// Disable sprint
if( KFPOwner != none && KFPOwner.bIsSprinting )
{
KFPOwner.SetSprinting( false );
}
}
defaultproperties
{
}