PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ClockBase.c File Reference

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 ()
 
protected int GetAlarmInMin ()
 
static int ConvertAlarmHand01ToMins12h (float time01)
 
static int ConvertAlarmHand01ToMins (float time01, int mins_max)
 
static float ConvertMins12hToAlarmHand01 (int mins)
 
static int ConvertTimeToMins12h (int hour, int minute)
 
static int GetTimeDiffInMins12h (int from_mins, int to_mins)
 
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
 
static const float UPDATE_TICK_RATE = 1
 
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 

Function Documentation

◆ ActivateParent()

protected void ActivateParent ( )

Referenced by OnRingingStartServer().

◆ Arm()

protected void Arm ( )

◆ ClockBase()

◆ ConvertAlarmHand01ToMins()

static int ConvertAlarmHand01ToMins ( float  time01,
int  mins_max 
)
static

References Math::Lerp().

◆ ConvertAlarmHand01ToMins12h()

static int ConvertAlarmHand01ToMins12h ( float  time01)
static

◆ ConvertMins12hToAlarmHand01()

static float ConvertMins12hToAlarmHand01 ( int  mins)
static

References Math::InverseLerp().

Referenced by SetAlarmInXMins().

◆ ConvertTimeToMins12h()

static int ConvertTimeToMins12h ( int  hour,
int  minute 
)
static

◆ Disarm()

protected void Disarm ( )

References Inventory_Base::SetState().

Referenced by TurnOff().

◆ EEHitByRemote()

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

References component, GetHitSound(), and m_HitSound.

◆ EEKilled()

override void EEKilled ( Object  killer)

References TurnOff().

◆ GetAlarmInMin()

◆ GetDestroyedSound()

string GetDestroyedSound ( )

Referenced by OnDamageDestroyed().

◆ GetHitSound()

string GetHitSound ( )

Referenced by EEHitByRemote().

◆ GetRingingDurationMax()

float GetRingingDurationMax ( )

◆ GetRingingSound()

string GetRingingSound ( )

Referenced by OnRingingStartClient().

◆ GetTimeDiffInMins12h()

static int GetTimeDiffInMins12h ( int  from_mins,
int  to_mins 
)
static

Referenced by GetAlarmInMin().

◆ GetToggleSound()

string GetToggleSound ( )

Referenced by OnVariablesSynchronized().

◆ GetWorkingSound()

string GetWorkingSound ( )

Referenced by OnVariablesSynchronized().

◆ 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

◆ IsAlarmOn()

bool IsAlarmOn ( )

References m_State.

Referenced by AlarmClock_ColorBase::OnUpdate().

◆ IsRinging()

bool IsRinging ( )

◆ MakeRingingStart()

◆ MakeRingingStop()

protected void MakeRingingStop ( )

◆ OnDamageDestroyed()

override void OnDamageDestroyed ( int  oldLevel)

◆ OnRingingStartClient()

protected void OnRingingStartClient ( )

◆ OnRingingStartServer()

protected void OnRingingStartServer ( )

References ActivateParent().

Referenced by MakeRingingStart().

◆ OnRingingStopClient()

◆ OnRingingStopServer()

protected void OnRingingStopServer ( )

Referenced by MakeRingingStop().

◆ OnVariablesSynchronized()

◆ SetActions()

override void SetActions ( )

◆ SetAlarmInXMins()

◆ SetAlarmTimeServer()

void SetAlarmTimeServer ( float  time01)

◆ SetState()

protected void SetState ( EAlarmClockState  state)

References m_State.

◆ SetupTimerServer()

protected void SetupTimerServer ( )

References m_TimerUpdate, and UPDATE_TICK_RATE.

Referenced by Arm(), and MakeRingingStart().

◆ TurnOff()

void TurnOff ( )

◆ TurnOffClient()

void TurnOffClient ( )

◆ TurnOn()

◆ TurnOnClient()

void TurnOnClient ( )

◆ ~ClockBase()

Variable Documentation

◆ m_AlarmTime01

◆ m_DestoryedSound

EffectSound m_DestoryedSound

Referenced by OnDamageDestroyed(), and ~ClockBase().

◆ m_HitSound

EffectSound m_HitSound

Referenced by EEHitByRemote(), and ~ClockBase().

◆ m_RingingDuration

◆ m_RingingSoundLoop

◆ m_State

◆ m_StatePrev

int m_StatePrev = -1

◆ m_TimerUpdate

ref Timer m_TimerUpdate

◆ m_TurnOnSound

EffectSound m_TurnOnSound

◆ m_WorkingSound

◆ RINGING_DURATION_MAX

const float RINGING_DURATION_MAX = 60

Referenced by GetRingingDurationMax().

◆ UPDATE_TICK_RATE

const float UPDATE_TICK_RATE = 1
static