5 const string HIT_SOUND =
"AlarmClock_Hit_SoundSet";
39 return "TriggerKitchenTimer";
54 return "KitchenTimer_Ring_End_SoundSet";
105 SetAnimationPhaseNow(
"ClockAlarm", time01);
141 super.OnRingingStopClient();
147 if (!super.OnStoreLoad(ctx, version))
157 if ( !ctx.
Read( state ) )
164 if (!ctx.
Read( time ))
185 super.OnStoreSave(ctx);
200 SetAnimationPhaseNow(
"ClockAlarm", time01);
219 override void GetDebugButtonNames(out
string button1, out
string button2, out
string button3, out
string button4)
221 button1 =
"SetAlarmAhead";
226 if (button_index == 1)
236 if(
GetGame().IsDedicatedServer())
238 debug_output =
"alarm in: " +
m_AlarmInSecs.ToString() +
" secs" +
"\n";
245 debug_output =
"this is client";
eBleedingSourceType GetType()
ActionResetKitchenTimerClockCB ActionSingleUseBaseCB ActionResetKitchenTimer()
void AddAction(typename actionName)
EffectSound m_WorkingSound
protected void MakeRingingStop()
protected void MakeRingingStart()
static const float UPDATE_TICK_RATE
EffectSound m_RingingSoundLoop
class NoiseSystem NoiseParams()
void SetState(bool state)
protected float m_DrainThreshold protected bool m_State
class JsonUndergroundAreaTriggerData GetPosition
proto native NoiseSystem GetNoiseSystem()
Wrapper class for managing sound through SEffectManager.
EffectSound m_RingingStopSound
const string WORKING_SOUND
void SetAlarmTimeServerSecs(int inSecs)
override protected void Disarm()
override void OnStoreSave(ParamsWriteContext ctx)
override protected void OnRingingStopClient()
override string GetDebugText()
override string GetToggleSound()
override string GetRingingSound()
override void OnDebugButtonPressServer(int button_index)
float SecondsTo01(int seconds)
string GetRingingStopSound()
static ref NoiseParams m_NoisePar
override string GetExplosiveTriggerSlotName()
const string DESTROYED_SOUND
override void SetAlarmTimeServer(float time01)
static NoiseSystem m_NoiseSystem
override string GetHitSound()
int Time01ToSeconds(float time01)
override float GetRingingDurationMax()
override string GetWorkingSound()
override string GetDestroyedSound()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
const string RINGING_SOUND
override void GetDebugButtonNames(out string button1, out string button2, out string button3, out string button4)
override void SetActions()
proto void AddNoiseTarget(vector pos, float lifetime, NoiseParams noise_params, float external_strength_multiplier=1.0)
Will make a noise at that position which the AI will "see" for the duration of 'lifetime'.
Manager class for managing Effect (EffectParticle, EffectSound)
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Serialization general interface. Serializer API works with:
proto bool Write(void value_out)
proto bool Read(void value_in)
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'.