Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
soundevents.c
Go to the documentation of this file.
1
class
SoundEventBase
2
{
3
AbstractWave
m_SoundSetCallback
;
4
int
m_Type
;
5
int
m_ID
;
6
int
m_SoundVoiceAnimEventClassID
;
7
bool
m_RequestDestroy
;
8
string
m_SoundSetNameRoot
;
9
bool
m_SkipForControlledCharacter
;
10
int
m_Param
;
11
12
13
void
~SoundEventBase
()
14
{
15
if
(
m_SoundSetCallback
)
m_SoundSetCallback
.Stop();
16
}
17
18
//obsolete function, now possible to set a param
19
bool
IsSkipForControlled
()
20
{
21
return
m_SkipForControlledCharacter
;
22
}
23
24
void
Tick
()
25
{
26
if
(!
m_SoundSetCallback
)
27
{
28
m_RequestDestroy
=
true
;
29
}
30
}
31
32
bool
IsSoundCallbackExist
()
33
{
34
if
(
m_SoundSetCallback
)
35
{
36
return
true
;
37
}
38
39
return
false
;
40
}
41
42
bool
IsDestroyRequested
()
43
{
44
return
m_RequestDestroy
;
45
}
46
47
bool
CanPlay
()
48
{
49
return
true
;
50
}
51
52
bool
Play
()
53
{
54
return
true
;
55
}
56
57
void
OnPlay
(
PlayerBase
player);
58
59
void
Stop
()
60
{
61
if
(
m_SoundSetCallback
)
62
{
63
m_SoundSetCallback
.Stop();
64
}
65
}
66
67
int
GetSoundEventID
()
68
{
69
return
m_ID
;
70
}
71
72
int
GetSoundEventType
()
73
{
74
return
m_Type
;
75
}
76
77
AbstractWave
GetSoundSetCallback
()
78
{
79
return
m_SoundSetCallback
;
80
}
81
}
82
83
class
SoundEventHandler
84
{
85
static
int
GetSoundEventType
(
int
id
) {
return
-1; }
86
//void OnTick(float delta_time) {}
87
bool
PlayRequest
(
EPlayerSoundEventID
id
,
bool
sent_from_server =
false
) {
return
true
; }
88
bool
PlayRequestEx
(
EPlayerSoundEventID
id
,
bool
sent_from_server =
false
,
int
param = 0){
return
true
; };
89
bool
StopRequest
(
EPlayerSoundEventID
id
,
bool
sent_from_server =
false
,
int
param = 0){
return
true
; };
90
int
GetCurrentStateEventID
() {
return
-1; }
91
int
GetCurrentStateEventType
() {
return
-1; }
92
}
PlayerBase
Definition
playerbaseclient.c:2
SoundEventBase
Definition
soundevents.c:2
SoundEventBase::~SoundEventBase
void ~SoundEventBase()
Definition
soundevents.c:13
SoundEventBase::Play
bool Play()
Definition
soundevents.c:52
SoundEventBase::m_SoundSetCallback
AbstractWave m_SoundSetCallback
Definition
soundevents.c:3
SoundEventBase::IsSkipForControlled
bool IsSkipForControlled()
Definition
soundevents.c:19
SoundEventBase::Stop
void Stop()
Definition
soundevents.c:59
SoundEventBase::m_Type
int m_Type
Definition
soundevents.c:4
SoundEventBase::OnPlay
void OnPlay(PlayerBase player)
SoundEventBase::GetSoundEventType
int GetSoundEventType()
Definition
soundevents.c:72
SoundEventBase::GetSoundSetCallback
AbstractWave GetSoundSetCallback()
Definition
soundevents.c:77
SoundEventBase::m_ID
int m_ID
Definition
soundevents.c:5
SoundEventBase::m_SoundVoiceAnimEventClassID
int m_SoundVoiceAnimEventClassID
Definition
soundevents.c:6
SoundEventBase::CanPlay
bool CanPlay()
Definition
soundevents.c:47
SoundEventBase::m_RequestDestroy
bool m_RequestDestroy
Definition
soundevents.c:7
SoundEventBase::IsDestroyRequested
bool IsDestroyRequested()
Definition
soundevents.c:42
SoundEventBase::IsSoundCallbackExist
bool IsSoundCallbackExist()
Definition
soundevents.c:32
SoundEventBase::m_Param
int m_Param
Definition
soundevents.c:10
SoundEventBase::GetSoundEventID
int GetSoundEventID()
Definition
soundevents.c:67
SoundEventBase::m_SoundSetNameRoot
string m_SoundSetNameRoot
Definition
soundevents.c:8
SoundEventBase::m_SkipForControlledCharacter
bool m_SkipForControlledCharacter
Definition
soundevents.c:9
SoundEventBase::Tick
void Tick()
Definition
soundevents.c:24
AbstractWave
void AbstractWave()
Definition
sound.c:167
GetCurrentStateEventID
override int GetCurrentStateEventID()
Definition
infectedsoundeventhandler.c:38
GetCurrentStateEventType
override int GetCurrentStateEventType()
Definition
infectedsoundeventhandler.c:47
StopRequest
override bool StopRequest(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Definition
playersoundeventhandler.c:198
PlayRequestEx
override bool PlayRequestEx(EPlayerSoundEventID id, bool sent_from_server=false, int param=0)
Definition
playersoundeventhandler.c:148
EPlayerSoundEventID
EPlayerSoundEventID
Definition
playersoundeventhandler.c:3
PlayRequest
EAnimPlayState PlayRequest()
Definition
smptanimmeta.c:65
GetSoundEventType
int GetSoundEventType()
Definition
soundevents.c:155
Games
Dayz
scripts
4_world
classes
soundevents
soundevents.c
Generated by
1.17.0