PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
Car Class Reference

Private Member Functions

void CarScript ()
 
override void EEInit ()
 
override string GetVehicleType ()
 
vector GetEnginePosWS ()
 
vector GetCoolantPtcPosWS ()
 
vector GetEnginePointPosWS ()
 
vector GetFrontPointPosWS ()
 
vector GetBackPointPosWS ()
 
vector Get_1_1PointPosWS ()
 
vector Get_1_2PointPosWS ()
 
vector Get_2_1PointPosWS ()
 
vector Get_2_2PointPosWS ()
 
override float GetLiquidThroughputCoef ()
 
override void EEHitBy (TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
 
override void EEDelete (EntityAI parent)
 
void ~CarScript ()
 
void CleanupEffects ()
 
void CleanupSound (EffectSound sound)
 
override void GetDebugActions (out TSelectableActionInfoArrayEx outputList)
 
override bool OnAction (int action_id, Man player, ParamsReadContext ctx)
 
override void OnVariablesSynchronized ()
 
void CreateCarDestroyedEffect ()
 
override void EEItemAttached (EntityAI item, string slot_name)
 
void UpdateHeadlightState ()
 
override void EEItemDetached (EntityAI item, string slot_name)
 
override void OnAttachmentRuined (EntityAI attachment)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override bool CanReleaseAttachment (EntityAI attachment)
 
protected bool CanManipulateSpareWheel (string slotSelectionName)
 
override void EOnPostSimulate (IEntity other, float timeSlice)
 
void OnBrakesPressed ()
 
void OnBrakesReleased ()
 
override void OnDriverExit (Human player)
 
void OnVehicleJumpOutServer (GetOutTransportActionData gotActionData)
 
protected override bool DetectFlipped (VehicleFlippedContext ctx)
 
override void OnUpdate (float dt)
 
override void EEKilled (Object killer)
 
override void OnContact (string zoneName, vector localPos, IEntity other, Contact data)
 WARNING: Can be called very frequently in one frame, use with caution.
 
void CheckContactCache ()
 Responsible for damaging the car according to contact events from OnContact.
 
void DamageCrew (float dmg)
 Responsible for damaging crew in a car crash.
 
override float OnSound (CarSoundCtrl ctrl, float oldValue)
 
override void OnAnimationPhaseStarted (string animSource, float phase)
 
protected EffectSound CreateSoundForAnimationSource (string animSource)
 
protected void HandleDoorsSound (string animSource, float phase)
 
protected void HandleSeatAdjustmentSound (string animSource, float phase)
 
protected void HandleCarHornSound (ECarHornState pState)
 
void SetCarEngineSoundState (CarEngineSoundState pState)
 
void HandleEngineSound (CarEngineSoundState state)
 
override void MarkCrewMemberUnconscious (int crewMemberIndex)
 
override void MarkCrewMemberDead (int crewMemberIndex)
 
override void OnFluidChanged (CarFluid fluid, float newValue, float oldValue)
 
override bool OnBeforeEngineStart ()
 
void OnIgnition ()
 
int CheckOperationalRequirements ()
 
bool CheckOperationalState ()
 
override void OnGearChanged (int newGear, int oldGear)
 
override void OnEngineStart ()
 Gets called everytime the engine starts.
 
override void OnEngineStop ()
 Gets called everytime the engine stops.
 
bool IsScriptedLightsOn ()
 Proper way to get if light is swiched on. Use instead of IsLightsOn().
 
void ToggleHeadlights ()
 Switches headlights on/off, including the illumination of the control panel and synchronizes this change to all clients.
 
void UpdateLights (int new_gear=-1)
 
void UpdateLightsClient (int newGear=-1)
 
void UpdateLightsServer (int newGear=-1)
 
protected void BrakesRearLight ()
 
protected void ReverseRearLight ()
 
protected void BrakeAndReverseRearLight ()
 
protected void NoRearLight ()
 
protected void LeftFrontLightShineOn ()
 
protected void RightFrontLightShineOn ()
 
protected void LeftFrontLightShineOff ()
 
protected void RightFrontLightShineOff ()
 
protected void ReverseLightsShineOn ()
 
protected void ReverseLightsShineOff ()
 
protected void BrakeLightsShineOn ()
 
protected void BrakeLightsShineOff ()
 
protected void TailLightsShineOn ()
 
protected void TailLightsShineOff ()
 
protected void DashboardShineOn ()
 
protected void DashboardShineOff ()
 
protected CarRearLightBase CreateRearLight ()
 
protected CarLightBase CreateFrontLight ()
 
protected void CheckVitalItem (bool isVital, int slotId)
 
protected void CheckVitalItem (bool isVital, string slot_name)
 
protected void LeakFluid (CarFluid fluid)
 
protected void CarPartsHealthCheck ()
 
bool GetCrashLightSound ()
 
void SynchCrashLightSound (bool play)
 
void PlayCrashLightSound ()
 
bool GetCrashHeavySound ()
 
void SynchCrashHeavySound (bool play)
 
void PlayCrashHeavySound ()
 
void PlaySoundEx (string soundset, EffectSound sound, out bool soundbool)
 
void PlaySound (string soundset, EffectSound sound, out bool soundbool)
 
string GetAnimSourceFromSelection (string selection)
 
string GetSelectionFromAnimSource (string animSource)
 
string GetDoorConditionPointFromSelection (string selection)
 
string GetDoorSelectionNameFromSeatPos (int posIdx)
 
string GetDoorInvSlotNameFromSeatPos (int posIdx)
 
int GetCrewIndex (string selection)
 
override bool CanReachSeatFromDoors (string pSeatSelection, vector pFromPos, float pDistance=1.0)
 
bool IsVitalCarBattery ()
 
bool IsVitalTruckBattery ()
 
bool IsVitalGlowPlug ()
 
bool IsVitalEngineBelt ()
 
bool IsVitalRadiator ()
 
bool IsVitalFuelTank ()
 
bool HasRadiator ()
 
EntityAI GetRadiator ()
 
bool IsMoving ()
 
bool IsHandbrakeActive ()
 
override int Get3rdPersonCameraType ()
 camera type
 
void SetEngineStarted (bool started)
 
int GetCarDoorsState (string slotType)
 
CarDoorState TranslateAnimationPhaseToCarDoorState (string animation)
 
string GetActionCompNameCoolant ()
 
float GetActionDistanceCoolant ()
 
string GetActionCompNameOil ()
 
float GetActionDistanceOil ()
 
string GetActionCompNameBrakes ()
 
float GetActionDistanceBrakes ()
 
override bool CanPutIntoHands (EntityAI parent)
 
void InitializeActions ()
 
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
 
void SetActions ()
 
void AddAction (typename actionName)
 
void RemoveAction (typename actionName)
 
override bool IsInventoryVisible ()
 
override void EEHealthLevelChanged (int oldLevel, int newLevel, string zone)
 
override void EEOnCECreate ()
 
void ForceUpdateLightsStart ()
 
void ForceUpdateLightsEnd ()
 
float GetBatteryConsumption ()
 
float GetBatteryRuntimeConsumption ()
 
float GetBatteryRechargeRate ()
 
ItemBase GetBattery ()
 
protected void UpdateBattery (ItemBase battery)
 
void SetCarHornState (int pState)
 
protected void GenerateCarHornAINoise (int pState)
 
override vector GetDefaultHitPosition ()
 
float GetPushForceCoefficientMultiplier ()
 
protected void SpawnUniversalParts ()
 
protected void SpawnAdditionalItems ()
 
protected void FillUpCarFluids ()
 
protected override event GetOwnerStateType ()
 
protected override event GetMoveType ()
 
protected override event void ObtainState (PawnOwnerState pState)
 
protected override event void RewindState (PawnOwnerState pState, PawnMove pMove, inout NetworkRewindType pRewindType)
 
bool IsServerOrOwner ()
 
bool OnBeforeSwitchLights (bool toOn)
 
float GetEnviroHeatComfortOverride ()
 

Private Attributes

TInputActionMap m_InputActionMap
 
bool m_ActionsInitialize
 
protected float m_MomentumPrevTick
 
protected vector m_VelocityPrevTick
 
ref CarContactCache m_ContactCache
 
protected float m_Time
 
protected float m_FuelAmmount
 keeps ammount of each fluid
 
protected float m_CoolantAmmount
 
protected float m_OilAmmount
 
protected float m_BrakeAmmount
 
protected float m_dmgContactCoef = 0.058
 
protected float m_EnviroHeatComfortOverride
 
protected float m_DrownTime
 
protected float m_EngineHealth
 
protected float m_RadiatorHealth
 
protected float m_FuelTankHealth
 
protected float m_BatteryHealth
 
protected float m_PlugHealth
 
protected EntityAI m_Radiator
 
protected float m_BatteryConsume = 15
 
protected float m_BatteryContinuousConsume = 0.25
 
protected float m_BatteryRecharge = 0.15
 
private float m_BatteryTimer = 0
 
private const float BATTERY_UPDATE_DELAY = 100
 
protected ref EffVehicleSmoke m_coolantFx
 Particles.
 
protected ref EffVehicleSmoke m_engineFx
 
protected ref EffVehicleSmoke m_exhaustFx
 
protected int m_enginePtcFx
 
protected int m_coolantPtcFx
 
protected int m_exhaustPtcFx
 
protected vector m_exhaustPtcPos
 
protected vector m_exhaustPtcDir
 
protected vector m_enginePtcPos
 
protected vector m_coolantPtcPos
 
protected vector m_enginePos
 
protected vector m_frontPos
 
protected vector m_backPos
 
protected vector m_side_1_1Pos
 
protected vector m_side_1_2Pos
 
protected vector m_side_2_1Pos
 
protected vector m_side_2_2Pos
 
string m_EngineStartOK = ""
 Sounds.
 
string m_EngineStartBattery = ""
 
string m_EngineStartPlug = ""
 
string m_EngineStartFuel = ""
 
string m_EngineStop = ""
 
string m_EngineStopFuel = ""
 
string m_CarDoorOpenSound = ""
 
string m_CarDoorCloseSound = ""
 
string m_CarSeatShiftInSound = ""
 
string m_CarSeatShiftOutSound = ""
 
string m_CarHornShortSoundName = ""
 
string m_CarHornLongSoundName = ""
 
ref EffectSound m_CrashSoundLight
 
ref EffectSound m_CrashSoundHeavy
 
ref EffectSound m_WindowSmall
 
ref EffectSound m_WindowLarge
 
private ref EffectSound m_PreStartSound
 
protected ref EffectSound m_CarHornSoundEffect
 
protected ref NoiseParams m_NoisePar
 
protected NoiseSystem m_NoiseSystem
 
protected bool m_PlayCrashSoundLight
 
protected bool m_PlayCrashSoundHeavy
 
protected bool m_HeadlightsOn
 
protected bool m_HeadlightsState
 
protected bool m_BrakesArePressed
 
protected bool m_RearLightType
 
protected bool m_ForceUpdateLights
 
protected bool m_EngineStarted
 
protected bool m_EngineDestroyed
 
protected int m_CarHornState
 
CarLightBase m_Headlight
 
CarRearLightBase m_RearLight
 
protected ref array< ref EffWheelSmokem_WheelSmokeFx
 
protected ref array< intm_WheelSmokePtcFx
 
protected int m_CarEngineSoundState
 
protected int m_CarEngineLastSoundState
 
protected float m_BatteryEnergyStartMin = 5.0
 DEPRECATED.
 

Static Private Attributes

static ref map< typename, ref TInputActionMapm_CarTypeActionsMap = new map<typename, ref TInputActionMap>
 
static float DROWN_ENGINE_THRESHOLD = 0.5
 
static float DROWN_ENGINE_DAMAGE = 350.0
 
static const string MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
 
static vector m_DrownEnginePos
 
static string m_ReverseLightPoint = "light_reverse"
 
static string m_LeftHeadlightPoint = "light_left"
 
static string m_RightHeadlightPoint = "light_right"
 
static string m_LeftHeadlightTargetPoint = "light_left_dir"
 
static string m_RightHeadlightTargetPoint = "light_right_dir"
 
static string m_DrownEnginePoint = "drown_engine"
 
static const int SELECTION_ID_FRONT_LIGHT_L = 0
 
static const int SELECTION_ID_FRONT_LIGHT_R = 1
 
static const int SELECTION_ID_BRAKE_LIGHT_L = 2
 
static const int SELECTION_ID_BRAKE_LIGHT_R = 3
 
static const int SELECTION_ID_REVERSE_LIGHT_L = 4
 
static const int SELECTION_ID_REVERSE_LIGHT_R = 5
 
static const int SELECTION_ID_TAIL_LIGHT_L = 6
 
static const int SELECTION_ID_TAIL_LIGHT_R = 7
 
static const int SELECTION_ID_DASHBOARD_LIGHT = 8
 

Detailed Description

Base script class for cars

Constructor & Destructor Documentation

◆ ~CarScript()

void ~CarScript ( )
inlineprivate

Member Function Documentation

◆ AddAction()

◆ BrakeAndReverseRearLight()

protected void BrakeAndReverseRearLight ( )
inlineprivate

◆ BrakeLightsShineOff()

protected void BrakeLightsShineOff ( )
inlineprivate

◆ BrakeLightsShineOn()

protected void BrakeLightsShineOn ( )
inlineprivate

◆ BrakesRearLight()

protected void BrakesRearLight ( )
inlineprivate

◆ CanManipulateSpareWheel()

protected bool CanManipulateSpareWheel ( string  slotSelectionName)
inlineprivate

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI  parent)
inlineprivate

◆ CanReachSeatFromDoors()

override bool CanReachSeatFromDoors ( string  pSeatSelection,
vector  pFromPos,
float  pDistance = 1.0 
)
inlineprivate

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI  attachment,
int  slotId 
)
inlineprivate

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI  attachment)
inlineprivate

◆ CarPartsHealthCheck()

protected void CarPartsHealthCheck ( )
inlineprivate

◆ CarScript()

◆ CheckContactCache()

◆ CheckOperationalRequirements()

◆ CheckOperationalState()

bool CheckOperationalState ( )
inlineprivate

◆ CheckVitalItem() [1/2]

protected void CheckVitalItem ( bool  isVital,
int  slotId 
)
inlineprivate

◆ CheckVitalItem() [2/2]

protected void CheckVitalItem ( bool  isVital,
string  slot_name 
)
inlineprivate

◆ CleanupEffects()

void CleanupEffects ( )
inlineprivate

◆ CleanupSound()

void CleanupSound ( EffectSound  sound)
inlineprivate

◆ CreateCarDestroyedEffect()

void CreateCarDestroyedEffect ( )
inlineprivate

◆ CreateFrontLight()

protected CarLightBase CreateFrontLight ( )
inlineprivate

◆ CreateRearLight()

protected CarRearLightBase CreateRearLight ( )
inlineprivate

◆ CreateSoundForAnimationSource()

protected EffectSound CreateSoundForAnimationSource ( string  animSource)
inlineprivate

◆ DamageCrew()

void DamageCrew ( float  dmg)
inlineprivate

◆ DashboardShineOff()

protected void DashboardShineOff ( )
inlineprivate

◆ DashboardShineOn()

protected void DashboardShineOn ( )
inlineprivate

◆ DetectFlipped()

protected override bool DetectFlipped ( VehicleFlippedContext  ctx)
inlineprivate

◆ EEDelete()

override void EEDelete ( EntityAI  parent)
inlineprivate

◆ EEHealthLevelChanged()

override void EEHealthLevelChanged ( int  oldLevel,
int  newLevel,
string  zone 
)
inlineprivate

◆ EEHitBy()

override void EEHitBy ( TotalDamageResult  damageResult,
int  damageType,
EntityAI  source,
int  component,
string  dmgZone,
string  ammo,
vector  modelPos,
float  speedCoef 
)
inlineprivate

◆ EEInit()

override void EEInit ( )
inlineprivate

◆ EEItemAttached()

override void EEItemAttached ( EntityAI  item,
string  slot_name 
)
inlineprivate

References GetGame(), and Synchronize().

◆ EEItemDetached()

override void EEItemDetached ( EntityAI  item,
string  slot_name 
)
inlineprivate

References GetGame(), and Synchronize().

◆ EEKilled()

override void EEKilled ( Object  killer)
inlineprivate

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprivate

References Math::RandomFloat().

◆ EOnPostSimulate()

◆ FillUpCarFluids()

protected void FillUpCarFluids ( )
inlineprivate

◆ ForceUpdateLightsEnd()

void ForceUpdateLightsEnd ( )
inlineprivate

◆ ForceUpdateLightsStart()

void ForceUpdateLightsStart ( )
inlineprivate

◆ GenerateCarHornAINoise()

protected void GenerateCarHornAINoise ( int  pState)
inlineprivate

◆ Get3rdPersonCameraType()

override int Get3rdPersonCameraType ( )
inlineprivate

◆ Get_1_1PointPosWS()

vector Get_1_1PointPosWS ( )
inlineprivate

◆ Get_1_2PointPosWS()

vector Get_1_2PointPosWS ( )
inlineprivate

◆ Get_2_1PointPosWS()

vector Get_2_1PointPosWS ( )
inlineprivate

◆ Get_2_2PointPosWS()

vector Get_2_2PointPosWS ( )
inlineprivate

◆ GetActionCompNameBrakes()

string GetActionCompNameBrakes ( )
inlineprivate

◆ GetActionCompNameCoolant()

string GetActionCompNameCoolant ( )
inlineprivate

◆ GetActionCompNameOil()

string GetActionCompNameOil ( )
inlineprivate

◆ GetActionDistanceBrakes()

float GetActionDistanceBrakes ( )
inlineprivate

◆ GetActionDistanceCoolant()

float GetActionDistanceCoolant ( )
inlineprivate

◆ GetActionDistanceOil()

float GetActionDistanceOil ( )
inlineprivate

◆ GetActions()

override void GetActions ( typename action_input_type  ,
out array< ActionBase_Basic actions 
)
inlineprivate

◆ GetAnimSourceFromSelection()

string GetAnimSourceFromSelection ( string  selection)
inlineprivate

◆ GetBackPointPosWS()

vector GetBackPointPosWS ( )
inlineprivate

◆ GetBattery()

◆ GetBatteryConsumption()

float GetBatteryConsumption ( )
inlineprivate

◆ GetBatteryRechargeRate()

float GetBatteryRechargeRate ( )
inlineprivate

◆ GetBatteryRuntimeConsumption()

float GetBatteryRuntimeConsumption ( )
inlineprivate

◆ GetCarDoorsState()

int GetCarDoorsState ( string  slotType)
inlineprivate

◆ GetCoolantPtcPosWS()

vector GetCoolantPtcPosWS ( )
inlineprivate

◆ GetCrashHeavySound()

bool GetCrashHeavySound ( )
inlineprivate

◆ GetCrashLightSound()

bool GetCrashLightSound ( )
inlineprivate

◆ GetCrewIndex()

int GetCrewIndex ( string  selection)
inlineprivate

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx  outputList)
inlineprivate

References SAT_DEBUG_ACTION.

◆ GetDefaultHitPosition()

override vector GetDefaultHitPosition ( )
inlineprivate

References vector::Zero.

◆ GetDoorConditionPointFromSelection()

string GetDoorConditionPointFromSelection ( string  selection)
inlineprivate

◆ GetDoorInvSlotNameFromSeatPos()

string GetDoorInvSlotNameFromSeatPos ( int  posIdx)
inlineprivate

◆ GetDoorSelectionNameFromSeatPos()

string GetDoorSelectionNameFromSeatPos ( int  posIdx)
inlineprivate

◆ GetEnginePointPosWS()

vector GetEnginePointPosWS ( )
inlineprivate

◆ GetEnginePosWS()

vector GetEnginePosWS ( )
inlineprivate

◆ GetEnviroHeatComfortOverride()

float GetEnviroHeatComfortOverride ( )
private

◆ GetFrontPointPosWS()

vector GetFrontPointPosWS ( )
inlineprivate

◆ GetLiquidThroughputCoef()

override float GetLiquidThroughputCoef ( )
inlineprivate

◆ GetMoveType()

protected override event GetMoveType ( )
inlineprivate

◆ GetOwnerStateType()

protected override event GetOwnerStateType ( )
inlineprivate

◆ GetPushForceCoefficientMultiplier()

float GetPushForceCoefficientMultiplier ( )
inlineprivate

◆ GetRadiator()

EntityAI GetRadiator ( )
inlineprivate

◆ GetSelectionFromAnimSource()

string GetSelectionFromAnimSource ( string  animSource)
inlineprivate

◆ GetVehicleType()

override string GetVehicleType ( )
inlineprivate

◆ HandleCarHornSound()

protected void HandleCarHornSound ( ECarHornState  pState)
inlineprivate

◆ HandleDoorsSound()

protected void HandleDoorsSound ( string  animSource,
float  phase 
)
inlineprivate

◆ HandleEngineSound()

◆ HandleSeatAdjustmentSound()

protected void HandleSeatAdjustmentSound ( string  animSource,
float  phase 
)
inlineprivate

◆ HasRadiator()

bool HasRadiator ( )
inlineprivate

◆ InitializeActions()

void InitializeActions ( )
inlineprivate

◆ IsHandbrakeActive()

bool IsHandbrakeActive ( )
inlineprivate

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprivate

References GetGame(), and GetPlayer().

◆ IsMoving()

bool IsMoving ( )
inlineprivate

◆ IsScriptedLightsOn()

bool IsScriptedLightsOn ( )
inlineprivate

Proper way to get if light is swiched on. Use instead of IsLightsOn().

◆ IsServerOrOwner()

bool IsServerOrOwner ( )
inlineprivate

◆ IsVitalCarBattery()

bool IsVitalCarBattery ( )
inlineprivate

◆ IsVitalEngineBelt()

bool IsVitalEngineBelt ( )
inlineprivate

◆ IsVitalFuelTank()

bool IsVitalFuelTank ( )
inlineprivate

◆ IsVitalGlowPlug()

bool IsVitalGlowPlug ( )
inlineprivate

◆ IsVitalRadiator()

bool IsVitalRadiator ( )
inlineprivate

◆ IsVitalTruckBattery()

bool IsVitalTruckBattery ( )
inlineprivate

◆ LeakFluid()

protected void LeakFluid ( CarFluid  fluid)
inlineprivate

◆ LeftFrontLightShineOff()

protected void LeftFrontLightShineOff ( )
inlineprivate

◆ LeftFrontLightShineOn()

protected void LeftFrontLightShineOn ( )
inlineprivate

◆ MarkCrewMemberDead()

override void MarkCrewMemberDead ( int  crewMemberIndex)
inlineprivate

◆ MarkCrewMemberUnconscious()

override void MarkCrewMemberUnconscious ( int  crewMemberIndex)
inlineprivate

◆ NoRearLight()

protected void NoRearLight ( )
inlineprivate

◆ ObtainState()

protected override event void ObtainState ( PawnOwnerState  pState)
inlineprivate

References m_Time.

◆ OnAction()

override bool OnAction ( int  action_id,
Man  player,
ParamsReadContext  ctx 
)
inlineprivate

References GetGame().

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string  animSource,
float  phase 
)
inlineprivate

◆ OnAttachmentRuined()

override void OnAttachmentRuined ( EntityAI  attachment)
inlineprivate

◆ OnBeforeEngineStart()

override bool OnBeforeEngineStart ( )
inlineprivate

Gets called everytime the game wants to start the engine.

Returns
true if the engine can start, false otherwise.

◆ OnBeforeSwitchLights()

bool OnBeforeSwitchLights ( bool  toOn)
inlineprivate

DEPRECATED Gets called everytime the game wants to switch the lights.

Returns
true when lights can be switched, false otherwise.

◆ OnBrakesPressed()

void OnBrakesPressed ( )
inlineprivate

◆ OnBrakesReleased()

void OnBrakesReleased ( )
inlineprivate

◆ OnContact()

override void OnContact ( string  zoneName,
vector  localPos,
IEntity  other,
Contact  data 
)
inlineprivate

WARNING: Can be called very frequently in one frame, use with caution.

References vector::Dot(), GetGame(), GetVelocity(), Contact::Impulse, Debug::Log(), and vector::Normalized().

◆ OnDriverExit()

override void OnDriverExit ( Human  player)
inlineprivate

◆ OnEngineStart()

override void OnEngineStart ( )
inlineprivate

Gets called everytime the engine starts.

References GetGame().

◆ OnEngineStop()

override void OnEngineStop ( )
inlineprivate

Gets called everytime the engine stops.

References GetGame().

◆ OnFluidChanged()

override void OnFluidChanged ( CarFluid  fluid,
float  newValue,
float  oldValue 
)
inlineprivate

Gets called everytime when the specified vehicle's fluid changes its current value eg. when vehicle is consuming fuel.

This callback is called on server.

◆ OnGearChanged()

override void OnGearChanged ( int  newGear,
int  oldGear 
)
inlineprivate

◆ OnIgnition()

void OnIgnition ( )
inlineprivate

◆ OnSound()

override float OnSound ( CarSoundCtrl  ctrl,
float  oldValue 
)
inlineprivate

Gets called every sound simulation step. In this callback, user can modify behaviour of sound controllers The higher the return value is the more muted sound is.

◆ OnUpdate()

override void OnUpdate ( float  dt)
inlineprivate

References GetGame().

◆ OnVariablesSynchronized()

override void OnVariablesSynchronized ( )
inlineprivate

References IsOwner().

◆ OnVehicleJumpOutServer()

◆ PlayCrashHeavySound()

void PlayCrashHeavySound ( )
inlineprivate

◆ PlayCrashLightSound()

void PlayCrashLightSound ( )
inlineprivate

◆ PlaySound()

void PlaySound ( string  soundset,
EffectSound  sound,
out bool  soundbool 
)
inlineprivate

◆ PlaySoundEx()

void PlaySoundEx ( string  soundset,
EffectSound  sound,
out bool  soundbool 
)
inlineprivate

◆ RemoveAction()

void RemoveAction ( typename actionName  )
inlineprivate

◆ ReverseLightsShineOff()

protected void ReverseLightsShineOff ( )
inlineprivate

◆ ReverseLightsShineOn()

protected void ReverseLightsShineOn ( )
inlineprivate

◆ ReverseRearLight()

protected void ReverseRearLight ( )
inlineprivate

◆ RewindState()

protected override event void RewindState ( PawnOwnerState  pState,
PawnMove  pMove,
inout NetworkRewindType  pRewindType 
)
inlineprivate

References m_Time.

◆ RightFrontLightShineOff()

protected void RightFrontLightShineOff ( )
inlineprivate

◆ RightFrontLightShineOn()

protected void RightFrontLightShineOn ( )
inlineprivate

◆ SetActions()

void SetActions ( )
inlineprivate

◆ SetCarEngineSoundState()

void SetCarEngineSoundState ( CarEngineSoundState  pState)
inlineprivate

◆ SetCarHornState()

void SetCarHornState ( int  pState)
inlineprivate

References GetGame().

◆ SetEngineStarted()

void SetEngineStarted ( bool  started)
inlineprivate

◆ SpawnAdditionalItems()

protected void SpawnAdditionalItems ( )
inlineprivate

References Class::CastTo(), and LIQUID_WATER.

◆ SpawnUniversalParts()

◆ SynchCrashHeavySound()

void SynchCrashHeavySound ( bool  play)
inlineprivate

◆ SynchCrashLightSound()

void SynchCrashLightSound ( bool  play)
inlineprivate

◆ TailLightsShineOff()

protected void TailLightsShineOff ( )
inlineprivate

◆ TailLightsShineOn()

protected void TailLightsShineOn ( )
inlineprivate

◆ ToggleHeadlights()

void ToggleHeadlights ( )
inlineprivate

Switches headlights on/off, including the illumination of the control panel and synchronizes this change to all clients.

◆ TranslateAnimationPhaseToCarDoorState()

CarDoorState TranslateAnimationPhaseToCarDoorState ( string  animation)
inlineprivate

◆ UpdateBattery()

protected void UpdateBattery ( ItemBase  battery)
inlineprivate

◆ UpdateHeadlightState()

void UpdateHeadlightState ( )
inlineprivate

◆ UpdateLights()

void UpdateLights ( int  new_gear = -1)
inlineprivate

◆ UpdateLightsClient()

void UpdateLightsClient ( int  newGear = -1)
inlineprivate

◆ UpdateLightsServer()

void UpdateLightsServer ( int  newGear = -1)
inlineprivate

Field Documentation

◆ BATTERY_UPDATE_DELAY

private const float BATTERY_UPDATE_DELAY = 100
private

◆ DROWN_ENGINE_DAMAGE

float DROWN_ENGINE_DAMAGE = 350.0
staticprivate

◆ DROWN_ENGINE_THRESHOLD

float DROWN_ENGINE_THRESHOLD = 0.5
staticprivate

◆ m_ActionsInitialize

bool m_ActionsInitialize
private

◆ m_backPos

protected vector m_backPos
private

◆ m_BatteryConsume

protected float m_BatteryConsume = 15
private

◆ m_BatteryContinuousConsume

protected float m_BatteryContinuousConsume = 0.25
private

◆ m_BatteryEnergyStartMin

protected float m_BatteryEnergyStartMin = 5.0
private

DEPRECATED.

◆ m_BatteryHealth

protected float m_BatteryHealth
private

◆ m_BatteryRecharge

protected float m_BatteryRecharge = 0.15
private

◆ m_BatteryTimer

private float m_BatteryTimer = 0
private

◆ m_BrakeAmmount

protected float m_BrakeAmmount
private

◆ m_BrakesArePressed

protected bool m_BrakesArePressed
private

◆ m_CarDoorCloseSound

string m_CarDoorCloseSound = ""
private

◆ m_CarDoorOpenSound

string m_CarDoorOpenSound = ""
private

◆ m_CarEngineLastSoundState

protected int m_CarEngineLastSoundState
private

◆ m_CarEngineSoundState

protected int m_CarEngineSoundState
private

◆ m_CarHornLongSoundName

string m_CarHornLongSoundName = ""
private

◆ m_CarHornShortSoundName

string m_CarHornShortSoundName = ""
private

◆ m_CarHornSoundEffect

protected ref EffectSound m_CarHornSoundEffect
private

◆ m_CarHornState

protected int m_CarHornState
private

◆ m_CarSeatShiftInSound

string m_CarSeatShiftInSound = ""
private

◆ m_CarSeatShiftOutSound

string m_CarSeatShiftOutSound = ""
private

◆ m_CarTypeActionsMap

ref map<typename, ref TInputActionMap> m_CarTypeActionsMap = new map<typename, ref TInputActionMap>
staticprivate

◆ m_ContactCache

ref CarContactCache m_ContactCache
private

◆ m_CoolantAmmount

protected float m_CoolantAmmount
private

◆ m_coolantFx

protected ref EffVehicleSmoke m_coolantFx
private

Particles.

◆ m_coolantPtcFx

protected int m_coolantPtcFx
private

◆ m_coolantPtcPos

protected vector m_coolantPtcPos
private

◆ m_CrashSoundHeavy

ref EffectSound m_CrashSoundHeavy
private

◆ m_CrashSoundLight

ref EffectSound m_CrashSoundLight
private

◆ m_dmgContactCoef

protected float m_dmgContactCoef = 0.058
private

◆ m_DrownEnginePoint

string m_DrownEnginePoint = "drown_engine"
staticprivate

◆ m_DrownEnginePos

vector m_DrownEnginePos
staticprivate

◆ m_DrownTime

protected float m_DrownTime
private

◆ m_EngineDestroyed

protected bool m_EngineDestroyed
private

◆ m_engineFx

protected ref EffVehicleSmoke m_engineFx
private

◆ m_EngineHealth

protected float m_EngineHealth
private

◆ m_enginePos

protected vector m_enginePos
private

◆ m_enginePtcFx

protected int m_enginePtcFx
private

◆ m_enginePtcPos

protected vector m_enginePtcPos
private

◆ m_EngineStartBattery

string m_EngineStartBattery = ""
private

◆ m_EngineStarted

protected bool m_EngineStarted
private

◆ m_EngineStartFuel

string m_EngineStartFuel = ""
private

◆ m_EngineStartOK

string m_EngineStartOK = ""
private

Sounds.

◆ m_EngineStartPlug

string m_EngineStartPlug = ""
private

◆ m_EngineStop

string m_EngineStop = ""
private

◆ m_EngineStopFuel

string m_EngineStopFuel = ""
private

◆ m_EnviroHeatComfortOverride

protected float m_EnviroHeatComfortOverride
private

◆ m_exhaustFx

protected ref EffVehicleSmoke m_exhaustFx
private

◆ m_exhaustPtcDir

protected vector m_exhaustPtcDir
private

◆ m_exhaustPtcFx

protected int m_exhaustPtcFx
private

◆ m_exhaustPtcPos

protected vector m_exhaustPtcPos
private

◆ m_ForceUpdateLights

protected bool m_ForceUpdateLights
private

◆ m_frontPos

protected vector m_frontPos
private

◆ m_FuelAmmount

protected float m_FuelAmmount
private

keeps ammount of each fluid

◆ m_FuelTankHealth

protected float m_FuelTankHealth
private

◆ m_Headlight

CarLightBase m_Headlight
private

◆ m_HeadlightsOn

protected bool m_HeadlightsOn
private

◆ m_HeadlightsState

protected bool m_HeadlightsState
private

◆ m_InputActionMap

TInputActionMap m_InputActionMap
private

◆ m_LeftHeadlightPoint

string m_LeftHeadlightPoint = "light_left"
staticprivate

◆ m_LeftHeadlightTargetPoint

string m_LeftHeadlightTargetPoint = "light_left_dir"
staticprivate

◆ m_MomentumPrevTick

protected float m_MomentumPrevTick
private

◆ m_NoisePar

protected ref NoiseParams m_NoisePar
private

◆ m_NoiseSystem

protected NoiseSystem m_NoiseSystem
private

◆ m_OilAmmount

protected float m_OilAmmount
private

◆ m_PlayCrashSoundHeavy

protected bool m_PlayCrashSoundHeavy
private

◆ m_PlayCrashSoundLight

protected bool m_PlayCrashSoundLight
private

◆ m_PlugHealth

protected float m_PlugHealth
private

◆ m_PreStartSound

private ref EffectSound m_PreStartSound
private

◆ m_Radiator

protected EntityAI m_Radiator
private

◆ m_RadiatorHealth

protected float m_RadiatorHealth
private

◆ m_RearLight

CarRearLightBase m_RearLight
private

◆ m_RearLightType

protected bool m_RearLightType
private

◆ m_ReverseLightPoint

string m_ReverseLightPoint = "light_reverse"
staticprivate

◆ m_RightHeadlightPoint

string m_RightHeadlightPoint = "light_right"
staticprivate

◆ m_RightHeadlightTargetPoint

string m_RightHeadlightTargetPoint = "light_right_dir"
staticprivate

◆ m_side_1_1Pos

protected vector m_side_1_1Pos
private

◆ m_side_1_2Pos

protected vector m_side_1_2Pos
private

◆ m_side_2_1Pos

protected vector m_side_2_1Pos
private

◆ m_side_2_2Pos

protected vector m_side_2_2Pos
private

◆ m_Time

protected float m_Time
private

◆ m_VelocityPrevTick

protected vector m_VelocityPrevTick
private

◆ m_WheelSmokeFx

protected ref array<ref EffWheelSmoke> m_WheelSmokeFx
private

◆ m_WheelSmokePtcFx

protected ref array<int> m_WheelSmokePtcFx
private

◆ m_WindowLarge

ref EffectSound m_WindowLarge
private

◆ m_WindowSmall

ref EffectSound m_WindowSmall
private

◆ MEMORY_POINT_NAME_CAR_HORN

const string MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
staticprivate

◆ SELECTION_ID_BRAKE_LIGHT_L

const int SELECTION_ID_BRAKE_LIGHT_L = 2
staticprivate

◆ SELECTION_ID_BRAKE_LIGHT_R

const int SELECTION_ID_BRAKE_LIGHT_R = 3
staticprivate

◆ SELECTION_ID_DASHBOARD_LIGHT

const int SELECTION_ID_DASHBOARD_LIGHT = 8
staticprivate

◆ SELECTION_ID_FRONT_LIGHT_L

const int SELECTION_ID_FRONT_LIGHT_L = 0
staticprivate

◆ SELECTION_ID_FRONT_LIGHT_R

const int SELECTION_ID_FRONT_LIGHT_R = 1
staticprivate

◆ SELECTION_ID_REVERSE_LIGHT_L

const int SELECTION_ID_REVERSE_LIGHT_L = 4
staticprivate

◆ SELECTION_ID_REVERSE_LIGHT_R

const int SELECTION_ID_REVERSE_LIGHT_R = 5
staticprivate

◆ SELECTION_ID_TAIL_LIGHT_L

const int SELECTION_ID_TAIL_LIGHT_L = 6
staticprivate

◆ SELECTION_ID_TAIL_LIGHT_R

const int SELECTION_ID_TAIL_LIGHT_R = 7
staticprivate

The documentation for this class was generated from the following file: