3 const string RINGING_SOUND =
"AlarmClock_Ring_Loop_SoundSet";
4 const string TURN_TOGGLE_SOUND =
"AlarmClock_Turn_Off_SoundSet";
5 const string DESTROYED_SOUND =
"AlarmClock_Destroyed_SoundSet";
6 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
35 override void SetActions()
44 override string GetToggleSound()
46 return TURN_TOGGLE_SOUND;
49 override string GetRingingSound()
54 override string GetDestroyedSound()
56 return DESTROYED_SOUND;
59 override string GetHitSound()
64 override string GetExplosiveTriggerSlotName()
66 return "TriggerAlarmClock";
69 override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
74 super.GetDebugActions(outputList);
79 if (super.OnAction(action_id, player, ctx))
83 if (action_id ==
EActions.ACTIVATE_ENTITY)
92 override string GetDebugText()
96 if(
GetGame().IsDedicatedServer())
98 debug_output =
"alarm in: " +
GetAlarmInMin().ToString() +
" mins" +
"\n";
105 debug_output =
"this is client";
115 int alarm_hand_in_minutes = ConvertAlarmHand01ToMins12h(
m_AlarmTime01);
117 int pass, hour, minute;
118 GetGame().GetWorld().GetDate(pass, pass, pass, hour, minute);
120 int curr_time_in_minutes = ConvertTimeToMins12h(hour, minute);
124 if ( alarm_hand_in_minutes == curr_time_in_minutes )
145 protected void AnimateAlarmHand(
float value)
147 SetAnimationPhaseNow(
"ClockAlarm", value);
153 if (!super.OnStoreLoad(ctx, version))
163 if ( !ctx.Read( state ) )
170 if ( !ctx.Read( time ) )
191 super.OnStoreSave(ctx);
197 override void OnDebugSpawn()