633{
637
639 {
640
641
647
652
655
656 SetEnginePos("0 0.7 1.2");
657 }
658
660 {
662
664 {
673
676 }
677 }
678
680 {
681 super.OnEngineStart();
682
684 {
686 }
687 }
688
690 {
691 super.OnEngineStop();
692
694 {
696 }
697 }
698
700 {
702 {
704 {
706 }
707 }
708 }
709
711 {
713 }
714
716 {
717 return 3.5;
718 }
719
721 {
723 {
724 case 0:
726 case 1:
728 case 2:
730 case 3:
732 }
733
734 return 0;
735
736 }
737
738
740 {
742 }
743
745 {
747 }
748
750 {
752 {
753 return false;
754 }
755
757 {
760 {
761 return false;
762 }
763 }
764
765 return true;
766 }
767
769 {
771 }
772
774 {
776 {
777 return false;
778 }
779
782 {
784 {
785 return false;
786 }
787 }
788
789 return true;
790 }
791
793 {
794 if (!
super.CanDisplayCargo())
795 {
796 return false;
797 }
798
800 {
801 return false;
802 }
803
804 return true;
805 }
806
808 {
810
813 {
815 }
816
818 {
819 case "NivaDriverDoors":
821
822 case "NivaCoDriverDoors":
824
825 case "NivaHood":
827
828 case "NivaTrunk":
830 }
831
833 }
834
836 {
839 {
840 case 0:
842 return false;
843 else if (GetAnimationPhase("SeatDriver") > 0.5)
844 return false;
845
846 return true;
847
848 case 1:
850 return false;
851 else if (GetAnimationPhase("SeatCoDriver") > 0.5)
852 return false;
853
854 return true;
855
856 case 2:
858 return false;
859 else if (GetAnimationPhase("SeatDriver") <= 0.5)
860 return false;
861
862 return true;
863
864 case 3:
866 return false;
867 else if (GetAnimationPhase("SeatCoDriver") <= 0.5)
868 return false;
869
870 return true;
871 }
872
873 return false;
874 }
875
877 {
879 {
880 case 0:
881 case 2:
882 return "doors_driver";
883 case 1:
884 case 3:
885 return "doors_codriver";
886 }
887
888 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
889 }
890
892 {
894 {
895 case 0:
896 case 2:
897 return "NivaDriverDoors";
898 case 1:
899 case 3:
900 return "NivaCoDriverDoors";
901 }
902
903 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
904 }
905
906
907
909 {
911
913 {
917 {
919 }
920
922 {
924 }
925
927 {
929 }
930
932 {
934 }
935
937 {
939 }
940
942 {
944 }
945
947 break;
948 }
949
951 }
952
954 {
955 switch (selection)
956 {
957 case "doors_driver":
958 return "DoorsDriver";
959 case "doors_codriver":
960 return "DoorsCoDriver";
961 case "doors_hood":
962 return "DoorsHood";
963 case "doors_trunk":
964 return "DoorsTrunk";
965 case "seatback_driver":
966 return "SeatDriver";
967 case "seatback_codriver":
968 return "SeatCoDriver";
969 }
970
971 return "";
972 }
973
975 {
976 switch (selection)
977 {
978 case "seat_driver":
979 case "seatback_driver":
980 case "seat_cargo1":
981 return "seat_con_1_1";
982 case "seat_codriver":
983 case "seatback_codriver":
984 case "seat_cargo2":
985 return "seat_con_2_1";
986 }
987
988 return "";
989 }
990
992 {
993 switch (selection)
994 {
995 case "seatback_driver":
996 return 0;
997 case "seatback_codriver":
998 return 1;
999 }
1000
1001 return -1;
1002 }
1003
1005 {
1006 return false;
1007 }
1008
1010 {
1011 return false;
1012 }
1013
1015 {
1016 if (
nextSeat == 0 && GetAnimationPhase(
"SeatDriver") > 0.5)
1017 return false;
1018
1019 if (
nextSeat == 1 && GetAnimationPhase(
"SeatCoDriver") > 0.5)
1020 return false;
1021
1023 {
1024 case 0:
1026
1027 case 1:
1029
1030 case 2:
1032
1033 case 3:
1035 }
1036
1037 return false;
1038 }
1039
1041 {
1043 {
1044 case 0:
1046
1047 case 1:
1049
1050 case 2:
1052
1053 case 3:
1055 }
1056
1057 return false;
1058 }
1059
1061 {
1063 {
1064 case "DoorsDriver":
1065 return 0;
1066 case "DoorsCoDriver":
1067 return 1;
1068 }
1069
1070 return -1;
1071 }
1072
1074 {
1076
1078 }
1079
1081 {
1085
1086 GetInventory().CreateInInventory("HatchbackWheel");
1087 GetInventory().CreateInInventory("HatchbackWheel");
1088 GetInventory().CreateInInventory("HatchbackWheel" );
1089 GetInventory().CreateInInventory("HatchbackWheel");
1090
1091 GetInventory().CreateInInventory("HatchbackDoors_Driver");
1092 GetInventory().CreateInInventory("HatchbackDoors_CoDriver");
1093 GetInventory().CreateInInventory("HatchbackHood");
1094 GetInventory().CreateInInventory("HatchbackTrunk");
1095
1096
1097 GetInventory().CreateInInventory("HatchbackWheel");
1098 GetInventory().CreateInInventory("HatchbackWheel");
1099 }
1100}
1101
1103{
1105 {
1109
1110 GetInventory().CreateInInventory("HatchbackWheel");
1111 GetInventory().CreateInInventory("HatchbackWheel");
1112 GetInventory().CreateInInventory("HatchbackWheel");
1113 GetInventory().CreateInInventory("HatchbackWheel");
1114
1115 GetInventory().CreateInInventory("HatchbackDoors_Driver_White");
1116 GetInventory().CreateInInventory("HatchbackDoors_CoDriver_White");
1117 GetInventory().CreateInInventory("HatchbackHood_White");
1118 GetInventory().CreateInInventory("HatchbackTrunk_White");
1119
1120
1121 GetInventory().CreateInInventory("HatchbackWheel");
1122 GetInventory().CreateInInventory("HatchbackWheel");
1123 }
1124}
1125
1127{
1129 {
1133
1134 GetInventory().CreateInInventory("HatchbackWheel");
1135 GetInventory().CreateInInventory("HatchbackWheel");
1136 GetInventory().CreateInInventory("HatchbackWheel");
1137 GetInventory().CreateInInventory("HatchbackWheel");
1138
1139 GetInventory().CreateInInventory("HatchbackDoors_Driver_Blue");
1140 GetInventory().CreateInInventory("HatchbackDoors_CoDriver_Blue");
1141 GetInventory().CreateInInventory("HatchbackHood_Blue");
1142 GetInventory().CreateInInventory("HatchbackTrunk_Blue");
1143
1144
1145 GetInventory().CreateInInventory("HatchbackWheel");
1146 GetInventory().CreateInInventory("HatchbackWheel");
1147 }
1148}
void AddAction(typename actionName)
Definition AdvancedCommunication.c:220
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Definition Car.c:4
void SpawnUniversalParts()
Definition CarScript.c:2761
string m_CarSeatShiftInSound
Definition CarScript.c:215
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
Definition CarScript.c:2474
CarDoorState
Definition CarScript.c:2
void SpawnAdditionalItems()
Definition CarScript.c:2799
string m_EngineStartOK
Sounds.
Definition CarScript.c:207
string m_CarDoorCloseSound
Definition CarScript.c:214
string m_EngineStartBattery
Definition CarScript.c:208
string m_EngineStartPlug
Definition CarScript.c:209
string m_EngineStartFuel
Definition CarScript.c:210
string m_CarHornShortSoundName
Definition CarScript.c:218
void FillUpCarFluids()
Definition CarScript.c:2829
string m_CarHornLongSoundName
Definition CarScript.c:219
string m_EngineStopFuel
Definition CarScript.c:211
string m_CarSeatShiftOutSound
Definition CarScript.c:216
string m_CarDoorOpenSound
Definition CarScript.c:213
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition Hatchback_02.c:405
override int GetCarDoorsState(string slotType)
Definition OffroadHatchback.c:647
override bool CanDisplayAttachmentCategory(string category_name)
Definition OffroadHatchback.c:613
override void EOnPostSimulate(IEntity other, float timeSlice)
Definition OffroadHatchback.c:539
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition OffroadHatchback.c:475
override float GetTransportCameraDistance()
Definition OffroadHatchback.c:555
override bool IsVitalGlowPlug()
Definition OffroadHatchback.c:849
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition OffroadHatchback.c:880
override bool CanDisplayCargo()
Definition OffroadHatchback.c:632
override int GetAnimInstance()
Definition OffroadHatchback.c:550
override bool CrewCanGetThrough(int posIdx)
Definition OffroadHatchback.c:675
override CarLightBase CreateFrontLight()
Definition OffroadHatchback.c:584
override int GetSeatIndexFromDoor(string pDoorSelection)
Definition OffroadHatchback.c:900
override CarRearLightBase CreateRearLight()
Definition OffroadHatchback.c:579
override void EEInit()
Definition OffroadHatchback.c:499
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition OffroadHatchback.c:476
override float OnSound(CarSoundCtrl ctrl, float oldValue)
Definition OffroadHatchback.c:748
override bool IsVitalTruckBattery()
Definition OffroadHatchback.c:844
override int GetCrewIndex(string selection)
Definition OffroadHatchback.c:831
override bool CanReleaseAttachment(EntityAI attachment)
Definition OffroadHatchback.c:589
override void OnEngineStart()
Definition OffroadHatchback.c:519
override string GetAnimSourceFromSelection(string selection)
Definition OffroadHatchback.c:793
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition OffroadHatchback.c:854
override string GetDoorConditionPointFromSelection(string selection)
Definition OffroadHatchback.c:814
override string GetDoorSelectionNameFromSeatPos(int posIdx)
Definition OffroadHatchback.c:716
override int GetSeatAnimationType(int posIdx)
Definition OffroadHatchback.c:560
ref UniversalTemperatureSource m_UTSource
Definition OffroadHatchback.c:474
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
Definition OffroadHatchback.c:731
class OffroadHatchback extends CarScript OnDebugSpawn()
Definition OffroadHatchback.c:473
bool CanManipulateSpareWheel(string slotSelectionName)
Definition OffroadHatchback.c:608
override void SetActions()
Definition OffroadHatchback.c:913
void OffroadHatchback()
Definition OffroadHatchback.c:478
override void OnEngineStop()
Definition OffroadHatchback.c:529
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
VehicleAnimInstances
Definition VehicleAnimInstances.c:2
Definition ActionAnimateSeats.c:2
Definition InventoryItem.c:496
Definition CarRearLightBase.c:2
Definition CivilianSedanRearLight.c:2
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition constants.c:638
Definition EnEntity.c:165
Definition OffroadHatchback.c:496
Definition PointLightBase.c:2
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:28
Definition UniversalTemperatureSource.c:2
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:602
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
Definition constants.c:777
const int STATE_RUINED
Definition constants.c:807
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'.