|
Dayz
1.11.153731
Dayz Code Explorer by Zeroy
|
Go to the documentation of this file.
3 static const string CHARGING_SOUND =
"defibrillator_charge_SoundSet";
4 static const string CHARGED_AND_READY_SOUND =
"defibrillator_ready_SoundSet";
5 static const string SHOCK_SOUND =
"defibrillator_shock_SoundSet";
7 bool m_IsCharged =
false;
9 static float m_ChargeTime = 5;
10 static float m_EnergyNeededToCharge = 20;
25 string cfg_path =
"CfgVehicles " +
GetType() +
" ";
31 string cfg_path =
"CfgVehicles " +
GetType() +
" ";
41 float energy_needed = m_EnergyNeededToCharge /
m_ChargeTime;
47 if ( !m_ChargingTimer.IsRunning() )
49 m_ChargingTimer.Run(m_ChargeTime,
this,
"OnIsCharged", NULL,
false);
85 m_ChargedAlarm = NULL;
101 m_ChargingTimer.Stop();
102 m_ChargingTimer = NULL;
131 victim.SetPulseType(!victim.GetPulseType());
132 victim.SetHealth(
"",
"Shock",0);
proto native CGame GetGame()
void ResetEnergyUsage()
Energy manager: Resets energy usage to default (config) value.
void SetEnergyUsage(float new_usage)
Energy manager: Changes the energy usage per second.
static float m_ChargeTime
void DischargeServer(PlayerBase victim)
void AddAction(typename actionName)
EffectSound m_ChargingSound
static EffectSound PlaySoundOnObject(string sound_set, Object parent_object, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
void SwitchOff()
Energy manager: Switches OFF the device.
override void OnWorkStop()
ref Timer m_ChargingTimer
EffectSound m_ChargedAlarm
override void SetActions()
ComponentEnergyManager GetCompEM()
energy manager ENERGY MANAGER:Documentation: Confluence >> Camping & Squatting >> Electricity >> Ener...
float GetTimeNeededToCharge()
override void OnWorkStart()
proto native float ConfigGetFloat(string path)
Get float value from config on path.
float GetEnergyNeededToCharge()
void DischargeClient(PlayerBase victim)