25 SetEnginePos(
"0 0.7 1.2");
49 super.OnEngineStart();
148 if (!
super.CanDisplayCargo())
167 case "NivaDriverDoors":
170 case "NivaCoDriverDoors":
191 else if (GetAnimationPhase(
"SeatDriver") > 0.5)
199 else if (GetAnimationPhase(
"SeatCoDriver") > 0.5)
207 else if (GetAnimationPhase(
"SeatDriver") <= 0.5)
215 else if (GetAnimationPhase(
"SeatCoDriver") <= 0.5)
230 return "doors_driver";
233 return "doors_codriver";
236 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
245 return "NivaDriverDoors";
248 return "NivaCoDriverDoors";
251 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
294 return "DoorsDriver";
295 case "doors_codriver":
296 return "DoorsCoDriver";
301 case "seatback_driver":
303 case "seatback_codriver":
304 return "SeatCoDriver";
315 case "seatback_driver":
317 return "seat_con_1_1";
318 case "seat_codriver":
319 case "seatback_codriver":
321 return "seat_con_2_1";
331 case "seatback_driver":
333 case "seatback_codriver":
352 if (
nextSeat == 0 && GetAnimationPhase(
"SeatDriver") > 0.5)
355 if (
nextSeat == 1 && GetAnimationPhase(
"SeatCoDriver") > 0.5)
402 case "DoorsCoDriver":
422 GetInventory().CreateInInventory(
"HatchbackWheel");
423 GetInventory().CreateInInventory(
"HatchbackWheel");
424 GetInventory().CreateInInventory(
"HatchbackWheel");
425 GetInventory().CreateInInventory(
"HatchbackWheel");
427 GetInventory().CreateInInventory(
"HatchbackDoors_Driver");
428 GetInventory().CreateInInventory(
"HatchbackDoors_CoDriver");
429 GetInventory().CreateInInventory(
"HatchbackHood");
430 GetInventory().CreateInInventory(
"HatchbackTrunk");
433 GetInventory().CreateInInventory(
"HatchbackWheel");
434 GetInventory().CreateInInventory(
"HatchbackWheel");
446 GetInventory().CreateInInventory(
"HatchbackWheel");
447 GetInventory().CreateInInventory(
"HatchbackWheel");
448 GetInventory().CreateInInventory(
"HatchbackWheel");
449 GetInventory().CreateInInventory(
"HatchbackWheel");
451 GetInventory().CreateInInventory(
"HatchbackDoors_Driver_White");
452 GetInventory().CreateInInventory(
"HatchbackDoors_CoDriver_White");
453 GetInventory().CreateInInventory(
"HatchbackHood_White");
454 GetInventory().CreateInInventory(
"HatchbackTrunk_White");
457 GetInventory().CreateInInventory(
"HatchbackWheel");
458 GetInventory().CreateInInventory(
"HatchbackWheel");
470 GetInventory().CreateInInventory(
"HatchbackWheel");
471 GetInventory().CreateInInventory(
"HatchbackWheel");
472 GetInventory().CreateInInventory(
"HatchbackWheel");
473 GetInventory().CreateInInventory(
"HatchbackWheel");
475 GetInventory().CreateInInventory(
"HatchbackDoors_Driver_Blue");
476 GetInventory().CreateInInventory(
"HatchbackDoors_CoDriver_Blue");
477 GetInventory().CreateInInventory(
"HatchbackHood_Blue");
478 GetInventory().CreateInInventory(
"HatchbackTrunk_Blue");
481 GetInventory().CreateInInventory(
"HatchbackWheel");
482 GetInventory().CreateInInventory(
"HatchbackWheel");
void AddAction(typename actionName)
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
void SpawnUniversalParts()
string m_CarSeatShiftInSound
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
void SpawnAdditionalItems()
string m_EngineStartOK
Sounds.
string m_CarDoorCloseSound
string m_EngineStartBattery
string m_CarHornShortSoundName
string m_CarHornLongSoundName
string m_CarSeatShiftOutSound
string m_CarDoorOpenSound
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
ref UniversalTemperatureSourceSettings m_UTSSettings
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
ref UniversalTemperatureSource m_UTSource
override int GetCarDoorsState(string slotType)
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override float GetTransportCameraDistance()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetAnimInstance()
override int GetCrewIndex(string selection)
override CarRearLightBase CreateRearLight()
override void OnDebugSpawn()
override int GetSeatIndexFromDoor(string pDoorSelection)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override string GetDoorConditionPointFromSelection(string selection)
override CarLightBase CreateFrontLight()
override bool IsVitalGlowPlug()
override int GetCarDoorsState(string slotType)
override bool IsVitalTruckBattery()
override string GetAnimSourceFromSelection(string selection)
override bool CanDisplayCargo()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override void EOnPostSimulate(IEntity other, float timeSlice)
override void OnEngineStart()
override bool CanReleaseAttachment(EntityAI attachment)
override void SetActions()
override bool CrewCanGetThrough(int posIdx)
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
bool CanManipulateSpareWheel(string slotSelectionName)
override void OnEngineStop()
override bool CanDisplayAttachmentCategory(string category_name)
override int GetSeatAnimationType(int posIdx)
Super root of all classes in Enforce script.
override void OnDebugSpawn()
original Timer deletes m_params which is unwanted
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
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'.