class PowerGeneratorBaseSource
PowerGeneratorBase › ItemBase › InventoryItem › EntityAI › Entity › ObjectTyped › Object › IEntity › Managed
Derived classes
All members, including inherited
Constructors 2
void PowerGeneratorBase()void ~PowerGeneratorBase()Constants 5
protected const float LOW_ENERGY_FUEL_PERCENTAGE = 20how much % of fuel has to remain to trigger low fuel state
Referenced by OnWork()
static const string START_SOUND = "powerGeneratorTurnOn_SoundSet"Referenced by OnWorkStart()
static const string LOOP_SOUND = "powerGeneratorLoop_SoundSet"Referenced by StartLoopSound()
protected const string LOOP_LOW_FUEL_SOUND = "powerGenerator_low_Fuel_Loop_SoundSet"Referenced by StartLoopSound()
static const string STOP_SOUND = "powerGeneratorTurnOff_SoundSet"Referenced by OnWorkStop()
Members 14
float m_Fuelprivate static float m_FuelTankCapacityCapacity in ml.
private static float m_FuelToEnergyRatioConversion ratio of 1 ml of fuel to X Energy
private int m_FuelPercentageReferenced by EOnInit(), GetFuelPercentage(), OnWork()
Show 3 more
, PowerGeneratorBase(), SetFuel(), and UpdateFuelMeter()protected bool m_IsLowEnergyprotected EffectSound m_EngineLoopprotected EffectSound m_EngineStartReferenced by OnWorkStart()
protected EffectSound m_EngineStopReferenced by OnWorkStop()
ref Timer m_SoundLoopStartTimerReferenced by OnWorkStart()
protected ref Effect m_SmokeItemBase m_SparkPlugDEPRECATED Attached spark plug item
protected ref UniversalTemperatureSource m_UTSourceprotected ref UniversalTemperatureSourceSettings m_UTSSettingsprotected ref UniversalTemperatureSourceLambdaConstant m_UTSLEngineMethods 31
override void EEInit()References EntityAI.EEInit(), CGame.IsMultiplayer(), CGame.IsServer()
Show 12 more
, new UniversalTemperatureSource(), new UniversalTemperatureSourceLambdaConstant(), new UniversalTemperatureSourceSettings(), GameConstants.ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE, UniversalTemperatureSourceSettings.m_ManualUpdate, UniversalTemperatureSourceSettings.m_RangeFull, UniversalTemperatureSourceSettings.m_RangeMax, UniversalTemperatureSourceSettings.m_TemperatureCap, UniversalTemperatureSourceSettings.m_TemperatureItemCap, m_UTSLEngine, m_UTSource, and m_UTSSettingsReferences EntityAI.GetCompEM(), ComponentEnergyManager.GetEnergy0To100(), CGame.IsServer()
Show 3 more
, EntityAI.SetSynchDirty(), UpdateFuelMeter(), and m_FuelPercentageoverride float GetLiquidThroughputCoef()protected vector GetSmokeParticlePosition()Referenced by StartLoopSound()
protected vector GetSmokeParticleOrientation()Referenced by StartLoopSound()
void StartLoopSound()Referenced by SetLowEnergyState()
bool CanManipulate()override void OnInitEnergy()References CGame.ConfigGetFloat(), EntityAI.GetCompEM(), ComponentEnergyManager.GetEnergyMax()
Show 4 more
, Object.GetType(), UpdateFuelMeter(), m_FuelTankCapacity, and m_FuelToEnergyRatiooverride void OnWorkStart()Referenced by PowerGeneratorStatic.OnWorkStart()
override void OnWork(float consumed_energy)override void OnWorkStop()Referenced by PowerGeneratorStatic.OnWorkStop()
protected void SetLowEnergyState(bool state)References CGame.IsClient(), CGame.IsMultiplayer(), StartLoopSound()
Show 3 more
, Object.StopSoundSet(), m_EngineLoop, and m_IsLowEnergyvoid UpdateFuelMeter()References CGame.IsClient(), CGame.IsMultiplayer(), Entity.SetAnimationPhase()
Show 1 more
, m_FuelPercentageReferenced by EOnInit(), OnInitEnergy(), OnItemLocationChanged()
Show 4 more
, OnVariablesSynchronized(), OnWork(), OnWorkStop(), and SetFuel()void SetFuel(float fuel_amount)Referenced by AddFuel(), OnAction(), OnDebugSpawn()
Show 1 more
, PowerGeneratorStatic.EEOnAfterLoad()References EntityAI.GetCompEM(), GetFuel(), GetMaxFuel()
Show 2 more
, ComponentEnergyManager.InteractBranch(), and SetFuel()References EntityAI.GetCompEM(), ComponentEnergyManager.GetEnergy(), ComponentEnergyManager.GetEnergyMax()
Show 2 more
, ItemBase.GetLiquidType(), and ItemBase.GetQuantity()Referenced by ActionFillGeneratorTank.ActionCondition()
float GetFuel()References Math.Clamp(), EntityAI.GetCompEM(), ComponentEnergyManager.GetEnergy()
Show 2 more
, GetMaxFuel(), and m_FuelToEnergyRatioReferenced by CAContinuousFillPowerGenerator.Execute(), AddFuel(), OnAction()
Show 2 more
, SetFuel(), and PowerGeneratorStatic.EEOnAfterLoad()float GetMaxFuel()References m_FuelTankCapacity
Referenced by CAContinuousFillPowerGenerator.Execute(), AddFuel(), GetFuel()
Show 2 more
, OnAction(), and OnDebugSpawn()float GetFuelPercentage()References m_FuelPercentage
bool HasSparkplug()References GameInventory.FindAttachment(), EntityAI.GetInventory(), InventorySlots.GetSlotIdFromString()
Show 1 more
, Object.IsRuined()Referenced by ActionTurnOnPowerGenerator.ActionCondition()
override void OnVariablesSynchronized()override string GetDeploySoundset()override void SetActions()override void OnDebugSpawn()References Class.CastTo(), GameInventory.CreateInInventory(), EntityAI.GetInventory()
Show 2 more
, GetMaxFuel(), and SetFuel()override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)References ItemBase.GetDebugActions(), array.Insert(), new TSelectableActionInfoWithColor()
Show 2 more
, FadeColors.LIGHT_GREY, and FadeColors.REDoverride bool OnAction(int action_id, Man player, ParamsReadContext ctx)References AddFuel(), Math.Clamp(), GetFuel()