DayZ 1.24
Loading...
Searching...
No Matches
ThirstSoundHandler.c
Go to the documentation of this file.
2{
3 override void Init()
4 {
5 m_Id = eSoundHandlers.THIRST;
6 }
7
8}
9
10//---------------------------
11// Client
12//---------------------------
14{
15 const float SOUND_INTERVALS_LIGHT_MIN = 10;
16 const float SOUND_INTERVALS_LIGHT_MAX = 30;
19
20 override void Update()
21 {
22 if (m_Player.GetMixedSoundStates() & eMixedSoundStates.THIRSTY)
24 }
25
35
40}
41
42
43//---------------------------
44// Server
45//---------------------------
class GetServerModListResult m_Id
GetServersResultRow the output structure of the GetServers operation that represents one game server.
eMixedSoundStates
bits
DayZPlayer m_Player
Definition Hand_Events.c:42
float m_SoundTime
void PlaySound()
class HungerSoundHandlerBase extends SoundHandlerBase SOUND_INTERVALS_LIGHT_MIN
const float SOUND_INTERVALS_LIGHT_MAX
EffectSound m_Sound
void ProcessSound()
float GetTime()
eSoundHandlers
bool PlaySoundEventEx(EPlayerSoundEventID id, bool from_anim_system=false, bool is_from_server=false, int param=0)
Wrapper class for managing sound through SEffectManager.
Definition EffectSound.c:5
Definition EnMath.c:7
override void Init()
proto native CGame GetGame()
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:106
proto native volatile void Update()