5 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
40 return "TriggerKitchenTimer";
55 return "KitchenTimer_Ring_End_SoundSet";
106 SetAnimationPhaseNow(
"ClockAlarm", time01);
143 super.OnRingingStopClient();
149 if (!super.OnStoreLoad(ctx, version))
159 if (!ctx.
Read(state))
186 super.OnStoreSave(ctx);
200 SetAnimationPhaseNow(
"ClockAlarm", time01);
224 super.GetDebugActions(outputList);
229 if (super.OnAction(action_id, player, ctx))
234 if (action_id ==
EActions.ALARM_SET_AHEAD)
246 if (
GetGame().IsDedicatedServer())
248 debug_output =
"alarm in: " +
m_AlarmInSecs.ToString() +
" secs" +
"\n";
255 debug_output =
"this is client";
Param4< int, int, string, int > TSelectableActionInfoWithColor
eBleedingSourceType GetType()
ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer()
void AddAction(typename actionName)
EffectSound m_WorkingSound
static const float UPDATE_TICK_RATE
EffectSound m_RingingSoundLoop
class NoiseSystem NoiseParams()
enum EObjectTemperatureState m_State
void SetState(bool state)
proto native NoiseSystem GetNoiseSystem()
Wrapper class for managing sound through SEffectManager.
override void SetAlarmTimeServer(float time01)
override string GetHitSound()
override string GetDebugText()
void SetAlarmTimeServerSecs(int inSecs)
override string GetDestroyedSound()
const string RINGING_SOUND
int Time01ToSeconds(float time01)
const string DESTROYED_SOUND
EffectSound m_RingingStopSound
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
override string GetExplosiveTriggerSlotName()
const string WORKING_SOUND
string GetRingingStopSound()
override string GetToggleSound()
static ref NoiseParams m_NoisePar
override void OnStoreSave(ParamsWriteContext ctx)
override float GetRingingDurationMax()
override void SetActions()
void OnRingingStopClient()
float SecondsTo01(int seconds)
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
static NoiseSystem m_NoiseSystem
override string GetWorkingSound()
override string GetRingingSound()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
static float GetNoiseReduction(Weather weather)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)
proto bool Write(void value_out)
proto bool Read(void value_in)
proto string ToString(bool simple=true)
Serializer ParamsReadContext
proto native CGame GetGame()
Serializer ParamsWriteContext
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,...
const int SAT_DEBUG_ACTION
class JsonUndergroundAreaTriggerData GetPosition