205 if (GetHierarchyParent())
209 parent.OnActivatedByItem(
this);
235 super.OnVariablesSynchronized();
296 SetAnimationPhaseNow(
"ClockAlarm",
time01);
ActionAttachExplosivesTriggerCB ActionContinuousBaseCB ActionAttachExplosivesTrigger()
void AddAction(typename actionName)
override void OnDamageDestroyed(int oldLevel)
override void OnVariablesSynchronized()
enum EAlarmClockState m_AlarmTime01
void OnRingingStopClient()
static int ConvertAlarmHand01ToMins(float time01, int mins_max)
EffectSound m_WorkingSound
void OnRingingStartServer()
const float RINGING_DURATION_MAX
static int GetTimeDiffInMins12h(int from_mins, int to_mins)
void SetAlarmInXMins(int in_mins)
EffectSound m_TurnOnSound
void OnRingingStartClient()
EffectSound m_DestoryedSound
static float ConvertMins12hToAlarmHand01(int mins)
override void EEHitByRemote(int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
static int ConvertAlarmHand01ToMins12h(float time01)
float GetRingingDurationMax()
static const float UPDATE_TICK_RATE
void OnRingingStopServer()
EffectSound m_RingingSoundLoop
void SetAlarmTimeServer(float time01)
string GetDestroyedSound()
static int ConvertTimeToMins12h(int hour, int minute)
override bool IsInitialized()
override void EEKilled(Object killer)
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
void SetState(bool state)
Wrapper class for managing sound through SEffectManager.
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
proto native CGame GetGame()
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...