Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- Hive ce = CreateHive();
- if ( ce )
- ce.InitOffline();
- Weather weather = g_Game.GetWeather();
- weather.GetOvercast().SetLimits( 0.0 , 1.0 );
- weather.GetRain().SetLimits( 0.0 , 0.0 );
- weather.GetFog().SetLimits( 0.0 , 0.25 );
- weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 );
- weather.GetRain().SetForecastChangeLimits( 0.0, 0.0 );
- weather.GetFog().SetForecastChangeLimits( 0.15, 0.45 );
- weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 );
- weather.GetRain().SetForecastTimeLimits( 600 , 600 );
- weather.GetFog().SetForecastTimeLimits( 1800 , 1800 );
- weather.GetOvercast().Set( Math.RandomFloatInclusive(0.0, 0.3), 0, 0);
- weather.GetRain().Set( Math.RandomFloatInclusive(0.0, 0.2), 0, 0);
- weather.GetFog().Set( Math.RandomFloatInclusive(0.0, 0.1), 0, 0);
- weather.SetWindMaximumSpeed(15);
- weather.SetWindFunctionParams(0.1, 0.3, 50);
- // ############################## Bridge ##################################
- Object obj;
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12999.700195 -7.890600 3284.985596");
- obj.SetOrientation("55.999985 0.000000 0.000000");
- obj.SetPosition("12999.700195 -7.890600 3284.985596");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12988.517578 -7.890600 3301.570557");
- obj.SetOrientation("55.999985 0.000000 0.000000");
- obj.SetPosition("12988.517578 -7.890600 3301.570557");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12977.330078 -7.890600 3318.156250");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12977.330078 -7.890600 3318.156250");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12966.149414 -7.890600 3334.729980");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12966.149414 -7.890600 3334.729980");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12954.969727 -7.890600 3351.300049");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12954.969727 -7.890600 3351.300049");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12943.798828 -7.890600 3367.870117");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12943.798828 -7.890600 3367.870117");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12932.620117 -7.890600 3384.443604");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12932.620117 -7.890600 3384.443604");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12921.450195 -7.890600 3401.000000");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12921.450195 -7.890600 3401.000000");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12910.259766 -7.890600 3417.581055");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12910.259766 -7.890600 3417.581055");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12899.080078 -7.890600 3434.149902");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12899.080078 -7.890600 3434.149902");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12887.900391 -7.890600 3450.728027");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12887.900391 -7.890600 3450.728027");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12876.709961 -7.890600 3467.312256");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12876.709961 -7.890600 3467.312256");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12865.540039 -7.890600 3483.872803");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12865.540039 -7.890600 3483.872803");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12854.360352 -7.890600 3500.449463");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12854.360352 -7.890600 3500.449463");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12843.179688 -7.890600 3517.039795");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12843.179688 -7.890600 3517.039795");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12831.998047 -7.890600 3533.620117");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12831.998047 -7.890600 3533.620117");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12820.809570 -7.890600 3550.198975");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12820.809570 -7.890600 3550.198975");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12809.627930 -7.890600 3566.780029");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12809.627930 -7.890600 3566.780029");
- obj = GetGame().CreateObject("Dam_Concrete_20_Floodgate", "12798.440430 -7.890600 3583.360107");
- obj.SetOrientation("56.000000 0.000000 0.000000");
- obj.SetPosition("12798.440430 -7.890600 3583.360107");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12809.701172 2.301730 3576.680176");
- obj.SetOrientation("138.000015 0.000000 0.000000");
- obj.SetPosition("12809.701172 2.301730 3576.680176");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12835.256836 2.086504 3538.797119");
- obj.SetOrientation("-20.000008 0.000000 0.000000");
- obj.SetPosition("12835.256836 2.086504 3538.797119");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12894.056641 2.251730 3455.602783");
- obj.SetOrientation("-69.000000 0.000000 0.000000");
- obj.SetPosition("12894.056641 2.251730 3455.602783");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12934.767578 2.301730 3387.844238");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12934.767578 2.301730 3387.844238");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12990.190430 2.251730 3310.003662");
- obj.SetOrientation("-62.000011 0.000000 0.000000");
- obj.SetPosition("12990.190430 2.251730 3310.003662");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12999.427734 2.249999 3290.898682");
- obj.SetOrientation("-17.000000 0.000000 0.000000");
- obj.SetPosition("12999.427734 2.249999 3290.898682");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12966.283203 2.201730 3346.047607");
- obj.SetOrientation("-33.000004 0.000000 0.000000");
- obj.SetPosition("12966.283203 2.201730 3346.047607");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12947.516602 1.970427 3371.596680");
- obj.SetOrientation("-30.000006 0.000000 0.000000");
- obj.SetPosition("12947.516602 1.970427 3371.596680");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12912.168945 2.301730 3425.531006");
- obj.SetOrientation("-57.999996 0.000000 0.000000");
- obj.SetPosition("12912.168945 2.301730 3425.531006");
- obj = GetGame().CreateObject("Land_Container_1Mo", "12900.983398 2.060063 3443.850830");
- obj.SetOrientation("-4.000000 0.000000 0.000000");
- obj.SetPosition("12900.983398 2.060063 3443.850830");
- obj = GetGame().CreateObject("Land_Container_1Mo", "12912.173828 4.767287 3425.496338");
- obj.SetOrientation("-57.999992 0.000000 0.000000");
- obj.SetPosition("12912.173828 4.767287 3425.496338");
- obj = GetGame().CreateObject("Land_Ship_Big_FrontA", "12984.049805 2.145268 3357.270996");
- obj.SetOrientation("1.000000 -3.000000 -22.000023");
- obj.SetPosition("12984.049805 2.145268 3357.270996");
- obj = GetGame().CreateObject("Land_Ship_Big_FrontA", "12827.272461 4.828312 3481.351318");
- obj.SetOrientation("-168.000015 -0.000000 -21.000008");
- obj.SetPosition("12827.272461 4.828312 3481.351318");
- obj = GetGame().CreateObject("Land_Ship_Big_BackA", "12917.408203 8.878326 3483.023193");
- obj.SetOrientation("0.000000 0.000000 20.000000");
- obj.SetPosition("12917.408203 8.878326 3483.023193");
- obj = GetGame().CreateObject("Land_Boat_Small3", "12833.511719 2.117162 3619.730957");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12833.511719 2.117162 3619.730957");
- obj = GetGame().CreateObject("Land_Boat_Small2", "12813.396484 2.016087 3605.192139");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12813.396484 2.016087 3605.192139");
- obj = GetGame().CreateObject("Land_Boat_Small2", "12768.120117 2.487283 3579.249756");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12768.120117 2.487283 3579.249756");
- obj = GetGame().CreateObject("Land_Boat_Small2", "12735.276367 2.460250 3556.484863");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12735.276367 2.460250 3556.484863");
- obj = GetGame().CreateObject("Land_Boat_Small1", "12776.724609 4.262555 3591.847168");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12776.724609 4.262555 3591.847168");
- obj = GetGame().CreateObject("Land_Boat_Small1", "12829.964844 1.846758 3614.488770");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12829.964844 1.846758 3614.488770");
- obj = GetGame().CreateObject("Land_Wreck_Uaz", "12832.424805 1.935676 3544.248535");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12832.424805 1.935676 3544.248535");
- obj = GetGame().CreateObject("Land_Wreck_Uaz", "12889.860352 1.985680 3460.103760");
- obj.SetOrientation("-70.000000 0.000000 0.000000");
- obj.SetPosition("12889.860352 1.985680 3460.103760");
- obj = GetGame().CreateObject("Land_Wreck_Uaz", "12937.300781 1.935676 3383.198975");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12937.300781 1.935676 3383.198975");
- obj = GetGame().CreateObject("Land_Wreck_S1023_Blue", "12931.631836 2.091624 3390.962158");
- obj.SetOrientation("-25.000008 0.000000 0.000000");
- obj.SetPosition("12931.631836 2.091624 3390.962158");
- obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "12986.588867 1.829433 3314.493896");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12986.588867 1.829433 3314.493896");
- obj = GetGame().CreateObject("Land_Wreck_Volha_Blue", "13003.046875 1.829433 3284.915771");
- obj.SetOrientation("-17.000004 0.000000 0.000000");
- obj.SetPosition("13003.046875 1.829433 3284.915771");
- obj = GetGame().CreateObject("Land_Wreck_V3S", "12903.459961 2.536791 3436.341797");
- obj.SetOrientation("-24.000000 -4.000000 -0.000000");
- obj.SetPosition("12903.459961 2.536791 3436.341797");
- obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12871.142578 1.753987 3480.337891");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12871.142578 1.753987 3480.337891");
- obj = GetGame().CreateObject("Land_Wreck_Lada_Red", "12849.930664 1.753987 3521.847412");
- obj.SetOrientation("-65.999985 0.000000 0.000000");
- obj.SetPosition("12849.930664 1.753987 3521.847412");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "12860.179688 2.301730 3505.910400");
- obj.SetOrientation("-32.000004 0.000000 0.000000");
- obj.SetPosition("12860.179688 2.301730 3505.910400");
- obj = GetGame().CreateObject("Land_Container_1Moh", "12884.648438 2.301730 3470.343018");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12884.648438 2.301730 3470.343018");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12820.764648 2.301730 3562.224609");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12820.764648 2.301730 3562.224609");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "12876.986328 0.573664 3519.558594");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("12876.986328 0.573664 3519.558594");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "12851.830078 0.312851 3463.268066");
- obj.SetOrientation("-80.000000 0.000000 0.000000");
- obj.SetPosition("12851.830078 0.312851 3463.268066");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.000977 0.579718 3442.836914");
- obj.SetOrientation("94.000031 0.000000 0.000000");
- obj.SetPosition("12936.000977 0.579718 3442.836914");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "12936.377930 -0.158530 3346.650391");
- obj.SetOrientation("34.000000 0.000000 0.000000");
- obj.SetPosition("12936.377930 -0.158530 3346.650391");
- obj = GetGame().CreateObject("Land_Container_1Aoh", "13002.358398 1.284515 3319.798828");
- obj.SetOrientation("-74.000000 0.000000 0.000000");
- obj.SetPosition("13002.358398 1.284515 3319.798828");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12946.557617 0.260173 3406.045410");
- obj.SetOrientation("-67.000000 0.000000 0.000000");
- obj.SetPosition("12946.557617 0.260173 3406.045410");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12821.682617 0.678651 3528.143799");
- obj.SetOrientation("-64.000000 0.000000 0.000000");
- obj.SetPosition("12821.682617 0.678651 3528.143799");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12851.442383 0.351952 3561.598877");
- obj.SetOrientation("-57.999992 0.000000 0.000000");
- obj.SetPosition("12851.442383 0.351952 3561.598877");
- obj = GetGame().CreateObject("Land_Container_1Bo", "12918.758789 0.920032 3364.437012");
- obj.SetOrientation("-60.999996 0.000000 0.000000");
- obj.SetPosition("12918.758789 0.920032 3364.437012");
- obj = GetGame().CreateObject("Land_Container_1Mo", "12934.750977 0.666381 3418.666992");
- obj.SetOrientation("-52.000000 0.000000 0.000000");
- obj.SetPosition("12934.750977 0.666381 3418.666992");
- obj = GetGame().CreateObject("Land_Container_1Mo", "12856.403320 0.043793 3469.494629");
- obj.SetOrientation("-45.999996 0.000000 0.000000");
- obj.SetPosition("12856.403320 0.043793 3469.494629");
- obj = GetGame().CreateObject("Land_Container_1Mo", "12879.313477 0.908100 3459.768066");
- obj.SetOrientation("-120.999969 -64.000015 -54.999989");
- obj.SetPosition("12879.313477 0.908100 3459.768066");
- obj = GetGame().CreateObject("Land_Lighthouse", "13057.658203 27.043219 3247.424805");
- obj.SetOrientation("0.000000 0.000000 0.000000");
- obj.SetPosition("13057.658203 27.043219 3247.424805");
- // ############################## Bridge ##################################
- }
- class CustomMission: MissionServer
- {
- override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
- {
- Entity playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");
- Class.CastTo(m_player, playerEnt);
- GetGame().SelectPlayer(identity, m_player);
- return m_player;
- }
- void SetRandomHealth(EntityAI itemEnt)
- {
- int rndHlt = Math.RandomInt(60,100);
- itemEnt.SetHealth("","",rndHlt);
- }
- //! OnInit
- // ###################################
- override void OnInit()
- {
- GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 300000, true); // 5 minutes
- m_safeZone = true; // enable safezone
- n_StaminaStatus = true; // enable no stamina in safezone
- }
- /*! disabled for now
- // safezone
- bool m_StaminaStatus;
- bool m_SafeZone;
- vector SAFEZONE_LOACTION = "3700 0 6060"; //Map coords (position of the safe zone) Current Coords: [Island]
- float SAFEZONE_RADIUS = 500; //In meter
- string ENTRY_MESSAGE = "Welcome to The SafeZone!";
- string EXIT_MESSAGE = "You Have Left The SafeZone!";
- //Runs every tick (Stat time tick!) IMPORANT: Does reduce about 120 FPS when server is High-Full Pop!
- void SafeZoneHandle(PlayerBase player)
- {
- float distance;
- string ZoneCheck, GUID;
- GUID = player.GetIdentity().GetPlainId(); //Steam 64
- Param1<string> Msgparam;
- distance = vector.Distance(player.GetPosition(),SAFEZONE_LOACTION);
- if (distance <= SAFEZONE_RADIUS) //Player Inside Zone
- {
- g_Game.GetProfileString("SafeZoneStatus"+ GUID, ZoneCheck);
- if (ZoneCheck == "true") //Already in zone
- {
- return;
- }
- else
- {
- g_Game.SetProfileString("SafeZoneStatus"+ GUID, "true");
- Msgparam = new Param1<string>( ENTRY_MESSAGE );
- GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity());
- }
- }
- else if (distance > SAFEZONE_RADIUS) //Plauer Outside of Zone
- {
- g_Game.GetProfileString("SafeZoneStatus"+ GUID, ZoneCheck);
- if (ZoneCheck == "false")
- {
- return;
- }
- else
- {
- g_Game.SetProfileString("SafeZoneStatus"+ GUID, "false");
- Msgparam = new Param1<string>( EXIT_MESSAGE );
- GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity());
- }
- }
- }
- override void TickScheduler(float timeslice)
- {
- GetGame().GetWorld().GetPlayerList(m_Players);
- if( m_Players.Count() == 0 ) return;
- for(int i = 0; i < SCHEDULER_PLAYERS_PER_TICK; i++)
- {
- if(m_currentPlayer >= m_Players.Count() )
- {
- m_currentPlayer = 0;
- }
- PlayerBase currentPlayer = PlayerBase.Cast(m_Players.Get(m_currentPlayer));
- if (m_StaminaStatus) { currentPlayer.GetStatStamina().Set(1000); }
- if (m_SafeZone) { SafeZoneHandle(currentPlayer); } //Check if player is near safezone
- currentPlayer.OnTick();
- m_currentPlayer++;
- }
- }
- // einde safezone
- */
- void NumPLayersOnServer()
- {
- ref array<Man> players = new array<Man>;
- GetGame().GetPlayers( players );
- int numPlayers = players.Count();
- for ( int i = 0; i < players.Count(); ++i )
- {
- Man player = players.Get(i);
- if( player )
- {
- string messPlayers = "Players on the server: " + numPlayers.ToString() + "/120"
- Param1<string> m_MessageParam = new Param1<string>(messPlayers);
- GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity());
- }
- }
- }
- override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
- {
- bool IsAdmin = false;
- string SteamId_sasaa = "76561198015080948";
- string SteamId_rene = "76561197973590083";
- string SteamId_Mauss = "76561198015299671";
- string SteamId_stefan = "76561198021971615";
- string SteamId_tijmen = "76561198023029756";
- if (player.GetIdentity().GetPlainId() == SteamId_sasaa){
- IsAdmin = true;
- } else if (player.GetIdentity().GetPlainId() == SteamId_rene){
- IsAdmin = true;
- } else if (player.GetIdentity().GetPlainId() == SteamId_Mauss){
- IsAdmin = true;
- } else if (player.GetIdentity().GetPlainId() == SteamId_stefan){
- IsAdmin = true;
- } else if (player.GetIdentity().GetPlainId() == SteamId_tijmen){
- IsAdmin = true;
- } else {
- IsAdmin = false;
- }
- if (IsAdmin){
- // Admins DuctTape
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("TTSKOPants");
- player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("HighCapacityVest_Black");
- player.GetInventory().CreateInInventory("HuntingBag");
- //! player.GetInventory().CreateInInventory("SmershVestBackpack");
- //! player.GetInventory().CreateInInventory("GhillieSuit_Woodland");
- //! player.GetInventory().CreateInInventory("GhillieHood_Woodland");
- player.GetInventory().CreateInInventory("StoneKnife");
- player.GetInventory().CreateInInventory("SodaCan_Cola");
- player.GetInventory().CreateInInventory("SodaCan_Cola");
- player.GetInventory().CreateInInventory("TacticalBaconCan");
- player.GetInventory().CreateInInventory("TacticalBaconCan");
- player.GetInventory().CreateInInventory("CanOpener");
- player.GetInventory().CreateInInventory("BandageDressing");
- player.GetInventory().CreateInInventory("BandageDressing");
- player.GetInventory().CreateInInventory("DuctTape");
- player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
- player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
- player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
- player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
- player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
- player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
- // M4A1 Green
- EntityAI ghillie_m4a1 = player.GetHumanInventory().CreateInInventory("M4A1_Green");
- ghillie_m4a1.GetInventory().CreateAttachment("M4_Suppressor");
- ghillie_m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
- ghillie_m4a1.GetInventory().CreateAttachment("M4_MPBttstck_Green");
- //! ghillie_m4a1.GetInventory().CreateAttachment("GhillieAtt_Woodland");
- // M4A1 Green
- EntityAI ghillie_marakov = player.GetHumanInventory().CreateInInventory("MakarovIJ70");
- ghillie_marakov.GetInventory().CreateAttachment("PistolSuppressor");
- /*! - Not working jet
- //Glock19
- EntityAI Glock_ghilly = player.GetHumanInventory().CreateInInventory("Glock19");
- Glock_ghilly.GetInventory().CreateAttachment("PistolSuppressor");
- player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
- player.GetInventory().CreateInInventory("Mag_Glock_15Rnd");
- player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
- player.GetInventory().CreateInInventory("Mag_VSS_10Rnd");
- ItemBase sp6_ammo0 = player.GetInventory().CreateInInventory("Ammo_9x39");
- sp6_ammo0.SetQuantity(20);
- ItemBase sp6_ammo1 = player.GetInventory().CreateInInventory("Ammo_9x39");
- sp6_ammo1.SetQuantity(20);
- // Vss - Not working jet
- EntityAI vss = player.GetHumanInventory().CreateInHands("VSS");
- vss.GetInventory().CreateAttachment("GhillieAtt_Woodland");
- vss.GetInventory().CreateAttachment("PSO11Optic");
- */
- // Porto
- EntityAI Tools_portable = player.GetHumanInventory().CreateInInventory("PersonalRadio");
- Tools_portable.GetInventory().CreateAttachment("Battery9V");
- // Fireaxe
- EntityAI Fireaxe_ghilly = player.GetHumanInventory().CreateInInventory("FirefighterAxe_Green");
- // Rangefinder
- EntityAI Tools_rangefinder = player.GetHumanInventory().CreateInInventory("Rangefinder");
- Tools_rangefinder.GetInventory().CreateAttachment("Battery9V");
- } else {
- switch (Math.RandomInt(3, 11)) {
- case 0:
- // Knight
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("TaloonBag_Blue");
- player.GetInventory().CreateInInventory("GreatHelm");
- player.GetInventory().CreateInInventory("Kiwi");
- player.GetInventory().CreateInInventory("Kiwi");
- player.GetInventory().CreateInInventory("SodaCan_cola");
- player.GetInventory().CreateInInventory("SodaCan_spite");
- EntityAI Melee_Sword = player.GetInventory().CreateInInventory("Sword");
- break;
- case 1:
- // Miner
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("TaloonBag_Green");
- player.GetInventory().CreateInInventory("WorkingGloves_Yellow");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("SodaCan_Pipsi");
- player.GetInventory().CreateInInventory("SodaCan_cola");
- player.GetInventory().CreateInInventory("SpaghettiCan");
- EntityAI Melee_Pickaxe = player.GetHumanInventory().CreateInInventory("Pickaxe");
- break;
- case 2:
- // Lumberjack
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("Shirt_RedCheck");
- player.GetInventory().CreateInInventory("WorkingGloves_Brown");
- player.GetInventory().CreateInInventory("Jeans_Blue");
- player.GetInventory().CreateInInventory("WorkingBoots_Brown");
- player.GetInventory().CreateInInventory("Ushanka_Green");
- EntityAI Melee_woodaxe = player.GetHumanInventory().CreateInInventory("WoodAxe");
- break;
- case 4:
- // firefighter
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("FirefightersPants_Black");
- player.GetInventory().CreateInInventory("FirefighterJacket_Black");
- player.GetInventory().CreateInInventory("FirefightersHelmet_Red");
- player.GetInventory().CreateInInventory("WorkingGloves_Black");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("SodaCan_Pipsi");
- player.GetInventory().CreateInInventory("SodaCan_Cola");
- player.GetInventory().CreateInInventory("BakedBeansCan");
- EntityAI Melee_Fireaxe = player.GetInventory().CreateInInventory("FirefighterAxe_Black");
- break;
- case 5:
- // armyman
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("TTSKOPants");
- player.GetInventory().CreateInInventory("TTsKOJacket_Camo");
- player.GetInventory().CreateInInventory("TacticalGloves_Green");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("SmershBag");
- player.GetInventory().CreateInInventory("CombatKnife");
- player.GetInventory().CreateInInventory("SodaCan_Cola");
- player.GetInventory().CreateInInventory("SodaCan_Pipsi");
- player.GetInventory().CreateInInventory("TacticalBaconCan");
- player.GetInventory().CreateInInventory("BandageDressing");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
- player.GetInventory().CreateInInventory("Mag_STANAGCoupled_30Rnd");
- // M4A1 Green
- EntityAI m4a1 = player.GetHumanInventory().CreateInInventory("M4A1_Green");
- m4a1.GetInventory().CreateAttachment("M4_Suppressor");
- m4a1.GetInventory().CreateAttachment("M4_RISHndgrd_Green");
- m4a1.GetInventory().CreateAttachment("M4_OEBttstk_Green");
- // Army_porta
- EntityAI portable1 = player.GetHumanInventory().CreateInInventory("PersonalRadio");
- portable1.GetInventory().CreateAttachment("Battery9V");
- break;
- case 6:
- // paramedic
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("TaloonBag_Black");
- player.GetInventory().CreateInInventory("ParamedicPants_Green");
- player.GetInventory().CreateInInventory("ParamedicJacket_Green");
- player.GetInventory().CreateInInventory("Athleticshoes_Grey");
- player.GetInventory().CreateInInventory("KitchenKnife");
- player.GetInventory().CreateInInventory("TaloonBag_Red");
- player.GetInventory().CreateInInventory("Canteen");
- player.GetInventory().CreateInInventory("SalineBagIV");
- player.GetInventory().CreateInInventory("BandageDressing");
- player.GetInventory().CreateInInventory("Morphine");
- player.GetInventory().CreateInInventory("BloodBagIV");
- player.GetInventory().CreateInInventory("ClearSyringe");
- player.GetInventory().CreateInInventory("Morphine");
- player.GetInventory().CreateInInventory("KitchenKnife");
- break;
- case 7:
- // Hunter Autumn
- player.RemoveAllItems();
- // Hunter_pants = [HunterPants_Autumn,HunterPants_Brown,HunterPants_Spring,HunterPants_Summer,HunterPants_Winter]
- // Hunter_jacket = [HuntingJacket_Autumn,HunterPants_Brown,HuntingJacket_Spring,HuntingJacket_Summer,HuntingJacket_Winter]
- // Hunter_change = Math.RandomInt(3, 4)
- player.GetInventory().CreateInInventory("unterPants_Autumn");
- player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
- player.GetInventory().CreateInInventory("TacticalGloves_Black");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("HuntingKnife");
- player.GetInventory().CreateInInventory("SmershBag");
- break;
- case 8:
- // hunter Spring
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("HuntingJacket_Spring");
- player.GetInventory().CreateInInventory("HunterPants_Spring");
- player.GetInventory().CreateInInventory("TacticalGloves_Green");
- player.GetInventory().CreateInInventory("HuntingJacket_Spring");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("SmershBag");
- player.GetInventory().CreateInInventory("HuntingKnife");
- player.GetInventory().CreateInInventory("Canteen");
- player.GetInventory().CreateInInventory("TacticalBaconCan");
- player.GetInventory().CreateInInventory("TacticalBaconCan");
- break;
- case 9:
- // Cop
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("PoliceJacket");
- player.GetInventory().CreateInInventory("PolicePants");
- player.GetInventory().CreateInInventory("CombatBoots_Grey");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- // Porto
- EntityAI Police_porto = player.GetHumanInventory().CreateInInventory("PersonalRadio");
- Police_porto.GetInventory().CreateAttachment("Battery9V");
- // flashlight
- EntityAI Police_flashlight = player.GetHumanInventory().CreateInInventory("Flashlight");
- Police_flashlight.GetInventory().CreateAttachment("Battery9V");
- break;
- case 10:
- // Biker
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("Jeans_Black");
- player.GetInventory().CreateInInventory("RidersJacket_Black");
- player.GetInventory().CreateInInventory("MotoHelmet_Black");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("WorkingGloves_Black");
- player.GetInventory().CreateInInventory("HuntingKnife");
- player.GetInventory().CreateInInventory("BaseballBat");
- break;
- case 11:
- // mule
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("Jeans_Black");
- player.GetInventory().CreateInInventory("Hoodie_Black");
- player.GetInventory().CreateInInventory("AliceBag_Black");
- player.GetInventory().CreateInInventory("Wellies_Black");
- player.GetInventory().CreateInInventory("SodaCan_cola");
- player.GetInventory().CreateInInventory("SodaCan_cola");
- player.GetInventory().CreateInInventory("SodaCan_spite");
- player.GetInventory().CreateInInventory("SodaCan_spite");
- player.GetInventory().CreateInInventory("SodaCan_Kvass");
- player.GetInventory().CreateInInventory("SodaCan_Kvass");
- player.GetInventory().CreateInInventory("SodaCan_pipsi");
- player.GetInventory().CreateInInventory("SodaCan_pipsi");
- player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
- player.GetInventory().CreateInInventory("SpaghettiCan_Opened");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("Apple");
- player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
- player.GetInventory().CreateInInventory("AmmoBox_00buck_10rnd");
- player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
- player.GetInventory().CreateInInventory("AmmoBox_380_35rnd");
- player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
- player.GetInventory().CreateInInventory("AmmoBox_45ACP_25rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_556x45_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_762x39_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_762x54_20Rnd");
- player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
- player.GetInventory().CreateInInventory("AmmoBox_9x19_25rnd");
- ItemBase sp6_ammo2 = player.GetInventory().CreateInInventory("Ammo_9x39");
- sp6_ammo2.SetQuantity(20);
- ItemBase sp6_ammo3 = player.GetInventory().CreateInInventory("Ammo_9x39");
- sp6_ammo3.SetQuantity(20);
- break;
- case 12:
- // Woodsman
- player.RemoveAllItems();
- player.GetInventory().CreateInInventory("BandanaMask_CamoPattern");
- player.GetInventory().CreateInInventory("HuntingJacket_Autumn");
- player.GetInventory().CreateInInventory("HunterPants_Autumn");
- player.GetInventory().CreateInInventory("BaseballCap_Cammo");
- player.GetInventory().CreateInInventory("CombatBoots_Black");
- player.GetInventory().CreateInInventory("ImprovisedBag");
- player.GetInventory().CreateInInventory("HuntingKnife");
- player.GetInventory().CreateInInventory("HuntingKnife");
- player.GetInventory().CreateInInventory("BaseballCap_Cammo");
- player.GetInventory().CreateInInventory("Mag_Arrows_Quiver");
- player.GetInventory().CreateInInventory("RecurveBow");
- player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
- ItemBase Arrow_ammo0 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
- Arrow_ammo0.SetQuantity(5);
- ItemBase Arrow_ammo1 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
- Arrow_ammo1.SetQuantity(5);
- ItemBase Arrow_ammo2 = player.GetInventory().CreateInInventory("Ammo_ArrowPrimitive");
- Arrow_ammo1.SetQuantity(5);
- break;
- }
- // Rags
- ItemBase Items_Rags = player.GetInventory().CreateInInventory("Rag");
- Items_Rags.SetQuantity(Math.RandomInt(3, 6));
- }
- }
- };
- Mission CreateCustomMission(string path)
- {
- return new CustomMission();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement