![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Base script class for cars. More...
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 TInputActionMap > | m_CarTypeActionsMap = new map<typename, ref TInputActionMap> |
Base script class for cars.
Definition at line 170 of file carscript.c.
|
inlineprotected |
Definition at line 546 of file carscript.c.
References CleanupEffects().
|
inlineprotected |
Definition at line 2882 of file carscript.c.
References Debug::ActionLog(), ActionManagerBase(), ActionBase::GetInputType(), LogManager::IsActionLogEnable(), Debug::LogError(), m_ActionsInitialize, and m_InputActionMap.
|
inlineprotected |
Definition at line 2349 of file carscript.c.
References m_RearLight.
Referenced by UpdateLightsClient().
|
inlineprotected |
Definition at line 2434 of file carscript.c.
References SELECTION_ID_BRAKE_LIGHT_L, and SELECTION_ID_BRAKE_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2423 of file carscript.c.
References SELECTION_ID_BRAKE_LIGHT_L, and SELECTION_ID_BRAKE_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2339 of file carscript.c.
References m_RearLight.
Referenced by UpdateLightsClient().
Definition at line 943 of file carscript.c.
Definition at line 2843 of file carscript.c.
|
inlineprotected |
skip the height for now
Definition at line 2710 of file carscript.c.
References vector::Distance(), CarScript::GetDoorConditionPointFromSelection(), and string::Length().
Definition at line 882 of file carscript.c.
References CarScript::CanManipulateSpareWheel(), InventoryLocation::GetParent(), and InventorySlots::GetSelectionForSlotId().
Definition at line 911 of file carscript.c.
References CarScript::CanManipulateSpareWheel(), InventorySlots::GetSelectionForSlotId(), InventoryLocation::GetSlot(), and IsMoving().
|
inlineprotected |
Definition at line 2559 of file carscript.c.
References GetRadiator(), HasRadiator(), m_EngineHealth, m_FuelTankHealth, and m_RadiatorHealth.
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 319 of file carscript.c.
References vector::Direction(), g_Game, m_backPos, m_BatteryHealth, m_CarEngineSoundState, m_CarHornState, m_ContactCache, m_coolantPtcFx, m_coolantPtcPos, m_DrownEnginePos, m_EngineHealth, m_enginePos, m_enginePtcFx, m_enginePtcPos, m_EnviroHeatComfortOverride, m_exhaustPtcDir, m_exhaustPtcFx, m_exhaustPtcPos, m_frontPos, m_FuelTankHealth, m_PlayCrashSoundHeavy, m_PlayCrashSoundLight, m_PlugHealth, m_RadiatorHealth, m_side_1_1Pos, m_side_1_2Pos, m_side_2_1Pos, m_side_2_2Pos, m_Time, m_WheelSmokeFx, and m_WheelSmokePtcFx.
|
inlineprotected |
Responsible for damaging the car according to contact events from OnContact.
Definition at line 1483 of file carscript.c.
References Math::AbsInt(), GameConstants::CARS_CONTACT_DMG_MIN, GameConstants::CARS_CONTACT_DMG_THRESHOLD, SEffectManager::CreateParticleServer(), DamageCrew(), dBodyGetMass(), vector::Dot(), string::Format(), g_Game, GetDisplayName(), GetVelocity(), vector::Length(), Debug::Log(), m_ContactCache, m_dmgContactCoef, m_MomentumPrevTick, m_VelocityPrevTick, SynchCrashHeavySound(), SynchCrashLightSound(), UpdateHeadlightState(), and UpdateLights().
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 1980 of file carscript.c.
References GetBattery(), GetBatteryConsumption(), CarScript::IsVitalCarBattery(), CarScript::IsVitalGlowPlug(), CarScript::IsVitalSparkPlug(), CarScript::IsVitalTruckBattery(), and GameConstants::STATE_RUINED.
Referenced by CheckOperationalState(), OnBeforeEngineStart(), and OnIgnition().
|
inlineprotected |
Definition at line 2021 of file carscript.c.
References CheckOperationalRequirements().
Definition at line 2513 of file carscript.c.
References GameInventory::FindAttachment().
Referenced by CheckVitalItem(), and EOnPostSimulate().
Definition at line 2527 of file carscript.c.
References CheckVitalItem(), and InventorySlots::GetSlotIdFromString().
|
inlineprotected |
Definition at line 553 of file carscript.c.
References CleanupSound(), SEffectManager::DestroyEffect(), Effect(), m_CarHornSoundEffect, m_coolantFx, m_CrashSoundHeavy, m_CrashSoundLight, m_engineFx, m_exhaustFx, m_Headlight, m_RearLight, m_WheelSmokeFx, m_WheelSmokePtcFx, m_WindowLarge, and m_WindowSmall.
Referenced by ~CarScript(), and EEDelete().
|
inlineprotected |
Definition at line 584 of file carscript.c.
References SEffectManager::DestroyEffect().
Referenced by CleanupEffects(), and HandleCarHornSound().
|
inlineprotected |
Definition at line 730 of file carscript.c.
References g_Game, GetEnginePosWS(), SEffectManager::IsEffectExist(), m_engineFx, m_enginePtcFx, m_enginePtcPos, SEffectManager::PlayOnObject(), and Vector().
Referenced by EEHealthLevelChanged().
|
inlineprotected |
Definition at line 2508 of file carscript.c.
|
inlineprotected |
Definition at line 2502 of file carscript.c.
|
inlineprotected |
Definition at line 1677 of file carscript.c.
References Class::CastTo(), g_Game, GetSelectionFromAnimSource(), EffectSound::SetAutodestroy(), EffectSound::SetParent(), EffectSound::SetSoundWaveKind(), and vector::Zero.
Referenced by HandleDoorsSound(), and HandleSeatAdjustmentSound().
|
inlineprotected |
Responsible for damaging crew in a car crash.
Definition at line 1592 of file carscript.c.
References GameConstants::CARS_CONTACT_DMG_KILLCREW, GameConstants::CARS_CONTACT_DMG_THRESHOLD, Class::CastTo(), Math::Clamp(), Math::InverseLerp(), Math::Lerp(), and Debug::Log().
Referenced by CheckContactCache().
|
inlineprotected |
Definition at line 2491 of file carscript.c.
References SELECTION_ID_DASHBOARD_LIGHT.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2481 of file carscript.c.
References SELECTION_ID_DASHBOARD_LIGHT.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 1294 of file carscript.c.
References GameConstants::VEHICLE_FLIP_ANGLE_TOLERANCE, and GameConstants::VEHICLE_FLIP_WHEELS_LIMITED.
|
inlineprotected |
Definition at line 539 of file carscript.c.
References CleanupEffects().
Definition at line 2931 of file carscript.c.
References CreateCarDestroyedEffect(), m_Initialized, m_WindowLarge, m_WindowSmall, PlaySoundEx(), and GameConstants::STATE_RUINED.
|
inlineprotected |
Definition at line 531 of file carscript.c.
References CALL_CATEGORY_GAMEPLAY, component, ForceUpdateLightsEnd(), ForceUpdateLightsStart(), and g_Game.
|
inlineprotected |
Definition at line 441 of file carscript.c.
References g_Game, GetType(), m_NoisePar, m_NoiseSystem, and NoiseParams().
Definition at line 740 of file carscript.c.
References g_Game, m_BatteryHealth, m_PlugHealth, m_Radiator, m_RadiatorHealth, Synchronize(), UpdateHeadlightState(), and UpdateLights().
Definition at line 815 of file carscript.c.
References g_Game, IsScriptedLightsOn(), IsServerOrOwner(), m_BatteryHealth, m_PlugHealth, m_Radiator, Synchronize(), ToggleHeadlights(), UpdateBattery(), UpdateHeadlightState(), and UpdateLights().
|
inlineprotected |
Definition at line 1447 of file carscript.c.
References m_EngineDestroyed.
|
inlineprotected |
Definition at line 2967 of file carscript.c.
References Math::RandomFloat().
actions runned when the engine on
leaking of coolant from radiator when damaged
Definition at line 948 of file carscript.c.
References Math::AbsFloat(), CarPartsHealthCheck(), GameConstants::CARS_FLUIDS_TICK, CheckContactCache(), CheckVitalItem(), GameConstants::DAMAGE_DAMAGED_VALUE, GameConstants::DAMAGE_RUINED_VALUE, dBodyGetVelocityAt(), g_Game, GetVelocity(), Surface::GetWheelParticleID(), vector::InvMultiply3(), SEffectManager::IsEffectExist(), IsServerOrOwner(), IsVitalFuelTank(), CarScript::IsVitalGlowPlug(), CarScript::IsVitalRadiator(), CarScript::IsVitalSparkPlug(), LeakFluid(), vector::Length(), Debug::Log(), m_coolantFx, m_coolantPtcFx, m_coolantPtcPos, m_EngineHealth, m_exhaustFx, m_exhaustPtcDir, m_exhaustPtcFx, m_exhaustPtcPos, m_FuelTankHealth, m_MomentumPrevTick, m_RadiatorHealth, m_Time, m_VelocityPrevTick, m_WheelSmokeFx, m_WheelSmokePtcFx, SEffectManager::PlayOnObject(), Math::RandomFloat(), EffectParticle::SetCurrentLocalPosition(), EffWheelSmoke::SetSurface(), EffectParticle::Start(), EffectParticle::Stop(), SEffectManager::Stop(), vector::Up, EffWheelSmoke::WHEEL_SMOKE_THRESHOLD, and vector::Zero.
|
inlineprotected |
Definition at line 3191 of file carscript.c.
|
inlineprotected |
Definition at line 2990 of file carscript.c.
References m_ForceUpdateLights.
Referenced by EEHitBy().
|
inlineprotected |
Definition at line 2981 of file carscript.c.
References m_ForceUpdateLights.
Referenced by EEHitBy().
|
inlineprotected |
Definition at line 3079 of file carscript.c.
References g_Game, NoiseAIEvaluate::GetNoiseReduction(), GetPosition(), m_NoisePar, and m_NoiseSystem.
Referenced by SetCarHornState().
|
inlineprotected |
camera type
Definition at line 2785 of file carscript.c.
References DayZPlayerCameras::DAYZCAMERA_3RD_VEHICLE.
|
inlineprotected |
Definition at line 508 of file carscript.c.
References m_side_1_1Pos.
|
inlineprotected |
Definition at line 512 of file carscript.c.
References m_side_1_2Pos.
|
inlineprotected |
Definition at line 516 of file carscript.c.
References m_side_2_1Pos.
|
inlineprotected |
Definition at line 520 of file carscript.c.
References m_side_2_2Pos.
|
inlineprotected |
Definition at line 2833 of file carscript.c.
|
inlineprotected |
Definition at line 2813 of file carscript.c.
|
inlineprotected |
Definition at line 2823 of file carscript.c.
|
inlineprotected |
Definition at line 2838 of file carscript.c.
|
inlineprotected |
Definition at line 2818 of file carscript.c.
|
inlineprotected |
Definition at line 2828 of file carscript.c.
|
inlineprotected |
Definition at line 2860 of file carscript.c.
References InitializeActions(), m_ActionsInitialize, and m_InputActionMap.
Definition at line 2646 of file carscript.c.
|
inlineprotected |
Definition at line 504 of file carscript.c.
References m_backPos.
|
inlineprotected |
Definition at line 3015 of file carscript.c.
References CarScript::IsVitalCarBattery(), CarScript::IsVitalTruckBattery(), CarBattery::SLOT_ID, and TruckBattery::SLOT_ID.
Referenced by CheckOperationalRequirements(), OnBeforeLightOn(), OnEngineStart(), OnEngineStop(), and OnUpdate().
|
inlineprotected |
Definition at line 3000 of file carscript.c.
References m_BatteryConsume.
Referenced by CheckOperationalRequirements(), and OnEngineStart().
|
inlineprotected |
Definition at line 3010 of file carscript.c.
References m_BatteryRecharge.
Referenced by UpdateBattery().
|
inlineprotected |
Definition at line 3005 of file carscript.c.
References m_BatteryContinuousConsume.
Referenced by UpdateBattery().
Definition at line 2796 of file carscript.c.
|
inlineprotected |
Definition at line 491 of file carscript.c.
References m_coolantPtcPos.
|
inlineprotected |
Definition at line 2598 of file carscript.c.
References m_PlayCrashSoundHeavy.
Referenced by OnVariablesSynchronized().
|
inlineprotected |
Definition at line 2579 of file carscript.c.
References m_PlayCrashSoundLight.
Referenced by OnVariablesSynchronized().
Definition at line 2705 of file carscript.c.
|
inlineprotected |
Definition at line 589 of file carscript.c.
References name, and SAT_DEBUG_ACTION.
|
inlineprotected |
Definition at line 3096 of file carscript.c.
References vector::Zero.
Definition at line 2674 of file carscript.c.
Definition at line 2700 of file carscript.c.
Definition at line 2695 of file carscript.c.
|
inlineprotected |
Definition at line 496 of file carscript.c.
References m_enginePos.
|
inlineprotected |
Definition at line 486 of file carscript.c.
References m_DrownEnginePos.
Referenced by CreateCarDestroyedEffect(), and OnUpdate().
|
protected |
|
inlineprotected |
Definition at line 500 of file carscript.c.
References m_frontPos.
|
inlineprotected |
Definition at line 525 of file carscript.c.
References LIQUID_THROUGHPUT_CAR_DEFAULT.
Referenced by CAContinuousFillCoolant::Setup().
|
inlineprotected |
Definition at line 3203 of file carscript.c.
|
inlineprotected |
Definition at line 3198 of file carscript.c.
|
inlineprotected |
Definition at line 3101 of file carscript.c.
|
inlineprotected |
Definition at line 2769 of file carscript.c.
References m_Radiator.
Referenced by CarPartsHealthCheck().
Definition at line 2651 of file carscript.c.
References CarScript::GetAnimSourceFromSelection(), and string::ToLower().
Referenced by CreateSoundForAnimationSource().
|
inlineprotected |
Definition at line 481 of file carscript.c.
|
inlineprotected |
Definition at line 1767 of file carscript.c.
References CleanupSound(), m_CarHornLongSoundName, m_CarHornShortSoundName, and m_CarHornSoundEffect.
Referenced by OnVariablesSynchronized().
Definition at line 1722 of file carscript.c.
References CreateSoundForAnimationSource(), SEffectManager::EffectRegister(), m_CarDoorCloseSound, m_CarDoorOpenSound, EffectSound::SetSoundSet(), and EffectSound::SoundPlay().
Referenced by OnAnimationPhaseStarted().
|
inlineprotected |
postpone the engine sound played from c++ on soundcontroller (via OnSound override)
Definition at line 1790 of file carscript.c.
References CALL_CATEGORY_GAMEPLAY, Class::CastTo(), SEffectManager::EffectRegister(), g_Game, m_CarEngineLastSoundState, m_EngineStartOK, m_EngineStop, m_EngineStopFuel, m_PreStartSound, EffectSound::SetAutodestroy(), SetCarEngineSoundState(), SetEngineStarted(), EffectSound::SetParent(), EffectSound::SetSoundFadeOut(), EffectSound::SetSoundSet(), EffectSound::SetSoundWaveKind(), and EffectSound::SoundPlay().
Referenced by OnEngineStart(), OnEngineStop(), OnIgnition(), and OnVariablesSynchronized().
Definition at line 1746 of file carscript.c.
References CreateSoundForAnimationSource(), SEffectManager::EffectRegister(), m_CarSeatShiftInSound, m_CarSeatShiftOutSound, EffectSound::SetSoundSet(), and EffectSound::SoundPlay().
Referenced by OnAnimationPhaseStarted().
|
inlineprotected |
Definition at line 2764 of file carscript.c.
References m_Radiator.
Referenced by CarPartsHealthCheck().
|
inlineprotected |
Definition at line 2848 of file carscript.c.
References m_CarTypeActionsMap, m_InputActionMap, CarScript::SetActions(), and Type.
|
inlineprotected |
Definition at line 2779 of file carscript.c.
|
inlineprotected |
Definition at line 2926 of file carscript.c.
References g_Game.
|
inlineprotected |
Definition at line 2774 of file carscript.c.
Referenced by CanReleaseAttachment().
|
inlineprotected |
Proper way to get if light is swiched on.
Definition at line 2070 of file carscript.c.
Referenced by EEItemDetached(), and UpdateBattery().
|
inlineprotected |
Definition at line 3222 of file carscript.c.
References g_Game, and IsOwner().
Referenced by EEItemDetached(), and EOnPostSimulate().
|
inlineprotected |
Definition at line 2734 of file carscript.c.
|
inlineprotected |
Definition at line 2749 of file carscript.c.
|
inlineprotected |
Definition at line 2759 of file carscript.c.
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 2744 of file carscript.c.
|
inlineprotected |
Definition at line 2754 of file carscript.c.
|
inlineprotected |
Definition at line 2739 of file carscript.c.
|
inlineprotected |
Definition at line 2536 of file carscript.c.
References m_EngineHealth, m_FuelTankHealth, and m_RadiatorHealth.
Referenced by EOnPostSimulate().
|
inlineprotected |
Definition at line 2381 of file carscript.c.
References SELECTION_ID_FRONT_LIGHT_L.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2361 of file carscript.c.
References SELECTION_ID_FRONT_LIGHT_L.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 1897 of file carscript.c.
|
inlineprotected |
Definition at line 1886 of file carscript.c.
|
inlineprotected |
Definition at line 2355 of file carscript.c.
References m_RearLight.
Referenced by UpdateLightsClient().
|
inlineprotected |
Definition at line 3208 of file carscript.c.
References m_Time.
|
inlineprotected |
Definition at line 636 of file carscript.c.
References dBodyActive(), g_Game, and SetCarHornState().
Definition at line 1669 of file carscript.c.
References HandleDoorsSound(), and HandleSeatAdjustmentSound().
|
inlineprotected |
Definition at line 874 of file carscript.c.
References UpdateHeadlightState(), and UpdateLights().
|
inlineprotected |
Gets called everytime the game wants to start the engine.
Definition at line 1941 of file carscript.c.
References CheckOperationalRequirements(), and SetCarEngineSoundState().
|
inlineprotected |
Definition at line 2075 of file carscript.c.
References GetBattery().
DEPRECATED Gets called everytime the game wants to switch the lights.
Definition at line 3243 of file carscript.c.
|
inlineprotected |
|
inlineprotected |
|
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.
|
inlineprotected |
Definition at line 1207 of file carscript.c.
|
inlineprotected |
Gets called everytime the engine starts.
Definition at line 2033 of file carscript.c.
References g_Game, GetBattery(), GetBatteryConsumption(), HandleEngineSound(), UpdateBattery(), and UpdateLights().
|
inlineprotected |
Gets called everytime the engine stops.
Definition at line 2050 of file carscript.c.
References g_Game, GetBattery(), HandleEngineSound(), UpdateBattery(), and UpdateLights().
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.
Definition at line 2026 of file carscript.c.
References UpdateLights().
|
inlineprotected |
Definition at line 1949 of file carscript.c.
References CheckOperationalRequirements(), and HandleEngineSound().
|
inlineprotected |
Definition at line 1303 of file carscript.c.
References Math::AbsFloat(), Math::Clamp(), and Math::InverseLerp().
|
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.
|
inlineprotected |
Definition at line 1385 of file carscript.c.
References BATTERY_UPDATE_DELAY, DROWN_ENGINE_DAMAGE, DROWN_ENGINE_THRESHOLD, g_Game, GetBattery(), GetEnginePosWS(), Human::IsControllingVehicle(), m_BatteryTimer, m_BrakesArePressed, m_DrownTime, OnBrakesPressed(), OnBrakesReleased(), and UpdateBattery().
|
inlineprotected |
Definition at line 709 of file carscript.c.
References GetCrashHeavySound(), GetCrashLightSound(), HandleCarHornSound(), HandleEngineSound(), IsOwner(), m_CarEngineLastSoundState, m_CarEngineSoundState, m_CarHornState, PlayCrashHeavySound(), PlayCrashLightSound(), and UpdateLights().
|
inlineprotected |
Definition at line 1218 of file carscript.c.
References Class::CastTo(), Math::Clamp(), ActionGetOutTransport::DMG_FACTOR, ActionGetOutTransport::HEALTH_HIGH_SPEED_VALUE, ActionGetOutTransport::HEALTH_LOW_SPEED_VALUE, ActionGetOutTransport::HIGH_SPEED_VALUE, Math::InverseLerp(), ActionGetOutTransport::LOW_SPEED_VALUE, GetOutTransportActionData::m_Speed, Math::RandomInt(), Math::RandomIntInclusive(), and ActionGetOutTransport::SHOCK_FACTOR.
|
inlineprotected |
Definition at line 2612 of file carscript.c.
References m_CrashSoundHeavy, m_PlayCrashSoundHeavy, and PlaySoundEx().
Referenced by OnVariablesSynchronized().
|
inlineprotected |
Definition at line 2593 of file carscript.c.
References m_CrashSoundLight, m_PlayCrashSoundLight, and PlaySoundEx().
Referenced by OnVariablesSynchronized().
|
inlineprotected |
Definition at line 2641 of file carscript.c.
References PlaySoundEx().
|
inlineprotected |
Definition at line 2617 of file carscript.c.
References GetPosition(), EffectSound::IsSoundPlaying(), SEffectManager::PlaySoundCachedParams(), EffectSound::SetAutodestroy(), and EffectSound::SoundPlay().
Referenced by EEHealthLevelChanged(), PlayCrashHeavySound(), PlayCrashLightSound(), and PlaySound().
|
inlineprotected |
Definition at line 2913 of file carscript.c.
References g_Game, ActionBase::GetInputType(), and m_InputActionMap.
|
inlineprotected |
Definition at line 2412 of file carscript.c.
References SELECTION_ID_REVERSE_LIGHT_L, and SELECTION_ID_REVERSE_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2401 of file carscript.c.
References SELECTION_ID_REVERSE_LIGHT_L, and SELECTION_ID_REVERSE_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2344 of file carscript.c.
References m_RearLight.
Referenced by UpdateLightsClient().
|
inlineprotected |
Definition at line 3214 of file carscript.c.
References m_Time.
|
inlineprotected |
Definition at line 2391 of file carscript.c.
References SELECTION_ID_FRONT_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2371 of file carscript.c.
References SELECTION_ID_FRONT_LIGHT_R.
Referenced by UpdateLightsServer().
|
inlineprotected |
Definition at line 2871 of file carscript.c.
References ActionCarHornShort(), ActionPushCar(), and AddAction().
|
inlineprotected |
Definition at line 1784 of file carscript.c.
References m_CarEngineSoundState.
Referenced by HandleEngineSound(), and OnBeforeEngineStart().
|
inlineprotected |
Definition at line 3068 of file carscript.c.
References g_Game, GenerateCarHornAINoise(), and m_CarHornState.
Referenced by OnAction().
|
inlineprotected |
Definition at line 2791 of file carscript.c.
References m_EngineStarted.
Referenced by HandleEngineSound().
|
inlineprotected |
Definition at line 3160 of file carscript.c.
References Class::CastTo(), GameInventory::CreateInInventory(), and LIQUID_WATER.
|
inlineprotected |
Definition at line 3121 of file carscript.c.
References GameInventory::CreateInInventory(), CarScript::IsVitalCarBattery(), CarScript::IsVitalGlowPlug(), CarScript::IsVitalRadiator(), CarScript::IsVitalSparkPlug(), and CarScript::IsVitalTruckBattery().
|
inlineprotected |
Definition at line 2603 of file carscript.c.
References m_PlayCrashSoundHeavy.
Referenced by CheckContactCache().
|
inlineprotected |
Definition at line 2584 of file carscript.c.
References m_PlayCrashSoundLight.
Referenced by CheckContactCache().
|
inlineprotected |
Definition at line 2470 of file carscript.c.
References SELECTION_ID_TAIL_LIGHT_L, and SELECTION_ID_TAIL_LIGHT_R.
Referenced by UpdateLightsServer().
|
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().
|
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().
|
inlineprotected |
Definition at line 2801 of file carscript.c.
|
inlineprotected |
Definition at line 3029 of file carscript.c.
References GetBatteryRechargeRate(), GetBatteryRuntimeConsumption(), IsScriptedLightsOn(), m_BatteryTimer, and ToggleHeadlights().
Referenced by EEItemDetached(), OnEngineStart(), OnEngineStop(), and OnUpdate().
|
inlineprotected |
Definition at line 792 of file carscript.c.
References m_HeadlightsState.
Referenced by CheckContactCache(), EEItemAttached(), EEItemDetached(), and OnAttachmentRuined().
|
inlineprotected |
Definition at line 2095 of file carscript.c.
References UpdateLightsClient(), and UpdateLightsServer().
Referenced by CheckContactCache(), EEItemAttached(), EEItemDetached(), OnAttachmentRuined(), OnBrakesPressed(), OnBrakesReleased(), OnEngineStart(), OnEngineStop(), OnGearChanged(), and OnVariablesSynchronized().
|
inlineprotected |
Definition at line 2103 of file carscript.c.
References BrakeAndReverseRearLight(), BrakesRearLight(), CarScript::CreateFrontLight(), CarScript::CreateRearLight(), gear, m_BrakesArePressed, m_Headlight, m_HeadlightsState, m_LeftHeadlightPoint, m_LeftHeadlightTargetPoint, m_RearLight, m_RearLightType, m_ReverseLightPoint, m_RightHeadlightPoint, m_RightHeadlightTargetPoint, NoRearLight(), and ReverseRearLight().
Referenced by UpdateLights().
|
inlineprotected |
Definition at line 2222 of file carscript.c.
References BrakeLightsShineOff(), BrakeLightsShineOn(), DashboardShineOff(), DashboardShineOn(), gear, LeftFrontLightShineOff(), LeftFrontLightShineOn(), m_BrakesArePressed, m_HeadlightsState, m_RearLightType, ReverseLightsShineOff(), ReverseLightsShineOn(), RightFrontLightShineOff(), RightFrontLightShineOn(), TailLightsShineOff(), and TailLightsShineOn().
Referenced by UpdateLights().
|
private |
Definition at line 218 of file carscript.c.
Referenced by OnUpdate().
|
staticprotected |
Definition at line 186 of file carscript.c.
Referenced by OnUpdate().
|
staticprotected |
Definition at line 185 of file carscript.c.
Referenced by OnUpdate().
|
private |
Definition at line 178 of file carscript.c.
Referenced by AddAction(), and GetActions().
|
protected |
Definition at line 236 of file carscript.c.
Referenced by CarScript(), and GetBackPointPosWS().
|
protected |
Definition at line 214 of file carscript.c.
Referenced by GetBatteryConsumption().
|
protected |
Definition at line 215 of file carscript.c.
Referenced by GetBatteryRuntimeConsumption().
|
protected |
DEPRECATED.
Definition at line 3234 of file carscript.c.
|
protected |
Definition at line 209 of file carscript.c.
Referenced by CarScript(), EEItemAttached(), and EEItemDetached().
|
protected |
Definition at line 216 of file carscript.c.
Referenced by GetBatteryRechargeRate().
|
private |
Definition at line 217 of file carscript.c.
Referenced by OnUpdate(), and UpdateBattery().
|
protected |
Definition at line 194 of file carscript.c.
Referenced by OnFluidChanged().
|
protected |
Definition at line 3236 of file carscript.c.
Referenced by OnUpdate(), UpdateLightsClient(), and UpdateLightsServer().
|
protected |
Definition at line 251 of file carscript.c.
Referenced by HandleDoorsSound().
|
protected |
Definition at line 250 of file carscript.c.
Referenced by HandleDoorsSound().
|
protected |
Definition at line 307 of file carscript.c.
Referenced by HandleEngineSound(), and OnVariablesSynchronized().
|
protected |
Definition at line 306 of file carscript.c.
Referenced by CarScript(), OnVariablesSynchronized(), and SetCarEngineSoundState().
|
protected |
Definition at line 256 of file carscript.c.
Referenced by HandleCarHornSound().
|
protected |
Definition at line 255 of file carscript.c.
Referenced by HandleCarHornSound().
|
protected |
Definition at line 264 of file carscript.c.
Referenced by CleanupEffects(), and HandleCarHornSound().
|
protected |
Definition at line 278 of file carscript.c.
Referenced by CarScript(), OnVariablesSynchronized(), and SetCarHornState().
|
protected |
Definition at line 252 of file carscript.c.
Referenced by HandleSeatAdjustmentSound().
|
protected |
Definition at line 253 of file carscript.c.
Referenced by HandleSeatAdjustmentSound().
|
staticprivate |
Definition at line 176 of file carscript.c.
Referenced by InitializeActions().
|
protected |
Definition at line 181 of file carscript.c.
Referenced by CarScript(), CheckContactCache(), and OnContact().
|
protected |
Definition at line 192 of file carscript.c.
Referenced by OnFluidChanged().
|
protected |
Particles.
Definition at line 221 of file carscript.c.
Referenced by CleanupEffects(), and EOnPostSimulate().
|
protected |
Definition at line 226 of file carscript.c.
Referenced by CarScript(), and EOnPostSimulate().
|
protected |
Definition at line 232 of file carscript.c.
Referenced by CarScript(), EOnPostSimulate(), and GetCoolantPtcPosWS().
|
protected |
Definition at line 259 of file carscript.c.
Referenced by CleanupEffects(), and PlayCrashHeavySound().
|
protected |
Definition at line 258 of file carscript.c.
Referenced by CleanupEffects(), and PlayCrashLightSound().
|
protected |
Definition at line 198 of file carscript.c.
Referenced by CheckContactCache().
|
staticprotected |
Definition at line 289 of file carscript.c.
|
staticprotected |
Definition at line 203 of file carscript.c.
Referenced by CarScript(), and GetEnginePosWS().
|
protected |
Definition at line 202 of file carscript.c.
Referenced by OnUpdate().
|
protected |
Definition at line 276 of file carscript.c.
Referenced by EEKilled().
|
protected |
Definition at line 222 of file carscript.c.
Referenced by CleanupEffects(), and CreateCarDestroyedEffect().
|
protected |
Definition at line 206 of file carscript.c.
Referenced by CarPartsHealthCheck(), CarScript(), EOnPostSimulate(), and LeakFluid().
|
protected |
Definition at line 234 of file carscript.c.
Referenced by CarScript(), and GetEnginePointPosWS().
|
protected |
Definition at line 225 of file carscript.c.
Referenced by CarScript(), and CreateCarDestroyedEffect().
|
protected |
Definition at line 231 of file carscript.c.
Referenced by CarScript(), and CreateCarDestroyedEffect().
|
protected |
Definition at line 244 of file carscript.c.
|
protected |
Definition at line 275 of file carscript.c.
Referenced by OnSound(), and SetEngineStarted().
|
protected |
Definition at line 246 of file carscript.c.
|
protected |
|
protected |
Definition at line 245 of file carscript.c.
|
protected |
Definition at line 247 of file carscript.c.
Referenced by HandleEngineSound().
|
protected |
Definition at line 248 of file carscript.c.
Referenced by HandleEngineSound().
|
protected |
Definition at line 199 of file carscript.c.
Referenced by CarScript().
|
protected |
Definition at line 223 of file carscript.c.
Referenced by CleanupEffects(), and EOnPostSimulate().
|
protected |
Definition at line 230 of file carscript.c.
Referenced by CarScript(), and EOnPostSimulate().
|
protected |
Definition at line 227 of file carscript.c.
Referenced by CarScript(), and EOnPostSimulate().
|
protected |
Definition at line 229 of file carscript.c.
Referenced by CarScript(), and EOnPostSimulate().
|
protected |
Definition at line 274 of file carscript.c.
Referenced by ForceUpdateLightsEnd(), and ForceUpdateLightsStart().
|
protected |
Definition at line 235 of file carscript.c.
Referenced by CarScript(), and GetFrontPointPosWS().
|
protected |
keeps ammount of each fluid
Definition at line 191 of file carscript.c.
Referenced by OnFluidChanged().
|
protected |
Definition at line 208 of file carscript.c.
Referenced by CarPartsHealthCheck(), CarScript(), EOnPostSimulate(), and LeakFluid().
|
protected |
Definition at line 280 of file carscript.c.
Referenced by CleanupEffects(), and UpdateLightsClient().
|
protected |
Definition at line 3235 of file carscript.c.
|
protected |
Definition at line 271 of file carscript.c.
Referenced by TailLightsShineOn(), UpdateHeadlightState(), UpdateLightsClient(), and UpdateLightsServer().
|
private |
Definition at line 177 of file carscript.c.
Referenced by AddAction(), GetActions(), InitializeActions(), and RemoveAction().
|
staticprotected |
Definition at line 285 of file carscript.c.
Referenced by UpdateLightsClient().
|
staticprotected |
Definition at line 287 of file carscript.c.
Referenced by UpdateLightsClient().
|
protected |
Definition at line 179 of file carscript.c.
Referenced by CheckContactCache(), EOnPostSimulate(), and OnContact().
|
protected |
Definition at line 265 of file carscript.c.
Referenced by EEInit(), and GenerateCarHornAINoise().
|
protected |
Definition at line 266 of file carscript.c.
Referenced by EEInit(), and GenerateCarHornAINoise().
|
protected |
Definition at line 193 of file carscript.c.
Referenced by OnFluidChanged().
|
protected |
Definition at line 269 of file carscript.c.
Referenced by CarScript(), GetCrashHeavySound(), PlayCrashHeavySound(), and SynchCrashHeavySound().
|
protected |
Definition at line 268 of file carscript.c.
Referenced by CarScript(), GetCrashLightSound(), PlayCrashLightSound(), and SynchCrashLightSound().
|
protected |
Definition at line 210 of file carscript.c.
Referenced by CarScript(), EEItemAttached(), and EEItemDetached().
|
private |
Definition at line 262 of file carscript.c.
Referenced by HandleEngineSound().
|
protected |
Definition at line 212 of file carscript.c.
Referenced by EEItemAttached(), EEItemDetached(), GetRadiator(), and HasRadiator().
|
protected |
Definition at line 207 of file carscript.c.
Referenced by CarPartsHealthCheck(), CarScript(), EEItemAttached(), EOnPostSimulate(), and LeakFluid().
|
protected |
Definition at line 281 of file carscript.c.
Referenced by BrakeAndReverseRearLight(), BrakesRearLight(), CleanupEffects(), NoRearLight(), ReverseRearLight(), and UpdateLightsClient().
|
protected |
Definition at line 272 of file carscript.c.
Referenced by UpdateLightsClient(), and UpdateLightsServer().
|
staticprotected |
Definition at line 284 of file carscript.c.
Referenced by UpdateLightsClient().
|
staticprotected |
Definition at line 286 of file carscript.c.
Referenced by UpdateLightsClient().
|
staticprotected |
Definition at line 288 of file carscript.c.
Referenced by UpdateLightsClient().
|
protected |
Definition at line 237 of file carscript.c.
Referenced by CarScript(), and Get_1_1PointPosWS().
|
protected |
Definition at line 238 of file carscript.c.
Referenced by CarScript(), and Get_1_2PointPosWS().
|
protected |
Definition at line 239 of file carscript.c.
Referenced by CarScript(), and Get_2_1PointPosWS().
|
protected |
Definition at line 240 of file carscript.c.
Referenced by CarScript(), and Get_2_2PointPosWS().
|
protected |
Definition at line 183 of file carscript.c.
Referenced by CarScript(), EOnPostSimulate(), ObtainState(), and RewindState().
|
protected |
Definition at line 180 of file carscript.c.
Referenced by CheckContactCache(), EOnPostSimulate(), and OnContact().
|
protected |
Definition at line 303 of file carscript.c.
Referenced by CarScript(), CleanupEffects(), and EOnPostSimulate().
Definition at line 304 of file carscript.c.
Referenced by CarScript(), CleanupEffects(), and EOnPostSimulate().
|
protected |
Definition at line 261 of file carscript.c.
Referenced by CleanupEffects(), and EEHealthLevelChanged().
|
protected |
Definition at line 260 of file carscript.c.
Referenced by CleanupEffects(), and EEHealthLevelChanged().
|
staticprotected |
Definition at line 188 of file carscript.c.
|
staticprotected |
Definition at line 295 of file carscript.c.
Referenced by BrakeLightsShineOff(), and BrakeLightsShineOn().
|
staticprotected |
Definition at line 296 of file carscript.c.
Referenced by BrakeLightsShineOff(), and BrakeLightsShineOn().
|
staticprotected |
Definition at line 301 of file carscript.c.
Referenced by DashboardShineOff(), and DashboardShineOn().
|
staticprotected |
Definition at line 293 of file carscript.c.
Referenced by LeftFrontLightShineOff(), and LeftFrontLightShineOn().
|
staticprotected |
Definition at line 294 of file carscript.c.
Referenced by RightFrontLightShineOff(), and RightFrontLightShineOn().
|
staticprotected |
Definition at line 297 of file carscript.c.
Referenced by ReverseLightsShineOff(), and ReverseLightsShineOn().
|
staticprotected |
Definition at line 298 of file carscript.c.
Referenced by ReverseLightsShineOff(), and ReverseLightsShineOn().
|
staticprotected |
Definition at line 299 of file carscript.c.
Referenced by TailLightsShineOff(), and TailLightsShineOn().
|
staticprotected |
Definition at line 300 of file carscript.c.
Referenced by TailLightsShineOff(), and TailLightsShineOn().