DIFF

class PowerGeneratorBaseSource

PowerGeneratorBase ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

void ~PowerGeneratorBase()

Constants 5

protected const float LOW_ENERGY_FUEL_PERCENTAGE = 20

how 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_Fuel
private static float m_FuelTankCapacity

Capacity in ml.

private static float m_FuelToEnergyRatio

Conversion ratio of 1 ml of fuel to X Energy

Referenced by GetFuel(), OnInitEnergy(), and SetFuel()
private int m_FuelPercentage
protected bool m_IsLowEnergy
protected EffectSound m_EngineLoop
protected EffectSound m_EngineStart
Referenced by OnWorkStart()
protected EffectSound m_EngineStop
Referenced by OnWorkStop()
ref Timer m_SoundLoopStartTimer
Referenced by OnWorkStart()
protected ref Effect m_Smoke
ItemBase m_SparkPlug

DEPRECATED Attached spark plug item

protected ref UniversalTemperatureSource m_UTSource
Referenced by EEInit(), OnWork(), OnWorkStart()
Show 1 more, OnWorkStop()
protected ref UniversalTemperatureSourceSettings m_UTSSettings
Referenced by EEInit(), and OnWork()
protected ref UniversalTemperatureSourceLambdaConstant m_UTSLEngine
Referenced by EEInit(), and OnWork()

Methods 31

override float GetLiquidThroughputCoef()
protected vector GetSmokeParticlePosition()
Referenced by StartLoopSound()
protected vector GetSmokeParticleOrientation()
Referenced by StartLoopSound()
override bool CanPutInCargo(EntityAI parent)
override bool CanPutIntoHands(EntityAI parent)
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
protected void SetLowEnergyState(bool state)
float GetMaxFuel()
float GetFuelPercentage()
References m_FuelPercentage
override void OnVariablesSynchronized()
override string GetDeploySoundset()
override void SetActions()
override void OnDebugSpawn()
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)