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);
172 int pass, hour, minute;
212 if (GetHierarchyParent())
217 parent.OnActivatedByItem(
this);
244 super.OnVariablesSynchronized();
321 SetAnimationPhaseNow(
"ClockAlarm", time01);
ActionAttachExplosivesTriggerCB ActionContinuousBaseCB ActionAttachExplosivesTrigger()
void AddAction(typename actionName)
enum EAlarmClockState m_AlarmTime01
protected void SetupTimerServer()
static int ConvertAlarmHand01ToMins(float time01, int mins_max)
EffectSound m_WorkingSound
const float RINGING_DURATION_MAX
static int GetTimeDiffInMins12h(int from_mins, int to_mins)
void SetAlarmInXMins(int in_mins)
protected void MakeRingingStop()
protected void OnRingingStartServer()
protected void ActivateParent()
EffectSound m_TurnOnSound
EffectSound m_DestoryedSound
static float ConvertMins12hToAlarmHand01(int mins)
override void EEHitByRemote(int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
protected void MakeRingingStart()
static int ConvertAlarmHand01ToMins12h(float time01)
protected void OnRingingStopClient()
protected void OnRingingStartClient()
float GetRingingDurationMax()
static const float UPDATE_TICK_RATE
EffectSound m_RingingSoundLoop
void SetAlarmTimeServer(float time01)
override void OnDamageDestroyed(int oldLevel)
protected int GetAlarmInMin()
string GetDestroyedSound()
static int ConvertTimeToMins12h(int hour, int minute)
protected void OnRingingStopServer()
override bool IsInitialized()
override void EEKilled(Object killer)
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
protected float m_DrainThreshold protected bool m_State
proto native World GetWorld()
Wrapper class for managing sound through SEffectManager.
override void OnVariablesSynchronized()
override void SetActions()
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
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 InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.