3 protected ref UniversalTemperatureSource
m_UTSource;
4 protected ref UniversalTemperatureSourceSettings
m_UTSSettings;
10 m_enginePtcPos =
"0 1.346 2.205";
12 m_EngineStartOK =
"Truck_01_engine_start_SoundSet";
13 m_EngineStartBattery =
"Truck_01_engine_failed_start_battery_SoundSet";
14 m_EngineStartPlug =
"Truck_01_engine_failed_start_sparkplugs_SoundSet";
15 m_EngineStartFuel =
"Truck_01_engine_failed_start_fuel_SoundSet";
16 m_EngineStop =
"Truck_01_engine_stop_SoundSet";
17 m_EngineStopFuel =
"Truck_01_engine_stop_fuel_SoundSet";
19 m_CarDoorOpenSound =
"Truck_01_door_open_SoundSet";
20 m_CarDoorCloseSound =
"Truck_01_door_close_SoundSet";
22 m_CarHornShortSoundName =
"Truck_01_Horn_Short_SoundSet";
23 m_CarHornLongSoundName =
"Truck_01_Horn_SoundSet";
25 SetEnginePos(
"0 1.4 2.25");
48 super.OnEngineStart();
119 if (!super.CanReleaseAttachment(attachment))
124 if (EngineIsOn() && attachment.GetType() ==
"TruckBattery")
134 if (slotSelectionName ==
"wheel_spare_1")
136 return GetAnimationPhase(
"wheelSidePlate1") == 1.0;
139 if (slotSelectionName ==
"wheel_spare_2")
141 return GetAnimationPhase(
"wheelSidePlate2") == 1.0;
144 return super.CanManipulateSpareWheel(slotSelectionName);
173 return "doors_driver";
176 return "doors_codriver";
180 return super.GetDoorSelectionNameFromSeatPos(posIdx);
188 return "Truck_01_Door_1_1";
191 return "Truck_01_Door_2_1";
195 return super.GetDoorInvSlotNameFromSeatPos(posIdx);
220 return super.OnSound(ctrl, oldValue);
225 super.OnAnimationPhaseStarted(animSource, phase);
230 case "wheelsideplate1":
231 case "wheelsideplate2":
232 EffectSound sound = CreateSoundForAnimationSource(animSource);
235 sound.
SetSoundSet(
"Truck_01_Gear_Open_Side_Plate_SoundSet");
239 sound.
SetSoundSet(
"Truck_01_Gear_Close_Side_Plate_SoundSet");
255 Class.
CastTo(carDoor, FindAttachmentBySlotName(slotType));
263 case "Truck_01_Door_1_1":
264 return TranslateAnimationPhaseToCarDoorState(
"DoorsDriver");
265 case "Truck_01_Door_2_1":
266 return TranslateAnimationPhaseToCarDoorState(
"DoorsCoDriver");
267 case "Truck_01_Hood":
268 return TranslateAnimationPhaseToCarDoorState(
"DoorsHood");
279 return "DoorsDriver";
280 case "doors_codriver":
281 return "DoorsCoDriver";
286 case "wheelsideplate1":
287 return "WheelSidePlate1";
288 case "wheelsideplate2":
289 return "WheelSidePlate2";
300 return nextSeat == 1;
302 return nextSeat == 0;
310 switch (pCurrentSeat)
313 return pDoorsSelection ==
"DoorsDriver";
316 return pDoorsSelection ==
"DoorsCoDriver";
324 switch (pDoorSelection)
329 case "DoorsCoDriver":
376 SpawnUniversalParts();
377 SpawnAdditionalItems();
380 GetInventory().CreateInInventory(
"Truck_01_Wheel");
381 GetInventory().CreateInInventory(
"Truck_01_Wheel");
383 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
384 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
385 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
386 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
388 GetInventory().CreateInInventory(
"Truck_01_Door_1_1");
389 GetInventory().CreateInInventory(
"Truck_01_Door_2_1");
390 GetInventory().CreateInInventory(
"Truck_01_Hood");
393 GetInventory().CreateInInventory(
"Truck_01_Wheel");
394 GetInventory().CreateInInventory(
"Truck_01_Wheel");
395 GetInventory().CreateInInventory(
"Truck_01_WheelDouble");
396 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)
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override int GetCarDoorsState(string slotType)
ref UniversalTemperatureSourceSettings m_UTSSettings
ref UniversalTemperatureSource m_UTSource
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
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)
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
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()
ref UniversalTemperatureSource m_UTSource
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)
ref UniversalTemperatureSourceSettings m_UTSSettings
Super root of all classes in Enforce script.
void SetSoundSet(string snd)
Set soundset for the sound.
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
bool SoundPlay()
Plays sound.
Wrapper class for managing sound through SEffectManager.
static int EffectRegister(Effect effect)
Registers Effect in SEffectManager.
Manager class for managing Effect (EffectParticle, 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 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'.