Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actionsurfaceevents.c
Go to the documentation of this file.
1
2
//Digging
3
class
DigPrimarySoundEvent
extends
DigSoundEventBase
4
{
5
void
DigPrimarySoundEvent
()
6
{
7
m_EventType =
ESoundEventType
.SOUND_COMMON;
8
m_ID
= EReplaceSoundEventID.DIG_PRIMARY;
9
m_SoundAnimEventClassID = 887;
10
}
11
}
12
13
class
DigSecondarySoundEvent
extends
DigSoundEventBase
14
{
15
void
DigSecondarySoundEvent
()
16
{
17
m_EventType =
ESoundEventType
.SOUND_COMMON;
18
m_ID
= EReplaceSoundEventID.DIG_SECONDARY;
19
m_SoundAnimEventClassID = 888;
20
}
21
}
22
23
class
DigSoundEventBase
extends
ReplaceSoundEventBase
24
{
25
override
protected
void
SelectSoundID
()
26
{
27
string
cfg_path =
"cfgVehicles "
+
m_Player
.GetItemInHands().GetType() +
" AnimEvents "
+
"Sound "
+
"SurfaceDig"
;
28
if
(
m_ID
== EReplaceSoundEventID.DIG_PRIMARY)
29
cfg_path = cfg_path +
" DigPrimary"
;
30
else
if
(
m_ID
== EReplaceSoundEventID.DIG_SECONDARY)
31
cfg_path = cfg_path +
" DigSecondary"
;
32
33
m_ReplacedSoundAnimID
=
g_Game
.ConfigGetInt(cfg_path +
" "
+
m_Player
.GetSurfaceType());
34
if
(
m_ReplacedSoundAnimID
== 0)
35
m_ReplacedSoundAnimID
=
g_Game
.ConfigGetInt(cfg_path +
" default"
);
36
}
37
};
38
39
//Cleaning hands
40
class
CleanHandsPrimarySoundEvent
extends
CleanHandsSoundEventBase
41
{
42
void
CleanHandsPrimarySoundEvent
()
43
{
44
m_EventType =
ESoundEventType
.SOUND_COMMON;
45
m_ID
= EReplaceSoundEventID.CLEANHANDS_PRIMARY;
46
m_SoundAnimEventClassID = 10007;
47
m_UserString =
"StopOnAnimEnd"
;
48
}
49
}
50
51
class
CleanHandsSecondarySoundEvent
extends
CleanHandsSoundEventBase
52
{
53
void
CleanHandsSecondarySoundEvent
()
54
{
55
m_EventType =
ESoundEventType
.SOUND_COMMON;
56
m_ID
= EReplaceSoundEventID.CLEANHANDS_SECONDARY;
57
m_SoundAnimEventClassID = 10006;
58
m_UserString =
"StopOnAnimEnd"
;
59
}
60
}
61
62
class
CleanHandsSoundEventBase
extends
ReplaceSoundEventBase
63
{
64
override
protected
void
SelectSoundID
()
65
{
66
string
cfg_path =
"cfgVehicles "
+
m_Player
.GetType() +
" AnimEvents "
+
"Sound "
+
"SurfaceCleanHands"
;
67
if
(
m_ID
== EReplaceSoundEventID.CLEANHANDS_PRIMARY)
68
cfg_path = cfg_path +
" CleanHandsPrimary"
;
69
else
if
(
m_ID
== EReplaceSoundEventID.CLEANHANDS_SECONDARY)
70
cfg_path = cfg_path +
" CleanHandsSecondary"
;
71
72
m_ReplacedSoundAnimID
=
g_Game
.ConfigGetInt(cfg_path +
" "
+
m_Player
.GetSurfaceType());
73
if
(
m_ReplacedSoundAnimID
== 0)
74
m_ReplacedSoundAnimID
=
g_Game
.ConfigGetInt(cfg_path +
" default"
);
75
}
76
};
DigSecondarySoundEvent
class DigSoundEventBase extends ReplaceSoundEventBase DigSecondarySoundEvent
Definition
actionsurfaceevents.c:15
CleanHandsSecondarySoundEvent
class CleanHandsSoundEventBase extends ReplaceSoundEventBase CleanHandsSecondarySoundEvent
Definition
actionsurfaceevents.c:53
CleanHandsSoundEventBase
Definition
actionsurfaceevents.c:41
CleanHandsSoundEventBase::CleanHandsPrimarySoundEvent
void CleanHandsPrimarySoundEvent()
Definition
actionsurfaceevents.c:42
DigSoundEventBase
Definition
actionsurfaceevents.c:4
DigSoundEventBase::DigPrimarySoundEvent
void DigPrimarySoundEvent()
Definition
actionsurfaceevents.c:5
ReplaceSoundEventBase
Definition
actionsurfaceevents.c:24
ReplaceSoundEventBase::m_Player
PlayerBase m_Player
Definition
replacesoundeventbase.c:8
ReplaceSoundEventBase::m_ID
EReplaceSoundEventID m_ID
Definition
replacesoundeventbase.c:4
ReplaceSoundEventBase::m_ReplacedSoundAnimID
int m_ReplacedSoundAnimID
Definition
replacesoundeventbase.c:6
ReplaceSoundEventBase::SelectSoundID
void SelectSoundID()
Definition
actionsurfaceevents.c:25
g_Game
DayZGame g_Game
Definition
dayzgame.c:3942
m_ID
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition
effect.c:51
ESoundEventType
ESoundEventType
Definition
replacesoundeventhandler.c:2
Games
Dayz
scripts
4_world
classes
soundevents
replacesoundevents
events
actionsurfaceevents.c
Generated by
1.17.0