23 SetEnginePos(
"0 0.7 -1.7");
46 super.OnEngineStart();
111 if (!super.CanReleaseAttachment(attachment))
116 string attType = attachment.GetType();
151 if ( !super.CanDisplayAttachmentCategory(category_name))
157 if (category_name.
Contains(
"engine"))
165 if (category_name.
Contains(
"trunk"))
178 if ( !super.CanDisplayCargo() )
191 Class.
CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
199 case "Sedan_02_Door_1_1":
202 case "Sedan_02_Door_2_1":
205 case "Sedan_02_Door_1_2":
208 case "Sedan_02_Door_2_2":
211 case "Sedan_02_Hood":
214 case "Sedan_02_Trunk":
263 return "doors_driver";
266 return "doors_codriver";
269 return "doors_cargo1";
272 return "doors_cargo2";
276 return super.GetDoorSelectionNameFromSeatPos(posIdx);
284 return "Sedan_02_Door_1_1";
287 return "Sedan_02_Door_2_1";
290 return "Sedan_02_Door_1_2";
293 return "Sedan_02_Door_2_2";
297 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
330 return super.OnSound(ctrl, oldValue);
338 return "DoorsDriver";
339 case "doors_codriver":
340 return "DoorsCoDriver";
342 return "DoorsCargo1";
344 return "DoorsCargo2";
370 return nextSeat == 1;
373 return nextSeat == 0;
376 return nextSeat == 3;
379 return nextSeat == 2;
387 switch (pCurrentSeat)
390 return pDoorsSelection ==
"DoorsDriver";
393 return pDoorsSelection ==
"DoorsCoDriver";
396 return pDoorsSelection ==
"DoorsCargo1";
399 return pDoorsSelection ==
"DoorsCargo2";
411 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
412 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
413 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
414 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
415 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
417 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1");
418 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2");
419 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1");
420 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2");
421 GetInventory().CreateInInventory(
"Sedan_02_Hood");
422 GetInventory().CreateInInventory(
"Sedan_02_Trunk");
425 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
426 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
438 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
439 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
440 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
441 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
443 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1_Red");
444 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2_Red");
445 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1_Red");
446 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2_Red");
447 GetInventory().CreateInInventory(
"Sedan_02_Hood_Red");
448 GetInventory().CreateInInventory(
"Sedan_02_Trunk_Red");
451 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
452 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
464 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
465 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
466 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
467 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
469 GetInventory().CreateInInventory(
"Sedan_02_Door_1_1_Grey");
470 GetInventory().CreateInInventory(
"Sedan_02_Door_1_2_Grey");
471 GetInventory().CreateInInventory(
"Sedan_02_Door_2_1_Grey");
472 GetInventory().CreateInInventory(
"Sedan_02_Door_2_2_Grey");
473 GetInventory().CreateInInventory(
"Sedan_02_Hood_Grey");
474 GetInventory().CreateInInventory(
"Sedan_02_Trunk_Grey");
477 GetInventory().CreateInInventory(
"Sedan_02_Wheel");
478 GetInventory().CreateInInventory(
"Sedan_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.