Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
actioneatevents.c
Go to the documentation of this file.
1class EatingVoiceOverrideDefault : EatingVoiceOverrideBase
2{
4 {
5 m_ID = EReplaceSoundEventID.EAT_DEFAULT;
7 }
8}
9
11{
13 {
14 m_ID = EReplaceSoundEventID.EAT_FRUIT;
15 m_SoundAnimEventClassID = 889;
16 }
17}
18
19class 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}
void EatingVoiceOverrideDefault()
EatingVoiceOverrideDefault EatingVoiceOverrideBase EatingVoiceOverrideFruit()
EReplaceSoundEventID m_ID
int m_ID
ID of effect, given by SEffectManager when registered (automatically done when playing through it).
Definition effect.c:51
DayZGame GetGame()
Definition gameplay.c:636