Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
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) More...
 
override void SetActions ()
 
protected 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)
 
protected void OnRingingStartServer ()
 
protected void OnRingingStartClient ()
 
protected void OnRingingStopServer ()
 
protected void OnRingingStopClient ()
 
void SetAlarmInXMins (int in_mins)
 
float GetRingingDurationMax ()
 
protected void SetupTimerServer ()
 
protected void SetState (EAlarmClockState state)
 
protected void Disarm ()
 
protected void Arm ()
 
protected void ActivateParent ()
 
protected void MakeRingingStart ()
 
protected 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()

protected void ActivateParent ( )

Definition at line 211 of file clockbase.c.

◆ Arm()

protected void Arm ( )

Definition at line 204 of file clockbase.c.

◆ ClockBase()

void ClockBase ( )

Definition at line 27 of file clockbase.c.

◆ Disarm()

protected void Disarm ( )

Definition at line 199 of file clockbase.c.

◆ EEHitByRemote()

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

Definition at line 128 of file clockbase.c.

◆ EEKilled()

override void EEKilled ( Object  killer)

Definition at line 122 of file clockbase.c.

◆ GetAlarmInMin()

protected int GetAlarmInMin ( )

Definition at line 53 of file clockbase.c.

◆ GetDestroyedSound()

string GetDestroyedSound ( )

Definition at line 113 of file clockbase.c.

◆ GetHitSound()

string GetHitSound ( )

Definition at line 109 of file clockbase.c.

◆ GetRingingDurationMax()

float GetRingingDurationMax ( )

Definition at line 181 of file clockbase.c.

◆ GetRingingSound()

string GetRingingSound ( )

Definition at line 105 of file clockbase.c.

◆ GetToggleSound()

string GetToggleSound ( )

Definition at line 101 of file clockbase.c.

◆ GetWorkingSound()

string GetWorkingSound ( )

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)

pre-init arrays

Definition at line 41 of file clockbase.c.

◆ IsAlarmOn()

bool IsAlarmOn ( )

Definition at line 296 of file clockbase.c.

◆ IsRinging()

bool IsRinging ( )

Definition at line 291 of file clockbase.c.

◆ MakeRingingStart()

protected void MakeRingingStart ( )

Definition at line 223 of file clockbase.c.

◆ MakeRingingStop()

protected void MakeRingingStop ( )

Definition at line 232 of file clockbase.c.

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int  oldLevel)

Definition at line 134 of file clockbase.c.

◆ OnRingingStartClient()

protected void OnRingingStartClient ( )

Definition at line 154 of file clockbase.c.

◆ OnRingingStartServer()

protected void OnRingingStartServer ( )

Definition at line 149 of file clockbase.c.

◆ OnRingingStopClient()

protected void OnRingingStopClient ( )

Definition at line 166 of file clockbase.c.

◆ OnRingingStopServer()

protected void OnRingingStopServer ( )

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )

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)

Definition at line 171 of file clockbase.c.

◆ SetAlarmTimeServer()

void SetAlarmTimeServer ( float  time01)

Definition at line 320 of file clockbase.c.

◆ SetState()

protected void SetState ( EAlarmClockState  state)

Definition at line 193 of file clockbase.c.

◆ SetupTimerServer()

protected void SetupTimerServer ( )

Definition at line 187 of file clockbase.c.

◆ TurnOff()

void TurnOff ( )

Definition at line 306 of file clockbase.c.

◆ TurnOffClient()

void TurnOffClient ( )

◆ TurnOn()

void TurnOn ( )

Definition at line 301 of file clockbase.c.

◆ TurnOnClient()

void TurnOnClient ( )

◆ ~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.