Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
drowningevents.c
Go to the documentation of this file.
1
class
DrowningSoundEventBase
extends
PlayerSoundEventBase
2
{
3
void
DrowningEvents
()
4
{
5
m_HasPriorityOverTypes
= -1;
//-1 for all
6
m_Type
=
EPlayerSoundEventType
.DROWNING;
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
return
true
;
17
}
18
}
19
20
class
DrowningEvent1
extends
DrowningSoundEventBase
21
{
22
void
DrowningEvent1
()
23
{
24
m_ID
=
EPlayerSoundEventID
.DROWNING_BREATH;
25
m_SoundVoiceAnimEventClassID
= 901;
26
}
27
}
28
29
class
DrowningEvent2
extends
DrowningSoundEventBase
30
{
31
void
DrowningEvent2()
32
{
33
m_ID
=
EPlayerSoundEventID
.DROWNING_PAIN;
34
m_SoundVoiceAnimEventClassID
= 900;
35
}
36
}
m_Type
eBleedingSourceType m_Type
Definition:
bleedingsource.c:25
CanPlay
override bool CanPlay(PlayerBase player)
Definition:
drowningevents.c:8
HasPriorityOverCurrent
override bool HasPriorityOverCurrent(PlayerBase player, EPlayerSoundEventID other_state_id, EPlayerSoundEventType type_other)
Definition:
drowningevents.c:13
m_HasPriorityOverTypes
EPlayerSoundEventType m_HasPriorityOverTypes
Definition:
playersoundeventbase.c:40
PlayerBase
Definition:
playerbaseclient.c:1
PlayerSoundEventBase
Definition:
damageevents.c:1
DrowningEvents
void DrowningEvents()
Definition:
drowningevents.c:2
DrowningEvent1
class DrowningSoundEventBase extends PlayerSoundEventBase DrowningEvent1()
Definition:
drowningevents.c:22
DrowningSoundEventBase
Definition:
drowningevents.c:29
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
drowningevents.c
Generated by
1.8.17