554{
558
560 {
561
562
568
571
574
575 SetEnginePos("0 0.7 1.4");
576 }
577
579 {
581
583 {
591
594 }
595 }
596
598 {
599 super.OnEngineStart();
600
602 {
604 }
605 }
606
608 {
609 super.OnEngineStop();
610
612 {
614 }
615 }
616
618 {
620 {
622 {
624 }
625 }
626 }
627
629 {
631 }
632
634 {
636 {
637 case 0:
639 case 1:
641 case 2:
643 case 3:
645 }
646
647 return 0;
648 }
649
650
652 {
654 }
655
656
658 {
660 }
661
663 {
665 {
666 return false;
667 }
668
670 {
673 {
674 return false;
675 }
676 }
677
678 return true;
679 }
680
682 {
684 }
685
687 {
688
690 return false;
691
692
695 {
697 return false;
698 }
699
700 return true;
701 }
702
704 {
705 if ( !
super.CanDisplayCargo() )
706 return false;
707
709 return false;
710
711 return true;
712 }
713
715 {
717
720 {
722 }
723
725 {
726 case "Hatchback_02_Door_1_1":
728
729 case "Hatchback_02_Door_2_1":
731
732 case "Hatchback_02_Door_1_2":
734
735 case "Hatchback_02_Door_2_2":
737
738 case "Hatchback_02_Hood":
740
741 case "Hatchback_02_Trunk":
743 }
744
746 }
747
748
750 {
752 {
753 case 0:
755 {
756 return false;
757 }
758
759 return true;
760
761 case 1:
763 {
764 return false;
765 }
766
767 return true;
768
769 case 2:
771 {
772 return false;
773 }
774
775 return true;
776
777 case 3:
779 {
780 return false;
781 }
782
783 return true;
784 }
785
786 return false;
787 }
788
790 {
792 {
793 case 0:
794 return "doors_driver";
795 break;
796 case 1:
797 return "doors_codriver";
798 break;
799 case 2:
800 return "doors_cargo1";
801 break;
802 case 3:
803 return "doors_cargo2";
804 break;
805 }
806
807 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
808 }
809
811 {
813 {
814 case 0:
815 return "Hatchback_02_Door_1_1";
816 break;
817 case 1:
818 return "Hatchback_02_Door_2_1";
819 break;
820 case 2:
821 return "Hatchback_02_Door_1_2";
822 break;
823 case 3:
824 return "Hatchback_02_Door_2_2";
825 break;
826 }
827
828 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
829 }
830
832 {
834 {
838 {
840 }
841
843 {
845 }
846
848 {
850 }
851
853 {
855 }
856
858 break;
859 }
860
862 }
863
865 {
866 switch( selection )
867 {
868 case "doors_driver":
869 return "DoorsDriver";
870 case "doors_codriver":
871 return "DoorsCoDriver";
872 case "doors_cargo1":
873 return "DoorsCargo1";
874 case "doors_cargo2":
875 return "DoorsCargo2";
876 case "doors_hood":
877 return "DoorsHood";
878 case "doors_trunk":
879 return "DoorsTrunk";
880 }
881
882 return "";
883 }
884
885
887 {
888 return false;
889 }
890
892 {
893 return false;
894 }
895
897 {
899 {
900 case 0:
902 case 1:
904 case 2:
906 case 3:
908 }
909
910 return false;
911 }
912
914 {
916 {
917 case 0:
919 case 1:
921 case 2:
923 case 3:
925 }
926
927 return false;
928 }
929
931 {
935
936 GetInventory().CreateInInventory("Hatchback_02_Wheel");
937 GetInventory().CreateInInventory("Hatchback_02_Wheel");
938 GetInventory().CreateInInventory("Hatchback_02_Wheel");
939 GetInventory().CreateInInventory("Hatchback_02_Wheel");
940
941 GetInventory().CreateInInventory("Hatchback_02_Door_1_1");
942 GetInventory().CreateInInventory("Hatchback_02_Door_1_2");
943 GetInventory().CreateInInventory("Hatchback_02_Door_2_1");
944 GetInventory().CreateInInventory("Hatchback_02_Door_2_2");
945 GetInventory().CreateInInventory("Hatchback_02_Hood");
946 GetInventory().CreateInInventory("Hatchback_02_Trunk");
947
948
949 GetInventory().CreateInInventory("Hatchback_02_Wheel");
950 GetInventory().CreateInInventory("Hatchback_02_Wheel");
951 }
952}
953
955{
957 {
961
962 GetInventory().CreateInInventory("Hatchback_02_Wheel");
963 GetInventory().CreateInInventory("Hatchback_02_Wheel");
964 GetInventory().CreateInInventory("Hatchback_02_Wheel");
965 GetInventory().CreateInInventory("Hatchback_02_Wheel");
966
967 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Black");
968 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Black");
969 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Black");
970 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Black");
971 GetInventory().CreateInInventory("Hatchback_02_Hood_Black");
972 GetInventory().CreateInInventory("Hatchback_02_Trunk_Black");
973
974
975 GetInventory().CreateInInventory("Hatchback_02_Wheel");
976 GetInventory().CreateInInventory("Hatchback_02_Wheel");
977 }
978};
979
981{
983 {
987
988 GetInventory().CreateInInventory("Hatchback_02_Wheel");
989 GetInventory().CreateInInventory("Hatchback_02_Wheel");
990 GetInventory().CreateInInventory("Hatchback_02_Wheel");
991 GetInventory().CreateInInventory("Hatchback_02_Wheel");
992
993 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Blue");
994 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Blue");
995 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Blue");
996 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Blue");
997 GetInventory().CreateInInventory("Hatchback_02_Hood_Blue");
998 GetInventory().CreateInInventory("Hatchback_02_Trunk_Blue");
999
1000
1001 GetInventory().CreateInInventory("Hatchback_02_Wheel");
1002 GetInventory().CreateInInventory("Hatchback_02_Wheel");
1003 }
1004}
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Definition Car.c:4
void SpawnUniversalParts()
Definition CarScript.c:2637
CarDoorState TranslateAnimationPhaseToCarDoorState(string animation)
Definition CarScript.c:2336
CarDoorState
Definition CarScript.c:2
void SpawnAdditionalItems()
Definition CarScript.c:2675
string m_EngineStartOK
Sounds.
Definition CarScript.c:209
string m_CarDoorCloseSound
Definition CarScript.c:216
string m_EngineStartBattery
Definition CarScript.c:210
string m_EngineStartPlug
Definition CarScript.c:211
string m_EngineStartFuel
Definition CarScript.c:212
string m_CarHornShortSoundName
Definition CarScript.c:220
void FillUpCarFluids()
Definition CarScript.c:2705
string m_CarHornLongSoundName
Definition CarScript.c:221
string m_EngineStopFuel
Definition CarScript.c:213
string m_CarDoorOpenSound
Definition CarScript.c:215
override int GetCarDoorsState(string slotType)
Definition Hatchback_02.c:564
override bool CanDisplayAttachmentCategory(string category_name)
Definition Hatchback_02.c:536
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition Hatchback_02.c:404
override void EOnPostSimulate(IEntity other, float timeSlice)
Definition Hatchback_02.c:467
ref UniversalTemperatureSourceSettings m_UTSSettings
Definition Hatchback_02.c:406
override bool IsVitalGlowPlug()
Definition Hatchback_02.c:741
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
Definition Hatchback_02.c:763
override bool CanDisplayCargo()
Definition Hatchback_02.c:553
override int GetAnimInstance()
Definition Hatchback_02.c:478
override bool CrewCanGetThrough(int posIdx)
Definition Hatchback_02.c:599
override CarLightBase CreateFrontLight()
Definition Hatchback_02.c:507
override CarRearLightBase CreateRearLight()
Definition Hatchback_02.c:501
void Hatchback_02()
Definition Hatchback_02.c:409
override void EEInit()
Definition Hatchback_02.c:428
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
Definition Hatchback_02.c:407
override float OnSound(CarSoundCtrl ctrl, float oldValue)
Definition Hatchback_02.c:681
override bool IsVitalTruckBattery()
Definition Hatchback_02.c:736
override bool CanReleaseAttachment(EntityAI attachment)
Definition Hatchback_02.c:512
override void OnEngineStart()
Definition Hatchback_02.c:447
override string GetAnimSourceFromSelection(string selection)
Definition Hatchback_02.c:714
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
Definition Hatchback_02.c:746
override string GetDoorSelectionNameFromSeatPos(int posIdx)
Definition Hatchback_02.c:639
override int GetSeatAnimationType(int posIdx)
Definition Hatchback_02.c:483
ref UniversalTemperatureSource m_UTSource
Definition Hatchback_02.c:405
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
Definition Hatchback_02.c:660
bool CanManipulateSpareWheel(string slotSelectionName)
Definition Hatchback_02.c:531
override void OnEngineStop()
Definition Hatchback_02.c:457
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 Hatchback_02.c:429
Definition EnEntity.c:165
Definition PointLightBase.c:2
original Timer deletes m_params which is unwanted
Definition UniversalTemperatureSource.c:26
Definition UniversalTemperatureSourceLambdaBaseImpl.c:63
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 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'.