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

26 lines
919 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSM_EvilDAR_EMPGrapple
//=============================================================================
// Killing Floor 2
// Copyright (C) 2018 Tripwire Interactive LLC
//=============================================================================
class KFSM_EvilDAR_EMPGrapple extends KFSM_GrappleVictim;
function SpecialMoveStarted(bool bForced, Name PrevMove )
{
super.SpecialMoveStarted(bForced, PrevMove);
PawnOwner.Velocity = vect(0,0,0);
}
function SetGrabEffect(KFPlayerController KFPC, bool bValue)
{
KFPC.SetGrabEffectEMP(bValue, (Leader != none && Leader.IsHumanControlled()));
}
defaultproperties
{
// Audio
GrabbedSoundModeStartEvent=AkEvent'WW_ZED_Evil_DAR.Play_ZED_EvilDAR_EMP_PlayerGrabbed_LP'
GrabbedSoundModeEndEvent=AkEvent'WW_ZED_Evil_DAR.Stop_ZED_EvilDAR_EMP_PlayerGrabbed_LP'
}