◆ ConnectToFuelConsumptionSystem()
void SCR_FuelConsumptionComponent.ConnectToFuelConsumptionSystem |
( |
| ) |
|
|
protected |
◆ DisconnectFromFuelConsumptionSystem()
void SCR_FuelConsumptionComponent.DisconnectFromFuelConsumptionSystem |
( |
| ) |
|
|
protected |
◆ EOnInit()
override void SCR_FuelConsumptionComponent.EOnInit |
( |
IEntity |
owner | ) |
|
◆ FindFuelTankByID()
BaseFuelNode SCR_FuelConsumptionComponent.FindFuelTankByID |
( |
int |
iFuelTankID | ) |
|
|
protected |
returns the fuel tank pointer by the given FuelTankID
- Parameters
-
- Returns
◆ GetCurrentFuelTank()
BaseFuelNode SCR_FuelConsumptionComponent.GetCurrentFuelTank |
( |
| ) |
|
◆ GetGlobalFuelConsumptionScale()
static float SCR_FuelConsumptionComponent.GetGlobalFuelConsumptionScale |
( |
| ) |
|
|
static |
- Returns
- Global Fuel consumption Scale
◆ OnDelete()
override void SCR_FuelConsumptionComponent.OnDelete |
( |
IEntity |
owner | ) |
|
◆ OnPostInit()
override void SCR_FuelConsumptionComponent.OnPostInit |
( |
IEntity |
owner | ) |
|
◆ SetCurrentFuelTank()
void SCR_FuelConsumptionComponent.SetCurrentFuelTank |
( |
int |
iFuelTankID | ) |
|
Switch the actual fuel tank (i.e.
by a switch on the dashboard)
- Parameters
-
◆ SetEnabled()
void SCR_FuelConsumptionComponent.SetEnabled |
( |
bool |
enabled | ) |
|
◆ SetGlobalFuelConsumptionScale()
static void SCR_FuelConsumptionComponent.SetGlobalFuelConsumptionScale |
( |
float |
globalFuelConsumptionScale, |
|
|
int |
playerThatChangedValue = -1 |
|
) |
| |
|
static |
Set Fuel consumption scale of vehicles (and other fuel consumers) (Server only)
- Parameters
-
[in] | globalFuelConsumptionScale | New fuel consumption scale |
[in] | playerThatChangedValue | Optional, if value given then a notification is send on scale changed |
◆ Update() [1/2]
void SCR_FuelConsumptionComponent.Update |
( |
| ) |
|
updates currently active fueltank to see if it can still be used. turns off engine if no usable fueltanks are present.
◆ Update() [2/2]
void SCR_FuelConsumptionComponent.Update |
( |
float |
timeSlice | ) |
|
◆ m_bConnectedToSystem
bool SCR_FuelConsumptionComponent.m_bConnectedToSystem = false |
|
protected |
◆ m_ComponentData
◆ m_CurrentFuelTank
◆ m_fTimeDelta
float SCR_FuelConsumptionComponent.m_fTimeDelta |
|
protected |
◆ m_Simulation
◆ MIN_CLUTCH
const float SCR_FuelConsumptionComponent.MIN_CLUTCH = 0.04 |
|
staticprotected |
◆ MIN_FUEL
const float SCR_FuelConsumptionComponent.MIN_FUEL = 0 |
|
staticprotected |
◆ MIN_THRUST
const float SCR_FuelConsumptionComponent.MIN_THRUST = 0.04 |
|
staticprotected |
◆ NEUTRAL_GEAR
const float SCR_FuelConsumptionComponent.NEUTRAL_GEAR = 1 |
|
staticprotected |
◆ s_fGlobalFuelConsumptionScale
float SCR_FuelConsumptionComponent.s_fGlobalFuelConsumptionScale = 8 |
|
staticprotected |
Global Fuel consumption scale for vehicles (and other fuel consumers). x1 means the fuel consumption is roughly equal to real world fuel consumption.
◆ SECOND_TO_HOUR
const float SCR_FuelConsumptionComponent.SECOND_TO_HOUR = 1/3600 |
|
staticprotected |
◆ TIME_STEP
const float SCR_FuelConsumptionComponent.TIME_STEP = 1 |
|
staticprotected |
The documentation for this interface was generated from the following file:
- Game/Components/Fuel/SCR_FuelConsumptionComponent.c