DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
MeleeAttack.c
Go to the documentation of this file.
2{
4 {
7 }
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
40class MeleeAttackHeavyEvent extends MeleeAttackSoundEvents
41{
43 {
44 m_ID = EPlayerSoundEventID.MELEE_ATTACK_HEAVY;
46 }
47
48}
eBleedingSourceType m_Type
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
DayZPlayer m_Player
Definition Hand_Events.c:42
class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent()
Definition MeleeAttack.c:33
EPlayerSoundEventType
EPlayerSoundEventType m_HasPriorityOverTypes
eSoundHandlers
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:89
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