23 SetEnginePos(
"0 0.7 1.4");
46 super.OnEngineStart();
111 if (!super.CanReleaseAttachment(attachment))
118 string attType = attachment.GetType();
119 if (attType ==
"CarRadiator" || attType ==
"CarBattery" || attType ==
"SparkPlug")
136 if ( !super.CanDisplayAttachmentCategory( category_name ) )
141 if ( category_name.
Contains(
"engine") )
152 if ( !super.CanDisplayCargo() )
165 Class.
CastTo(carDoor, FindAttachmentBySlotName(slotType));
173 case "Hatchback_02_Door_1_1":
176 case "Hatchback_02_Door_2_1":
179 case "Hatchback_02_Door_1_2":
182 case "Hatchback_02_Door_2_2":
185 case "Hatchback_02_Hood":
188 case "Hatchback_02_Trunk":
241 return "doors_driver";
244 return "doors_codriver";
247 return "doors_cargo1";
250 return "doors_cargo2";
254 return super.GetDoorSelectionNameFromSeatPos(posIdx);
262 return "Hatchback_02_Door_1_1";
265 return "Hatchback_02_Door_2_1";
268 return "Hatchback_02_Door_1_2";
271 return "Hatchback_02_Door_2_2";
275 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
308 return super.OnSound(ctrl, oldValue);
316 return "DoorsDriver";
317 case "doors_codriver":
318 return "DoorsCoDriver";
320 return "DoorsCargo1";
322 return "DoorsCargo2";
348 return nextSeat == 1;
350 return nextSeat == 0;
352 return nextSeat == 3;
354 return nextSeat == 2;
362 switch (pCurrentSeat)
365 return pDoorsSelection ==
"DoorsDriver";
367 return pDoorsSelection ==
"DoorsCoDriver";
369 return pDoorsSelection ==
"DoorsCargo1";
371 return pDoorsSelection ==
"DoorsCargo2";
383 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
384 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
385 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
386 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
388 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1");
389 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2");
390 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1");
391 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2");
392 GetInventory().CreateInInventory(
"Hatchback_02_Hood");
393 GetInventory().CreateInInventory(
"Hatchback_02_Trunk");
396 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
397 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
409 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
410 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
411 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
412 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
414 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Black");
415 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Black");
416 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Black");
417 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Black");
418 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Black");
419 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Black");
422 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
423 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
435 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
436 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
437 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
438 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
440 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_1_Blue");
441 GetInventory().CreateInInventory(
"Hatchback_02_Door_1_2_Blue");
442 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_1_Blue");
443 GetInventory().CreateInInventory(
"Hatchback_02_Door_2_2_Blue");
444 GetInventory().CreateInInventory(
"Hatchback_02_Hood_Blue");
445 GetInventory().CreateInInventory(
"Hatchback_02_Trunk_Blue");
448 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
449 GetInventory().CreateInInventory(
"Hatchback_02_Wheel");
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
void SpawnUniversalParts()
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
void SpawnAdditionalItems()
string m_EngineStartOK
Sounds.
string m_CarDoorCloseSound
string m_EngineStartBattery
string m_CarHornShortSoundName
string m_CarHornLongSoundName
string m_CarDoorOpenSound
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
ref UniversalTemperatureSourceSettings m_UTSSettings
ref UniversalTemperatureSource m_UTSource
override int GetCarDoorsState(string slotType)
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetAnimInstance()
override CarRearLightBase CreateRearLight()
override void OnDebugSpawn()
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override CarLightBase CreateFrontLight()
override bool IsVitalGlowPlug()
override int GetCarDoorsState(string slotType)
override bool IsVitalTruckBattery()
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
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 bool CrewCanGetThrough(int posIdx)
ref UniversalTemperatureSource m_UTSource
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)
ref UniversalTemperatureSourceSettings m_UTSSettings
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 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.