Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
actioneatevents.c
Go to the documentation of this file.
1
class
EatingVoiceOverrideDefault
:
EatingVoiceOverrideBase
2
{
3
void
EatingVoiceOverrideDefault
()
4
{
5
m_ID
= EReplaceSoundEventID.EAT_DEFAULT;
6
m_SoundAnimEventClassID
= 888;
7
}
8
}
9
10
class
EatingVoiceOverrideFruit
:
EatingVoiceOverrideBase
11
{
12
void
EatingVoiceOverrideFruit
()
13
{
14
m_ID
= EReplaceSoundEventID.EAT_FRUIT;
15
m_SoundAnimEventClassID = 889;
16
}
17
}
18
19
class
EatingVoiceOverrideBase
:
ReplaceSoundEventBase
20
{
21
void
EatingVoiceOverrideBase
()
22
{
23
m_EventType
=
ESoundEventType
.SOUND_VOICE;
24
m_UserString
=
"StopOnAnimEnd"
;
25
}
26
27
override
protected
void
SelectSoundID
()
28
{
29
string
cfgPath =
"cfgVehicles "
+
m_Player
.GetItemInHands().GetType() +
" AnimEvents Sound VoiceEatOverride eating_loop_default"
;
30
if
(
GetGame
().ConfigIsExisting(cfgPath))
31
m_ReplacedSoundAnimID
=
GetGame
().ConfigGetInt(cfgPath);
32
}
33
}
EatingVoiceOverrideFruit
EatingVoiceOverrideDefault EatingVoiceOverrideBase EatingVoiceOverrideFruit()
Definition
actioneatevents.c:12
EatingVoiceOverrideBase
Definition
actioneatevents.c:20
EatingVoiceOverrideBase::EatingVoiceOverrideBase
void EatingVoiceOverrideBase()
Definition
actioneatevents.c:21
EatingVoiceOverrideBase::SelectSoundID
void SelectSoundID()
Definition
actioneatevents.c:27
EatingVoiceOverrideDefault::EatingVoiceOverrideDefault
void EatingVoiceOverrideDefault()
Definition
actioneatevents.c:3
ReplaceSoundEventBase
Definition
actionsurfaceevents.c:24
ReplaceSoundEventBase::m_UserString
string m_UserString
Definition
replacesoundeventbase.c:7
ReplaceSoundEventBase::m_SoundAnimEventClassID
int m_SoundAnimEventClassID
Definition
replacesoundeventbase.c:5
ReplaceSoundEventBase::m_EventType
ESoundEventType m_EventType
Definition
replacesoundeventbase.c:3
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
m_ID
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition
effect.c:51
GetGame
DayZGame GetGame()
Definition
gameplay.c:636
ESoundEventType
ESoundEventType
Definition
replacesoundeventhandler.c:2
Games
Dayz
scripts
4_world
classes
soundevents
replacesoundevents
events
actioneatevents.c
Generated by
1.17.0