18 m_CarDoorOpenSound =
"offroad_door_open_SoundSet";
19 m_CarDoorCloseSound =
"offroad_door_close_SoundSet";
20 m_CarSeatShiftInSound =
"Offroad_SeatShiftIn_SoundSet";
21 m_CarSeatShiftOutSound =
"Offroad_SeatShiftOut_SoundSet";
32 m_CarHornShortSoundName =
"Offroad_Horn_Short_SoundSet";
33 m_CarHornLongSoundName =
"Offroad_Horn_SoundSet";
68 super.GetElectricitySourceDevice();
80 super.OnEngineStart();
141 if (!super.CanReleaseAttachment(attachment))
148 string attType = attachment.GetType();
149 if (attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
165 if (!super.CanDisplayAttachmentCategory(category_name))
171 if (category_name.
Contains(
"engine"))
184 if (!super.CanDisplayCargo())
201 Class.
CastTo(carDoor, FindAttachmentBySlotName(slotType));
209 case "NivaDriverDoors":
210 return TranslateAnimationPhaseToCarDoorState(
"DoorsDriver");
212 case "NivaCoDriverDoors":
213 return TranslateAnimationPhaseToCarDoorState(
"DoorsCoDriver");
216 return TranslateAnimationPhaseToCarDoorState(
"DoorsHood");
219 return TranslateAnimationPhaseToCarDoorState(
"DoorsTrunk");
233 else if (GetAnimationPhase(
"SeatDriver") > 0.5)
241 else if (GetAnimationPhase(
"SeatCoDriver") > 0.5)
249 else if (GetAnimationPhase(
"SeatDriver") <= 0.5)
257 else if (GetAnimationPhase(
"SeatCoDriver") <= 0.5)
272 return "doors_driver";
275 return "doors_codriver";
278 return super.GetDoorSelectionNameFromSeatPos(posIdx);
287 return "NivaDriverDoors";
290 return "NivaCoDriverDoors";
293 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
340 return super.OnSound(ctrl, oldValue);
348 return "DoorsDriver";
349 case "doors_codriver":
350 return "DoorsCoDriver";
355 case "seatback_driver":
357 case "seatback_codriver":
358 return "SeatCoDriver";
369 case "seatback_driver":
371 return "seat_con_1_1";
372 case "seat_codriver":
373 case "seatback_codriver":
375 return "seat_con_2_1";
385 case "seatback_driver":
387 case "seatback_codriver":
401 if (nextSeat == 0 && GetAnimationPhase(
"SeatDriver") > 0.5)
404 if (nextSeat == 1 && GetAnimationPhase(
"SeatCoDriver") > 0.5)
410 return nextSeat == 1;
413 return nextSeat == 0;
416 return nextSeat == 3;
419 return nextSeat == 2;
427 switch (pCurrentSeat)
430 return pDoorsSelection ==
"DoorsDriver";
433 return pDoorsSelection ==
"DoorsCoDriver";
436 return pDoorsSelection ==
"DoorsDriver";
439 return pDoorsSelection ==
"DoorsCoDriver";
447 switch (pDoorSelection)
451 case "DoorsCoDriver":
468 SpawnAdditionalItems();
493 SpawnAdditionalItems();
519 SpawnAdditionalItems();
void AddAction(typename actionName)
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
proto native void SetEnginePos(vector pos)
Override the position of engine (model space)
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
void SpawnUniversalParts()
string m_EngineStartBattery
ref VehicleHornComponent m_HornComponent
ref VehicleLightsComponent m_LightsComponent
OffroadHatchbackLightProfileFront VehicleLightProfileFront OffroadHatchbackLightProfileRear()
void OffroadHatchbackLightProfileFront()
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
void VehicleLightData(VehicleLightProfileBase profile)
Super root of all classes in Enforce script.
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
script counterpart to engine's class Inventory
override void OnDebugSpawn()
override bool CanDisplayAttachmentCategory(string category_name)
override int GetCarDoorsState(string slotType)
override bool CanDisplayCargo()
override string GetAnimSourceFromSelection(string selection)
override void OnEngineStop()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override bool NeedElectricitySourceDevice()
override float GetTransportCameraDistance()
override EntityAI GetElectricitySourceDevice()
override int GetSeatIndexFromDoor(string pDoorSelection)
override int GetAnimInstance()
override bool IsVitalGlowPlug()
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
override float OnSound(CarSoundCtrl ctrl, float oldValue)
ref UniversalTemperatureSourceSettings m_UTSSettings
override void OnEngineStart()
bool CanManipulateSpareWheel(string slotSelectionName)
override void EOnPostSimulate(IEntity other, float timeSlice)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override bool CrewCanGetThrough(int posIdx)
override string GetElectricitySourceDeviceType()
override int GetSeatAnimationType(int posIdx)
override void OnDebugSpawn()
override void SetActions()
override int GetCrewIndex(string selection)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override bool CanReleaseAttachment(EntityAI attachment)
override string GetDoorConditionPointFromSelection(string selection)
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
ref UniversalTemperatureSource m_UTSource
original Timer deletes m_params which is unwanted
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.