23 SetEnginePos(
"0 0.7 1.4");
47 super.OnEngineStart();
112 if (!super.CanReleaseAttachment(attachment))
119 string attType = attachment.GetType();
120 if (attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
137 if ( !super.CanDisplayAttachmentCategory( category_name ) )
142 if ( category_name.
Contains(
"engine") )
153 if ( !super.CanDisplayCargo() )
166 Class.
CastTo(carDoor, FindAttachmentBySlotName(slotType));
174 case "Hatchback_02_Door_1_1":
177 case "Hatchback_02_Door_2_1":
180 case "Hatchback_02_Door_1_2":
183 case "Hatchback_02_Door_2_2":
186 case "Hatchback_02_Hood":
189 case "Hatchback_02_Trunk":
242 return "doors_driver";
245 return "doors_codriver";
248 return "doors_cargo1";
251 return "doors_cargo2";
255 return super.GetDoorSelectionNameFromSeatPos(posIdx);
263 return "Hatchback_02_Door_1_1";
266 return "Hatchback_02_Door_2_1";
269 return "Hatchback_02_Door_1_2";
272 return "Hatchback_02_Door_2_2";
276 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
309 return super.OnSound(ctrl, oldValue);
317 return "DoorsDriver";
318 case "doors_codriver":
319 return "DoorsCoDriver";
321 return "DoorsCargo1";
323 return "DoorsCargo2";
349 return nextSeat == 1;
351 return nextSeat == 0;
353 return nextSeat == 3;
355 return nextSeat == 2;
363 switch (pCurrentSeat)
366 return pDoorsSelection ==
"DoorsDriver";
368 return pDoorsSelection ==
"DoorsCoDriver";
370 return pDoorsSelection ==
"DoorsCargo1";
372 return pDoorsSelection ==
"DoorsCargo2";
384 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
385 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
386 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
387 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
389 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1");
390 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2");
391 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1");
392 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2");
393 GetInventory().CreateInInventory(
"Hatchback_02_Hood");
394 GetInventory().CreateInInventory(
"Hatchback_02_Trunk");
397 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
398 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
410 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
411 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
412 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
413 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
415 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Black");
416 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Black");
417 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Black");
418 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Black");
419 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Black");
420 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Black");
423 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
424 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
436 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
437 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
438 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
439 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
441 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Blue");
442 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Blue");
443 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Blue");
444 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Blue");
445 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Blue");
446 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Blue");
449 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
450 GetInventory().CreateInInventory(
"Hatchback_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 UniversalTemperatureSourceSettings m_UTSSettings
override int GetCarDoorsState(string slotType)
protected ref UniversalTemperatureSource m_UTSource
protected ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override int GetCarDoorsState(string slotType)
override void OnDebugSpawn()
override bool CanDisplayAttachmentCategory(string category_name)
override void EOnPostSimulate(IEntity other, float timeSlice)
override bool IsVitalGlowPlug()
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)
override protected bool CanManipulateSpareWheel(string slotSelectionName)
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetSeatAnimationType(int posIdx)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override void OnEngineStop()
Super root of all classes in Enforce script.
override void OnDebugSpawn()
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.