Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
clockbase.c File Reference

Go to the source code of this file.

Enumerations

enum  EAlarmClockState { UNSET , SET , RINGING , COUNT }
 

Functions

void ClockBase ()
 
void ~ClockBase ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
override void SetActions ()
 
int GetAlarmInMin ()
 
string GetToggleSound ()
 
string GetRingingSound ()
 
string GetHitSound ()
 
string GetDestroyedSound ()
 
string GetWorkingSound ()
 
override void EEKilled (Object killer)
 
override void EEHitByRemote (int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
 
override void OnDamageDestroyed (int oldLevel)
 
void OnRingingStartServer ()
 
void OnRingingStartClient ()
 
void OnRingingStopServer ()
 
void OnRingingStopClient ()
 
void SetAlarmInXMins (int in_mins)
 
float GetRingingDurationMax ()
 
void SetupTimerServer ()
 
void SetState (EAlarmClockState state)
 
void Disarm ()
 
void Arm ()
 
void ActivateParent ()
 
void MakeRingingStart ()
 
void MakeRingingStop ()
 
void TurnOnClient ()
 
void TurnOffClient ()
 
override void OnVariablesSynchronized ()
 
bool IsRinging ()
 
bool IsAlarmOn ()
 
void TurnOn ()
 
void TurnOff ()
 
void SetAlarmTimeServer (float time01)
 

Variables

enum EAlarmClockState m_AlarmTime01
 
int m_State = EAlarmClockState.UNSET
 
ref Timer m_TimerUpdate
 
float m_RingingDuration
 
int m_StatePrev = -1
 
EffectSound m_RingingSoundLoop
 
EffectSound m_TurnOnSound
 
EffectSound m_DestoryedSound
 
EffectSound m_HitSound
 
EffectSound m_WorkingSound
 
const float RINGING_DURATION_MAX = 60
 

Enumeration Type Documentation

◆ EAlarmClockState

Enumerator
UNSET 
SET 
RINGING 
COUNT 

Definition at line 1 of file clockbase.c.

Function Documentation

◆ ActivateParent()

void ActivateParent ( )
protected

Definition at line 211 of file clockbase.c.

◆ Arm()

void Arm ( )
protected

Definition at line 204 of file clockbase.c.

◆ ClockBase()

void ClockBase ( )

Definition at line 27 of file clockbase.c.

◆ Disarm()

void Disarm ( )
protected

Definition at line 199 of file clockbase.c.

◆ EEHitByRemote()

override void EEHitByRemote ( int damageType,
EntityAI source,
int component,
string dmgZone,
string ammo,
vector modelPos )
protected

Definition at line 128 of file clockbase.c.

◆ EEKilled()

override void EEKilled ( Object killer)
protected

Definition at line 122 of file clockbase.c.

◆ GetAlarmInMin()

int GetAlarmInMin ( )
protected

Definition at line 53 of file clockbase.c.

◆ GetDestroyedSound()

string GetDestroyedSound ( )
protected

Definition at line 113 of file clockbase.c.

◆ GetHitSound()

string GetHitSound ( )
protected

Definition at line 109 of file clockbase.c.

◆ GetRingingDurationMax()

float GetRingingDurationMax ( )
protected

Definition at line 181 of file clockbase.c.

◆ GetRingingSound()

string GetRingingSound ( )
protected

Definition at line 105 of file clockbase.c.

◆ GetToggleSound()

string GetToggleSound ( )
protected

Definition at line 101 of file clockbase.c.

◆ GetWorkingSound()

string GetWorkingSound ( )
protected

Definition at line 117 of file clockbase.c.

◆ Init()

void Init ( )

Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)

whole body slots

upper body part slots

bottom body part slots

lower body part slots


heat comfort related slots

pre-init arrays

Definition at line 41 of file clockbase.c.

◆ IsAlarmOn()

bool IsAlarmOn ( )
protected

Definition at line 296 of file clockbase.c.

◆ IsRinging()

bool IsRinging ( )
protected

Definition at line 291 of file clockbase.c.

◆ MakeRingingStart()

void MakeRingingStart ( )
protected

Definition at line 223 of file clockbase.c.

◆ MakeRingingStop()

void MakeRingingStop ( )
protected

Definition at line 232 of file clockbase.c.

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int oldLevel)
protected

Definition at line 134 of file clockbase.c.

◆ OnRingingStartClient()

void OnRingingStartClient ( )
protected

Definition at line 154 of file clockbase.c.

◆ OnRingingStartServer()

void OnRingingStartServer ( )
protected

Definition at line 149 of file clockbase.c.

◆ OnRingingStopClient()

void OnRingingStopClient ( )
protected

Definition at line 166 of file clockbase.c.

◆ OnRingingStopServer()

void OnRingingStopServer ( )
protected

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
protected

Definition at line 243 of file clockbase.c.

◆ SetActions()

override void SetActions ( )

Definition at line 46 of file clockbase.c.

◆ SetAlarmInXMins()

void SetAlarmInXMins ( int in_mins)
protected

Definition at line 171 of file clockbase.c.

◆ SetAlarmTimeServer()

void SetAlarmTimeServer ( float time01)
protected

Definition at line 320 of file clockbase.c.

◆ SetState()

void SetState ( EAlarmClockState state)
protected

Definition at line 193 of file clockbase.c.

◆ SetupTimerServer()

void SetupTimerServer ( )
protected

Definition at line 187 of file clockbase.c.

◆ TurnOff()

void TurnOff ( )
protected

Definition at line 306 of file clockbase.c.

◆ TurnOffClient()

void TurnOffClient ( )
protected

◆ TurnOn()

void TurnOn ( )
protected

Definition at line 301 of file clockbase.c.

◆ TurnOnClient()

void TurnOnClient ( )
protected

◆ ~ClockBase()

void ~ClockBase ( )

Definition at line 32 of file clockbase.c.

Variable Documentation

◆ m_AlarmTime01

enum EAlarmClockState m_AlarmTime01

◆ m_DestoryedSound

EffectSound m_DestoryedSound

Definition at line 21 of file clockbase.c.

◆ m_HitSound

EffectSound m_HitSound

Definition at line 22 of file clockbase.c.

◆ m_RingingDuration

float m_RingingDuration

Definition at line 16 of file clockbase.c.

◆ m_RingingSoundLoop

EffectSound m_RingingSoundLoop

Definition at line 19 of file clockbase.c.

◆ m_State

Definition at line 13 of file clockbase.c.

◆ m_StatePrev

int m_StatePrev = -1

Definition at line 17 of file clockbase.c.

◆ m_TimerUpdate

ref Timer m_TimerUpdate

Definition at line 15 of file clockbase.c.

◆ m_TurnOnSound

EffectSound m_TurnOnSound

Definition at line 20 of file clockbase.c.

◆ m_WorkingSound

EffectSound m_WorkingSound

Definition at line 23 of file clockbase.c.

◆ RINGING_DURATION_MAX

const float RINGING_DURATION_MAX = 60

Definition at line 25 of file clockbase.c.