Advertisement
sasaa86

Dayz Init.c

Nov 12th, 2018
1,251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 30.11 KB | None | 0 0
  1. // currently used
  2.  
  3. void main()
  4. {
  5.     Hive ce = CreateHive();
  6.     if ( ce )
  7.         ce.InitOffline();
  8.  
  9.     Weather weather = g_Game.GetWeather();
  10.  
  11.     weather.GetOvercast().SetLimits( 0.0 , 1.0 );
  12.     weather.GetRain().SetLimits( 0.0 , 0.0 );
  13.     weather.GetFog().SetLimits( 0.0 , 0.25 );
  14.  
  15.     weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 );
  16.     weather.GetRain().SetForecastChangeLimits( 0.0, 0.0 );
  17.     weather.GetFog().SetForecastChangeLimits( 0.15, 0.45 );
  18.  
  19.     weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 );
  20.     weather.GetRain().SetForecastTimeLimits( 600 , 600 );
  21.     weather.GetFog().SetForecastTimeLimits( 1800 , 1800 );
  22.  
  23.     weather.GetOvercast().Set( Math.RandomFloatInclusive(0.0, 0.3), 0, 0);
  24.     weather.GetRain().Set( Math.RandomFloatInclusive(0.0, 0.2), 0, 0);
  25.     weather.GetFog().Set( Math.RandomFloatInclusive(0.0, 0.1), 0, 0);
  26.    
  27.     weather.SetWindMaximumSpeed(15);
  28.     weather.SetWindFunctionParams(0.1, 0.3, 50);
  29.    
  30.    
  31.     // ############################## Bridge ##################################
  32.     Object obj;
  33.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12999.700195 -7.890600 3284.985596");
  34.     obj.SetOrientation("55.999985 0.000000 0.000000");
  35.     obj.SetPosition("12999.700195 -7.890600 3284.985596");
  36.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12988.517578 -7.890600 3301.570557");
  37.     obj.SetOrientation("55.999985 0.000000 0.000000");
  38.     obj.SetPosition("12988.517578 -7.890600 3301.570557");
  39.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12977.330078 -7.890600 3318.156250");
  40.     obj.SetOrientation("56.000000 0.000000 0.000000");
  41.     obj.SetPosition("12977.330078 -7.890600 3318.156250");
  42.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12966.149414 -7.890600 3334.729980");
  43.     obj.SetOrientation("56.000000 0.000000 0.000000");
  44.     obj.SetPosition("12966.149414 -7.890600 3334.729980");
  45.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12954.969727 -7.890600 3351.300049");
  46.     obj.SetOrientation("56.000000 0.000000 0.000000");
  47.     obj.SetPosition("12954.969727 -7.890600 3351.300049");
  48.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12943.798828 -7.890600 3367.870117");
  49.     obj.SetOrientation("56.000000 0.000000 0.000000");
  50.     obj.SetPosition("12943.798828 -7.890600 3367.870117");
  51.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12932.620117 -7.890600 3384.443604");
  52.     obj.SetOrientation("56.000000 0.000000 0.000000");
  53.     obj.SetPosition("12932.620117 -7.890600 3384.443604");
  54.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12921.450195 -7.890600 3401.000000");
  55.     obj.SetOrientation("56.000000 0.000000 0.000000");
  56.     obj.SetPosition("12921.450195 -7.890600 3401.000000");
  57.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12910.259766 -7.890600 3417.581055");
  58.     obj.SetOrientation("56.000000 0.000000 0.000000");
  59.     obj.SetPosition("12910.259766 -7.890600 3417.581055");
  60.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12899.080078 -7.890600 3434.149902");
  61.     obj.SetOrientation("56.000000 0.000000 0.000000");
  62.     obj.SetPosition("12899.080078 -7.890600 3434.149902");
  63.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12887.900391 -7.890600 3450.728027");
  64.     obj.SetOrientation("56.000000 0.000000 0.000000");
  65.     obj.SetPosition("12887.900391 -7.890600 3450.728027");
  66.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12876.709961 -7.890600 3467.312256");
  67.     obj.SetOrientation("56.000000 0.000000 0.000000");
  68.     obj.SetPosition("12876.709961 -7.890600 3467.312256");
  69.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12865.540039 -7.890600 3483.872803");
  70.     obj.SetOrientation("56.000000 0.000000 0.000000");
  71.     obj.SetPosition("12865.540039 -7.890600 3483.872803");
  72.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12854.360352 -7.890600 3500.449463");
  73.     obj.SetOrientation("56.000000 0.000000 0.000000");
  74.     obj.SetPosition("12854.360352 -7.890600 3500.449463");
  75.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12843.179688 -7.890600 3517.039795");
  76.     obj.SetOrientation("56.000000 0.000000 0.000000");
  77.     obj.SetPosition("12843.179688 -7.890600 3517.039795");
  78.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12831.998047 -7.890600 3533.620117");
  79.     obj.SetOrientation("56.000000 0.000000 0.000000");
  80.     obj.SetPosition("12831.998047 -7.890600 3533.620117");
  81.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12820.809570 -7.890600 3550.198975");
  82.     obj.SetOrientation("56.000000 0.000000 0.000000");
  83.     obj.SetPosition("12820.809570 -7.890600 3550.198975");
  84.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12809.627930 -7.890600 3566.780029");
  85.     obj.SetOrientation("56.000000 0.000000 0.000000");
  86.     obj.SetPosition("12809.627930 -7.890600 3566.780029");
  87.     obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12798.440430 -7.890600 3583.360107");
  88.     obj.SetOrientation("56.000000 0.000000 0.000000");
  89.     obj.SetPosition("12798.440430 -7.890600 3583.360107");
  90.     obj = GetGame().CreateObject("Land_Container_1Moh", "12809.701172 2.301730 3576.680176");
  91.     obj.SetOrientation("138.000015 0.000000 0.000000");
  92.     obj.SetPosition("12809.701172 2.301730 3576.680176");
  93.     obj = GetGame().CreateObject("Land_Container_1Moh", "12835.256836 2.086504 3538.797119");
  94.     obj.SetOrientation("-20.000008 0.000000 0.000000");
  95.     obj.SetPosition("12835.256836 2.086504 3538.797119");
  96.     obj = GetGame().CreateObject("Land_Container_1Moh", "12894.056641 2.251730 3455.602783");
  97.     obj.SetOrientation("-69.000000 0.000000 0.000000");
  98.     obj.SetPosition("12894.056641 2.251730 3455.602783");
  99.     obj = GetGame().CreateObject("Land_Container_1Moh", "12934.767578 2.301730 3387.844238");
  100.     obj.SetOrientation("0.000000 0.000000 0.000000");
  101.     obj.SetPosition("12934.767578 2.301730 3387.844238");
  102.     obj = GetGame().CreateObject("Land_Container_1Moh", "12990.190430 2.251730 3310.003662");
  103.     obj.SetOrientation("-62.000011 0.000000 0.000000");
  104.     obj.SetPosition("12990.190430 2.251730 3310.003662");
  105.     obj = GetGame().CreateObject("Land_Container_1Bo", "12999.427734 2.249999 3290.898682");
  106.     obj.SetOrientation("-17.000000 0.000000 0.000000");
  107.     obj.SetPosition("12999.427734 2.249999 3290.898682");
  108.     obj = GetGame().CreateObject("Land_Container_1Bo", "12966.283203 2.201730 3346.047607");
  109.     obj.SetOrientation("-33.000004 0.000000 0.000000");
  110.     obj.SetPosition("12966.283203 2.201730 3346.047607");
  111.     obj = GetGame().CreateObject("Land_Container_1Bo", "12947.516602 1.970427 3371.596680");
  112.     obj.SetOrientation("-30.000006 0.000000 0.000000");
  113.     obj.SetPosition("12947.516602 1.970427 3371.596680");
  114.     obj = GetGame().CreateObject("Land_Container_1Bo", "12912.168945 2.301730 3425.531006");
  115.     obj.SetOrientation("-57.999996 0.000000 0.000000");
  116.     obj.SetPosition("12912.168945 2.301730 3425.531006");
  117.     obj = GetGame().CreateObject("Land_Container_1Mo", "12900.983398 2.060063 3443.850830");
  118.     obj.SetOrientation("-4.000000 0.000000 0.000000");
  119.     obj.SetPosition("12900.983398 2.060063 3443.850830");
  120.     obj = GetGame().CreateObject("Land_Container_1Mo", "12912.173828 4.767287 3425.496338");
  121.     obj.SetOrientation("-57.999992 0.000000 0.000000");
  122.     obj.SetPosition("12912.173828 4.767287 3425.496338");
  123.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12832.424805 1.935676 3544.248535");
  124.     obj.SetOrientation("0.000000 0.000000 0.000000");
  125.     obj.SetPosition("12832.424805 1.935676 3544.248535");
  126.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12889.860352 1.985680 3460.103760");
  127.     obj.SetOrientation("-70.000000 0.000000 0.000000");
  128.     obj.SetPosition("12889.860352 1.985680 3460.103760");
  129.     obj = GetGame().CreateObject("Land_Wreck_Uaz", "12937.300781 1.935676 3383.198975");
  130.     obj.SetOrientation("0.000000 0.000000 0.000000");
  131.     obj.SetPosition("12937.300781 1.935676 3383.198975");
  132.     obj = GetGame().CreateObject("Land_Wreck_S1023_Blue", "12931.631836 2.091624 3390.962158");
  133.     obj.SetOrientation("-25.000008 0.000000 0.000000");
  134.     obj.SetPosition("12931.631836 2.091624 3390.962158");
  135.     obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "12986.588867 1.829433 3314.493896");
  136.     obj.SetOrientation("0.000000 0.000000 0.000000");
  137.     obj.SetPosition("12986.588867 1.829433 3314.493896");
  138.     obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "13003.046875 1.829433 3284.915771");
  139.     obj.SetOrientation("-17.000004 0.000000 0.000000");
  140.     obj.SetPosition("13003.046875 1.829433 3284.915771");
  141.     obj = GetGame().CreateObject("Land_Wreck_V3S", "12903.459961 2.536791 3436.341797");
  142.     obj.SetOrientation("-24.000000 -4.000000 -0.000000");
  143.     obj.SetPosition("12903.459961 2.536791 3436.341797");
  144.     obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12871.142578 1.753987 3480.337891");
  145.     obj.SetOrientation("0.000000 0.000000 0.000000");
  146.     obj.SetPosition("12871.142578 1.753987 3480.337891");
  147.     obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12849.930664 1.753987 3521.847412");
  148.     obj.SetOrientation("-65.999985 0.000000 0.000000");
  149.     obj.SetPosition("12849.930664 1.753987 3521.847412");
  150.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12860.179688 2.301730 3505.910400");
  151.     obj.SetOrientation("-32.000004 0.000000 0.000000");
  152.     obj.SetPosition("12860.179688 2.301730 3505.910400");
  153.     obj = GetGame().CreateObject("Land_Container_1Moh", "12884.648438 2.301730 3470.343018");
  154.     obj.SetOrientation("0.000000 0.000000 0.000000");
  155.     obj.SetPosition("12884.648438 2.301730 3470.343018");
  156.     obj = GetGame().CreateObject("Land_Container_1Bo", "12820.764648 2.301730 3562.224609");
  157.     obj.SetOrientation("0.000000 0.000000 0.000000");
  158.     obj.SetPosition("12820.764648 2.301730 3562.224609");
  159.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12876.986328 0.573664 3519.558594");
  160.     obj.SetOrientation("0.000000 0.000000 0.000000");
  161.     obj.SetPosition("12876.986328 0.573664 3519.558594");
  162.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12851.830078 0.312851 3463.268066");
  163.     obj.SetOrientation("-80.000000 0.000000 0.000000");
  164.     obj.SetPosition("12851.830078 0.312851 3463.268066");
  165.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.000977 0.579718 3442.836914");
  166.     obj.SetOrientation("94.000031 0.000000 0.000000");
  167.     obj.SetPosition("12936.000977 0.579718 3442.836914");
  168.     obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.377930 -0.158530 3346.650391");
  169.     obj.SetOrientation("34.000000 0.000000 0.000000");
  170.     obj.SetPosition("12936.377930 -0.158530 3346.650391");
  171.     obj = GetGame().CreateObject("Land_Container_1Aoh", "13002.358398 1.284515 3319.798828");
  172.     obj.SetOrientation("-74.000000 0.000000 0.000000");
  173.     obj.SetPosition("13002.358398 1.284515 3319.798828");
  174.     obj = GetGame().CreateObject("Land_Container_1Bo", "12946.557617 0.260173 3406.045410");
  175.     obj.SetOrientation("-67.000000 0.000000 0.000000");
  176.     obj.SetPosition("12946.557617 0.260173 3406.045410");
  177.     obj = GetGame().CreateObject("Land_Container_1Bo", "12821.682617 0.678651 3528.143799");
  178.     obj.SetOrientation("-64.000000 0.000000 0.000000");
  179.     obj.SetPosition("12821.682617 0.678651 3528.143799");
  180.     obj = GetGame().CreateObject("Land_Container_1Bo", "12851.442383 0.351952 3561.598877");
  181.     obj.SetOrientation("-57.999992 0.000000 0.000000");
  182.     obj.SetPosition("12851.442383 0.351952 3561.598877");
  183.     obj = GetGame().CreateObject("Land_Container_1Bo", "12918.758789 0.920032 3364.437012");
  184.     obj.SetOrientation("-60.999996 0.000000 0.000000");
  185.     obj.SetPosition("12918.758789 0.920032 3364.437012");
  186.     obj = GetGame().CreateObject("Land_Container_1Mo", "12934.750977 0.666381 3418.666992");
  187.     obj.SetOrientation("-52.000000 0.000000 0.000000");
  188.     obj.SetPosition("12934.750977 0.666381 3418.666992");
  189.     obj = GetGame().CreateObject("Land_Container_1Mo", "12856.403320 0.043793 3469.494629");
  190.     obj.SetOrientation("-45.999996 0.000000 0.000000");
  191.     obj.SetPosition("12856.403320 0.043793 3469.494629");
  192.     obj = GetGame().CreateObject("Land_Container_1Mo", "12879.313477 0.908100 3459.768066");
  193.     obj.SetOrientation("-120.999969 -64.000015 -54.999989");
  194.     obj.SetPosition("12879.313477 0.908100 3459.768066");
  195.     obj = GetGame().CreateObject("Land_Lighthouse", "13057.658203 27.043219 3247.424805");
  196.     obj.SetOrientation("0.000000 0.000000 0.000000");
  197.     obj.SetPosition("13057.658203 27.043219 3247.424805"); 
  198.     // ############################## Bridge ##################################
  199. }
  200.  
  201.  
  202.  
  203. class CustomMission: MissionServer
  204. {  
  205.     override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
  206.     {
  207.         Entity playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");
  208.         Class.CastTo(m_player, playerEnt);
  209.         GetGame().SelectPlayer(identity, m_player);
  210.         return m_player;
  211.     }
  212.    
  213.     void SetRandomHealth(EntityAI itemEnt)
  214.     {
  215.         int rndHlt = Math.RandomInt(60,100);
  216.         itemEnt.SetHealth("","",rndHlt);
  217.     }
  218.    
  219.     //! OnInit
  220.     // ###################################
  221.     override void OnInit()
  222.     {
  223.         GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 300000, true);      // 5 minutes
  224.     }
  225.    
  226.     void NumPLayersOnServer()
  227.     {
  228.         ref array<Man> players = new array<Man>;
  229.         GetGame().GetPlayers( players );
  230.         int numPlayers = players.Count();
  231.         for ( int i = 0; i < players.Count(); ++i )
  232.         {
  233.             Man player = players.Get(i);
  234.             if( player )
  235.             {
  236.                 string messPlayers = "Players on the server: " + numPlayers.ToString() + "/120"
  237.                 Param1<string> m_MessageParam = new Param1<string>(messPlayers);
  238.                 GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity());
  239.             }
  240.         }
  241.     }
  242.    
  243.     override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
  244.     {  
  245.     bool IsAdmin = false;
  246.     string SteamId_sasaa = "76561198015080948";
  247.     string SteamId_rene = "76561197973590083";
  248.     string SteamId_Mauss = "76561198015299671";
  249.     string SteamId_stefan = "76561198021971615";
  250.     string SteamId_tijmen = "76561198023029756";
  251.    
  252.     if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
  253.         IsAdmin = true;
  254.     } else if (player.GetIdentity().GetPlainId() == SteamId_rene){
  255.         IsAdmin = true;
  256.     } else if (player.GetIdentity().GetPlainId() == SteamId_Mauss){
  257.         IsAdmin = true;
  258.     } else if (player.GetIdentity().GetPlainId() == SteamId_stefan){
  259.         IsAdmin = true;
  260.     } else if (player.GetIdentity().GetPlainId() == SteamId_tijmen){
  261.         IsAdmin = true;
  262.     } else {
  263.         IsAdmin = false;
  264.     }
  265.     if (IsAdmin){
  266.         // Admins
  267.         if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
  268.             EntityAI MyV3S;
  269.             vector NewPosition;
  270.             vector OldPosition;
  271.             OldPosition = player.GetPosition();
  272.             NewPosition[0] = OldPosition[0] + 2;
  273.             NewPosition[1] = OldPosition[1] + 0.2;
  274.             NewPosition[2] = OldPosition[2] + 2;
  275.             MyV3S = GetGame().CreateObject( "OffroadHatchback", NewPosition, false, true, true );                  
  276.             MyV3S.GetInventory().CreateAttachment("HatchbackHood");
  277.             MyV3S.GetInventory().CreateAttachment("HatchbackTrunk");
  278.             MyV3S.GetInventory().CreateAttachment("HatchbackDoors_Driver");
  279.             MyV3S.GetInventory().CreateAttachment("HatchbackDoors_CoDriver");
  280.             MyV3S.GetInventory().CreateAttachment("HatchbackWheel");
  281.             MyV3S.GetInventory().CreateAttachment("HatchbackWheel");
  282.             MyV3S.GetInventory().CreateAttachment("HatchbackWheel");
  283.             MyV3S.GetInventory().CreateAttachment("HatchbackWheel");
  284.             MyV3S.GetInventory().CreateAttachment("HatchbackWheel"); //spare
  285.             MyV3S.GetInventory().CreateAttachment("SparkPlug");
  286.             MyV3S.GetInventory().CreateAttachment("EngineBelt");
  287.             MyV3S.GetInventory().CreateAttachment("CarBattery");
  288.             auto carfluids = Car.Cast( MyV3S );
  289.             carfluids.Fill( CarFluid.FUEL, 1000 );
  290.             carfluids.Fill( CarFluid.OIL, 1000 );
  291.             carfluids.Fill( CarFluid.BRAKE, 1000 );
  292.             carfluids.Fill( CarFluid.COOLANT, 1000 );
  293.         }
  294.         player.RemoveAllItems();
  295.         player.GetInventory().CreateInInventory("TTSKOPants");
  296.         player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
  297.         player.GetInventory().CreateInInventory("CombatBoots_Black");
  298.         if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
  299.             player.GetInventory().CreateInInventory("GhillieSuit_Woodland");
  300.             player.GetInventory().CreateInInventory("GhillieHood_Woodland");
  301.            
  302.             // SmershVestBackpack
  303.             EntityAI SmershVestBackpack = player.GetHumanInventory().CreateInInventory("SmershVest");
  304.             SmershVestBackpack.GetInventory().CreateAttachment("SmershBag");
  305.            
  306.             // SawedoffMosin
  307.             //EntityAI ghillie_SawedoffMosin = player.GetHumanInventory().CreateInInventory("SawedoffMosin9130_Camo");
  308.             //ghillie_SawedoffMosin.GetInventory().CreateAttachment("ImprovisedSuppressor");
  309.             //player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  310.             //player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  311.             //player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  312.         } else {
  313.             player.GetInventory().CreateInInventory("HuntingBag");
  314.         }
  315.         player.GetInventory().CreateInInventory("StoneKnife");
  316.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  317.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  318.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  319.         player.GetInventory().CreateInInventory("SodaCan_Cola");
  320.         player.GetInventory().CreateInInventory("TacticalBaconCan");
  321.         player.GetInventory().CreateInInventory("TacticalBaconCan");
  322.         player.GetInventory().CreateInInventory("CanOpener");
  323.         player.GetInventory().CreateInInventory("BandageDressing");
  324.         player.GetInventory().CreateInInventory("BandageDressing");
  325.         player.GetInventory().CreateInInventory("DuctTape");
  326.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  327.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  328.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  329.         player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  330.         player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
  331.         player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
  332.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  333.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  334.         player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
  335.         player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  336.         player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  337.        
  338.         EntityAI ghilly_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
  339.         ghilly_flashlight.GetInventory().CreateAttachment("Battery9V");
  340.        
  341.         // M4A1 Green
  342.         EntityAI ghillie_m4a1 = player.GetHumanInventory().CreateInHands("M4A1_Green");
  343.         ghillie_m4a1.GetInventory().CreateAttachment("M4_Suppressor");
  344.         ghillie_m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
  345.         ghillie_m4a1.GetInventory().CreateAttachment("M4_MPBttstck_Green");
  346.         ghillie_m4a1.GetInventory().CreateAttachment("acogoptic");
  347.         //! glitched ghillie_m4a1.GetInventory().CreateAttachment("Mag_STANAGCoupled_30Rnd");
  348.        
  349.         // Marakov
  350.         EntityAI ghillie_marakov = player.GetHumanInventory().CreateInInventory("MakarovIJ70");
  351.         ghillie_marakov.GetInventory().CreateAttachment("PistolSuppressor");
  352.        
  353.         /*!  - Not working jet
  354.         //Glock19
  355.         EntityAI Glock_ghilly = player.GetHumanInventory().CreateInInventory("Glock19");
  356.         Glock_ghilly.GetInventory().CreateAttachment("PistolSuppressor");
  357.         player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
  358.         player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
  359.         player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
  360.         player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
  361.         ItemBase sp6_ammo0 = player.GetInventory().CreateInInventory("Ammo_9x39");
  362.         sp6_ammo0.SetQuantity(20);
  363.         ItemBase sp6_ammo1 = player.GetInventory().CreateInInventory("Ammo_9x39");
  364.         sp6_ammo1.SetQuantity(20);
  365.         // Vss - Not working jet
  366.         EntityAI vss = player.GetHumanInventory().CreateInHands("VSS");
  367.         vss.GetInventory().CreateAttachment("GhillieAtt_Woodland");
  368.         vss.GetInventory().CreateAttachment("PSO11Optic");
  369.         // Rangefinder
  370.         EntityAI Tools_rangefinder = player.GetHumanInventory().CreateInInventory("Rangefinder");
  371.         Tools_rangefinder.GetInventory().CreateAttachment("Battery9V");
  372.         */
  373.        
  374.         // Fireaxe
  375.         EntityAI Fireaxe_ghilly = player.GetHumanInventory().CreateInInventory("FirefighterAxe_Green");
  376.     } else {
  377.         switch (Math.RandomInt(3, 11)) {
  378.             case 0:
  379.             // Knight
  380.             player.RemoveAllItems();
  381.             player.GetInventory().CreateInInventory("TaloonBag_Blue");
  382.             player.GetInventory().CreateInInventory("GreatHelm");
  383.             player.GetInventory().CreateInInventory("Kiwi");
  384.             player.GetInventory().CreateInInventory("Kiwi");
  385.             player.GetInventory().CreateInInventory("SodaCan_cola");
  386.             player.GetInventory().CreateInInventory("SodaCan_spite");
  387.             EntityAI Melee_Sword = player.GetInventory().CreateInInventory("Sword");
  388.             break;
  389.  
  390.             case 1:
  391.             // Miner
  392.             player.RemoveAllItems();
  393.             player.GetInventory().CreateInInventory("TaloonBag_Green");
  394.             player.GetInventory().CreateInInventory("WorkingGloves_Yellow");
  395.             player.GetInventory().CreateInInventory("Apple");
  396.             player.GetInventory().CreateInInventory("Apple");
  397.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  398.             player.GetInventory().CreateInInventory("SodaCan_cola");
  399.             player.GetInventory().CreateInInventory("SpaghettiCan");
  400.             EntityAI Melee_Pickaxe = player.GetHumanInventory().CreateInInventory("Pickaxe");
  401.             break;
  402.            
  403.             case 2:
  404.             // Lumberjack
  405.             player.RemoveAllItems();
  406.             player.GetInventory().CreateInInventory("Shirt_RedCheck");
  407.             player.GetInventory().CreateInInventory("WorkingGloves_Brown");
  408.             player.GetInventory().CreateInInventory("Jeans_Blue");
  409.             player.GetInventory().CreateInInventory("WorkingBoots_Brown");
  410.             player.GetInventory().CreateInInventory("Ushanka_Green");
  411.             EntityAI Melee_woodaxe = player.GetHumanInventory().CreateInInventory("WoodAxe");
  412.             break;
  413.            
  414.             case 4:
  415.             // firefighter
  416.             player.RemoveAllItems();
  417.             player.GetInventory().CreateInInventory("FirefightersPants_Black");
  418.             player.GetInventory().CreateInInventory("FirefighterJacket_Black");
  419.             player.GetInventory().CreateInInventory("FirefightersHelmet_Red");
  420.             player.GetInventory().CreateInInventory("WorkingGloves_Black");
  421.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  422.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  423.             player.GetInventory().CreateInInventory("SodaCan_Cola");
  424.             player.GetInventory().CreateInInventory("BakedBeansCan");
  425.             EntityAI Melee_Fireaxe = player.GetInventory().CreateInInventory("FirefighterAxe_Black");
  426.             break;
  427.            
  428.             case 5:
  429.             // armyman
  430.             player.RemoveAllItems();
  431.             player.GetInventory().CreateInInventory("TTSKOPants");
  432.             player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
  433.             player.GetInventory().CreateInInventory("TacticalGloves_Green");
  434.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  435.             player.GetInventory().CreateInInventory("ImprovisedBag");
  436.             player.GetInventory().CreateInInventory("CombatKnife");
  437.             player.GetInventory().CreateInInventory("SodaCan_Cola");
  438.             player.GetInventory().CreateInInventory("SodaCan_Pipsi");
  439.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  440.             player.GetInventory().CreateInInventory("BandageDressing");
  441.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  442.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  443.             // Army_porta
  444.             EntityAI portable1 = player.GetHumanInventory().CreateInInventory("PersonalRadio");
  445.             portable1.GetInventory().CreateAttachment("Battery9V");
  446.             break;
  447.  
  448.             case 6:
  449.             // paramedic
  450.             player.RemoveAllItems();           
  451.             player.GetInventory().CreateInInventory("TaloonBag_Black");
  452.             player.GetInventory().CreateInInventory("ParamedicPants_Green");
  453.             player.GetInventory().CreateInInventory("ParamedicJacket_Green");
  454.             player.GetInventory().CreateInInventory("Athleticshoes_Grey");
  455.             player.GetInventory().CreateInInventory("KitchenKnife");
  456.             player.GetInventory().CreateInInventory("TaloonBag_Red");
  457.             player.GetInventory().CreateInInventory("Canteen");
  458.             player.GetInventory().CreateInInventory("SalineBagIV");
  459.             player.GetInventory().CreateInInventory("BandageDressing");
  460.             player.GetInventory().CreateInInventory("Morphine");
  461.             player.GetInventory().CreateInInventory("BloodBagIV");
  462.             player.GetInventory().CreateInInventory("Morphine");
  463.             player.GetInventory().CreateInInventory("KitchenKnife");
  464.             break;
  465.  
  466.            
  467.             case 7:
  468.             // Hunter Autumn
  469.             player.RemoveAllItems();
  470.             player.GetInventory().CreateInInventory("HunterPants_Autumn");
  471.             player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
  472.             player.GetInventory().CreateInInventory("TacticalGloves_Black");
  473.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  474.             player.GetInventory().CreateInInventory("HuntingKnife");
  475.             player.GetInventory().CreateInInventory("ImprovisedBag");
  476.             break;
  477.  
  478.  
  479.             case 8:
  480.             // hunter Spring
  481.             player.RemoveAllItems();
  482.             player.GetInventory().CreateInInventory("HuntingJacket_Spring");
  483.             player.GetInventory().CreateInInventory("HunterPants_Spring");
  484.             player.GetInventory().CreateInInventory("TacticalGloves_Green");
  485.             player.GetInventory().CreateInInventory("HuntingJacket_Spring");
  486.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  487.             player.GetInventory().CreateInInventory("ImprovisedBag");
  488.             player.GetInventory().CreateInInventory("HuntingKnife");
  489.             player.GetInventory().CreateInInventory("Canteen");
  490.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  491.             player.GetInventory().CreateInInventory("TacticalBaconCan");
  492.             break;
  493.            
  494.             case 9:
  495.             // Cop
  496.             player.RemoveAllItems();
  497.             player.GetInventory().CreateInInventory("PoliceJacket");
  498.             player.GetInventory().CreateInInventory("PolicePants");
  499.             player.GetInventory().CreateInInventory("CombatBoots_Grey");
  500.             player.GetInventory().CreateInInventory("Apple");
  501.             player.GetInventory().CreateInInventory("Apple");
  502.             player.GetInventory().CreateInInventory("Apple");
  503.             // Porto
  504.             EntityAI Police_porto = player.GetHumanInventory().CreateInInventory("PersonalRadio");
  505.             Police_porto.GetInventory().CreateAttachment("Battery9V");
  506.             // flashlight
  507.             EntityAI Police_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
  508.             Police_flashlight.GetInventory().CreateAttachment("Battery9V");
  509.             break;
  510.            
  511.             case 10:
  512.             // Biker
  513.             player.RemoveAllItems();
  514.             player.GetInventory().CreateInInventory("Jeans_Black");
  515.             player.GetInventory().CreateInInventory("RidersJacket_Black");
  516.             player.GetInventory().CreateInInventory("MotoHelmet_Black");
  517.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  518.             player.GetInventory().CreateInInventory("WorkingGloves_Black");
  519.             player.GetInventory().CreateInInventory("HuntingKnife");
  520.             player.GetInventory().CreateInInventory("BaseballBat");
  521.             break;
  522.            
  523.             case 11:
  524.             // mule
  525.             player.RemoveAllItems();
  526.             player.GetInventory().CreateInInventory("Jeans_Black");
  527.             player.GetInventory().CreateInInventory("Hoodie_Black");
  528.             player.GetInventory().CreateInInventory("AliceBag_Black");
  529.             player.GetInventory().CreateInInventory("Wellies_Black");
  530.             player.GetInventory().CreateInInventory("SodaCan_cola");
  531.             player.GetInventory().CreateInInventory("SodaCan_cola");
  532.             player.GetInventory().CreateInInventory("SodaCan_spite");
  533.             player.GetInventory().CreateInInventory("SodaCan_spite");
  534.             player.GetInventory().CreateInInventory("SodaCan_Kvass");
  535.             player.GetInventory().CreateInInventory("SodaCan_Kvass");
  536.             player.GetInventory().CreateInInventory("SodaCan_pipsi");
  537.             player.GetInventory().CreateInInventory("SodaCan_pipsi");
  538.             player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
  539.             player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
  540.             player.GetInventory().CreateInInventory("Apple");
  541.             player.GetInventory().CreateInInventory("Apple");
  542.             player.GetInventory().CreateInInventory("Apple");
  543.             player.GetInventory().CreateInInventory("Apple");
  544.             player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
  545.             player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
  546.             player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  547.             player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
  548.             player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
  549.             player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
  550.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  551.             player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
  552.             player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
  553.             player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
  554.             player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  555.             player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
  556.             player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
  557.             player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
  558.             ItemBase sp6_ammo2 = player.GetInventory().CreateInInventory("Ammo_9x39");
  559.             sp6_ammo2.SetQuantity(20);
  560.             ItemBase sp6_ammo3 = player.GetInventory().CreateInInventory("Ammo_9x39");
  561.             sp6_ammo3.SetQuantity(20);
  562.             break;
  563.            
  564.            
  565.             case 12:
  566.             // Woodsman
  567.             player.RemoveAllItems();
  568.             player.GetInventory().CreateInInventory("BandanaMask_CamoPattern");
  569.             player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
  570.             player.GetInventory().CreateInInventory("HunterPants_Autumn");
  571.             player.GetInventory().CreateInInventory("BaseballCap_Cammo");
  572.             player.GetInventory().CreateInInventory("CombatBoots_Black");
  573.             player.GetInventory().CreateInInventory("ImprovisedBag");
  574.             player.GetInventory().CreateInInventory("HuntingKnife");
  575.             player.GetInventory().CreateInInventory("HuntingKnife");
  576.             player.GetInventory().CreateInInventory("BaseballCap_Cammo");
  577.             player.GetInventory().CreateInInventory("Mag_Arrows_Quiver");
  578.             player.GetInventory().CreateInInventory("RecurveBow");
  579.             player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  580.             ItemBase Arrow_ammo0 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  581.             Arrow_ammo0.SetQuantity(5);
  582.             ItemBase Arrow_ammo1 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  583.             Arrow_ammo1.SetQuantity(5);
  584.             ItemBase Arrow_ammo2 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
  585.             Arrow_ammo1.SetQuantity(5);
  586.             break;
  587.         }
  588.        
  589.         // Rags
  590.         ItemBase Items_Rags = player.GetInventory().CreateInInventory("Rag");
  591.         Items_Rags.SetQuantity(Math.RandomInt(3, 6));
  592.     }
  593.     }
  594. };
  595.  
  596. Mission CreateCustomMission(string path)
  597. {
  598.     return new CustomMission();
  599. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement