Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
jumpevents.c
Go to the documentation of this file.
1
class
JumpEventsBase
extends
PlayerSoundEventBase
2
{
3
override
bool
HasPriorityOverCurrent
(
PlayerBase
player,
EPlayerSoundEventID
other_state_id,
EPlayerSoundEventType
type_other)
4
{
5
return
true
;
6
}
7
8
override
bool
CanPlay
(
PlayerBase
player)
9
{
10
if
( !super.CanPlay(player) )
11
{
12
return
false
;
13
}
14
return
true
;
15
}
16
17
override
void
OnPlay
(
PlayerBase
player)
18
{
19
super.OnPlay(player);
20
if
( player.CanSpawnBreathVaporEffect() )
21
player.SpawnBreathVaporEffect();
22
}
23
24
override
void
OnEnd
()
25
{
26
super.OnEnd();
27
//m_Player.GetStaminaSoundHandlerClient().PostponeStamina(1000);
28
if
(
m_Player
)
29
StaminaSoundHandlerClient.Cast(
m_Player
.m_PlayerSoundManagerClient.GetHandler(
eSoundHandlers
.STAMINA)).PostponeStamina(1300);
30
}
31
}
32
33
class
JumpSoundEvent
extends
JumpEventsBase
34
{
35
void
JumpSoundEvent
()
36
{
37
m_HasPriorityOverTypes
= -1;
//-1 for all
38
m_Type
=
EPlayerSoundEventType
.GENERAL;
39
m_ID
=
EPlayerSoundEventID
.JUMP;
40
m_SoundVoiceAnimEventClassID
= 18;
41
}
42
}
CanPlay
override bool CanPlay(PlayerBase player)
Definition:
jumpevents.c:7
JumpSoundEvent
class JumpEventsBase extends PlayerSoundEventBase JumpSoundEvent()
Definition:
jumpevents.c:35
m_Type
eBleedingSourceType m_Type
Definition:
bleedingsource.c:25
OnEnd
override void OnEnd()
Definition:
jumpevents.c:23
m_HasPriorityOverTypes
EPlayerSoundEventType m_HasPriorityOverTypes
Definition:
playersoundeventbase.c:40
PlayerBase
Definition:
playerbaseclient.c:1
PlayerSoundEventBase
Definition:
damageevents.c:1
OnPlay
override void OnPlay(PlayerBase player)
Definition:
jumpevents.c:16
m_Player
DayZPlayer m_Player
Definition:
hand_events.c:42
eSoundHandlers
eSoundHandlers
Definition:
playersoundmanager.c:4
HasPriorityOverCurrent
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition:
jumpevents.c:2
EPlayerSoundEventType
EPlayerSoundEventType
Definition:
playersoundeventbase.c:1
EPlayerSoundEventID
EPlayerSoundEventID
Definition:
playersoundeventhandler.c:1
m_ID
protected int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it)
Definition:
effect.c:49
m_SoundVoiceAnimEventClassID
int m_SoundVoiceAnimEventClassID
Definition:
soundevents.c:5
DAYZ
scripts_v1.24.157551
scripts
world
classes
soundevents
playersoundevents
events
jumpevents.c
Generated by
1.8.17