1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSM_PlayerSiren_NormalScream.uc
2020-12-13 18:01:13 +03:00

36 lines
1.0 KiB
Ucode

//=============================================================================
// 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
{
}