Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
meleeattack.c
Go to the documentation of this file.
2{
8
9 override bool CanPlay(PlayerBase player)
10 {
11 return true;
12 }
13
14 override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
15 {
16 if( type_other == EPlayerSoundEventType.DAMAGE )
17 {
18 return false;
19 }
20 return true;
21 }
22
23 override void OnEnd()
24 {
25 super.OnEnd();
26 if(m_Player)
27 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(800);
28 }
29}
30
32{
34 {
35 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
37 }
38}
39
eBleedingSourceType m_Type
map m_Player
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition meleeattack.c:14
override bool CanPlay(PlayerBase player)
Definition meleeattack.c:9
void MeleeAttackSoundEvents()
Definition meleeattack.c:3
override void OnEnd()
Definition meleeattack.c:23
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition effect.c:51
class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent()
Definition meleeattack.c:33
EPlayerSoundEventType
EPlayerSoundEventType m_HasPriorityOverTypes
eSoundHandlers
int m_SoundVoiceAnimEventClassID
Definition soundevents.c:89