Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
Car Class Reference

Base script class for cars. More...

Protected Member Functions

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

Protected Attributes

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

Static Protected Attributes

static float DROWN_ENGINE_DAMAGE = 350.0
static float DROWN_ENGINE_THRESHOLD = 0.5
static string m_DrownEnginePoint = "drown_engine"
static vector m_DrownEnginePos
static string m_LeftHeadlightPoint = "light_left"
static string m_LeftHeadlightTargetPoint = "light_left_dir"
static string m_ReverseLightPoint = "light_reverse"
static string m_RightHeadlightPoint = "light_right"
static string m_RightHeadlightTargetPoint = "light_right_dir"
static const string MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
static const int SELECTION_ID_BRAKE_LIGHT_L = 2
static const int SELECTION_ID_BRAKE_LIGHT_R = 3
static const int SELECTION_ID_DASHBOARD_LIGHT = 8
static const int SELECTION_ID_FRONT_LIGHT_L = 0
static const int SELECTION_ID_FRONT_LIGHT_R = 1
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

Private Attributes

const float BATTERY_UPDATE_DELAY = 100
bool m_ActionsInitialize
float m_BatteryTimer = 0
TInputActionMap m_InputActionMap
ref EffectSound m_PreStartSound

Static Private Attributes

static ref map< typename, ref TInputActionMapm_CarTypeActionsMap = new map<typename, ref TInputActionMap>

Detailed Description

Base script class for cars.

Definition at line 170 of file carscript.c.

Constructor & Destructor Documentation

◆ ~CarScript()

void ~CarScript ( )
inlineprotected

Definition at line 546 of file carscript.c.

References CleanupEffects().

Member Function Documentation

◆ AddAction()

◆ BrakeAndReverseRearLight()

void BrakeAndReverseRearLight ( )
inlineprotected

Definition at line 2349 of file carscript.c.

References m_RearLight.

Referenced by UpdateLightsClient().

◆ BrakeLightsShineOff()

void BrakeLightsShineOff ( )
inlineprotected

Definition at line 2434 of file carscript.c.

References SELECTION_ID_BRAKE_LIGHT_L, and SELECTION_ID_BRAKE_LIGHT_R.

Referenced by UpdateLightsServer().

◆ BrakeLightsShineOn()

void BrakeLightsShineOn ( )
inlineprotected

Definition at line 2423 of file carscript.c.

References SELECTION_ID_BRAKE_LIGHT_L, and SELECTION_ID_BRAKE_LIGHT_R.

Referenced by UpdateLightsServer().

◆ BrakesRearLight()

void BrakesRearLight ( )
inlineprotected

Definition at line 2339 of file carscript.c.

References m_RearLight.

Referenced by UpdateLightsClient().

◆ CanManipulateSpareWheel()

bool CanManipulateSpareWheel ( string slotSelectionName)
inlineprotected

Definition at line 943 of file carscript.c.

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI parent)
inlineprotected

Definition at line 2843 of file carscript.c.

◆ CanReachSeatFromDoors()

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

skip the height for now

Definition at line 2710 of file carscript.c.

References vector::Distance(), CarScript::GetDoorConditionPointFromSelection(), and string::Length().

◆ CanReceiveAttachment()

override bool CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprotected

◆ CanReleaseAttachment()

override bool CanReleaseAttachment ( EntityAI attachment)
inlineprotected

◆ CarPartsHealthCheck()

void CarPartsHealthCheck ( )
inlineprotected

Definition at line 2559 of file carscript.c.

References GetRadiator(), HasRadiator(), m_EngineHealth, m_FuelTankHealth, and m_RadiatorHealth.

Referenced by EOnPostSimulate().

◆ CarScript()

◆ CheckContactCache()

◆ CheckOperationalRequirements()

◆ CheckOperationalState()

bool CheckOperationalState ( )
inlineprotected

Definition at line 2021 of file carscript.c.

References CheckOperationalRequirements().

◆ CheckVitalItem() [1/2]

void CheckVitalItem ( bool isVital,
int slotId )
inlineprotected

Definition at line 2513 of file carscript.c.

References GameInventory::FindAttachment().

Referenced by CheckVitalItem(), and EOnPostSimulate().

◆ CheckVitalItem() [2/2]

void CheckVitalItem ( bool isVital,
string slot_name )
inlineprotected

Definition at line 2527 of file carscript.c.

References CheckVitalItem(), and InventorySlots::GetSlotIdFromString().

◆ CleanupEffects()

◆ CleanupSound()

void CleanupSound ( EffectSound sound)
inlineprotected

Definition at line 584 of file carscript.c.

References SEffectManager::DestroyEffect().

Referenced by CleanupEffects(), and HandleCarHornSound().

◆ CreateCarDestroyedEffect()

void CreateCarDestroyedEffect ( )
inlineprotected

◆ CreateFrontLight()

CarLightBase CreateFrontLight ( )
inlineprotected

Definition at line 2508 of file carscript.c.

◆ CreateRearLight()

CarRearLightBase CreateRearLight ( )
inlineprotected

Definition at line 2502 of file carscript.c.

◆ CreateSoundForAnimationSource()

◆ DamageCrew()

void DamageCrew ( float dmg)
inlineprotected

◆ DashboardShineOff()

void DashboardShineOff ( )
inlineprotected

Definition at line 2491 of file carscript.c.

References SELECTION_ID_DASHBOARD_LIGHT.

Referenced by UpdateLightsServer().

◆ DashboardShineOn()

void DashboardShineOn ( )
inlineprotected

Definition at line 2481 of file carscript.c.

References SELECTION_ID_DASHBOARD_LIGHT.

Referenced by UpdateLightsServer().

◆ DetectFlipped()

override bool DetectFlipped ( VehicleFlippedContext ctx)
inlineprotected

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprotected

Definition at line 539 of file carscript.c.

References CleanupEffects().

◆ EEHealthLevelChanged()

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

◆ EEHitBy()

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

◆ EEInit()

override void EEInit ( )
inlineprotected

Definition at line 441 of file carscript.c.

References g_Game, GetType(), m_NoisePar, m_NoiseSystem, and NoiseParams().

◆ EEItemAttached()

override void EEItemAttached ( EntityAI item,
string slot_name )
inlineprotected

◆ EEItemDetached()

override void EEItemDetached ( EntityAI item,
string slot_name )
inlineprotected

◆ EEKilled()

override void EEKilled ( Object killer)
inlineprotected

Definition at line 1447 of file carscript.c.

References m_EngineDestroyed.

◆ EEOnCECreate()

override void EEOnCECreate ( )
inlineprotected

Definition at line 2967 of file carscript.c.

References Math::RandomFloat().

◆ EOnPostSimulate()

◆ FillUpCarFluids()

void FillUpCarFluids ( )
inlineprotected

Definition at line 3191 of file carscript.c.

◆ ForceUpdateLightsEnd()

void ForceUpdateLightsEnd ( )
inlineprotected

Definition at line 2990 of file carscript.c.

References m_ForceUpdateLights.

Referenced by EEHitBy().

◆ ForceUpdateLightsStart()

void ForceUpdateLightsStart ( )
inlineprotected

Definition at line 2981 of file carscript.c.

References m_ForceUpdateLights.

Referenced by EEHitBy().

◆ GenerateCarHornAINoise()

void GenerateCarHornAINoise ( int pState)
inlineprotected

◆ Get3rdPersonCameraType()

override int Get3rdPersonCameraType ( )
inlineprotected

camera type

Definition at line 2785 of file carscript.c.

References DayZPlayerCameras::DAYZCAMERA_3RD_VEHICLE.

◆ Get_1_1PointPosWS()

vector Get_1_1PointPosWS ( )
inlineprotected

Definition at line 508 of file carscript.c.

References m_side_1_1Pos.

◆ Get_1_2PointPosWS()

vector Get_1_2PointPosWS ( )
inlineprotected

Definition at line 512 of file carscript.c.

References m_side_1_2Pos.

◆ Get_2_1PointPosWS()

vector Get_2_1PointPosWS ( )
inlineprotected

Definition at line 516 of file carscript.c.

References m_side_2_1Pos.

◆ Get_2_2PointPosWS()

vector Get_2_2PointPosWS ( )
inlineprotected

Definition at line 520 of file carscript.c.

References m_side_2_2Pos.

◆ GetActionCompNameBrakes()

string GetActionCompNameBrakes ( )
inlineprotected

Definition at line 2833 of file carscript.c.

◆ GetActionCompNameCoolant()

string GetActionCompNameCoolant ( )
inlineprotected

Definition at line 2813 of file carscript.c.

◆ GetActionCompNameOil()

string GetActionCompNameOil ( )
inlineprotected

Definition at line 2823 of file carscript.c.

◆ GetActionDistanceBrakes()

float GetActionDistanceBrakes ( )
inlineprotected

Definition at line 2838 of file carscript.c.

◆ GetActionDistanceCoolant()

float GetActionDistanceCoolant ( )
inlineprotected

Definition at line 2818 of file carscript.c.

◆ GetActionDistanceOil()

float GetActionDistanceOil ( )
inlineprotected

Definition at line 2828 of file carscript.c.

◆ GetActions()

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

Definition at line 2860 of file carscript.c.

References InitializeActions(), m_ActionsInitialize, and m_InputActionMap.

◆ GetAnimSourceFromSelection()

string GetAnimSourceFromSelection ( string selection)
inlineprotected

Definition at line 2646 of file carscript.c.

◆ GetBackPointPosWS()

vector GetBackPointPosWS ( )
inlineprotected

Definition at line 504 of file carscript.c.

References m_backPos.

◆ GetBattery()

◆ GetBatteryConsumption()

float GetBatteryConsumption ( )
inlineprotected

Definition at line 3000 of file carscript.c.

References m_BatteryConsume.

Referenced by CheckOperationalRequirements(), and OnEngineStart().

◆ GetBatteryRechargeRate()

float GetBatteryRechargeRate ( )
inlineprotected

Definition at line 3010 of file carscript.c.

References m_BatteryRecharge.

Referenced by UpdateBattery().

◆ GetBatteryRuntimeConsumption()

float GetBatteryRuntimeConsumption ( )
inlineprotected

Definition at line 3005 of file carscript.c.

References m_BatteryContinuousConsume.

Referenced by UpdateBattery().

◆ GetCarDoorsState()

int GetCarDoorsState ( string slotType)
inlineprotected

Definition at line 2796 of file carscript.c.

◆ GetCoolantPtcPosWS()

vector GetCoolantPtcPosWS ( )
inlineprotected

Definition at line 491 of file carscript.c.

References m_coolantPtcPos.

◆ GetCrashHeavySound()

bool GetCrashHeavySound ( )
inlineprotected

Definition at line 2598 of file carscript.c.

References m_PlayCrashSoundHeavy.

Referenced by OnVariablesSynchronized().

◆ GetCrashLightSound()

bool GetCrashLightSound ( )
inlineprotected

Definition at line 2579 of file carscript.c.

References m_PlayCrashSoundLight.

Referenced by OnVariablesSynchronized().

◆ GetCrewIndex()

int GetCrewIndex ( string selection)
inlineprotected

Definition at line 2705 of file carscript.c.

◆ GetDebugActions()

override void GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
inlineprotected

Definition at line 589 of file carscript.c.

References name, and SAT_DEBUG_ACTION.

◆ GetDefaultHitPosition()

override vector GetDefaultHitPosition ( )
inlineprotected

Definition at line 3096 of file carscript.c.

References vector::Zero.

◆ GetDoorConditionPointFromSelection()

string GetDoorConditionPointFromSelection ( string selection)
inlineprotected

Definition at line 2674 of file carscript.c.

◆ GetDoorInvSlotNameFromSeatPos()

string GetDoorInvSlotNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 2700 of file carscript.c.

◆ GetDoorSelectionNameFromSeatPos()

string GetDoorSelectionNameFromSeatPos ( int posIdx)
inlineprotected

Definition at line 2695 of file carscript.c.

◆ GetEnginePointPosWS()

vector GetEnginePointPosWS ( )
inlineprotected

Definition at line 496 of file carscript.c.

References m_enginePos.

◆ GetEnginePosWS()

vector GetEnginePosWS ( )
inlineprotected

Definition at line 486 of file carscript.c.

References m_DrownEnginePos.

Referenced by CreateCarDestroyedEffect(), and OnUpdate().

◆ GetEnviroHeatComfortOverride()

float GetEnviroHeatComfortOverride ( )
protected

◆ GetFrontPointPosWS()

vector GetFrontPointPosWS ( )
inlineprotected

Definition at line 500 of file carscript.c.

References m_frontPos.

◆ GetLiquidThroughputCoef()

override float GetLiquidThroughputCoef ( )
inlineprotected

Definition at line 525 of file carscript.c.

References LIQUID_THROUGHPUT_CAR_DEFAULT.

Referenced by CAContinuousFillCoolant::Setup().

◆ GetMoveType()

override event GetMoveType ( )
inlineprotected

Definition at line 3203 of file carscript.c.

◆ GetOwnerStateType()

override event GetOwnerStateType ( )
inlineprotected

Definition at line 3198 of file carscript.c.

◆ GetPushForceCoefficientMultiplier()

float GetPushForceCoefficientMultiplier ( )
inlineprotected

Definition at line 3101 of file carscript.c.

◆ GetRadiator()

EntityAI GetRadiator ( )
inlineprotected

Definition at line 2769 of file carscript.c.

References m_Radiator.

Referenced by CarPartsHealthCheck().

◆ GetSelectionFromAnimSource()

string GetSelectionFromAnimSource ( string animSource)
inlineprotected

◆ GetVehicleType()

override string GetVehicleType ( )
inlineprotected

Definition at line 481 of file carscript.c.

◆ HandleCarHornSound()

void HandleCarHornSound ( ECarHornState pState)
inlineprotected

◆ HandleDoorsSound()

void HandleDoorsSound ( string animSource,
float phase )
inlineprotected

◆ HandleEngineSound()

◆ HandleSeatAdjustmentSound()

void HandleSeatAdjustmentSound ( string animSource,
float phase )
inlineprotected

◆ HasRadiator()

bool HasRadiator ( )
inlineprotected

Definition at line 2764 of file carscript.c.

References m_Radiator.

Referenced by CarPartsHealthCheck().

◆ InitializeActions()

void InitializeActions ( )
inlineprotected

Definition at line 2848 of file carscript.c.

References m_CarTypeActionsMap, m_InputActionMap, CarScript::SetActions(), and Type.

◆ IsHandbrakeActive()

bool IsHandbrakeActive ( )
inlineprotected

Definition at line 2779 of file carscript.c.

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprotected

Definition at line 2926 of file carscript.c.

References g_Game.

◆ IsMoving()

bool IsMoving ( )
inlineprotected

Definition at line 2774 of file carscript.c.

Referenced by CanReleaseAttachment().

◆ IsScriptedLightsOn()

bool IsScriptedLightsOn ( )
inlineprotected

Proper way to get if light is swiched on.

Definition at line 2070 of file carscript.c.

Referenced by EEItemDetached(), and UpdateBattery().

◆ IsServerOrOwner()

bool IsServerOrOwner ( )
inlineprotected

Definition at line 3222 of file carscript.c.

References g_Game, and IsOwner().

Referenced by EEItemDetached(), and EOnPostSimulate().

◆ IsVitalCarBattery()

bool IsVitalCarBattery ( )
inlineprotected

Definition at line 2734 of file carscript.c.

◆ IsVitalEngineBelt()

bool IsVitalEngineBelt ( )
inlineprotected

Definition at line 2749 of file carscript.c.

◆ IsVitalFuelTank()

bool IsVitalFuelTank ( )
inlineprotected

Definition at line 2759 of file carscript.c.

Referenced by EOnPostSimulate().

◆ IsVitalGlowPlug()

bool IsVitalGlowPlug ( )
inlineprotected

Definition at line 2744 of file carscript.c.

◆ IsVitalRadiator()

bool IsVitalRadiator ( )
inlineprotected

Definition at line 2754 of file carscript.c.

◆ IsVitalTruckBattery()

bool IsVitalTruckBattery ( )
inlineprotected

Definition at line 2739 of file carscript.c.

◆ LeakFluid()

void LeakFluid ( CarFluid fluid)
inlineprotected

Definition at line 2536 of file carscript.c.

References m_EngineHealth, m_FuelTankHealth, and m_RadiatorHealth.

Referenced by EOnPostSimulate().

◆ LeftFrontLightShineOff()

void LeftFrontLightShineOff ( )
inlineprotected

Definition at line 2381 of file carscript.c.

References SELECTION_ID_FRONT_LIGHT_L.

Referenced by UpdateLightsServer().

◆ LeftFrontLightShineOn()

void LeftFrontLightShineOn ( )
inlineprotected

Definition at line 2361 of file carscript.c.

References SELECTION_ID_FRONT_LIGHT_L.

Referenced by UpdateLightsServer().

◆ MarkCrewMemberDead()

override void MarkCrewMemberDead ( int crewMemberIndex)
inlineprotected

Definition at line 1897 of file carscript.c.

◆ MarkCrewMemberUnconscious()

override void MarkCrewMemberUnconscious ( int crewMemberIndex)
inlineprotected

Definition at line 1886 of file carscript.c.

◆ NoRearLight()

void NoRearLight ( )
inlineprotected

Definition at line 2355 of file carscript.c.

References m_RearLight.

Referenced by UpdateLightsClient().

◆ ObtainState()

override event void ObtainState ( PawnOwnerState pState)
inlineprotected

Definition at line 3208 of file carscript.c.

References m_Time.

◆ OnAction()

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

Definition at line 636 of file carscript.c.

References dBodyActive(), g_Game, and SetCarHornState().

◆ OnAnimationPhaseStarted()

override void OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected

Definition at line 1669 of file carscript.c.

References HandleDoorsSound(), and HandleSeatAdjustmentSound().

◆ OnAttachmentRuined()

override void OnAttachmentRuined ( EntityAI attachment)
inlineprotected

Definition at line 874 of file carscript.c.

References UpdateHeadlightState(), and UpdateLights().

◆ OnBeforeEngineStart()

override bool OnBeforeEngineStart ( )
inlineprotected

Gets called everytime the game wants to start the engine.

Returns
true if the engine can start, false otherwise.

Definition at line 1941 of file carscript.c.

References CheckOperationalRequirements(), and SetCarEngineSoundState().

◆ OnBeforeLightOn()

override bool OnBeforeLightOn ( )
inlineprotected

Definition at line 2075 of file carscript.c.

References GetBattery().

◆ OnBeforeSwitchLights()

bool OnBeforeSwitchLights ( bool toOn)
inlineprotected

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

Returns
true when lights can be switched, false otherwise.

Definition at line 3243 of file carscript.c.

◆ OnBrakesPressed()

void OnBrakesPressed ( )
inlineprotected

Definition at line 1197 of file carscript.c.

References UpdateLights().

Referenced by OnUpdate().

◆ OnBrakesReleased()

void OnBrakesReleased ( )
inlineprotected

Definition at line 1202 of file carscript.c.

References UpdateLights().

Referenced by OnUpdate().

◆ OnContact()

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

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

Definition at line 1454 of file carscript.c.

References vector::Dot(), g_Game, GetVelocity(), Contact::Impulse, Debug::Log(), m_ContactCache, m_MomentumPrevTick, and m_VelocityPrevTick.

◆ OnDriverExit()

override void OnDriverExit ( Human player)
inlineprotected

Definition at line 1207 of file carscript.c.

◆ OnEngineStart()

override void OnEngineStart ( )
inlineprotected

Gets called everytime the engine starts.

Definition at line 2033 of file carscript.c.

References g_Game, GetBattery(), GetBatteryConsumption(), HandleEngineSound(), UpdateBattery(), and UpdateLights().

◆ OnEngineStop()

override void OnEngineStop ( )
inlineprotected

Gets called everytime the engine stops.

Definition at line 2050 of file carscript.c.

References g_Game, GetBattery(), HandleEngineSound(), UpdateBattery(), and UpdateLights().

◆ OnFluidChanged()

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

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.

Definition at line 1914 of file carscript.c.

References m_BrakeAmmount, m_CoolantAmmount, m_FuelAmmount, and m_OilAmmount.

◆ OnGearChanged()

override void OnGearChanged ( int newGear,
int oldGear )
inlineprotected

Definition at line 2026 of file carscript.c.

References UpdateLights().

◆ OnIgnition()

void OnIgnition ( )
inlineprotected

Definition at line 1949 of file carscript.c.

References CheckOperationalRequirements(), and HandleEngineSound().

◆ OnInput()

override void OnInput ( float dt)
inlineprotected

Definition at line 1303 of file carscript.c.

References Math::AbsFloat(), Math::Clamp(), and Math::InverseLerp().

◆ OnSound()

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

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.

Definition at line 1654 of file carscript.c.

References m_EngineStarted.

◆ OnUpdate()

◆ OnVariablesSynchronized()

◆ OnVehicleJumpOutServer()

◆ PlayCrashHeavySound()

void PlayCrashHeavySound ( )
inlineprotected

Definition at line 2612 of file carscript.c.

References m_CrashSoundHeavy, m_PlayCrashSoundHeavy, and PlaySoundEx().

Referenced by OnVariablesSynchronized().

◆ PlayCrashLightSound()

void PlayCrashLightSound ( )
inlineprotected

Definition at line 2593 of file carscript.c.

References m_CrashSoundLight, m_PlayCrashSoundLight, and PlaySoundEx().

Referenced by OnVariablesSynchronized().

◆ PlaySound()

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

Definition at line 2641 of file carscript.c.

References PlaySoundEx().

◆ PlaySoundEx()

◆ RemoveAction()

void RemoveAction ( typename actionName )
inlineprotected

Definition at line 2913 of file carscript.c.

References g_Game, ActionBase::GetInputType(), and m_InputActionMap.

◆ ReverseLightsShineOff()

void ReverseLightsShineOff ( )
inlineprotected

Definition at line 2412 of file carscript.c.

References SELECTION_ID_REVERSE_LIGHT_L, and SELECTION_ID_REVERSE_LIGHT_R.

Referenced by UpdateLightsServer().

◆ ReverseLightsShineOn()

void ReverseLightsShineOn ( )
inlineprotected

Definition at line 2401 of file carscript.c.

References SELECTION_ID_REVERSE_LIGHT_L, and SELECTION_ID_REVERSE_LIGHT_R.

Referenced by UpdateLightsServer().

◆ ReverseRearLight()

void ReverseRearLight ( )
inlineprotected

Definition at line 2344 of file carscript.c.

References m_RearLight.

Referenced by UpdateLightsClient().

◆ RewindState()

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

Definition at line 3214 of file carscript.c.

References m_Time.

◆ RightFrontLightShineOff()

void RightFrontLightShineOff ( )
inlineprotected

Definition at line 2391 of file carscript.c.

References SELECTION_ID_FRONT_LIGHT_R.

Referenced by UpdateLightsServer().

◆ RightFrontLightShineOn()

void RightFrontLightShineOn ( )
inlineprotected

Definition at line 2371 of file carscript.c.

References SELECTION_ID_FRONT_LIGHT_R.

Referenced by UpdateLightsServer().

◆ SetActions()

void SetActions ( )
inlineprotected

Definition at line 2871 of file carscript.c.

References ActionCarHornShort(), ActionPushCar(), and AddAction().

◆ SetCarEngineSoundState()

void SetCarEngineSoundState ( CarEngineSoundState pState)
inlineprotected

Definition at line 1784 of file carscript.c.

References m_CarEngineSoundState.

Referenced by HandleEngineSound(), and OnBeforeEngineStart().

◆ SetCarHornState()

void SetCarHornState ( int pState)
inlineprotected

Definition at line 3068 of file carscript.c.

References g_Game, GenerateCarHornAINoise(), and m_CarHornState.

Referenced by OnAction().

◆ SetEngineStarted()

void SetEngineStarted ( bool started)
inlineprotected

Definition at line 2791 of file carscript.c.

References m_EngineStarted.

Referenced by HandleEngineSound().

◆ SpawnAdditionalItems()

void SpawnAdditionalItems ( )
inlineprotected

Definition at line 3160 of file carscript.c.

References Class::CastTo(), GameInventory::CreateInInventory(), and LIQUID_WATER.

◆ SpawnUniversalParts()

◆ SynchCrashHeavySound()

void SynchCrashHeavySound ( bool play)
inlineprotected

Definition at line 2603 of file carscript.c.

References m_PlayCrashSoundHeavy.

Referenced by CheckContactCache().

◆ SynchCrashLightSound()

void SynchCrashLightSound ( bool play)
inlineprotected

Definition at line 2584 of file carscript.c.

References m_PlayCrashSoundLight.

Referenced by CheckContactCache().

◆ TailLightsShineOff()

void TailLightsShineOff ( )
inlineprotected

Definition at line 2470 of file carscript.c.

References SELECTION_ID_TAIL_LIGHT_L, and SELECTION_ID_TAIL_LIGHT_R.

Referenced by UpdateLightsServer().

◆ TailLightsShineOn()

void TailLightsShineOn ( )
inlineprotected

Definition at line 2445 of file carscript.c.

References m_HeadlightsState, SELECTION_ID_TAIL_LIGHT_L, and SELECTION_ID_TAIL_LIGHT_R.

Referenced by UpdateLightsServer().

◆ ToggleHeadlights()

void ToggleHeadlights ( )
inlineprotected

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

Definition at line 2088 of file carscript.c.

Referenced by EEItemDetached(), and UpdateBattery().

◆ TranslateAnimationPhaseToCarDoorState()

CarDoorState TranslateAnimationPhaseToCarDoorState ( string animation)
inlineprotected

Definition at line 2801 of file carscript.c.

◆ UpdateBattery()

void UpdateBattery ( ItemBase battery)
inlineprotected

◆ UpdateHeadlightState()

void UpdateHeadlightState ( )
inlineprotected

Definition at line 792 of file carscript.c.

References m_HeadlightsState.

Referenced by CheckContactCache(), EEItemAttached(), EEItemDetached(), and OnAttachmentRuined().

◆ UpdateLights()

◆ UpdateLightsClient()

◆ UpdateLightsServer()

Field Documentation

◆ BATTERY_UPDATE_DELAY

const float BATTERY_UPDATE_DELAY = 100
private

Definition at line 218 of file carscript.c.

Referenced by OnUpdate().

◆ DROWN_ENGINE_DAMAGE

float DROWN_ENGINE_DAMAGE = 350.0
staticprotected

Definition at line 186 of file carscript.c.

Referenced by OnUpdate().

◆ DROWN_ENGINE_THRESHOLD

float DROWN_ENGINE_THRESHOLD = 0.5
staticprotected

Definition at line 185 of file carscript.c.

Referenced by OnUpdate().

◆ m_ActionsInitialize

bool m_ActionsInitialize
private

Definition at line 178 of file carscript.c.

Referenced by AddAction(), and GetActions().

◆ m_backPos

vector m_backPos
protected

Definition at line 236 of file carscript.c.

Referenced by CarScript(), and GetBackPointPosWS().

◆ m_BatteryConsume

float m_BatteryConsume = 15
protected

Definition at line 214 of file carscript.c.

Referenced by GetBatteryConsumption().

◆ m_BatteryContinuousConsume

float m_BatteryContinuousConsume = 0.25
protected

Definition at line 215 of file carscript.c.

Referenced by GetBatteryRuntimeConsumption().

◆ m_BatteryEnergyStartMin

float m_BatteryEnergyStartMin = 5.0
protected

DEPRECATED.

Definition at line 3234 of file carscript.c.

◆ m_BatteryHealth

float m_BatteryHealth
protected

Definition at line 209 of file carscript.c.

Referenced by CarScript(), EEItemAttached(), and EEItemDetached().

◆ m_BatteryRecharge

float m_BatteryRecharge = 0.15
protected

Definition at line 216 of file carscript.c.

Referenced by GetBatteryRechargeRate().

◆ m_BatteryTimer

float m_BatteryTimer = 0
private

Definition at line 217 of file carscript.c.

Referenced by OnUpdate(), and UpdateBattery().

◆ m_BrakeAmmount

float m_BrakeAmmount
protected

Definition at line 194 of file carscript.c.

Referenced by OnFluidChanged().

◆ m_BrakesArePressed

bool m_BrakesArePressed
protected

Definition at line 3236 of file carscript.c.

Referenced by OnUpdate(), UpdateLightsClient(), and UpdateLightsServer().

◆ m_CarDoorCloseSound

string m_CarDoorCloseSound = ""
protected

Definition at line 251 of file carscript.c.

Referenced by HandleDoorsSound().

◆ m_CarDoorOpenSound

string m_CarDoorOpenSound = ""
protected

Definition at line 250 of file carscript.c.

Referenced by HandleDoorsSound().

◆ m_CarEngineLastSoundState

int m_CarEngineLastSoundState
protected

Definition at line 307 of file carscript.c.

Referenced by HandleEngineSound(), and OnVariablesSynchronized().

◆ m_CarEngineSoundState

int m_CarEngineSoundState
protected

Definition at line 306 of file carscript.c.

Referenced by CarScript(), OnVariablesSynchronized(), and SetCarEngineSoundState().

◆ m_CarHornLongSoundName

string m_CarHornLongSoundName = ""
protected

Definition at line 256 of file carscript.c.

Referenced by HandleCarHornSound().

◆ m_CarHornShortSoundName

string m_CarHornShortSoundName = ""
protected

Definition at line 255 of file carscript.c.

Referenced by HandleCarHornSound().

◆ m_CarHornSoundEffect

ref EffectSound m_CarHornSoundEffect
protected

Definition at line 264 of file carscript.c.

Referenced by CleanupEffects(), and HandleCarHornSound().

◆ m_CarHornState

int m_CarHornState
protected

Definition at line 278 of file carscript.c.

Referenced by CarScript(), OnVariablesSynchronized(), and SetCarHornState().

◆ m_CarSeatShiftInSound

string m_CarSeatShiftInSound = ""
protected

Definition at line 252 of file carscript.c.

Referenced by HandleSeatAdjustmentSound().

◆ m_CarSeatShiftOutSound

string m_CarSeatShiftOutSound = ""
protected

Definition at line 253 of file carscript.c.

Referenced by HandleSeatAdjustmentSound().

◆ m_CarTypeActionsMap

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

Definition at line 176 of file carscript.c.

Referenced by InitializeActions().

◆ m_ContactCache

ref CarContactCache m_ContactCache
protected

Definition at line 181 of file carscript.c.

Referenced by CarScript(), CheckContactCache(), and OnContact().

◆ m_CoolantAmmount

float m_CoolantAmmount
protected

Definition at line 192 of file carscript.c.

Referenced by OnFluidChanged().

◆ m_coolantFx

ref EffVehicleSmoke m_coolantFx
protected

Particles.

Definition at line 221 of file carscript.c.

Referenced by CleanupEffects(), and EOnPostSimulate().

◆ m_coolantPtcFx

int m_coolantPtcFx
protected

Definition at line 226 of file carscript.c.

Referenced by CarScript(), and EOnPostSimulate().

◆ m_coolantPtcPos

vector m_coolantPtcPos
protected

Definition at line 232 of file carscript.c.

Referenced by CarScript(), EOnPostSimulate(), and GetCoolantPtcPosWS().

◆ m_CrashSoundHeavy

ref EffectSound m_CrashSoundHeavy
protected

Definition at line 259 of file carscript.c.

Referenced by CleanupEffects(), and PlayCrashHeavySound().

◆ m_CrashSoundLight

ref EffectSound m_CrashSoundLight
protected

Definition at line 258 of file carscript.c.

Referenced by CleanupEffects(), and PlayCrashLightSound().

◆ m_dmgContactCoef

float m_dmgContactCoef = 0.058
protected

Definition at line 198 of file carscript.c.

Referenced by CheckContactCache().

◆ m_DrownEnginePoint

string m_DrownEnginePoint = "drown_engine"
staticprotected

Definition at line 289 of file carscript.c.

◆ m_DrownEnginePos

vector m_DrownEnginePos
staticprotected

Definition at line 203 of file carscript.c.

Referenced by CarScript(), and GetEnginePosWS().

◆ m_DrownTime

float m_DrownTime
protected

Definition at line 202 of file carscript.c.

Referenced by OnUpdate().

◆ m_EngineDestroyed

bool m_EngineDestroyed
protected

Definition at line 276 of file carscript.c.

Referenced by EEKilled().

◆ m_engineFx

ref EffVehicleSmoke m_engineFx
protected

Definition at line 222 of file carscript.c.

Referenced by CleanupEffects(), and CreateCarDestroyedEffect().

◆ m_EngineHealth

float m_EngineHealth
protected

Definition at line 206 of file carscript.c.

Referenced by CarPartsHealthCheck(), CarScript(), EOnPostSimulate(), and LeakFluid().

◆ m_enginePos

vector m_enginePos
protected

Definition at line 234 of file carscript.c.

Referenced by CarScript(), and GetEnginePointPosWS().

◆ m_enginePtcFx

int m_enginePtcFx
protected

Definition at line 225 of file carscript.c.

Referenced by CarScript(), and CreateCarDestroyedEffect().

◆ m_enginePtcPos

vector m_enginePtcPos
protected

Definition at line 231 of file carscript.c.

Referenced by CarScript(), and CreateCarDestroyedEffect().

◆ m_EngineStartBattery

string m_EngineStartBattery = ""
protected

Definition at line 244 of file carscript.c.

◆ m_EngineStarted

bool m_EngineStarted
protected

Definition at line 275 of file carscript.c.

Referenced by OnSound(), and SetEngineStarted().

◆ m_EngineStartFuel

string m_EngineStartFuel = ""
protected

Definition at line 246 of file carscript.c.

◆ m_EngineStartOK

string m_EngineStartOK = ""
protected

Sounds.

Definition at line 243 of file carscript.c.

Referenced by HandleEngineSound().

◆ m_EngineStartPlug

string m_EngineStartPlug = ""
protected

Definition at line 245 of file carscript.c.

◆ m_EngineStop

string m_EngineStop = ""
protected

Definition at line 247 of file carscript.c.

Referenced by HandleEngineSound().

◆ m_EngineStopFuel

string m_EngineStopFuel = ""
protected

Definition at line 248 of file carscript.c.

Referenced by HandleEngineSound().

◆ m_EnviroHeatComfortOverride

float m_EnviroHeatComfortOverride
protected

Definition at line 199 of file carscript.c.

Referenced by CarScript().

◆ m_exhaustFx

ref EffVehicleSmoke m_exhaustFx
protected

Definition at line 223 of file carscript.c.

Referenced by CleanupEffects(), and EOnPostSimulate().

◆ m_exhaustPtcDir

vector m_exhaustPtcDir
protected

Definition at line 230 of file carscript.c.

Referenced by CarScript(), and EOnPostSimulate().

◆ m_exhaustPtcFx

int m_exhaustPtcFx
protected

Definition at line 227 of file carscript.c.

Referenced by CarScript(), and EOnPostSimulate().

◆ m_exhaustPtcPos

vector m_exhaustPtcPos
protected

Definition at line 229 of file carscript.c.

Referenced by CarScript(), and EOnPostSimulate().

◆ m_ForceUpdateLights

bool m_ForceUpdateLights
protected

Definition at line 274 of file carscript.c.

Referenced by ForceUpdateLightsEnd(), and ForceUpdateLightsStart().

◆ m_frontPos

vector m_frontPos
protected

Definition at line 235 of file carscript.c.

Referenced by CarScript(), and GetFrontPointPosWS().

◆ m_FuelAmmount

float m_FuelAmmount
protected

keeps ammount of each fluid

Definition at line 191 of file carscript.c.

Referenced by OnFluidChanged().

◆ m_FuelTankHealth

float m_FuelTankHealth
protected

Definition at line 208 of file carscript.c.

Referenced by CarPartsHealthCheck(), CarScript(), EOnPostSimulate(), and LeakFluid().

◆ m_Headlight

CarLightBase m_Headlight
protected

Definition at line 280 of file carscript.c.

Referenced by CleanupEffects(), and UpdateLightsClient().

◆ m_HeadlightsOn

bool m_HeadlightsOn
protected

Definition at line 3235 of file carscript.c.

◆ m_HeadlightsState

int m_HeadlightsState
protected

◆ m_InputActionMap

TInputActionMap m_InputActionMap
private

Definition at line 177 of file carscript.c.

Referenced by AddAction(), GetActions(), InitializeActions(), and RemoveAction().

◆ m_LeftHeadlightPoint

string m_LeftHeadlightPoint = "light_left"
staticprotected

Definition at line 285 of file carscript.c.

Referenced by UpdateLightsClient().

◆ m_LeftHeadlightTargetPoint

string m_LeftHeadlightTargetPoint = "light_left_dir"
staticprotected

Definition at line 287 of file carscript.c.

Referenced by UpdateLightsClient().

◆ m_MomentumPrevTick

float m_MomentumPrevTick
protected

Definition at line 179 of file carscript.c.

Referenced by CheckContactCache(), EOnPostSimulate(), and OnContact().

◆ m_NoisePar

ref NoiseParams m_NoisePar
protected

Definition at line 265 of file carscript.c.

Referenced by EEInit(), and GenerateCarHornAINoise().

◆ m_NoiseSystem

NoiseSystem m_NoiseSystem
protected

Definition at line 266 of file carscript.c.

Referenced by EEInit(), and GenerateCarHornAINoise().

◆ m_OilAmmount

float m_OilAmmount
protected

Definition at line 193 of file carscript.c.

Referenced by OnFluidChanged().

◆ m_PlayCrashSoundHeavy

bool m_PlayCrashSoundHeavy
protected

◆ m_PlayCrashSoundLight

bool m_PlayCrashSoundLight
protected

◆ m_PlugHealth

float m_PlugHealth
protected

Definition at line 210 of file carscript.c.

Referenced by CarScript(), EEItemAttached(), and EEItemDetached().

◆ m_PreStartSound

ref EffectSound m_PreStartSound
private

Definition at line 262 of file carscript.c.

Referenced by HandleEngineSound().

◆ m_Radiator

EntityAI m_Radiator
protected

Definition at line 212 of file carscript.c.

Referenced by EEItemAttached(), EEItemDetached(), GetRadiator(), and HasRadiator().

◆ m_RadiatorHealth

float m_RadiatorHealth
protected

◆ m_RearLight

◆ m_RearLightType

int m_RearLightType
protected

Definition at line 272 of file carscript.c.

Referenced by UpdateLightsClient(), and UpdateLightsServer().

◆ m_ReverseLightPoint

string m_ReverseLightPoint = "light_reverse"
staticprotected

Definition at line 284 of file carscript.c.

Referenced by UpdateLightsClient().

◆ m_RightHeadlightPoint

string m_RightHeadlightPoint = "light_right"
staticprotected

Definition at line 286 of file carscript.c.

Referenced by UpdateLightsClient().

◆ m_RightHeadlightTargetPoint

string m_RightHeadlightTargetPoint = "light_right_dir"
staticprotected

Definition at line 288 of file carscript.c.

Referenced by UpdateLightsClient().

◆ m_side_1_1Pos

vector m_side_1_1Pos
protected

Definition at line 237 of file carscript.c.

Referenced by CarScript(), and Get_1_1PointPosWS().

◆ m_side_1_2Pos

vector m_side_1_2Pos
protected

Definition at line 238 of file carscript.c.

Referenced by CarScript(), and Get_1_2PointPosWS().

◆ m_side_2_1Pos

vector m_side_2_1Pos
protected

Definition at line 239 of file carscript.c.

Referenced by CarScript(), and Get_2_1PointPosWS().

◆ m_side_2_2Pos

vector m_side_2_2Pos
protected

Definition at line 240 of file carscript.c.

Referenced by CarScript(), and Get_2_2PointPosWS().

◆ m_Time

float m_Time
protected

Definition at line 183 of file carscript.c.

Referenced by CarScript(), EOnPostSimulate(), ObtainState(), and RewindState().

◆ m_VelocityPrevTick

vector m_VelocityPrevTick
protected

Definition at line 180 of file carscript.c.

Referenced by CheckContactCache(), EOnPostSimulate(), and OnContact().

◆ m_WheelSmokeFx

ref array<ref EffWheelSmoke> m_WheelSmokeFx
protected

Definition at line 303 of file carscript.c.

Referenced by CarScript(), CleanupEffects(), and EOnPostSimulate().

◆ m_WheelSmokePtcFx

ref array<int> m_WheelSmokePtcFx
protected

Definition at line 304 of file carscript.c.

Referenced by CarScript(), CleanupEffects(), and EOnPostSimulate().

◆ m_WindowLarge

ref EffectSound m_WindowLarge
protected

Definition at line 261 of file carscript.c.

Referenced by CleanupEffects(), and EEHealthLevelChanged().

◆ m_WindowSmall

ref EffectSound m_WindowSmall
protected

Definition at line 260 of file carscript.c.

Referenced by CleanupEffects(), and EEHealthLevelChanged().

◆ MEMORY_POINT_NAME_CAR_HORN

const string MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
staticprotected

Definition at line 188 of file carscript.c.

◆ SELECTION_ID_BRAKE_LIGHT_L

const int SELECTION_ID_BRAKE_LIGHT_L = 2
staticprotected

Definition at line 295 of file carscript.c.

Referenced by BrakeLightsShineOff(), and BrakeLightsShineOn().

◆ SELECTION_ID_BRAKE_LIGHT_R

const int SELECTION_ID_BRAKE_LIGHT_R = 3
staticprotected

Definition at line 296 of file carscript.c.

Referenced by BrakeLightsShineOff(), and BrakeLightsShineOn().

◆ SELECTION_ID_DASHBOARD_LIGHT

const int SELECTION_ID_DASHBOARD_LIGHT = 8
staticprotected

Definition at line 301 of file carscript.c.

Referenced by DashboardShineOff(), and DashboardShineOn().

◆ SELECTION_ID_FRONT_LIGHT_L

const int SELECTION_ID_FRONT_LIGHT_L = 0
staticprotected

Definition at line 293 of file carscript.c.

Referenced by LeftFrontLightShineOff(), and LeftFrontLightShineOn().

◆ SELECTION_ID_FRONT_LIGHT_R

const int SELECTION_ID_FRONT_LIGHT_R = 1
staticprotected

Definition at line 294 of file carscript.c.

Referenced by RightFrontLightShineOff(), and RightFrontLightShineOn().

◆ SELECTION_ID_REVERSE_LIGHT_L

const int SELECTION_ID_REVERSE_LIGHT_L = 4
staticprotected

Definition at line 297 of file carscript.c.

Referenced by ReverseLightsShineOff(), and ReverseLightsShineOn().

◆ SELECTION_ID_REVERSE_LIGHT_R

const int SELECTION_ID_REVERSE_LIGHT_R = 5
staticprotected

Definition at line 298 of file carscript.c.

Referenced by ReverseLightsShineOff(), and ReverseLightsShineOn().

◆ SELECTION_ID_TAIL_LIGHT_L

const int SELECTION_ID_TAIL_LIGHT_L = 6
staticprotected

Definition at line 299 of file carscript.c.

Referenced by TailLightsShineOff(), and TailLightsShineOn().

◆ SELECTION_ID_TAIL_LIGHT_R

const int SELECTION_ID_TAIL_LIGHT_R = 7
staticprotected

Definition at line 300 of file carscript.c.

Referenced by TailLightsShineOff(), and TailLightsShineOn().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/4_world/entities/vehicles/carscript.c