6 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
66 return "TriggerAlarmClock";
74 super.GetDebugActions(outputList);
79 if (super.OnAction(action_id, player, ctx))
83 if (action_id ==
EActions.ACTIVATE_ENTITY)
96 if(
g_Game.IsDedicatedServer())
98 debug_output =
"alarm in: " +
GetAlarmInMin().ToString() +
" mins" +
"\n";
105 debug_output =
"this is client";
117 int pass, hour, minute;
118 g_Game.GetWorld().GetDate(pass, pass, pass, hour, minute);
124 if ( alarm_hand_in_minutes == curr_time_in_minutes )
147 SetAnimationPhaseNow(
"ClockAlarm", value);
153 if (!super.OnStoreLoad(ctx, version))
163 if ( !ctx.
Read( state ) )
170 if ( !ctx.
Read( time ) )
191 super.OnStoreSave(ctx);
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
ActionTurnOffAlarmClockCB ActionSingleUseBaseCB ActionTurnOffAlarmClock()
ActionTurnOnAlarmClockCB ActionSingleUseBaseCB ActionTurnOnAlarmClock()
void AddAction(typename actionName)
override void OnDebugSpawn()
override void OnStoreSave(ParamsWriteContext ctx)
override string GetDebugText()
override string GetToggleSound()
void AnimateAlarmHand(float value)
override string GetRingingSound()
static ref NoiseParams m_NoisePar
override string GetExplosiveTriggerSlotName()
const string DESTROYED_SOUND
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
const string TURN_TOGGLE_SOUND
static NoiseSystem m_NoiseSystem
override string GetHitSound()
override string GetDestroyedSound()
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override bool OnStoreLoad(ParamsReadContext ctx, int version)
const string RINGING_SOUND
void ~AlarmClock_ColorBase()
override void SetActions()
static float GetNoiseReduction(Weather weather)
proto bool Write(void value_out)
proto bool Read(void value_in)
proto string ToString(bool simple=true)
enum EAlarmClockState m_AlarmTime01
void OnRingingStopClient()
void SetAlarmInXMins(int in_mins)
static int ConvertAlarmHand01ToMins12h(float time01)
float GetRingingDurationMax()
static const float UPDATE_TICK_RATE
void SetAlarmTimeServer(float time01)
static int ConvertTimeToMins12h(int hour, int minute)
Serializer ParamsReadContext
Serializer ParamsWriteContext
const int SAT_DEBUG_ACTION
vector GetPosition()
Get the world position of the Effect.
class NoiseSystem NoiseParams()
enum EObjectTemperatureState m_State
void SetState(bool state)