556{
560
562 {
563
564
570
573
576
577 SetEnginePos("0 0.7 1.4");
578 }
579
581 {
583
585 {
594
597 }
598 }
599
601 {
602 super.OnEngineStart();
603
605 {
607 }
608 }
609
611 {
612 super.OnEngineStop();
613
615 {
617 }
618 }
619
621 {
623 {
625 {
627 }
628 }
629 }
630
632 {
634 }
635
637 {
639 {
640 case 0:
642 case 1:
644 case 2:
646 case 3:
648 }
649
650 return 0;
651 }
652
653
655 {
657 }
658
659
661 {
663 }
664
666 {
668 {
669 return false;
670 }
671
673 {
676 {
677 return false;
678 }
679 }
680
681 return true;
682 }
683
685 {
687 }
688
690 {
691
693 return false;
694
695
698 {
700 return false;
701 }
702
703 return true;
704 }
705
707 {
708 if ( !
super.CanDisplayCargo() )
709 return false;
710
712 return false;
713
714 return true;
715 }
716
718 {
720
723 {
725 }
726
728 {
729 case "Hatchback_02_Door_1_1":
731
732 case "Hatchback_02_Door_2_1":
734
735 case "Hatchback_02_Door_1_2":
737
738 case "Hatchback_02_Door_2_2":
740
741 case "Hatchback_02_Hood":
743
744 case "Hatchback_02_Trunk":
746 }
747
749 }
750
751
753 {
755 {
756 case 0:
758 {
759 return false;
760 }
761
762 return true;
763
764 case 1:
766 {
767 return false;
768 }
769
770 return true;
771
772 case 2:
774 {
775 return false;
776 }
777
778 return true;
779
780 case 3:
782 {
783 return false;
784 }
785
786 return true;
787 }
788
789 return false;
790 }
791
793 {
795 {
796 case 0:
797 return "doors_driver";
798 break;
799 case 1:
800 return "doors_codriver";
801 break;
802 case 2:
803 return "doors_cargo1";
804 break;
805 case 3:
806 return "doors_cargo2";
807 break;
808 }
809
810 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
811 }
812
814 {
816 {
817 case 0:
818 return "Hatchback_02_Door_1_1";
819 break;
820 case 1:
821 return "Hatchback_02_Door_2_1";
822 break;
823 case 2:
824 return "Hatchback_02_Door_1_2";
825 break;
826 case 3:
827 return "Hatchback_02_Door_2_2";
828 break;
829 }
830
831 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
832 }
833
835 {
837 {
841 {
843 }
844
846 {
848 }
849
851 {
853 }
854
856 {
858 }
859
861 break;
862 }
863
865 }
866
868 {
869 switch( selection )
870 {
871 case "doors_driver":
872 return "DoorsDriver";
873 case "doors_codriver":
874 return "DoorsCoDriver";
875 case "doors_cargo1":
876 return "DoorsCargo1";
877 case "doors_cargo2":
878 return "DoorsCargo2";
879 case "doors_hood":
880 return "DoorsHood";
881 case "doors_trunk":
882 return "DoorsTrunk";
883 }
884
885 return "";
886 }
887
888
890 {
891 return false;
892 }
893
895 {
896 return false;
897 }
898
900 {
902 {
903 case 0:
905 case 1:
907 case 2:
909 case 3:
911 }
912
913 return false;
914 }
915
917 {
919 {
920 case 0:
922 case 1:
924 case 2:
926 case 3:
928 }
929
930 return false;
931 }
932
934 {
938
939 GetInventory().CreateInInventory("Hatchback_02_Wheel");
940 GetInventory().CreateInInventory("Hatchback_02_Wheel");
941 GetInventory().CreateInInventory("Hatchback_02_Wheel");
942 GetInventory().CreateInInventory("Hatchback_02_Wheel");
943
944 GetInventory().CreateInInventory("Hatchback_02_Door_1_1");
945 GetInventory().CreateInInventory("Hatchback_02_Door_1_2");
946 GetInventory().CreateInInventory("Hatchback_02_Door_2_1");
947 GetInventory().CreateInInventory("Hatchback_02_Door_2_2");
948 GetInventory().CreateInInventory("Hatchback_02_Hood");
949 GetInventory().CreateInInventory("Hatchback_02_Trunk");
950
951
952 GetInventory().CreateInInventory("Hatchback_02_Wheel");
953 GetInventory().CreateInInventory("Hatchback_02_Wheel");
954 }
955}
956
958{
960 {
964
965 GetInventory().CreateInInventory("Hatchback_02_Wheel");
966 GetInventory().CreateInInventory("Hatchback_02_Wheel");
967 GetInventory().CreateInInventory("Hatchback_02_Wheel");
968 GetInventory().CreateInInventory("Hatchback_02_Wheel");
969
970 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Black");
971 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Black");
972 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Black");
973 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Black");
974 GetInventory().CreateInInventory("Hatchback_02_Hood_Black");
975 GetInventory().CreateInInventory("Hatchback_02_Trunk_Black");
976
977
978 GetInventory().CreateInInventory("Hatchback_02_Wheel");
979 GetInventory().CreateInInventory("Hatchback_02_Wheel");
980 }
981};
982
984{
986 {
990
991 GetInventory().CreateInInventory("Hatchback_02_Wheel");
992 GetInventory().CreateInInventory("Hatchback_02_Wheel");
993 GetInventory().CreateInInventory("Hatchback_02_Wheel");
994 GetInventory().CreateInInventory("Hatchback_02_Wheel");
995
996 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Blue");
997 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Blue");
998 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Blue");
999 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Blue");
1000 GetInventory().CreateInInventory("Hatchback_02_Hood_Blue");
1001 GetInventory().CreateInInventory("Hatchback_02_Trunk_Blue");
1002
1003
1004 GetInventory().CreateInInventory("Hatchback_02_Wheel");
1005 GetInventory().CreateInInventory("Hatchback_02_Wheel");
1006 }
1007}
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Definition Car.c:4
void SpawnUniversalParts()
Definition CarScript.c:2761
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_CarDoorOpenSound
Definition CarScript.c:213
override int GetCarDoorsState(string slotType)
Definition Hatchback_02.c:566
override bool CanDisplayAttachmentCategory(string category_name)
Definition Hatchback_02.c:538
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition Hatchback_02.c:405
override void EOnPostSimulate(IEntity other, float timeSlice)
Definition Hatchback_02.c:469
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Hatchback_02.c:407
override bool IsVitalGlowPlug()
Definition Hatchback_02.c:743
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition Hatchback_02.c:765
override bool CanDisplayCargo()
Definition Hatchback_02.c:555
override int GetAnimInstance()
Definition Hatchback_02.c:480
override bool CrewCanGetThrough(int posIdx)
Definition Hatchback_02.c:601
override CarLightBase CreateFrontLight()
Definition Hatchback_02.c:509
override CarRearLightBase CreateRearLight()
Definition Hatchback_02.c:503
void Hatchback_02()
Definition Hatchback_02.c:410
override void EEInit()
Definition Hatchback_02.c:429
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition Hatchback_02.c:408
override float OnSound(CarSoundCtrl ctrl, float oldValue)
Definition Hatchback_02.c:683
override bool IsVitalTruckBattery()
Definition Hatchback_02.c:738
override bool CanReleaseAttachment(EntityAI attachment)
Definition Hatchback_02.c:514
override void OnEngineStart()
Definition Hatchback_02.c:449
override string GetAnimSourceFromSelection(string selection)
Definition Hatchback_02.c:716
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition Hatchback_02.c:748
override string GetDoorSelectionNameFromSeatPos(int posIdx)
Definition Hatchback_02.c:641
override int GetSeatAnimationType(int posIdx)
Definition Hatchback_02.c:485
ref UniversalTemperatureSource m_UTSource
Definition Hatchback_02.c:406
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
Definition Hatchback_02.c:662
bool CanManipulateSpareWheel(string slotSelectionName)
Definition Hatchback_02.c:533
override void OnEngineStop()
Definition Hatchback_02.c:459
UniversalTemperatureSourceLambdaBaseImpl UniversalTemperatureSourceLambdaBase UniversalTemperatureSourceLambdaEngine()
Definition UniversalTemperatureSourceLambdaBaseImpl.c:175
VehicleAnimInstances
Definition VehicleAnimInstances.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 Hatchback_02.c:430
Definition EnEntity.c:165
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
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'.