Dayz Explorer 1.28.160049
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 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. 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)
 
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
 
bool m_HeadlightsOn
 
bool m_HeadlightsState
 
bool m_BrakesArePressed
 
bool 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.
 

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 161 of file carscript.c.

Constructor & Destructor Documentation

◆ ~CarScript()

void Car::~CarScript ( )
protected

Definition at line 536 of file carscript.c.

Member Function Documentation

◆ AddAction()

void Car::AddAction ( typename actionName )
protected

Definition at line 2739 of file carscript.c.

◆ BrakeAndReverseRearLight()

void Car::BrakeAndReverseRearLight ( )
protected

Definition at line 2207 of file carscript.c.

◆ BrakeLightsShineOff()

void Car::BrakeLightsShineOff ( )
protected

Definition at line 2292 of file carscript.c.

◆ BrakeLightsShineOn()

void Car::BrakeLightsShineOn ( )
protected

Definition at line 2281 of file carscript.c.

◆ BrakesRearLight()

void Car::BrakesRearLight ( )
protected

Definition at line 2197 of file carscript.c.

◆ CanManipulateSpareWheel()

bool Car::CanManipulateSpareWheel ( string slotSelectionName)
protected

Definition at line 889 of file carscript.c.

◆ CanPutIntoHands()

override bool Car::CanPutIntoHands ( EntityAI parent)
protected

Definition at line 2700 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 2567 of file carscript.c.

◆ CanReceiveAttachment()

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

Definition at line 828 of file carscript.c.

◆ CanReleaseAttachment()

override bool Car::CanReleaseAttachment ( EntityAI attachment)
protected

Definition at line 857 of file carscript.c.

◆ CarPartsHealthCheck()

void Car::CarPartsHealthCheck ( )
protected

Definition at line 2416 of file carscript.c.

◆ CarScript()

void Car::CarScript ( )
protected

Definition at line 308 of file carscript.c.

◆ CheckContactCache()

void Car::CheckContactCache ( )
protected

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

Definition at line 1353 of file carscript.c.

◆ CheckOperationalRequirements()

int Car::CheckOperationalRequirements ( )
protected

Definition at line 1849 of file carscript.c.

◆ CheckOperationalState()

bool Car::CheckOperationalState ( )
protected

Definition at line 1890 of file carscript.c.

◆ CheckVitalItem() [1/2]

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

Definition at line 2371 of file carscript.c.

◆ CheckVitalItem() [2/2]

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

Definition at line 2384 of file carscript.c.

◆ CleanupEffects()

void Car::CleanupEffects ( )
protected

Definition at line 543 of file carscript.c.

◆ CleanupSound()

void Car::CleanupSound ( EffectSound sound)
protected

Definition at line 574 of file carscript.c.

◆ CreateCarDestroyedEffect()

void Car::CreateCarDestroyedEffect ( )
protected

Definition at line 676 of file carscript.c.

◆ CreateFrontLight()

CarLightBase Car::CreateFrontLight ( )
protected

Definition at line 2366 of file carscript.c.

◆ CreateRearLight()

CarRearLightBase Car::CreateRearLight ( )
protected

Definition at line 2360 of file carscript.c.

◆ CreateSoundForAnimationSource()

EffectSound Car::CreateSoundForAnimationSource ( string animSource)
protected

Definition at line 1547 of file carscript.c.

◆ DamageCrew()

void Car::DamageCrew ( float dmg)
protected

Responsible for damaging crew in a car crash.

Definition at line 1462 of file carscript.c.

◆ DashboardShineOff()

void Car::DashboardShineOff ( )
protected

Definition at line 2349 of file carscript.c.

◆ DashboardShineOn()

void Car::DashboardShineOn ( )
protected

Definition at line 2339 of file carscript.c.

◆ DetectFlipped()

override bool Car::DetectFlipped ( VehicleFlippedContext ctx)
protected

Definition at line 1240 of file carscript.c.

◆ EEDelete()

override void Car::EEDelete ( EntityAI parent)
protected

Definition at line 529 of file carscript.c.

◆ EEHealthLevelChanged()

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

Definition at line 2788 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 521 of file carscript.c.

◆ EEInit()

override void Car::EEInit ( )
protected

Definition at line 431 of file carscript.c.

◆ EEItemAttached()

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

Definition at line 686 of file carscript.c.

◆ EEItemDetached()

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

Definition at line 761 of file carscript.c.

◆ EEKilled()

override void Car::EEKilled ( Object killer)
protected

Definition at line 1317 of file carscript.c.

◆ EEOnCECreate()

override void Car::EEOnCECreate ( )
protected

Definition at line 2824 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 894 of file carscript.c.

◆ FillUpCarFluids()

void Car::FillUpCarFluids ( )
protected

Definition at line 3046 of file carscript.c.

◆ ForceUpdateLightsEnd()

void Car::ForceUpdateLightsEnd ( )
protected

Definition at line 2847 of file carscript.c.

◆ ForceUpdateLightsStart()

void Car::ForceUpdateLightsStart ( )
protected

Definition at line 2838 of file carscript.c.

◆ GenerateCarHornAINoise()

void Car::GenerateCarHornAINoise ( int pState)
protected

Definition at line 2936 of file carscript.c.

◆ Get3rdPersonCameraType()

override int Car::Get3rdPersonCameraType ( )
protected

camera type

Definition at line 2642 of file carscript.c.

◆ Get_1_1PointPosWS()

vector Car::Get_1_1PointPosWS ( )
protected

Definition at line 498 of file carscript.c.

◆ Get_1_2PointPosWS()

vector Car::Get_1_2PointPosWS ( )
protected

Definition at line 502 of file carscript.c.

◆ Get_2_1PointPosWS()

vector Car::Get_2_1PointPosWS ( )
protected

Definition at line 506 of file carscript.c.

◆ Get_2_2PointPosWS()

vector Car::Get_2_2PointPosWS ( )
protected

Definition at line 510 of file carscript.c.

◆ GetActionCompNameBrakes()

string Car::GetActionCompNameBrakes ( )
protected

Definition at line 2690 of file carscript.c.

◆ GetActionCompNameCoolant()

string Car::GetActionCompNameCoolant ( )
protected

Definition at line 2670 of file carscript.c.

◆ GetActionCompNameOil()

string Car::GetActionCompNameOil ( )
protected

Definition at line 2680 of file carscript.c.

◆ GetActionDistanceBrakes()

float Car::GetActionDistanceBrakes ( )
protected

Definition at line 2695 of file carscript.c.

◆ GetActionDistanceCoolant()

float Car::GetActionDistanceCoolant ( )
protected

Definition at line 2675 of file carscript.c.

◆ GetActionDistanceOil()

float Car::GetActionDistanceOil ( )
protected

Definition at line 2685 of file carscript.c.

◆ GetActions()

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

Definition at line 2717 of file carscript.c.

◆ GetAnimSourceFromSelection()

string Car::GetAnimSourceFromSelection ( string selection)
protected

Definition at line 2503 of file carscript.c.

◆ GetBackPointPosWS()

vector Car::GetBackPointPosWS ( )
protected

Definition at line 494 of file carscript.c.

◆ GetBattery()

ItemBase Car::GetBattery ( )
protected

Definition at line 2872 of file carscript.c.

◆ GetBatteryConsumption()

float Car::GetBatteryConsumption ( )
protected

Definition at line 2857 of file carscript.c.

◆ GetBatteryRechargeRate()

float Car::GetBatteryRechargeRate ( )
protected

Definition at line 2867 of file carscript.c.

◆ GetBatteryRuntimeConsumption()

float Car::GetBatteryRuntimeConsumption ( )
protected

Definition at line 2862 of file carscript.c.

◆ GetCarDoorsState()

int Car::GetCarDoorsState ( string slotType)
protected

Definition at line 2653 of file carscript.c.

◆ GetCoolantPtcPosWS()

vector Car::GetCoolantPtcPosWS ( )
protected

Definition at line 481 of file carscript.c.

◆ GetCrashHeavySound()

bool Car::GetCrashHeavySound ( )
protected

Definition at line 2455 of file carscript.c.

◆ GetCrashLightSound()

bool Car::GetCrashLightSound ( )
protected

Definition at line 2436 of file carscript.c.

◆ GetCrewIndex()

int Car::GetCrewIndex ( string selection)
protected

Definition at line 2562 of file carscript.c.

◆ GetDebugActions()

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

Definition at line 579 of file carscript.c.

◆ GetDefaultHitPosition()

override vector Car::GetDefaultHitPosition ( )
protected

Definition at line 2953 of file carscript.c.

◆ GetDoorConditionPointFromSelection()

string Car::GetDoorConditionPointFromSelection ( string selection)
protected

Definition at line 2531 of file carscript.c.

◆ GetDoorInvSlotNameFromSeatPos()

string Car::GetDoorInvSlotNameFromSeatPos ( int posIdx)
protected

Definition at line 2557 of file carscript.c.

◆ GetDoorSelectionNameFromSeatPos()

string Car::GetDoorSelectionNameFromSeatPos ( int posIdx)
protected

Definition at line 2552 of file carscript.c.

◆ GetEnginePointPosWS()

vector Car::GetEnginePointPosWS ( )
protected

Definition at line 486 of file carscript.c.

◆ GetEnginePosWS()

vector Car::GetEnginePosWS ( )
protected

Definition at line 476 of file carscript.c.

◆ GetEnviroHeatComfortOverride()

float Car::GetEnviroHeatComfortOverride ( )
protected

◆ GetFrontPointPosWS()

vector Car::GetFrontPointPosWS ( )
protected

Definition at line 490 of file carscript.c.

◆ GetLiquidThroughputCoef()

override float Car::GetLiquidThroughputCoef ( )
protected

Definition at line 515 of file carscript.c.

◆ GetMoveType()

override event Car::GetMoveType ( )
protected

Definition at line 3058 of file carscript.c.

◆ GetOwnerStateType()

override event Car::GetOwnerStateType ( )
protected

Definition at line 3053 of file carscript.c.

◆ GetPushForceCoefficientMultiplier()

float Car::GetPushForceCoefficientMultiplier ( )
protected

Definition at line 2958 of file carscript.c.

◆ GetRadiator()

EntityAI Car::GetRadiator ( )
protected

Definition at line 2626 of file carscript.c.

◆ GetSelectionFromAnimSource()

string Car::GetSelectionFromAnimSource ( string animSource)
protected

Definition at line 2508 of file carscript.c.

◆ GetVehicleType()

override string Car::GetVehicleType ( )
protected

Definition at line 471 of file carscript.c.

◆ HandleCarHornSound()

void Car::HandleCarHornSound ( ECarHornState pState)
protected

Definition at line 1637 of file carscript.c.

◆ HandleDoorsSound()

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

Definition at line 1592 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 1660 of file carscript.c.

◆ HandleSeatAdjustmentSound()

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

Definition at line 1616 of file carscript.c.

◆ HasRadiator()

bool Car::HasRadiator ( )
protected

Definition at line 2621 of file carscript.c.

◆ InitializeActions()

void Car::InitializeActions ( )
protected

Definition at line 2705 of file carscript.c.

◆ IsHandbrakeActive()

bool Car::IsHandbrakeActive ( )
protected

Definition at line 2636 of file carscript.c.

◆ IsInventoryVisible()

override bool Car::IsInventoryVisible ( )
protected

Definition at line 2783 of file carscript.c.

◆ IsMoving()

bool Car::IsMoving ( )
protected

Definition at line 2631 of file carscript.c.

◆ IsScriptedLightsOn()

bool Car::IsScriptedLightsOn ( )
protected

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

Definition at line 1939 of file carscript.c.

◆ IsServerOrOwner()

bool Car::IsServerOrOwner ( )
protected

Definition at line 3077 of file carscript.c.

◆ IsVitalCarBattery()

bool Car::IsVitalCarBattery ( )
protected

Definition at line 2591 of file carscript.c.

◆ IsVitalEngineBelt()

bool Car::IsVitalEngineBelt ( )
protected

Definition at line 2606 of file carscript.c.

◆ IsVitalFuelTank()

bool Car::IsVitalFuelTank ( )
protected

Definition at line 2616 of file carscript.c.

◆ IsVitalGlowPlug()

bool Car::IsVitalGlowPlug ( )
protected

Definition at line 2601 of file carscript.c.

◆ IsVitalRadiator()

bool Car::IsVitalRadiator ( )
protected

Definition at line 2611 of file carscript.c.

◆ IsVitalTruckBattery()

bool Car::IsVitalTruckBattery ( )
protected

Definition at line 2596 of file carscript.c.

◆ LeakFluid()

void Car::LeakFluid ( CarFluid fluid)
protected

Definition at line 2393 of file carscript.c.

◆ LeftFrontLightShineOff()

void Car::LeftFrontLightShineOff ( )
protected

Definition at line 2239 of file carscript.c.

◆ LeftFrontLightShineOn()

void Car::LeftFrontLightShineOn ( )
protected

Definition at line 2219 of file carscript.c.

◆ MarkCrewMemberDead()

override void Car::MarkCrewMemberDead ( int crewMemberIndex)
protected

Definition at line 1767 of file carscript.c.

◆ MarkCrewMemberUnconscious()

override void Car::MarkCrewMemberUnconscious ( int crewMemberIndex)
protected

Definition at line 1756 of file carscript.c.

◆ NoRearLight()

void Car::NoRearLight ( )
protected

Definition at line 2213 of file carscript.c.

◆ ObtainState()

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

Definition at line 3063 of file carscript.c.

◆ OnAction()

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

Definition at line 603 of file carscript.c.

◆ OnAnimationPhaseStarted()

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

Definition at line 1539 of file carscript.c.

◆ OnAttachmentRuined()

override void Car::OnAttachmentRuined ( EntityAI attachment)
protected

Definition at line 820 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 1811 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 3096 of file carscript.c.

◆ OnBrakesPressed()

void Car::OnBrakesPressed ( )
protected

Definition at line 1143 of file carscript.c.

◆ OnBrakesReleased()

void Car::OnBrakesReleased ( )
protected

Definition at line 1148 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 1324 of file carscript.c.

◆ OnDriverExit()

override void Car::OnDriverExit ( Human player)
protected

Definition at line 1153 of file carscript.c.

◆ OnEngineStart()

override void Car::OnEngineStart ( )
protected

Gets called everytime the engine starts.

Definition at line 1902 of file carscript.c.

◆ OnEngineStop()

override void Car::OnEngineStop ( )
protected

Gets called everytime the engine stops.

Definition at line 1919 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 1784 of file carscript.c.

◆ OnGearChanged()

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

Definition at line 1895 of file carscript.c.

◆ OnIgnition()

void Car::OnIgnition ( )
protected

Definition at line 1818 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 1524 of file carscript.c.

◆ OnUpdate()

override void Car::OnUpdate ( float dt)
protected

Definition at line 1249 of file carscript.c.

◆ OnVariablesSynchronized()

override void Car::OnVariablesSynchronized ( )
protected

Definition at line 655 of file carscript.c.

◆ OnVehicleJumpOutServer()

void Car::OnVehicleJumpOutServer ( GetOutTransportActionData gotActionData)
protected

Definition at line 1164 of file carscript.c.

◆ PlayCrashHeavySound()

void Car::PlayCrashHeavySound ( )
protected

Definition at line 2469 of file carscript.c.

◆ PlayCrashLightSound()

void Car::PlayCrashLightSound ( )
protected

Definition at line 2450 of file carscript.c.

◆ PlaySound()

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

Definition at line 2498 of file carscript.c.

◆ PlaySoundEx()

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

Definition at line 2474 of file carscript.c.

◆ RemoveAction()

void Car::RemoveAction ( typename actionName )
protected

Definition at line 2770 of file carscript.c.

◆ ReverseLightsShineOff()

void Car::ReverseLightsShineOff ( )
protected

Definition at line 2270 of file carscript.c.

◆ ReverseLightsShineOn()

void Car::ReverseLightsShineOn ( )
protected

Definition at line 2259 of file carscript.c.

◆ ReverseRearLight()

void Car::ReverseRearLight ( )
protected

Definition at line 2202 of file carscript.c.

◆ RewindState()

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

Definition at line 3069 of file carscript.c.

◆ RightFrontLightShineOff()

void Car::RightFrontLightShineOff ( )
protected

Definition at line 2249 of file carscript.c.

◆ RightFrontLightShineOn()

void Car::RightFrontLightShineOn ( )
protected

Definition at line 2229 of file carscript.c.

◆ SetActions()

void Car::SetActions ( )
protected

Definition at line 2728 of file carscript.c.

◆ SetCarEngineSoundState()

void Car::SetCarEngineSoundState ( CarEngineSoundState pState)
protected

Definition at line 1654 of file carscript.c.

◆ SetCarHornState()

void Car::SetCarHornState ( int pState)
protected

Definition at line 2925 of file carscript.c.

◆ SetEngineStarted()

void Car::SetEngineStarted ( bool started)
protected

Definition at line 2648 of file carscript.c.

◆ SpawnAdditionalItems()

void Car::SpawnAdditionalItems ( )
protected

Definition at line 3016 of file carscript.c.

◆ SpawnUniversalParts()

void Car::SpawnUniversalParts ( )
protected

Definition at line 2978 of file carscript.c.

◆ SynchCrashHeavySound()

void Car::SynchCrashHeavySound ( bool play)
protected

Definition at line 2460 of file carscript.c.

◆ SynchCrashLightSound()

void Car::SynchCrashLightSound ( bool play)
protected

Definition at line 2441 of file carscript.c.

◆ TailLightsShineOff()

void Car::TailLightsShineOff ( )
protected

Definition at line 2328 of file carscript.c.

◆ TailLightsShineOn()

void Car::TailLightsShineOn ( )
protected

Definition at line 2303 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 1945 of file carscript.c.

◆ TranslateAnimationPhaseToCarDoorState()

CarDoorState Car::TranslateAnimationPhaseToCarDoorState ( string animation)
protected

Definition at line 2658 of file carscript.c.

◆ UpdateBattery()

void Car::UpdateBattery ( ItemBase battery)
protected

Definition at line 2886 of file carscript.c.

◆ UpdateHeadlightState()

void Car::UpdateHeadlightState ( )
protected

Definition at line 738 of file carscript.c.

◆ UpdateLights()

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

Definition at line 1953 of file carscript.c.

◆ UpdateLightsClient()

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

Definition at line 1961 of file carscript.c.

◆ UpdateLightsServer()

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

Definition at line 2080 of file carscript.c.

Member Data Documentation

◆ DROWN_ENGINE_DAMAGE

float Car::DROWN_ENGINE_DAMAGE = 350.0
staticprotected

Definition at line 177 of file carscript.c.

◆ DROWN_ENGINE_THRESHOLD

float Car::DROWN_ENGINE_THRESHOLD = 0.5
staticprotected

Definition at line 176 of file carscript.c.

◆ m_backPos

vector Car::m_backPos
protected

Definition at line 227 of file carscript.c.

◆ m_BatteryConsume

float Car::m_BatteryConsume = 15
protected

Definition at line 205 of file carscript.c.

◆ m_BatteryContinuousConsume

float Car::m_BatteryContinuousConsume = 0.25
protected

Definition at line 206 of file carscript.c.

◆ m_BatteryEnergyStartMin

float Car::m_BatteryEnergyStartMin = 5.0
protected

DEPRECATED.

Definition at line 3089 of file carscript.c.

◆ m_BatteryHealth

float Car::m_BatteryHealth
protected

Definition at line 200 of file carscript.c.

◆ m_BatteryRecharge

float Car::m_BatteryRecharge = 0.15
protected

Definition at line 207 of file carscript.c.

◆ m_BrakeAmmount

float Car::m_BrakeAmmount
protected

Definition at line 185 of file carscript.c.

◆ m_BrakesArePressed

bool Car::m_BrakesArePressed
protected

Definition at line 264 of file carscript.c.

◆ m_CarDoorCloseSound

string Car::m_CarDoorCloseSound = ""
protected

Definition at line 242 of file carscript.c.

◆ m_CarDoorOpenSound

string Car::m_CarDoorOpenSound = ""
protected

Definition at line 241 of file carscript.c.

◆ m_CarEngineLastSoundState

int Car::m_CarEngineLastSoundState
protected

Definition at line 300 of file carscript.c.

◆ m_CarEngineSoundState

int Car::m_CarEngineSoundState
protected

Definition at line 299 of file carscript.c.

◆ m_CarHornLongSoundName

string Car::m_CarHornLongSoundName = ""
protected

Definition at line 247 of file carscript.c.

◆ m_CarHornShortSoundName

string Car::m_CarHornShortSoundName = ""
protected

Definition at line 246 of file carscript.c.

◆ m_CarHornSoundEffect

ref EffectSound Car::m_CarHornSoundEffect
protected

Definition at line 255 of file carscript.c.

◆ m_CarHornState

int Car::m_CarHornState
protected

Definition at line 271 of file carscript.c.

◆ m_CarSeatShiftInSound

string Car::m_CarSeatShiftInSound = ""
protected

Definition at line 243 of file carscript.c.

◆ m_CarSeatShiftOutSound

string Car::m_CarSeatShiftOutSound = ""
protected

Definition at line 244 of file carscript.c.

◆ m_ContactCache

ref CarContactCache Car::m_ContactCache
protected

Definition at line 172 of file carscript.c.

◆ m_CoolantAmmount

float Car::m_CoolantAmmount
protected

Definition at line 183 of file carscript.c.

◆ m_coolantFx

ref EffVehicleSmoke Car::m_coolantFx
protected

Particles.

Definition at line 212 of file carscript.c.

◆ m_coolantPtcFx

int Car::m_coolantPtcFx
protected

Definition at line 217 of file carscript.c.

◆ m_coolantPtcPos

vector Car::m_coolantPtcPos
protected

Definition at line 223 of file carscript.c.

◆ m_CrashSoundHeavy

ref EffectSound Car::m_CrashSoundHeavy
protected

Definition at line 250 of file carscript.c.

◆ m_CrashSoundLight

ref EffectSound Car::m_CrashSoundLight
protected

Definition at line 249 of file carscript.c.

◆ m_dmgContactCoef

float Car::m_dmgContactCoef = 0.058
protected

Definition at line 189 of file carscript.c.

◆ m_DrownEnginePoint

string Car::m_DrownEnginePoint = "drown_engine"
staticprotected

Definition at line 282 of file carscript.c.

◆ m_DrownEnginePos

vector Car::m_DrownEnginePos
staticprotected

Definition at line 194 of file carscript.c.

◆ m_DrownTime

float Car::m_DrownTime
protected

Definition at line 193 of file carscript.c.

◆ m_EngineDestroyed

bool Car::m_EngineDestroyed
protected

Definition at line 269 of file carscript.c.

◆ m_engineFx

ref EffVehicleSmoke Car::m_engineFx
protected

Definition at line 213 of file carscript.c.

◆ m_EngineHealth

float Car::m_EngineHealth
protected

Definition at line 197 of file carscript.c.

◆ m_enginePos

vector Car::m_enginePos
protected

Definition at line 225 of file carscript.c.

◆ m_enginePtcFx

int Car::m_enginePtcFx
protected

Definition at line 216 of file carscript.c.

◆ m_enginePtcPos

vector Car::m_enginePtcPos
protected

Definition at line 222 of file carscript.c.

◆ m_EngineStartBattery

string Car::m_EngineStartBattery = ""
protected

Definition at line 235 of file carscript.c.

◆ m_EngineStarted

bool Car::m_EngineStarted
protected

Definition at line 268 of file carscript.c.

◆ m_EngineStartFuel

string Car::m_EngineStartFuel = ""
protected

Definition at line 237 of file carscript.c.

◆ m_EngineStartOK

string Car::m_EngineStartOK = ""
protected

Sounds.

Definition at line 234 of file carscript.c.

◆ m_EngineStartPlug

string Car::m_EngineStartPlug = ""
protected

Definition at line 236 of file carscript.c.

◆ m_EngineStop

string Car::m_EngineStop = ""
protected

Definition at line 238 of file carscript.c.

◆ m_EngineStopFuel

string Car::m_EngineStopFuel = ""
protected

Definition at line 239 of file carscript.c.

◆ m_EnviroHeatComfortOverride

float Car::m_EnviroHeatComfortOverride
protected

Definition at line 190 of file carscript.c.

◆ m_exhaustFx

ref EffVehicleSmoke Car::m_exhaustFx
protected

Definition at line 214 of file carscript.c.

◆ m_exhaustPtcDir

vector Car::m_exhaustPtcDir
protected

Definition at line 221 of file carscript.c.

◆ m_exhaustPtcFx

int Car::m_exhaustPtcFx
protected

Definition at line 218 of file carscript.c.

◆ m_exhaustPtcPos

vector Car::m_exhaustPtcPos
protected

Definition at line 220 of file carscript.c.

◆ m_ForceUpdateLights

bool Car::m_ForceUpdateLights
protected

Definition at line 267 of file carscript.c.

◆ m_frontPos

vector Car::m_frontPos
protected

Definition at line 226 of file carscript.c.

◆ m_FuelAmmount

float Car::m_FuelAmmount
protected

keeps ammount of each fluid

Definition at line 182 of file carscript.c.

◆ m_FuelTankHealth

float Car::m_FuelTankHealth
protected

Definition at line 199 of file carscript.c.

◆ m_Headlight

CarLightBase Car::m_Headlight
protected

Definition at line 273 of file carscript.c.

◆ m_HeadlightsOn

bool Car::m_HeadlightsOn
protected

Definition at line 262 of file carscript.c.

◆ m_HeadlightsState

bool Car::m_HeadlightsState
protected

Definition at line 263 of file carscript.c.

◆ m_LeftHeadlightPoint

string Car::m_LeftHeadlightPoint = "light_left"
staticprotected

Definition at line 278 of file carscript.c.

◆ m_LeftHeadlightTargetPoint

string Car::m_LeftHeadlightTargetPoint = "light_left_dir"
staticprotected

Definition at line 280 of file carscript.c.

◆ m_MomentumPrevTick

float Car::m_MomentumPrevTick
protected

Definition at line 170 of file carscript.c.

◆ m_NoisePar

ref NoiseParams Car::m_NoisePar
protected

Definition at line 256 of file carscript.c.

◆ m_NoiseSystem

NoiseSystem Car::m_NoiseSystem
protected

Definition at line 257 of file carscript.c.

◆ m_OilAmmount

float Car::m_OilAmmount
protected

Definition at line 184 of file carscript.c.

◆ m_PlayCrashSoundHeavy

bool Car::m_PlayCrashSoundHeavy
protected

Definition at line 260 of file carscript.c.

◆ m_PlayCrashSoundLight

bool Car::m_PlayCrashSoundLight
protected

Definition at line 259 of file carscript.c.

◆ m_PlugHealth

float Car::m_PlugHealth
protected

Definition at line 201 of file carscript.c.

◆ m_Radiator

EntityAI Car::m_Radiator
protected

Definition at line 203 of file carscript.c.

◆ m_RadiatorHealth

float Car::m_RadiatorHealth
protected

Definition at line 198 of file carscript.c.

◆ m_RearLight

CarRearLightBase Car::m_RearLight
protected

Definition at line 274 of file carscript.c.

◆ m_RearLightType

bool Car::m_RearLightType
protected

Definition at line 265 of file carscript.c.

◆ m_ReverseLightPoint

string Car::m_ReverseLightPoint = "light_reverse"
staticprotected

Definition at line 277 of file carscript.c.

◆ m_RightHeadlightPoint

string Car::m_RightHeadlightPoint = "light_right"
staticprotected

Definition at line 279 of file carscript.c.

◆ m_RightHeadlightTargetPoint

string Car::m_RightHeadlightTargetPoint = "light_right_dir"
staticprotected

Definition at line 281 of file carscript.c.

◆ m_side_1_1Pos

vector Car::m_side_1_1Pos
protected

Definition at line 228 of file carscript.c.

◆ m_side_1_2Pos

vector Car::m_side_1_2Pos
protected

Definition at line 229 of file carscript.c.

◆ m_side_2_1Pos

vector Car::m_side_2_1Pos
protected

Definition at line 230 of file carscript.c.

◆ m_side_2_2Pos

vector Car::m_side_2_2Pos
protected

Definition at line 231 of file carscript.c.

◆ m_Time

float Car::m_Time
protected

Definition at line 174 of file carscript.c.

◆ m_VelocityPrevTick

vector Car::m_VelocityPrevTick
protected

Definition at line 171 of file carscript.c.

◆ m_WheelSmokeFx

ref array<ref EffWheelSmoke> Car::m_WheelSmokeFx
protected

Definition at line 296 of file carscript.c.

◆ m_WheelSmokePtcFx

ref array<int> Car::m_WheelSmokePtcFx
protected

Definition at line 297 of file carscript.c.

◆ m_WindowLarge

ref EffectSound Car::m_WindowLarge
protected

Definition at line 252 of file carscript.c.

◆ m_WindowSmall

ref EffectSound Car::m_WindowSmall
protected

Definition at line 251 of file carscript.c.

◆ MEMORY_POINT_NAME_CAR_HORN

const string Car::MEMORY_POINT_NAME_CAR_HORN = "pos_carHorn"
staticprotected

Definition at line 179 of file carscript.c.

◆ SELECTION_ID_BRAKE_LIGHT_L

const int Car::SELECTION_ID_BRAKE_LIGHT_L = 2
staticprotected

Definition at line 288 of file carscript.c.

◆ SELECTION_ID_BRAKE_LIGHT_R

const int Car::SELECTION_ID_BRAKE_LIGHT_R = 3
staticprotected

Definition at line 289 of file carscript.c.

◆ SELECTION_ID_DASHBOARD_LIGHT

const int Car::SELECTION_ID_DASHBOARD_LIGHT = 8
staticprotected

Definition at line 294 of file carscript.c.

◆ SELECTION_ID_FRONT_LIGHT_L

const int Car::SELECTION_ID_FRONT_LIGHT_L = 0
staticprotected

Definition at line 286 of file carscript.c.

◆ SELECTION_ID_FRONT_LIGHT_R

const int Car::SELECTION_ID_FRONT_LIGHT_R = 1
staticprotected

Definition at line 287 of file carscript.c.

◆ SELECTION_ID_REVERSE_LIGHT_L

const int Car::SELECTION_ID_REVERSE_LIGHT_L = 4
staticprotected

Definition at line 290 of file carscript.c.

◆ SELECTION_ID_REVERSE_LIGHT_R

const int Car::SELECTION_ID_REVERSE_LIGHT_R = 5
staticprotected

Definition at line 291 of file carscript.c.

◆ SELECTION_ID_TAIL_LIGHT_L

const int Car::SELECTION_ID_TAIL_LIGHT_L = 6
staticprotected

Definition at line 292 of file carscript.c.

◆ SELECTION_ID_TAIL_LIGHT_R

const int Car::SELECTION_ID_TAIL_LIGHT_R = 7
staticprotected

Definition at line 293 of file carscript.c.


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