516{
520
522 {
523
524
530
533
536
537 SetEnginePos("0 0.7 1.4");
538 }
539
541 {
543
545 {
553
556 }
557 }
558
560 {
561 super.OnEngineStart();
562
565 }
566
568 {
569 super.OnEngineStop();
570
573 }
574
576 {
578 {
581 }
582 }
583
585 {
587 }
588
590 {
592 {
593 case 0:
595 case 1:
597 case 2:
599 case 3:
601 }
602
603 return 0;
604 }
605
606
608 {
610 }
611
612
614 {
616 }
617
619 {
621 return false;
622
624 {
627 return false;
628 }
629
630 return true;
631 }
632
634 {
636 }
637
639 {
640
642 return false;
643
644
647 {
649 return false;
650 }
651
652 return true;
653 }
654
656 {
657 if (!
super.CanDisplayCargo())
658 return false;
659
661 return false;
662
663 return true;
664 }
665
667 {
669
673
675 {
676 case "Hatchback_02_Door_1_1":
678
679 case "Hatchback_02_Door_2_1":
681
682 case "Hatchback_02_Door_1_2":
684
685 case "Hatchback_02_Door_2_2":
687
688 case "Hatchback_02_Hood":
690
691 case "Hatchback_02_Trunk":
693 }
694
696 }
697
698
700 {
702 {
703 case 0:
705 return false;
706
707 return true;
708
709 case 1:
711 return false;
712
713 return true;
714
715 case 2:
717 return false;
718
719 return true;
720
721 case 3:
723 return false;
724
725 return true;
726 }
727
728 return false;
729 }
730
732 {
734 {
735 case 0:
736 return "doors_driver";
737 break;
738 case 1:
739 return "doors_codriver";
740 break;
741 case 2:
742 return "doors_cargo1";
743 break;
744 case 3:
745 return "doors_cargo2";
746 break;
747 }
748
749 return super.GetDoorSelectionNameFromSeatPos(
posIdx);
750 }
751
753 {
755 {
756 case 0:
757 return "Hatchback_02_Door_1_1";
758 break;
759 case 1:
760 return "Hatchback_02_Door_2_1";
761 break;
762 case 2:
763 return "Hatchback_02_Door_1_2";
764 break;
765 case 3:
766 return "Hatchback_02_Door_2_2";
767 break;
768 }
769
770 return super.GetDoorInvSlotNameFromSeatPos(
posIdx);
771 }
772
774 {
776 {
781
784
787
790
792 break;
793 }
794
796 }
797
799 {
800 switch (selection)
801 {
802 case "doors_driver":
803 return "DoorsDriver";
804 case "doors_codriver":
805 return "DoorsCoDriver";
806 case "doors_cargo1":
807 return "DoorsCargo1";
808 case "doors_cargo2":
809 return "DoorsCargo2";
810 case "doors_hood":
811 return "DoorsHood";
812 case "doors_trunk":
813 return "DoorsTrunk";
814 }
815
816 return "";
817 }
818
819
821 {
822 return false;
823 }
824
826 {
827 return false;
828 }
829
831 {
833 {
834 case 0:
836 case 1:
838 case 2:
840 case 3:
842 }
843
844 return false;
845 }
846
848 {
850 {
851 case 0:
853 case 1:
855 case 2:
857 case 3:
859 }
860
861 return false;
862 }
863
865 {
869
870 GetInventory().CreateInInventory("Hatchback_02_Wheel");
871 GetInventory().CreateInInventory("Hatchback_02_Wheel");
872 GetInventory().CreateInInventory("Hatchback_02_Wheel");
873 GetInventory().CreateInInventory("Hatchback_02_Wheel");
874
875 GetInventory().CreateInInventory("Hatchback_02_Door_1_1");
876 GetInventory().CreateInInventory("Hatchback_02_Door_1_2");
877 GetInventory().CreateInInventory("Hatchback_02_Door_2_1");
878 GetInventory().CreateInInventory("Hatchback_02_Door_2_2");
879 GetInventory().CreateInInventory("Hatchback_02_Hood");
880 GetInventory().CreateInInventory("Hatchback_02_Trunk");
881
882
883 GetInventory().CreateInInventory("Hatchback_02_Wheel");
884 GetInventory().CreateInInventory("Hatchback_02_Wheel");
885 }
886}
887
889{
891 {
895
896 GetInventory().CreateInInventory("Hatchback_02_Wheel");
897 GetInventory().CreateInInventory("Hatchback_02_Wheel");
898 GetInventory().CreateInInventory("Hatchback_02_Wheel");
899 GetInventory().CreateInInventory("Hatchback_02_Wheel");
900
901 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Black");
902 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Black");
903 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Black");
904 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Black");
905 GetInventory().CreateInInventory("Hatchback_02_Hood_Black");
906 GetInventory().CreateInInventory("Hatchback_02_Trunk_Black");
907
908
909 GetInventory().CreateInInventory("Hatchback_02_Wheel");
910 GetInventory().CreateInInventory("Hatchback_02_Wheel");
911 }
912};
913
915{
917 {
921
922 GetInventory().CreateInInventory("Hatchback_02_Wheel");
923 GetInventory().CreateInInventory("Hatchback_02_Wheel");
924 GetInventory().CreateInInventory("Hatchback_02_Wheel");
925 GetInventory().CreateInInventory("Hatchback_02_Wheel");
926
927 GetInventory().CreateInInventory("Hatchback_02_Door_1_1_Blue");
928 GetInventory().CreateInInventory("Hatchback_02_Door_1_2_Blue");
929 GetInventory().CreateInInventory("Hatchback_02_Door_2_1_Blue");
930 GetInventory().CreateInInventory("Hatchback_02_Door_2_2_Blue");
931 GetInventory().CreateInInventory("Hatchback_02_Hood_Blue");
932 GetInventory().CreateInInventory("Hatchback_02_Trunk_Blue");
933
934
935 GetInventory().CreateInInventory("Hatchback_02_Wheel");
936 GetInventory().CreateInInventory("Hatchback_02_Wheel");
937 }
938}
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
string m_CarHornLongSoundName
string m_CarDoorOpenSound
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
ref UniversalTemperatureSourceSettings m_UTSSettings
override bool CanReachSeatFromSeat(int currentSeat, int nextSeat)
override string GetAnimSourceFromSelection(string selection)
override int GetSeatAnimationType(int posIdx)
override float OnSound(CarSoundCtrl ctrl, float oldValue)
override string GetDoorInvSlotNameFromSeatPos(int posIdx)
override void EOnPostSimulate(IEntity other, float timeSlice)
override void OnEngineStop()
ref UniversalTemperatureSourceLambdaEngine m_UTSLEngine
override bool CanReleaseAttachment(EntityAI attachment)
override bool CanDisplayCargo()
override void OnEngineStart()
override CarLightBase CreateFrontLight()
override int GetAnimInstance()
override bool CrewCanGetThrough(int posIdx)
override bool CanReachDoorsFromSeat(string pDoorsSelection, int pCurrentSeat)
bool CanManipulateSpareWheel(string slotSelectionName)
override bool IsVitalGlowPlug()
ref UniversalTemperatureSource m_UTSource
override CarRearLightBase CreateRearLight()
override bool IsVitalTruckBattery()
override string GetDoorSelectionNameFromSeatPos(int posIdx)
override int GetCarDoorsState(string slotType)
override bool CanDisplayAttachmentCategory(string category_name)
Super root of all classes in Enforce script.
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'.