Dayz Explorer 1.29.162510
Loading...
Searching...
No Matches
Car Class Reference

Protected 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)
bool CanManipulateSpareWheel (string slotSelectionName)
override void EOnPostSimulate (IEntity other, float timeSlice)
void OnBrakesPressed ()
void OnBrakesReleased ()
override void OnDriverExit (Human player)
void OnVehicleJumpOutServer (GetOutTransportActionData gotActionData)
override bool DetectFlipped (VehicleFlippedContext ctx)
override void OnInput (float dt)
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)
EffectSound CreateSoundForAnimationSource (string animSource)
void HandleDoorsSound (string animSource, float phase)
void HandleSeatAdjustmentSound (string animSource, float phase)
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.
override bool OnBeforeLightOn ()
void ToggleHeadlights ()
 Switches headlights on/off, including the illumination of the control panel and synchronizes this change to all clients.
override void UpdateLights (int new_gear=-1)
void UpdateLightsClient (int newGear=-1)
void UpdateLightsServer (int newGear=-1)
void BrakesRearLight ()
void ReverseRearLight ()
void BrakeAndReverseRearLight ()
void NoRearLight ()
void LeftFrontLightShineOn ()
void RightFrontLightShineOn ()
void LeftFrontLightShineOff ()
void RightFrontLightShineOff ()
void ReverseLightsShineOn ()
void ReverseLightsShineOff ()
void BrakeLightsShineOn ()
void BrakeLightsShineOff ()
void TailLightsShineOn ()
void TailLightsShineOff ()
void DashboardShineOn ()
void DashboardShineOff ()
CarRearLightBase CreateRearLight ()
CarLightBase CreateFrontLight ()
void CheckVitalItem (bool isVital, int slotId)
void CheckVitalItem (bool isVital, string slot_name)
void LeakFluid (CarFluid fluid)
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 ()
void UpdateBattery (ItemBase battery)
void SetCarHornState (int pState)
void GenerateCarHornAINoise (int pState)
override vector GetDefaultHitPosition ()
float GetPushForceCoefficientMultiplier ()
void SpawnUniversalParts ()
void SpawnAdditionalItems ()
void FillUpCarFluids ()
override event GetOwnerStateType ()
override event GetMoveType ()
override event void ObtainState (PawnOwnerState pState)
override event void RewindState (PawnOwnerState pState, PawnMove pMove, inout NetworkRewindType pRewindType)
bool IsServerOrOwner ()
bool OnBeforeSwitchLights (bool toOn)
float GetEnviroHeatComfortOverride ()

Protected Attributes

float m_MomentumPrevTick
vector m_VelocityPrevTick
ref CarContactCache m_ContactCache
float m_Time
float m_FuelAmmount
 keeps ammount of each fluid
float m_CoolantAmmount
float m_OilAmmount
float m_BrakeAmmount
float m_dmgContactCoef = 0.058
float m_EnviroHeatComfortOverride
float m_DrownTime
float m_EngineHealth
float m_RadiatorHealth
float m_FuelTankHealth
float m_BatteryHealth
float m_PlugHealth
EntityAI m_Radiator
float m_BatteryConsume = 15
float m_BatteryContinuousConsume = 0.25
float m_BatteryRecharge = 0.15
ref EffVehicleSmoke m_coolantFx
 Particles.
ref EffVehicleSmoke m_engineFx
ref EffVehicleSmoke m_exhaustFx
int m_enginePtcFx
int m_coolantPtcFx
int m_exhaustPtcFx
vector m_exhaustPtcPos
vector m_exhaustPtcDir
vector m_enginePtcPos
vector m_coolantPtcPos
vector m_enginePos
vector m_frontPos
vector m_backPos
vector m_side_1_1Pos
vector m_side_1_2Pos
vector m_side_2_1Pos
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
ref EffectSound m_CarHornSoundEffect
ref NoiseParams m_NoisePar
NoiseSystem m_NoiseSystem
bool m_PlayCrashSoundLight
bool m_PlayCrashSoundHeavy
int m_HeadlightsState
int m_RearLightType
bool m_ForceUpdateLights
bool m_EngineStarted
bool m_EngineDestroyed
int m_CarHornState
CarLightBase m_Headlight
CarRearLightBase m_RearLight
ref array< ref EffWheelSmokem_WheelSmokeFx
ref array< intm_WheelSmokePtcFx
int m_CarEngineSoundState
int m_CarEngineLastSoundState
float m_BatteryEnergyStartMin = 5.0
 DEPRECATED.
bool m_HeadlightsOn
bool m_BrakesArePressed

Static Protected Attributes

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

Definition at line 170 of file carscript.c.

Constructor & Destructor Documentation

◆ ~CarScript()

void Car::~CarScript ( )
protected

Definition at line 546 of file carscript.c.

Member Function Documentation

◆ AddAction()

void Car::AddAction ( typename actionName )
protected

Definition at line 2882 of file carscript.c.

◆ BrakeAndReverseRearLight()

void Car::BrakeAndReverseRearLight ( )
protected

Definition at line 2349 of file carscript.c.

◆ BrakeLightsShineOff()

void Car::BrakeLightsShineOff ( )
protected

Definition at line 2434 of file carscript.c.

◆ BrakeLightsShineOn()

void Car::BrakeLightsShineOn ( )
protected

Definition at line 2423 of file carscript.c.

◆ BrakesRearLight()

void Car::BrakesRearLight ( )
protected

Definition at line 2339 of file carscript.c.

◆ CanManipulateSpareWheel()

bool Car::CanManipulateSpareWheel ( string slotSelectionName)
protected

Definition at line 943 of file carscript.c.

◆ CanPutIntoHands()

override bool Car::CanPutIntoHands ( EntityAI parent)
protected

Definition at line 2843 of file carscript.c.

◆ CanReachSeatFromDoors()

override bool Car::CanReachSeatFromDoors ( string pSeatSelection,
vector pFromPos,
float pDistance = 1.0 )
protected

skip the height for now

Definition at line 2710 of file carscript.c.

◆ CanReceiveAttachment()

override bool Car::CanReceiveAttachment ( EntityAI attachment,
int slotId )
protected

Definition at line 882 of file carscript.c.

◆ CanReleaseAttachment()

override bool Car::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 911 of file carscript.c.

◆ CarPartsHealthCheck()

void Car::CarPartsHealthCheck ( )
protected

Definition at line 2559 of file carscript.c.

◆ CarScript()

void Car::CarScript ( )
protected

Definition at line 319 of file carscript.c.

◆ CheckContactCache()

void Car::CheckContactCache ( )
protected

Responsible for damaging the car according to contact events from OnContact.

Definition at line 1483 of file carscript.c.

◆ CheckOperationalRequirements()

int Car::CheckOperationalRequirements ( )
protected

Definition at line 1980 of file carscript.c.

◆ CheckOperationalState()

bool Car::CheckOperationalState ( )
protected

Definition at line 2021 of file carscript.c.

◆ CheckVitalItem() [1/2]

void Car::CheckVitalItem ( bool isVital,
int slotId )
protected

Definition at line 2513 of file carscript.c.

◆ CheckVitalItem() [2/2]

void Car::CheckVitalItem ( bool isVital,
string slot_name )
protected

Definition at line 2527 of file carscript.c.

◆ CleanupEffects()

void Car::CleanupEffects ( )
protected

Definition at line 553 of file carscript.c.

◆ CleanupSound()

void Car::CleanupSound ( EffectSound sound)
protected

Definition at line 584 of file carscript.c.

◆ CreateCarDestroyedEffect()

void Car::CreateCarDestroyedEffect ( )
protected

Definition at line 730 of file carscript.c.

◆ CreateFrontLight()

CarLightBase Car::CreateFrontLight ( )
protected

Definition at line 2508 of file carscript.c.

◆ CreateRearLight()

CarRearLightBase Car::CreateRearLight ( )
protected

Definition at line 2502 of file carscript.c.

◆ CreateSoundForAnimationSource()

EffectSound Car::CreateSoundForAnimationSource ( string animSource)
protected

Definition at line 1677 of file carscript.c.

◆ DamageCrew()

void Car::DamageCrew ( float dmg)
protected

Responsible for damaging crew in a car crash.

Definition at line 1592 of file carscript.c.

◆ DashboardShineOff()

void Car::DashboardShineOff ( )
protected

Definition at line 2491 of file carscript.c.

◆ DashboardShineOn()

void Car::DashboardShineOn ( )
protected

Definition at line 2481 of file carscript.c.

◆ DetectFlipped()

override bool Car::DetectFlipped ( VehicleFlippedContext ctx)
protected

Definition at line 1294 of file carscript.c.

◆ EEDelete()

override void Car::EEDelete ( EntityAI parent)
protected

Definition at line 539 of file carscript.c.

◆ EEHealthLevelChanged()

override void Car::EEHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
protected

Definition at line 2931 of file carscript.c.

◆ EEHitBy()

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

Definition at line 531 of file carscript.c.

◆ EEInit()

override void Car::EEInit ( )
protected

Definition at line 441 of file carscript.c.

◆ EEItemAttached()

override void Car::EEItemAttached ( EntityAI item,
string slot_name )
protected

Definition at line 740 of file carscript.c.

◆ EEItemDetached()

override void Car::EEItemDetached ( EntityAI item,
string slot_name )
protected

Definition at line 815 of file carscript.c.

◆ EEKilled()

override void Car::EEKilled ( Object killer)
protected

Definition at line 1447 of file carscript.c.

◆ EEOnCECreate()

override void Car::EEOnCECreate ( )
protected

Definition at line 2967 of file carscript.c.

◆ EOnPostSimulate()

override void Car::EOnPostSimulate ( IEntity other,
float timeSlice )
protected

actions runned when the engine on

leaking of coolant from radiator when damaged

Definition at line 948 of file carscript.c.

◆ FillUpCarFluids()

void Car::FillUpCarFluids ( )
protected

Definition at line 3191 of file carscript.c.

◆ ForceUpdateLightsEnd()

void Car::ForceUpdateLightsEnd ( )
protected

Definition at line 2990 of file carscript.c.

◆ ForceUpdateLightsStart()

void Car::ForceUpdateLightsStart ( )
protected

Definition at line 2981 of file carscript.c.

◆ GenerateCarHornAINoise()

void Car::GenerateCarHornAINoise ( int pState)
protected

Definition at line 3079 of file carscript.c.

◆ Get3rdPersonCameraType()

override int Car::Get3rdPersonCameraType ( )
protected

camera type

Definition at line 2785 of file carscript.c.

◆ Get_1_1PointPosWS()

vector Car::Get_1_1PointPosWS ( )
protected

Definition at line 508 of file carscript.c.

◆ Get_1_2PointPosWS()

vector Car::Get_1_2PointPosWS ( )
protected

Definition at line 512 of file carscript.c.

◆ Get_2_1PointPosWS()

vector Car::Get_2_1PointPosWS ( )
protected

Definition at line 516 of file carscript.c.

◆ Get_2_2PointPosWS()

vector Car::Get_2_2PointPosWS ( )
protected

Definition at line 520 of file carscript.c.

◆ GetActionCompNameBrakes()

string Car::GetActionCompNameBrakes ( )
protected

Definition at line 2833 of file carscript.c.

◆ GetActionCompNameCoolant()

string Car::GetActionCompNameCoolant ( )
protected

Definition at line 2813 of file carscript.c.

◆ GetActionCompNameOil()

string Car::GetActionCompNameOil ( )
protected

Definition at line 2823 of file carscript.c.

◆ GetActionDistanceBrakes()

float Car::GetActionDistanceBrakes ( )
protected

Definition at line 2838 of file carscript.c.

◆ GetActionDistanceCoolant()

float Car::GetActionDistanceCoolant ( )
protected

Definition at line 2818 of file carscript.c.

◆ GetActionDistanceOil()

float Car::GetActionDistanceOil ( )
protected

Definition at line 2828 of file carscript.c.

◆ GetActions()

override void Car::GetActions ( typename action_input_type ,
out array< ActionBase_Basic > actions )
protected

Definition at line 2860 of file carscript.c.

◆ GetAnimSourceFromSelection()

string Car::GetAnimSourceFromSelection ( string selection)
protected

Definition at line 2646 of file carscript.c.

◆ GetBackPointPosWS()

vector Car::GetBackPointPosWS ( )
protected

Definition at line 504 of file carscript.c.

◆ GetBattery()

ItemBase Car::GetBattery ( )
protected

Definition at line 3015 of file carscript.c.

◆ GetBatteryConsumption()

float Car::GetBatteryConsumption ( )
protected

Definition at line 3000 of file carscript.c.

◆ GetBatteryRechargeRate()

float Car::GetBatteryRechargeRate ( )
protected

Definition at line 3010 of file carscript.c.

◆ GetBatteryRuntimeConsumption()

float Car::GetBatteryRuntimeConsumption ( )
protected

Definition at line 3005 of file carscript.c.

◆ GetCarDoorsState()

int Car::GetCarDoorsState ( string slotType)
protected

Definition at line 2796 of file carscript.c.

◆ GetCoolantPtcPosWS()

vector Car::GetCoolantPtcPosWS ( )
protected

Definition at line 491 of file carscript.c.

◆ GetCrashHeavySound()

bool Car::GetCrashHeavySound ( )
protected

Definition at line 2598 of file carscript.c.

◆ GetCrashLightSound()

bool Car::GetCrashLightSound ( )
protected

Definition at line 2579 of file carscript.c.

◆ GetCrewIndex()

int Car::GetCrewIndex ( string selection)
protected

Definition at line 2705 of file carscript.c.

◆ GetDebugActions()

override void Car::GetDebugActions ( out TSelectableActionInfoArrayEx outputList)
protected

Definition at line 589 of file carscript.c.

◆ GetDefaultHitPosition()

override vector Car::GetDefaultHitPosition ( )
protected

Definition at line 3096 of file carscript.c.

◆ GetDoorConditionPointFromSelection()

string Car::GetDoorConditionPointFromSelection ( string selection)
protected

Definition at line 2674 of file carscript.c.

◆ GetDoorInvSlotNameFromSeatPos()

string Car::GetDoorInvSlotNameFromSeatPos ( int posIdx)
protected

Definition at line 2700 of file carscript.c.

◆ GetDoorSelectionNameFromSeatPos()

string Car::GetDoorSelectionNameFromSeatPos ( int posIdx)
protected

Definition at line 2695 of file carscript.c.

◆ GetEnginePointPosWS()

vector Car::GetEnginePointPosWS ( )
protected

Definition at line 496 of file carscript.c.

◆ GetEnginePosWS()

vector Car::GetEnginePosWS ( )
protected

Definition at line 486 of file carscript.c.

◆ GetEnviroHeatComfortOverride()

float Car::GetEnviroHeatComfortOverride ( )
protected

◆ GetFrontPointPosWS()

vector Car::GetFrontPointPosWS ( )
protected

Definition at line 500 of file carscript.c.

◆ GetLiquidThroughputCoef()

override float Car::GetLiquidThroughputCoef ( )
protected

Definition at line 525 of file carscript.c.

◆ GetMoveType()

override event Car::GetMoveType ( )
protected

Definition at line 3203 of file carscript.c.

◆ GetOwnerStateType()

override event Car::GetOwnerStateType ( )
protected

Definition at line 3198 of file carscript.c.

◆ GetPushForceCoefficientMultiplier()

float Car::GetPushForceCoefficientMultiplier ( )
protected

Definition at line 3101 of file carscript.c.

◆ GetRadiator()

EntityAI Car::GetRadiator ( )
protected

Definition at line 2769 of file carscript.c.

◆ GetSelectionFromAnimSource()

string Car::GetSelectionFromAnimSource ( string animSource)
protected

Definition at line 2651 of file carscript.c.

◆ GetVehicleType()

override string Car::GetVehicleType ( )
protected

Definition at line 481 of file carscript.c.

◆ HandleCarHornSound()

void Car::HandleCarHornSound ( ECarHornState pState)
protected

Definition at line 1767 of file carscript.c.

◆ HandleDoorsSound()

void Car::HandleDoorsSound ( string animSource,
float phase )
protected

Definition at line 1722 of file carscript.c.

◆ HandleEngineSound()

void Car::HandleEngineSound ( CarEngineSoundState state)
protected

postpone the engine sound played from c++ on soundcontroller (via OnSound override)

Definition at line 1790 of file carscript.c.

◆ HandleSeatAdjustmentSound()

void Car::HandleSeatAdjustmentSound ( string animSource,
float phase )
protected

Definition at line 1746 of file carscript.c.

◆ HasRadiator()

bool Car::HasRadiator ( )
protected

Definition at line 2764 of file carscript.c.

◆ InitializeActions()

void Car::InitializeActions ( )
protected

Definition at line 2848 of file carscript.c.

◆ IsHandbrakeActive()

bool Car::IsHandbrakeActive ( )
protected

Definition at line 2779 of file carscript.c.

◆ IsInventoryVisible()

override bool Car::IsInventoryVisible ( )
protected

Definition at line 2926 of file carscript.c.

◆ IsMoving()

bool Car::IsMoving ( )
protected

Definition at line 2774 of file carscript.c.

◆ IsScriptedLightsOn()

bool Car::IsScriptedLightsOn ( )
protected

Proper way to get if light is swiched on.

Definition at line 2070 of file carscript.c.

◆ IsServerOrOwner()

bool Car::IsServerOrOwner ( )
protected

Definition at line 3222 of file carscript.c.

◆ IsVitalCarBattery()

bool Car::IsVitalCarBattery ( )
protected

Definition at line 2734 of file carscript.c.

◆ IsVitalEngineBelt()

bool Car::IsVitalEngineBelt ( )
protected

Definition at line 2749 of file carscript.c.

◆ IsVitalFuelTank()

bool Car::IsVitalFuelTank ( )
protected

Definition at line 2759 of file carscript.c.

◆ IsVitalGlowPlug()

bool Car::IsVitalGlowPlug ( )
protected

Definition at line 2744 of file carscript.c.

◆ IsVitalRadiator()

bool Car::IsVitalRadiator ( )
protected

Definition at line 2754 of file carscript.c.

◆ IsVitalTruckBattery()

bool Car::IsVitalTruckBattery ( )
protected

Definition at line 2739 of file carscript.c.

◆ LeakFluid()

void Car::LeakFluid ( CarFluid fluid)
protected

Definition at line 2536 of file carscript.c.

◆ LeftFrontLightShineOff()

void Car::LeftFrontLightShineOff ( )
protected

Definition at line 2381 of file carscript.c.

◆ LeftFrontLightShineOn()

void Car::LeftFrontLightShineOn ( )
protected

Definition at line 2361 of file carscript.c.

◆ MarkCrewMemberDead()

override void Car::MarkCrewMemberDead ( int crewMemberIndex)
protected

Definition at line 1897 of file carscript.c.

◆ MarkCrewMemberUnconscious()

override void Car::MarkCrewMemberUnconscious ( int crewMemberIndex)
protected

Definition at line 1886 of file carscript.c.

◆ NoRearLight()

void Car::NoRearLight ( )
protected

Definition at line 2355 of file carscript.c.

◆ ObtainState()

override event void Car::ObtainState ( PawnOwnerState pState)
protected

Definition at line 3208 of file carscript.c.

◆ OnAction()

override bool Car::OnAction ( int action_id,
Man player,
ParamsReadContext ctx )
protected

Definition at line 636 of file carscript.c.

◆ OnAnimationPhaseStarted()

override void Car::OnAnimationPhaseStarted ( string animSource,
float phase )
protected

Definition at line 1669 of file carscript.c.

◆ OnAttachmentRuined()

override void Car::OnAttachmentRuined ( EntityAI attachment)
protected

Definition at line 874 of file carscript.c.

◆ OnBeforeEngineStart()

override bool Car::OnBeforeEngineStart ( )
protected

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.

◆ OnBeforeLightOn()

override bool Car::OnBeforeLightOn ( )
protected

Definition at line 2075 of file carscript.c.

◆ OnBeforeSwitchLights()

bool Car::OnBeforeSwitchLights ( bool toOn)
protected

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 Car::OnBrakesPressed ( )
protected

Definition at line 1197 of file carscript.c.

◆ OnBrakesReleased()

void Car::OnBrakesReleased ( )
protected

Definition at line 1202 of file carscript.c.

◆ OnContact()

override void Car::OnContact ( string zoneName,
vector localPos,
IEntity other,
Contact data )
protected

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

Definition at line 1454 of file carscript.c.

◆ OnDriverExit()

override void Car::OnDriverExit ( Human player)
protected

Definition at line 1207 of file carscript.c.

◆ OnEngineStart()

override void Car::OnEngineStart ( )
protected

Gets called everytime the engine starts.

Definition at line 2033 of file carscript.c.

◆ OnEngineStop()

override void Car::OnEngineStop ( )
protected

Gets called everytime the engine stops.

Definition at line 2050 of file carscript.c.

◆ OnFluidChanged()

override void Car::OnFluidChanged ( CarFluid fluid,
float newValue,
float oldValue )
protected

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.

◆ OnGearChanged()

override void Car::OnGearChanged ( int newGear,
int oldGear )
protected

Definition at line 2026 of file carscript.c.

◆ OnIgnition()

void Car::OnIgnition ( )
protected

Definition at line 1949 of file carscript.c.

◆ OnInput()

override void Car::OnInput ( float dt)
protected

Definition at line 1303 of file carscript.c.

◆ OnSound()

override float Car::OnSound ( CarSoundCtrl ctrl,
float oldValue )
protected

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.

◆ OnUpdate()

override void Car::OnUpdate ( float dt)
protected

Definition at line 1385 of file carscript.c.

◆ OnVariablesSynchronized()

override void Car::OnVariablesSynchronized ( )
protected

Definition at line 709 of file carscript.c.

◆ OnVehicleJumpOutServer()

void Car::OnVehicleJumpOutServer ( GetOutTransportActionData gotActionData)
protected

Definition at line 1218 of file carscript.c.

◆ PlayCrashHeavySound()

void Car::PlayCrashHeavySound ( )
protected

Definition at line 2612 of file carscript.c.

◆ PlayCrashLightSound()

void Car::PlayCrashLightSound ( )
protected

Definition at line 2593 of file carscript.c.

◆ PlaySound()

void Car::PlaySound ( string soundset,
EffectSound sound,
out bool soundbool )
protected

Definition at line 2641 of file carscript.c.

◆ PlaySoundEx()

void Car::PlaySoundEx ( string soundset,
EffectSound sound,
out bool soundbool )
protected

Definition at line 2617 of file carscript.c.

◆ RemoveAction()

void Car::RemoveAction ( typename actionName )
protected

Definition at line 2913 of file carscript.c.

◆ ReverseLightsShineOff()

void Car::ReverseLightsShineOff ( )
protected

Definition at line 2412 of file carscript.c.

◆ ReverseLightsShineOn()

void Car::ReverseLightsShineOn ( )
protected

Definition at line 2401 of file carscript.c.

◆ ReverseRearLight()

void Car::ReverseRearLight ( )
protected

Definition at line 2344 of file carscript.c.

◆ RewindState()

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

Definition at line 3214 of file carscript.c.

◆ RightFrontLightShineOff()

void Car::RightFrontLightShineOff ( )
protected

Definition at line 2391 of file carscript.c.

◆ RightFrontLightShineOn()

void Car::RightFrontLightShineOn ( )
protected

Definition at line 2371 of file carscript.c.

◆ SetActions()

void Car::SetActions ( )
protected

Definition at line 2871 of file carscript.c.

◆ SetCarEngineSoundState()

void Car::SetCarEngineSoundState ( CarEngineSoundState pState)
protected

Definition at line 1784 of file carscript.c.

◆ SetCarHornState()

void Car::SetCarHornState ( int pState)
protected

Definition at line 3068 of file carscript.c.

◆ SetEngineStarted()

void Car::SetEngineStarted ( bool started)
protected

Definition at line 2791 of file carscript.c.

◆ SpawnAdditionalItems()

void Car::SpawnAdditionalItems ( )
protected

Definition at line 3160 of file carscript.c.

◆ SpawnUniversalParts()

void Car::SpawnUniversalParts ( )
protected

Definition at line 3121 of file carscript.c.

◆ SynchCrashHeavySound()

void Car::SynchCrashHeavySound ( bool play)
protected

Definition at line 2603 of file carscript.c.

◆ SynchCrashLightSound()

void Car::SynchCrashLightSound ( bool play)
protected

Definition at line 2584 of file carscript.c.

◆ TailLightsShineOff()

void Car::TailLightsShineOff ( )
protected

Definition at line 2470 of file carscript.c.

◆ TailLightsShineOn()

void Car::TailLightsShineOn ( )
protected

Definition at line 2445 of file carscript.c.

◆ ToggleHeadlights()

void Car::ToggleHeadlights ( )
protected

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.

◆ TranslateAnimationPhaseToCarDoorState()

CarDoorState Car::TranslateAnimationPhaseToCarDoorState ( string animation)
protected

Definition at line 2801 of file carscript.c.

◆ UpdateBattery()

void Car::UpdateBattery ( ItemBase battery)
protected

Definition at line 3029 of file carscript.c.

◆ UpdateHeadlightState()

void Car::UpdateHeadlightState ( )
protected

Definition at line 792 of file carscript.c.

◆ UpdateLights()

override void Car::UpdateLights ( int new_gear = -1)
protected

Definition at line 2095 of file carscript.c.

◆ UpdateLightsClient()

void Car::UpdateLightsClient ( int newGear = -1)
protected

Definition at line 2103 of file carscript.c.

◆ UpdateLightsServer()

void Car::UpdateLightsServer ( int newGear = -1)
protected

Definition at line 2222 of file carscript.c.

Member Data Documentation

◆ DROWN_ENGINE_DAMAGE

float Car::DROWN_ENGINE_DAMAGE = 350.0
staticprotected

Definition at line 186 of file carscript.c.

◆ DROWN_ENGINE_THRESHOLD

float Car::DROWN_ENGINE_THRESHOLD = 0.5
staticprotected

Definition at line 185 of file carscript.c.

◆ m_backPos

vector Car::m_backPos
protected

Definition at line 236 of file carscript.c.

◆ m_BatteryConsume

float Car::m_BatteryConsume = 15
protected

Definition at line 214 of file carscript.c.

◆ m_BatteryContinuousConsume

float Car::m_BatteryContinuousConsume = 0.25
protected

Definition at line 215 of file carscript.c.

◆ m_BatteryEnergyStartMin

float Car::m_BatteryEnergyStartMin = 5.0
protected

DEPRECATED.

Definition at line 3234 of file carscript.c.

◆ m_BatteryHealth

float Car::m_BatteryHealth
protected

Definition at line 209 of file carscript.c.

◆ m_BatteryRecharge

float Car::m_BatteryRecharge = 0.15
protected

Definition at line 216 of file carscript.c.

◆ m_BrakeAmmount

float Car::m_BrakeAmmount
protected

Definition at line 194 of file carscript.c.

◆ m_BrakesArePressed

bool Car::m_BrakesArePressed
protected

Definition at line 3236 of file carscript.c.

◆ m_CarDoorCloseSound

string Car::m_CarDoorCloseSound = ""
protected

Definition at line 251 of file carscript.c.

◆ m_CarDoorOpenSound

string Car::m_CarDoorOpenSound = ""
protected

Definition at line 250 of file carscript.c.

◆ m_CarEngineLastSoundState

int Car::m_CarEngineLastSoundState
protected

Definition at line 307 of file carscript.c.

◆ m_CarEngineSoundState

int Car::m_CarEngineSoundState
protected

Definition at line 306 of file carscript.c.

◆ m_CarHornLongSoundName

string Car::m_CarHornLongSoundName = ""
protected

Definition at line 256 of file carscript.c.

◆ m_CarHornShortSoundName

string Car::m_CarHornShortSoundName = ""
protected

Definition at line 255 of file carscript.c.

◆ m_CarHornSoundEffect

ref EffectSound Car::m_CarHornSoundEffect
protected

Definition at line 264 of file carscript.c.

◆ m_CarHornState

int Car::m_CarHornState
protected

Definition at line 278 of file carscript.c.

◆ m_CarSeatShiftInSound

string Car::m_CarSeatShiftInSound = ""
protected

Definition at line 252 of file carscript.c.

◆ m_CarSeatShiftOutSound

string Car::m_CarSeatShiftOutSound = ""
protected

Definition at line 253 of file carscript.c.

◆ m_ContactCache

ref CarContactCache Car::m_ContactCache
protected

Definition at line 181 of file carscript.c.

◆ m_CoolantAmmount

float Car::m_CoolantAmmount
protected

Definition at line 192 of file carscript.c.

◆ m_coolantFx

ref EffVehicleSmoke Car::m_coolantFx
protected

Particles.

Definition at line 221 of file carscript.c.

◆ m_coolantPtcFx

int Car::m_coolantPtcFx
protected

Definition at line 226 of file carscript.c.

◆ m_coolantPtcPos

vector Car::m_coolantPtcPos
protected

Definition at line 232 of file carscript.c.

◆ m_CrashSoundHeavy

ref EffectSound Car::m_CrashSoundHeavy
protected

Definition at line 259 of file carscript.c.

◆ m_CrashSoundLight

ref EffectSound Car::m_CrashSoundLight
protected

Definition at line 258 of file carscript.c.

◆ m_dmgContactCoef

float Car::m_dmgContactCoef = 0.058
protected

Definition at line 198 of file carscript.c.

◆ m_DrownEnginePoint

string Car::m_DrownEnginePoint = "drown_engine"
staticprotected

Definition at line 289 of file carscript.c.

◆ m_DrownEnginePos

vector Car::m_DrownEnginePos
staticprotected

Definition at line 203 of file carscript.c.

◆ m_DrownTime

float Car::m_DrownTime
protected

Definition at line 202 of file carscript.c.

◆ m_EngineDestroyed

bool Car::m_EngineDestroyed
protected

Definition at line 276 of file carscript.c.

◆ m_engineFx

ref EffVehicleSmoke Car::m_engineFx
protected

Definition at line 222 of file carscript.c.

◆ m_EngineHealth

float Car::m_EngineHealth
protected

Definition at line 206 of file carscript.c.

◆ m_enginePos

vector Car::m_enginePos
protected

Definition at line 234 of file carscript.c.

◆ m_enginePtcFx

int Car::m_enginePtcFx
protected

Definition at line 225 of file carscript.c.

◆ m_enginePtcPos

vector Car::m_enginePtcPos
protected

Definition at line 231 of file carscript.c.

◆ m_EngineStartBattery

string Car::m_EngineStartBattery = ""
protected

Definition at line 244 of file carscript.c.

◆ m_EngineStarted

bool Car::m_EngineStarted
protected

Definition at line 275 of file carscript.c.

◆ m_EngineStartFuel

string Car::m_EngineStartFuel = ""
protected

Definition at line 246 of file carscript.c.

◆ m_EngineStartOK

string Car::m_EngineStartOK = ""
protected

Sounds.

Definition at line 243 of file carscript.c.

◆ m_EngineStartPlug

string Car::m_EngineStartPlug = ""
protected

Definition at line 245 of file carscript.c.

◆ m_EngineStop

string Car::m_EngineStop = ""
protected

Definition at line 247 of file carscript.c.

◆ m_EngineStopFuel

string Car::m_EngineStopFuel = ""
protected

Definition at line 248 of file carscript.c.

◆ m_EnviroHeatComfortOverride

float Car::m_EnviroHeatComfortOverride
protected

Definition at line 199 of file carscript.c.

◆ m_exhaustFx

ref EffVehicleSmoke Car::m_exhaustFx
protected

Definition at line 223 of file carscript.c.

◆ m_exhaustPtcDir

vector Car::m_exhaustPtcDir
protected

Definition at line 230 of file carscript.c.

◆ m_exhaustPtcFx

int Car::m_exhaustPtcFx
protected

Definition at line 227 of file carscript.c.

◆ m_exhaustPtcPos

vector Car::m_exhaustPtcPos
protected

Definition at line 229 of file carscript.c.

◆ m_ForceUpdateLights

bool Car::m_ForceUpdateLights
protected

Definition at line 274 of file carscript.c.

◆ m_frontPos

vector Car::m_frontPos
protected

Definition at line 235 of file carscript.c.

◆ m_FuelAmmount

float Car::m_FuelAmmount
protected

keeps ammount of each fluid

Definition at line 191 of file carscript.c.

◆ m_FuelTankHealth

float Car::m_FuelTankHealth
protected

Definition at line 208 of file carscript.c.

◆ m_Headlight

CarLightBase Car::m_Headlight
protected

Definition at line 280 of file carscript.c.

◆ m_HeadlightsOn

bool Car::m_HeadlightsOn
protected

Definition at line 3235 of file carscript.c.

◆ m_HeadlightsState

int Car::m_HeadlightsState
protected

Definition at line 271 of file carscript.c.

◆ m_LeftHeadlightPoint

string Car::m_LeftHeadlightPoint = "light_left"
staticprotected

Definition at line 285 of file carscript.c.

◆ m_LeftHeadlightTargetPoint

string Car::m_LeftHeadlightTargetPoint = "light_left_dir"
staticprotected

Definition at line 287 of file carscript.c.

◆ m_MomentumPrevTick

float Car::m_MomentumPrevTick
protected

Definition at line 179 of file carscript.c.

◆ m_NoisePar

ref NoiseParams Car::m_NoisePar
protected

Definition at line 265 of file carscript.c.

◆ m_NoiseSystem

NoiseSystem Car::m_NoiseSystem
protected

Definition at line 266 of file carscript.c.

◆ m_OilAmmount

float Car::m_OilAmmount
protected

Definition at line 193 of file carscript.c.

◆ m_PlayCrashSoundHeavy

bool Car::m_PlayCrashSoundHeavy
protected

Definition at line 269 of file carscript.c.

◆ m_PlayCrashSoundLight

bool Car::m_PlayCrashSoundLight
protected

Definition at line 268 of file carscript.c.

◆ m_PlugHealth

float Car::m_PlugHealth
protected

Definition at line 210 of file carscript.c.

◆ m_Radiator

EntityAI Car::m_Radiator
protected

Definition at line 212 of file carscript.c.

◆ m_RadiatorHealth

float Car::m_RadiatorHealth
protected

Definition at line 207 of file carscript.c.

◆ m_RearLight

CarRearLightBase Car::m_RearLight
protected

Definition at line 281 of file carscript.c.

◆ m_RearLightType

int Car::m_RearLightType
protected

Definition at line 272 of file carscript.c.

◆ m_ReverseLightPoint

string Car::m_ReverseLightPoint = "light_reverse"
staticprotected

Definition at line 284 of file carscript.c.

◆ m_RightHeadlightPoint

string Car::m_RightHeadlightPoint = "light_right"
staticprotected

Definition at line 286 of file carscript.c.

◆ m_RightHeadlightTargetPoint

string Car::m_RightHeadlightTargetPoint = "light_right_dir"
staticprotected

Definition at line 288 of file carscript.c.

◆ m_side_1_1Pos

vector Car::m_side_1_1Pos
protected

Definition at line 237 of file carscript.c.

◆ m_side_1_2Pos

vector Car::m_side_1_2Pos
protected

Definition at line 238 of file carscript.c.

◆ m_side_2_1Pos

vector Car::m_side_2_1Pos
protected

Definition at line 239 of file carscript.c.

◆ m_side_2_2Pos

vector Car::m_side_2_2Pos
protected

Definition at line 240 of file carscript.c.

◆ m_Time

float Car::m_Time
protected

Definition at line 183 of file carscript.c.

◆ m_VelocityPrevTick

vector Car::m_VelocityPrevTick
protected

Definition at line 180 of file carscript.c.

◆ m_WheelSmokeFx

ref array<ref EffWheelSmoke> Car::m_WheelSmokeFx
protected

Definition at line 303 of file carscript.c.

◆ m_WheelSmokePtcFx

ref array<int> Car::m_WheelSmokePtcFx
protected

Definition at line 304 of file carscript.c.

◆ m_WindowLarge

ref EffectSound Car::m_WindowLarge
protected

Definition at line 261 of file carscript.c.

◆ m_WindowSmall

ref EffectSound Car::m_WindowSmall
protected

Definition at line 260 of file carscript.c.

◆ MEMORY_POINT_NAME_CAR_HORN

const string Car::MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
staticprotected

Definition at line 188 of file carscript.c.

◆ SELECTION_ID_BRAKE_LIGHT_L

const int Car::SELECTION_ID_BRAKE_LIGHT_L = 2
staticprotected

Definition at line 295 of file carscript.c.

◆ SELECTION_ID_BRAKE_LIGHT_R

const int Car::SELECTION_ID_BRAKE_LIGHT_R = 3
staticprotected

Definition at line 296 of file carscript.c.

◆ SELECTION_ID_DASHBOARD_LIGHT

const int Car::SELECTION_ID_DASHBOARD_LIGHT = 8
staticprotected

Definition at line 301 of file carscript.c.

◆ SELECTION_ID_FRONT_LIGHT_L

const int Car::SELECTION_ID_FRONT_LIGHT_L = 0
staticprotected

Definition at line 293 of file carscript.c.

◆ SELECTION_ID_FRONT_LIGHT_R

const int Car::SELECTION_ID_FRONT_LIGHT_R = 1
staticprotected

Definition at line 294 of file carscript.c.

◆ SELECTION_ID_REVERSE_LIGHT_L

const int Car::SELECTION_ID_REVERSE_LIGHT_L = 4
staticprotected

Definition at line 297 of file carscript.c.

◆ SELECTION_ID_REVERSE_LIGHT_R

const int Car::SELECTION_ID_REVERSE_LIGHT_R = 5
staticprotected

Definition at line 298 of file carscript.c.

◆ SELECTION_ID_TAIL_LIGHT_L

const int Car::SELECTION_ID_TAIL_LIGHT_L = 6
staticprotected

Definition at line 299 of file carscript.c.

◆ SELECTION_ID_TAIL_LIGHT_R

const int Car::SELECTION_ID_TAIL_LIGHT_R = 7
staticprotected

Definition at line 300 of file carscript.c.


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