57 int pass, hour, minute;
85 return hour * 60 + minute;
90 if (to_mins > from_mins)
92 return to_mins - from_mins;
94 else if (to_mins < from_mins)
96 return ((12 * 60) - from_mins) + to_mins;
124 super.EEKilled(killer);
130 super.EEHitByRemote(damageType, source,
component, dmgZone, ammo, modelPos);
136 super.OnDamageDestroyed(oldLevel);
173 int pass, hour, minute;
213 if (GetHierarchyParent())
218 parent.OnActivatedByItem(
this);
245 super.OnVariablesSynchronized();
322 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.
enum EObjectTemperatureState m_State
void SetState(bool state)
proto native World GetWorld()
Wrapper class for managing sound through SEffectManager.
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)
proto void GetDate(out int year, out int month, out int day, out int hour, out int minute)
Get actual ingame world time.
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,...