class Battery9VSource
Battery9V › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
All members, including inherited
Constructors 1
void Battery9V()Members 2
private int m_Efficiency0To10Synchronized variable
static private float m_EfficiencyDecayStart = 0.1At this % of maximum energy the output of the battery starts to weaken.
Methods 5
float GetEfficiency0To1()Returns efficiency of this battery. The value is synchronized from server to all clients and is accurate down to 0.1 units.
References m_Efficiency0To10
Referenced by Flashlight.OnWork(), Headtorch_ColorBase.OnWork(), TLRLight.OnWork()
Show 1 more
, UniversalLight.OnWork()float GetEfficiencyDecayStart()Returns efficiency of this battery. The value is synchronized from server to all clients and is accurate down to 0.1 unit.
References m_EfficiencyDecayStart
override void OnEnergyConsumed()override void OnEnergyAdded()override void SetActions()