Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FuelConsumptionComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_FuelConsumptionComponentClass

Functions

void SetCurrentFuelTank (int iFuelTankID)
BaseFuelNode GetCurrentFuelTank ()
BaseFuelNode FindFuelTankByID (int iFuelTankID)
void ConnectToFuelConsumptionSystem ()
void DisconnectFromFuelConsumptionSystem ()
void Update (float timeSlice)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void EOnInit (IEntity owner)
override void OnDelete (IEntity owner)

Variables

SCR_FuelConsumptionComponentClass SECOND_TO_HOUR = 1/3600
const float MIN_FUEL = 0
const float MIN_THRUST = 0.04
const float MIN_CLUTCH = 0.04
const float NEUTRAL_GEAR = 1
const float TIME_STEP = 1
bool m_bConnectedToSystem = false
float m_fTimeDelta
BaseFuelNode m_CurrentFuelTank
VehicleBaseSimulation m_Simulation
SCR_FuelConsumptionComponentClass m_ComponentData

Function Documentation

◆ ConnectToFuelConsumptionSystem()

void ConnectToFuelConsumptionSystem ( )
protected

Definition at line 225 of file SCR_FuelConsumptionComponent.c.

◆ DisconnectFromFuelConsumptionSystem()

void DisconnectFromFuelConsumptionSystem ( )
protected

Definition at line 237 of file SCR_FuelConsumptionComponent.c.

◆ FindFuelTankByID()

BaseFuelNode FindFuelTankByID ( int iFuelTankID)
protected

returns the fuel tank pointer by the given FuelTankID

Parameters
[in]iFuelTankID
Returns

Definition at line 79 of file SCR_FuelConsumptionComponent.c.

◆ GetCurrentFuelTank()

BaseFuelNode GetCurrentFuelTank ( )
protected
Returns

Definition at line 70 of file SCR_FuelConsumptionComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 304 of file SCR_FuelConsumptionComponent.c.

◆ SetCurrentFuelTank()

void SetCurrentFuelTank ( int iFuelTankID)
protected

Switch the actual fuel tank (i.e. by a switch on the dashboard)

Parameters
[in]iFuelTankID

Definition at line 63 of file SCR_FuelConsumptionComponent.c.

◆ Update()

void Update ( float timeSlice)
protected
Parameters
[in]timeSlice

Definition at line 253 of file SCR_FuelConsumptionComponent.c.

Variable Documentation

◆ m_bConnectedToSystem

bool m_bConnectedToSystem = false
protected

Definition at line 23 of file SCR_FuelConsumptionComponent.c.

◆ m_ComponentData

SCR_FuelConsumptionComponentClass m_ComponentData
protected

Definition at line 28 of file SCR_FuelConsumptionComponent.c.

◆ m_CurrentFuelTank

BaseFuelNode m_CurrentFuelTank
protected

Definition at line 26 of file SCR_FuelConsumptionComponent.c.

◆ m_fTimeDelta

float m_fTimeDelta
protected

Definition at line 25 of file SCR_FuelConsumptionComponent.c.

◆ m_Simulation

VehicleBaseSimulation m_Simulation
protected

Definition at line 27 of file SCR_FuelConsumptionComponent.c.

◆ MIN_CLUTCH

const float MIN_CLUTCH = 0.04
protected

Definition at line 19 of file SCR_FuelConsumptionComponent.c.

◆ MIN_FUEL

const float MIN_FUEL = 0
protected

Definition at line 17 of file SCR_FuelConsumptionComponent.c.

◆ MIN_THRUST

const float MIN_THRUST = 0.04
protected

Definition at line 18 of file SCR_FuelConsumptionComponent.c.

◆ NEUTRAL_GEAR

const float NEUTRAL_GEAR = 1
protected

Definition at line 20 of file SCR_FuelConsumptionComponent.c.

◆ SECOND_TO_HOUR

SCR_FuelConsumptionComponentClass SECOND_TO_HOUR = 1/3600

◆ TIME_STEP

const float TIME_STEP = 1
protected

Definition at line 21 of file SCR_FuelConsumptionComponent.c.