23 SetEnginePos(
"0 0.7 1.7");
47 super.OnEngineStart();
117 if (!super.CanReleaseAttachment(attachment))
122 string attType = attachment.GetType();
150 if ( !super.CanDisplayAttachmentCategory(category_name))
156 if (category_name.
Contains(
"engine"))
169 if ( !super.CanDisplayCargo() )
182 Class.
CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
190 case "Offroad_02_Door_1_1":
193 case "Offroad_02_Door_2_1":
196 case "Offroad_02_Door_1_2":
199 case "Offroad_02_Door_2_2":
202 case "Offroad_02_Hood":
205 case "Offroad_02_Trunk":
254 return "doors_driver";
257 return "doors_codriver";
260 return "doors_cargo1";
263 return "doors_cargo2";
267 return super.GetDoorSelectionNameFromSeatPos(posIdx);
275 return "Offroad_02_Door_1_1";
277 return "Offroad_02_Door_2_1";
279 return "Offroad_02_Door_1_2";
281 return "Offroad_02_Door_2_2";
284 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
317 return super.OnSound(ctrl, oldValue);
325 return "DoorsDriver";
326 case "doors_codriver":
327 return "DoorsCoDriver";
329 return "DoorsCargo1";
331 return "DoorsCargo2";
346 return nextSeat == 1;
348 return nextSeat == 0;
350 return nextSeat == 3;
352 return nextSeat == 2;
360 switch (pCurrentSeat)
363 return pDoorsSelection ==
"DoorsDriver";
365 return pDoorsSelection ==
"DoorsCoDriver";
367 return pDoorsSelection ==
"DoorsCargo1";
369 return pDoorsSelection ==
"DoorsCargo2";
396 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
397 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
398 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
399 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
401 GetInventory().CreateInInventory(
"Offroad_02_Door_1_1");
402 GetInventory().CreateInInventory(
"Offroad_02_Door_1_2");
403 GetInventory().CreateInInventory(
"Offroad_02_Door_2_1");
404 GetInventory().CreateInInventory(
"Offroad_02_Door_2_2");
405 GetInventory().CreateInInventory(
"Offroad_02_Hood");
406 GetInventory().CreateInInventory(
"Offroad_02_Trunk");
409 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
410 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
protected void SpawnUniversalParts()
string m_EngineStartOK
Sounds.
protected void FillUpCarFluids()
string m_CarDoorCloseSound
string m_EngineStartBattery
protected void SpawnAdditionalItems()
string m_CarHornShortSoundName
string m_CarHornLongSoundName
string m_CarDoorOpenSound
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
protected ref UniversalTemperatureSourceSettings m_UTSSettings
protected ref UniversalTemperatureSource m_UTSource
protected ref UniversalTemperatureSourceSettings m_UTSSettings
override int GetCarDoorsState(string slotType)
override void OnDebugSpawn()
override bool CanDisplayAttachmentCategory(string category_name)
override void EOnPostSimulate(IEntity other, float timeSlice)
override float GetTransportCameraDistance()
override bool IsVitalRadiator()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override bool CanDisplayCargo()
override int GetAnimInstance()
override bool CrewCanGetThrough(int posIdx)
override CarLightBase CreateFrontLight()
override CarRearLightBase CreateRearLight()
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override bool IsVitalTruckBattery()
override bool CanReleaseAttachment(EntityAI attachment)
override void OnEngineStart()
override string GetAnimSourceFromSelection(string selection)
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
protected ref UniversalTemperatureSource m_UTSource
override protected bool CanManipulateSpareWheel(string slotSelectionName)
override bool IsVitalSparkPlug()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetSeatAnimationType(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override void OnEngineStop()
Super root of all classes in Enforce script.
original Timer deletes m_params which is unwanted
float m_TemperatureMax
min temperature you can get from the TemperatureSource
float m_RangeFull
temperature cap that will limit the return value from GetTemperature method
bool m_ManualUpdate
if the Update is running periodically
float m_TemperatureMin
how often the Update is ticking
float m_RangeMax
range where the full temperature is given to receiver
float m_TemperatureCap
max temperature you can get from the TemperatureSource
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'.
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.