DayZ 1.24
Loading...
Searching...
No Matches
JumpEvents.c
Go to the documentation of this file.
2{
7
8 override bool CanPlay(PlayerBase player)
9 {
10 if (!super.CanPlay(player))
11 return false;
12 return true;
13 }
14
15 override void OnPlay(PlayerBase player)
16 {
17 super.OnPlay(player);
18 if (player.CanSpawnBreathVaporEffect())
19 player.SpawnBreathVaporEffect();
20 }
21
22 override void OnEnd()
23 {
24 super.OnEnd();
25 //m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
26 if (m_Player)
27 StaminaSoundHandlerClient.Cast(m_Player.m_PlayerSoundManagerClient.GetHandler(eSoundHandlers.STAMINA)).PostponeStamina(1300);
28 }
29}
30
32{
33 void JumpSoundEvent()
34 {
35 m_HasPriorityOverTypes = -1;//-1 for all
39 }
40}
eBleedingSourceType m_Type
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 JumpEventsBase extends PlayerSoundEventBase JumpSoundEvent()
Definition JumpEvents.c:33
EPlayerSoundEventType
EPlayerSoundEventType m_HasPriorityOverTypes
eSoundHandlers
int m_SoundVoiceAnimEventClassID
Definition SoundEvents.c:83
override void OnEnd()
Definition JumpEvents.c:22
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition JumpEvents.c:3
override bool CanPlay(PlayerBase player)
Definition JumpEvents.c:8
override void OnPlay(PlayerBase player)
Definition JumpEvents.c:15