Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
holdbreathevents.c
Go to the documentation of this file.
1
class
HoldBreathSoundEventBase
extends
PlayerSoundEventBase
2
{
3
void
HoldBreathSoundEventBase
()
4
{
5
m_HasPriorityOverTypes
= -1;
6
}
7
8
override
bool
HasHoldBreathException
()
9
{
10
return
true
;
11
}
12
13
}
14
15
16
class
HoldBreathSoundEvent
extends
HoldBreathSoundEventBase
17
{
18
void
HoldBreathSoundEvent
()
19
{
20
m_Type
=
EPlayerSoundEventType
.GENERAL;
21
m_ID
=
EPlayerSoundEventID
.HOLD_BREATH;
22
m_SoundVoiceAnimEventClassID
= 20;
23
}
24
25
override
bool
HasPriorityOverCurrent
(
PlayerBase
player,
EPlayerSoundEventID
other_state_id,
EPlayerSoundEventType
type_other)
26
{
27
if
(other_state_id ==
EPlayerSoundEventID
.RELEASE_BREATH)
28
{
29
return
false
;
30
}
31
return
true
;
32
}
33
}
34
35
class
ExhaustedBreathSoundEvent
extends
HoldBreathSoundEventBase
36
{
37
void
ExhaustedBreathSoundEvent
()
38
{
39
m_Type
=
EPlayerSoundEventType
.GENERAL;
40
m_ID
=
EPlayerSoundEventID
.EXHAUSTED_BREATH;
41
m_SoundVoiceAnimEventClassID
= 22;
42
}
43
44
override
bool
HasPriorityOverCurrent
(
PlayerBase
player,
EPlayerSoundEventID
other_state_id,
EPlayerSoundEventType
type_other)
45
{
46
return
false
;
47
}
48
}
49
50
class
ReleaseBreathSoundEvent
extends
HoldBreathSoundEventBase
51
{
52
void
ReleaseBreathSoundEvent
()
53
{
54
m_Type
=
EPlayerSoundEventType
.GENERAL;
55
m_ID
=
EPlayerSoundEventID
.RELEASE_BREATH;
56
m_SoundVoiceAnimEventClassID
= 21;
57
}
58
59
override
bool
HasPriorityOverCurrent
(
PlayerBase
player,
EPlayerSoundEventID
other_state_id,
EPlayerSoundEventType
type_other)
60
{
61
if
( other_state_id ==
EPlayerSoundEventID
.HOLD_BREATH)
62
{
63
return
false
;
64
}
65
return
true
;
66
}
67
}
ReleaseBreathSoundEvent
class ExhaustedBreathSoundEvent extends HoldBreathSoundEventBase ReleaseBreathSoundEvent()
Definition:
holdbreathevents.c:52
ExhaustedBreathSoundEvent
void ExhaustedBreathSoundEvent()
Definition:
holdbreathevents.c:26
HoldBreathSoundEvent
class HoldBreathSoundEventBase extends PlayerSoundEventBase HoldBreathSoundEvent()
Definition:
holdbreathevents.c:18
m_Type
eBleedingSourceType m_Type
Definition:
bleedingsource.c:25
m_HasPriorityOverTypes
EPlayerSoundEventType m_HasPriorityOverTypes
Definition:
playersoundeventbase.c:40
HasHoldBreathException
override bool HasHoldBreathException()
Definition:
holdbreathevents.c:7
PlayerBase
Definition:
playerbaseclient.c:1
HoldBreathSoundEventBase
void HoldBreathSoundEventBase()
Definition:
holdbreathevents.c:2
PlayerSoundEventBase
Definition:
damageevents.c:1
HasPriorityOverCurrent
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition:
holdbreathevents.c:25
HoldBreathSoundEventBase
Definition:
holdbreathevents.c:35
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
holdbreathevents.c
Generated by
1.8.17