18 m_CarDoorOpenSound =
"offroad_02_door_open_SoundSet";
19 m_CarDoorCloseSound =
"offroad_02_door_close_SoundSet";
39 m_CarHornShortSoundName =
"Offroad_02_Horn_Short_SoundSet";
40 m_CarHornLongSoundName =
"Offroad_02_Horn_SoundSet";
80 super.GetElectricitySourceDevice();
92 super.OnEngineStart();
103 super.OnEngineStop();
157 if (!super.CanReleaseAttachment(attachment))
162 string attType = attachment.GetType();
190 if ( !super.CanDisplayAttachmentCategory(category_name))
196 if (category_name.
Contains(
"engine"))
209 if ( !super.CanDisplayCargo() )
222 Class.
CastTo( carDoor, FindAttachmentBySlotName( slotType ) );
230 case "Offroad_02_Door_1_1":
231 return TranslateAnimationPhaseToCarDoorState(
"DoorsDriver");
233 case "Offroad_02_Door_2_1":
234 return TranslateAnimationPhaseToCarDoorState(
"DoorsCoDriver");
236 case "Offroad_02_Door_1_2":
237 return TranslateAnimationPhaseToCarDoorState(
"DoorsCargo1");
239 case "Offroad_02_Door_2_2":
240 return TranslateAnimationPhaseToCarDoorState(
"DoorsCargo2");
242 case "Offroad_02_Hood":
243 return TranslateAnimationPhaseToCarDoorState(
"DoorsHood");
245 case "Offroad_02_Trunk":
246 return TranslateAnimationPhaseToCarDoorState(
"DoorsTrunk");
294 return "doors_driver";
297 return "doors_codriver";
300 return "doors_cargo1";
303 return "doors_cargo2";
307 return super.GetDoorSelectionNameFromSeatPos(posIdx);
315 return "Offroad_02_Door_1_1";
317 return "Offroad_02_Door_2_1";
319 return "Offroad_02_Door_1_2";
321 return "Offroad_02_Door_2_2";
324 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
357 return super.OnSound(ctrl, oldValue);
365 return "DoorsDriver";
366 case "doors_codriver":
367 return "DoorsCoDriver";
369 return "DoorsCargo1";
371 return "DoorsCargo2";
386 return nextSeat == 1;
388 return nextSeat == 0;
390 return nextSeat == 3;
392 return nextSeat == 2;
400 switch (pCurrentSeat)
403 return pDoorsSelection ==
"DoorsDriver";
405 return pDoorsSelection ==
"DoorsCoDriver";
407 return pDoorsSelection ==
"DoorsCargo1";
409 return pDoorsSelection ==
"DoorsCargo2";
428 SpawnAdditionalItems();
456 SpawnAdditionalItems();
459 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
460 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
461 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
462 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
464 GetInventory().CreateInInventory(
"Offroad_02_Door_1_1_Beige");
465 GetInventory().CreateInInventory(
"Offroad_02_Door_1_2_Beige");
466 GetInventory().CreateInInventory(
"Offroad_02_Door_2_1_Beige");
467 GetInventory().CreateInInventory(
"Offroad_02_Door_2_2_Beige");
468 GetInventory().CreateInInventory(
"Offroad_02_Trunk_Beige");
469 GetInventory().CreateInInventory(
"Offroad_02_Hood_Beige");
472 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
473 GetInventory().CreateInInventory(
"Offroad_02_Wheel");
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
proto native void SetEnginePos(vector pos)
Override the position of engine (model space)
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
void SpawnUniversalParts()
string m_EngineStartBattery
ref VehicleHornComponent m_HornComponent
ref VehicleLightsComponent m_LightsComponent
Offroad_02LightProfileFront VehicleLightProfileFront Offroad_02LightProfileRear()
void Offroad_02LightProfileFront()
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
void VehicleLightData(VehicleLightProfileBase profile)
Super root of all classes in Enforce script.
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
script counterpart to engine's class Inventory
override int GetAnimInstance()
override void OnDebugSpawn()
override bool IsVitalRadiator()
bool CanManipulateSpareWheel(string slotSelectionName)
override void OnEngineStart()
override bool CanReleaseAttachment(EntityAI attachment)
override int GetCarDoorsState(string slotType)
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
override float GetWeightCoef()
ref UniversalTemperatureSourceSettings m_UTSSettings
override void OnEngineStop()
override float GetTransportCameraDistance()
override EntityAI GetElectricitySourceDevice()
override string GetElectricitySourceDeviceType()
override void EOnPostSimulate(IEntity other, float timeSlice)
ref UniversalTemperatureSource m_UTSource
override bool CrewCanGetThrough(int posIdx)
override bool CanDisplayCargo()
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override bool IsVitalSparkPlug()
override int GetSeatAnimationType(int posIdx)
override bool HasGangedTailAndBrakeLights()
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override bool CanDisplayAttachmentCategory(string category_name)
override bool NeedElectricitySourceDevice()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override string GetAnimSourceFromSelection(string selection)
original Timer deletes m_params which is unwanted
DayZPlayerConstants
defined in C++
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.