DayZ 1.24
Loading...
Searching...
No Matches
MeleeAttack.c File Reference

Go to the source code of this file.

Classes

class  PlayerSoundEventBase
 
class  MeleeAttackSoundEvents
 

Functions

class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent ()
 
void MeleeAttackSoundEvents ()
 
override bool CanPlay (PlayerBase player)
 
override bool HasPriorityOverCurrent (PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
 
override void OnEnd ()
 

Function Documentation

◆ CanPlay()

override bool MeleeAttackLightEvent::CanPlay ( PlayerBase player)

Definition at line 38 of file MeleeAttack.c.

39{
40 void MeleeAttackHeavyEvent()
41 {

◆ HasPriorityOverCurrent()

override bool MeleeAttackLightEvent::HasPriorityOverCurrent ( PlayerBase player,
EPlayerSoundEventID other_state_id,
EPlayerSoundEventType type_other )

Definition at line 43 of file MeleeAttack.c.

◆ MeleeAttackLightEvent()

Definition at line 1 of file MeleeAttack.c.

32 {
33 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
35 }
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition Effect.c:49
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:83

Referenced by PlayerSoundEventHandler().

◆ MeleeAttackSoundEvents()

void MeleeAttackLightEvent::MeleeAttackSoundEvents ( )

Definition at line 32 of file MeleeAttack.c.

32 {
33 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
35 }
36}

References m_ID, and m_SoundVoiceAnimEventClassID.

◆ OnEnd()

override void MeleeAttackLightEvent::OnEnd ( )

Definition at line 50 of file MeleeAttack.c.

51{
53 {
56 }
57
58 override bool CanPlay(PlayerBase player)
59 {
60 return true;
61 }
62
64 {
66 return false;
67 return true;
68 }
69
70 override void OnEnd()
71 {
72 super.OnEnd();
73 if (m_Player)
74 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(800);
75 }
76}
77
79{
81 {
82 m_ID = EPlayerSoundEventID.MELEE_ATTACK_LIGHT;
84 }
85}
86
87class MeleeAttackHeavyEvent extends MeleeAttackSoundEvents
88{
90 {
91 m_ID = EPlayerSoundEventID.MELEE_ATTACK_HEAVY;
93 }
94
95}
eBleedingSourceType m_Type
DayZPlayer m_Player
Definition Hand_Events.c:42
void MeleeAttackSoundEvents()
Definition MeleeAttack.c:32
class MeleeAttackSoundEvents extends PlayerSoundEventBase MeleeAttackLightEvent()
Definition MeleeAttack.c:31
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition MeleeAttack.c:43
override void OnEnd()
Definition MeleeAttack.c:50
override bool CanPlay()
Definition MindStates.c:14
EPlayerSoundEventType
EPlayerSoundEventType m_HasPriorityOverTypes
eSoundHandlers