|
Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the documentation of this file.
13 enum EFuelFlowCapacityOut
24 enum SCR_EFuelNodeTypeFlag
35 [
Attribute( defvalue:
"1", uiwidget: UIWidgets.EditBox,
desc:
"Initial fuel level" )]
36 protected float m_fInitialFuelTankState;
38 [
Attribute(defvalue: EFuelFlowCapacityOut.MANUAL.ToString(), uiwidget: UIWidgets.SearchComboBox,
desc:
"Maximum Flow Capacity out eg: When draining the fuel tank to refuel another vehicle. Liters per minutes", enums: ParamEnumArray.FromEnum( EFuelFlowCapacityOut ) )]
44 [
Attribute( defvalue:
"20", uiwidget: UIWidgets.CheckBox,
desc:
"Maximum Leak Speed\n[l/min]" )]
47 [
Attribute(SCR_EFuelNodeTypeFlag.CAN_RECEIVE_FUEL.ToString(),
desc:
"What type of fuel node is it? Can it provide and receive fuel? Maybe the fuel node is part of a fuel storage etc", uiwidget: UIWidgets.Flags, enums: ParamEnumArray.FromEnum(SCR_EFuelNodeTypeFlag))]
50 [
Attribute( defvalue:
"1", uiwidget: UIWidgets.EditBox,
desc:
"Fuel tank ID (user action and hitzone)" )]
53 static ref ScriptInvoker s_OnRefuelingFinished =
new ScriptInvoker();
70 #ifdef DEBUG_FUELSYSTEM
71 private float m_fTestFuel = 0.0;
72 private float m_fTestWorldTime = 0.0;
73 [
RplProp(condition: RplCondition.NoOwner, onRplName:
"OnTestChanged")]
74 private float m_fDebugTankState = 0.0;
75 private bool m_bFuelTankHUDAllowed =
true;
142 if (ShouldSimulate())
145 SetShouldSimulate(
true);
157 if (leakableFuel > 0)
169 SetFuel(GetFuel() - leak);
205 return GetFuel() - GetMaxFuel() *
m_fHealth;
228 #ifdef DEBUG_FUELSYSTEM
229 PrintFormat(
"FUELSYSTEM: Inserting %1",
this );
232 m_SignalManagerComp = SignalsManagerComponent.Cast(owner.FindComponent(SignalsManagerComponent));
237 #ifdef DEBUG_FUELSYSTEM
242 SetFuel(m_fInitialFuelTankState);
269 override void OnFixedFrame(IEntity owner,
float timeSlice);
279 override void OnInit(IEntity owner);
enum EFuelFlowCapacityIn CAN_PROVIDE_FUEL
Can the fuel node provide fuel to other fuel nodes.
enum EFuelFlowCapacityIn CAN_BE_DRAINED
If the fuel node can be drained with user action.
bool HasExactTypeFlags(SCR_EFuelNodeTypeFlag typeFlag)
protected float m_fHealth
enum EFuelFlowCapacityIn IS_FUEL_STORAGE
Any fuel nodes such as fuel tanker and in world refuel points.
enum EFuelFlowCapacityIn VEHICLE_BIG
SCR_RplTestEntityClass RplProp
Used for handling entity spawning requests for SCR_CatalogEntitySpawnerComponent and inherited classe...
protected string m_sSignalFuelState
void SetHealth(float health)
protected ref ScriptInvokerFloat m_OnFuelChanged
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
enum EFuelFlowCapacityIn MANUAL
const protected string SIGNAL_FUEL_TANK_ID
protected EFuelFlowCapacityIn m_MaxFlowCapacityIn
protected int m_iFuelLeakSpeed
protected SCR_EFuelNodeTypeFlag m_eFuelNodeType
enum EFuelFlowCapacityIn VEHICLE_MEDIUM
override protected void OnFuelChanged(float newFuel)
enum EFuelFlowCapacityIn VEHICLE_SMALL
protected int m_iSignalFuelStateIdx
ScriptInvokerBase< ScriptInvokerFloatMethod > ScriptInvokerFloat
enum EFuelFlowCapacityIn CAN_RECEIVE_FUEL
Can the fuel node receive fuel from other fuel nodes.
int GetFuelTankID()
Assigned fuel tank ID.
protected int m_iSignalIndexFuelTank
enum EFuelFlowCapacityIn FUEL_CARGO
ScriptInvokerFloat GetOnFuelChanged()
override void OnFixedFrame(IEntity owner, float timeSlice)
IEntity GetOwner()
Owner entity of the fuel tank.
bool HasAllTypeFlags(SCR_EFuelNodeTypeFlag typeFlag)
const protected string SIGNAL_FUEL_TANK_PREFIX
protected int m_iFuelTankID
protected EFuelFlowCapacityOut m_MaxFlowCapacityOut
protected float m_fTimeSkip
enum EFuelFlowCapacityIn VEHICLE_HELICOPTER
protected SignalsManagerComponent m_SignalManagerComp
EFuelFlowCapacityOut GetMaxFlowCapacityOut()
enum EFuelFlowCapacityIn Attribute(defvalue:"1", uiwidget:UIWidgets.EditBox, desc:"Initial fuel level")] protected float m_fInitialFuelTankState
const protected float TIME_STEP
override void OnInit(IEntity owner)
EFuelFlowCapacityIn GetMaxFlowCapacityIn()
bool HasAnyTypeFlag(SCR_EFuelNodeTypeFlag typeFlag)
protected IEntity m_Owner