24 SetEnginePos(
"0 1.4 2.25");
48 super.OnEngineStart();
116 if (EngineIsOn() &&
attachment.GetType() ==
"TruckBattery")
125 return GetAnimationPhase(
"wheelSidePlate1") == 1.0);
128 return GetAnimationPhase(
"wheelSidePlate2") == 1.0);
159 return "doors_driver";
162 return "doors_codriver";
166 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
174 return "Truck_01_Door_1_1";
177 return "Truck_01_Door_2_1";
181 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
212 case "wheelsideplate1":
213 case "wheelsideplate2":
221 sound.SetAutodestroy(
true);
236 case "Truck_01_Door_1_1":
238 case "Truck_01_Door_2_1":
240 case "Truck_01_Hood":
252 return "DoorsDriver";
253 case "doors_codriver":
254 return "DoorsCoDriver";
259 case "wheelsideplate1":
260 return "WheelSidePlate1";
261 case "wheelsideplate2":
262 return "WheelSidePlate2";
302 case "DoorsCoDriver":
353 GetInventory().CreateInInventory(
"Truck_01_Wheel");
354 GetInventory().CreateInInventory(
"Truck_01_Wheel");
356 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
357 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
358 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
359 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
361 GetInventory().CreateInInventory(
"Truck_01_Door_1_1");
362 GetInventory().CreateInInventory(
"Truck_01_Door_2_1");
363 GetInventory().CreateInInventory(
"Truck_01_Hood");
366 GetInventory().CreateInInventory(
"Truck_01_Wheel");
367 GetInventory().CreateInInventory(
"Truck_01_Wheel");
368 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
369 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
ActionDetachFromTarget_SpecificSlot_WoodenPlanks ActionDetachFromTarget_SpecificSlot ActionDetachFromTarget_SpecificSlot_MetalSheets()
ActionDetachFromTarget_SpecificSlotsCategory_Barrel ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget_SpecificSlotsCategory_WoodenCrate()
ActionDetachFromTarget_SpecificSlotsCategory ActionDetachFromTarget ActionDetachFromTarget_SpecificSlot_WoodenLogs()
void AddAction(typename actionName)
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
int GetCarDoorsState(string slotType)
string m_CarHornLongSoundName
string m_CarDoorOpenSound
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
ref UniversalTemperatureSourceSettings m_UTSSettings
ref UniversalTemperatureSource m_UTSource
class JsonUndergroundAreaTriggerData GetPosition
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override bool IsVitalEngineBelt()
override float GetTransportCameraDistance()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetAnimInstance()
override CarRearLightBase CreateRearLight()
override void OnDebugSpawn()
override int GetSeatIndexFromDoor(string pDoorSelection)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override CarLightBase CreateFrontLight()
override bool IsVitalGlowPlug()
override int GetCarDoorsState(string slotType)
override void OnAnimationPhaseStarted(string animSource, float phase)
override string GetAnimSourceFromSelection(string selection)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
override void EOnPostSimulate(IEntity other, float timeSlice)
override void OnEngineStart()
override bool CanReleaseAttachment(EntityAI attachment)
override void SetActions()
override bool IsVitalRadiator()
override bool CrewCanGetThrough(int posIdx)
override bool IsVitalCarBattery()
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
override bool IsVitalSparkPlug()
bool CanManipulateSpareWheel(string slotSelectionName)
override void OnEngineStop()
override vector GetTransportCameraOffset()
override int GetSeatAnimationType(int posIdx)
Super root of all classes in Enforce script.
Wrapper class for managing sound through SEffectManager.
Manager class for managing Effect (EffectParticle, EffectSound)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
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 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'.