Jump to content
Sign in to follow this  
robertjfcalais

No rain since game update 1.12

Recommended Posts

Long story short; ever since game update 1.12 went live, it's no longer raining on my game servers. Forcing rain through admin tools makes it fade out immediately, ending after roughly two minutes.

Here's my init.c - the same file that worked flawlessly before game update 1.12 and didn't see any changes since game update 1.11.

string GUID;
string player1;
string player2;
string player3;
string player4;
string player5;
string player6;
string player7;
string player8;
//string donator;

void main()
{
    //INIT ECONOMY--------------------------------------
    Hive ce = CreateHive();
    if ( ce )
        ce.InitOffline();

    //INIT WEATHER AFTER ECONOMY INIT------------------------
    Weather weather = g_Game.GetWeather();

    weather.MissionWeather(true);    // false = use weather controller from Weather.c

    weather.GetOvercast().SetLimits( 0.0 , 1.0 );        // make this 0.0, 0.5
    weather.GetRain().SetLimits( 0.0 , 1.0 );        // make this 0.0, 0.25
    weather.GetFog().SetLimits( 0.0 , 0.5 );        // make this 0.0, 0.125
    weather.SetWindMaximumSpeed(25);
    weather.SetWindFunctionParams(0.1, 1.0, 25);
    
    //DATE RESET AFTER ECONOMY INIT-------------------------
    int year, month, day, hour, minute;
    int reset_month = 10, reset_day = 10;
    GetGame().GetWorld().GetDate(year, month, day, hour, minute);

    if ((month == reset_month) && (day < reset_day))
    {
        GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
    }
    else
    {
        if ((month == reset_month + 1) && (day > reset_day))
        {
            GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
        }
        else
        {
            if ((month < reset_month) || (month > reset_month + 1))
            {
                GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute);
            }
        }
    }
}

class CustomMission: MissionServer
{
    void SetRandomHealth(EntityAI itemEnt)
    {
        if ( itemEnt )
        {
            float rndHlt = Math.RandomFloat( 0.41, 0.70 );    // "SetRandomHealth(itemEnt);" takes its values from here (100-71 pristine, 70-41 worn, 40-21 damaged, 20-1 badly damaged, 0 ruined)
            itemEnt.SetHealth01( "", "", rndHlt );
        }
}

    override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName)
    {
        Entity playerEnt;
        playerEnt = GetGame().CreatePlayer( identity, characterName, pos, 0, "NONE" );
        Class.CastTo( m_player, playerEnt );

        GetGame().SelectPlayer( identity, m_player );

        return m_player;
    }

    override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
    {
        TStringArray rsling = {"riflesling_black_mung","riflesling_colorbase_mung"};
        TStringArray msling = {"meleesling_black_mung","meleesling_colorbase_mung"};
        TStringArray glasses = {"ThickFramesGlasses","","","ThinFramesGlasses","",""};
        TStringArray smoke = {"cigarette_mung","","","cigar_mung","","","joint_mung","",""};
        TStringArray top = {"Hoodie_Black","Hoodie_Grey","Hoodie_Blue","Hoodie_Green","Hoodie_Brown","Hoodie_Red"};
        TStringArray pants = {"Jeans_Black","Jeans_Grey","Jeans_BlueDark","Jeans_Blue","Jeans_Green","Jeans_Brown"};
        TStringArray shoes = {"AthleticShoes_Black","AthleticShoes_Grey","AthleticShoes_Blue","AthleticShoes_Green","AthleticShoes_Brown"};
        TStringArray wallet = {"SmallWalletBlack","SmallWalletBlue","SmallWalletBrown"};
        TStringArray food = {"Zagorky","ZagorkyChocolate","ZagorkyPeanuts"};
        TStringArray drink = {"SodaCan_Cola","SodaCan_Fronta","SodaCan_Kvass","SodaCan_Pipsi","SodaCan_Spite","KMP_sodacan_Splurge_co","GD_BeerCan_1810","GD_BeerCan_KriekMortSubite","GD_BeerCan_OnnelikLager","GD_BeerCan_PivoDaff","GD_BeerCan_SchastlivyyBarsuk","GD_BeerCan_SyX","GD_BeerCan_Theory","GD_BeerCan_Ulesonn","GD_BeerCan_VēliskaisLager","GD_BeerCan_ZalasKruslis","GD_BeerCan_Zavarivat"};
        TStringArray battery = {"Battery9V","Battery9V_1","Battery9V_2","Battery9V_3","Battery9V_4"};
        
        player.RemoveAllItems();    // this ensures that all the new gear will be put on the character instead of inside the default gear
        player.GetStatWater().Set(900);    // 5000 max, 600 turns yellow - 1000 is 1/5th
        player.GetStatEnergy().Set(600);    // 7500 max, 400 turns yellow - 1500 is 1/5th
        player.SetHealth(100);
        
        EntityAI itemEnt;
        EntityAI itemIn;
        ItemBase itemBs;
        
        GUID = player.GetIdentity().GetPlainId();    // Steam64 ID

        player1 = "76561198040575625";    // Steam64 ID, Robert J. F. Calais
        player2 = "76561198063497162";    // Steam64 ID, Ciara San
        player3 = "76561199131481141";    // Steam64 ID, Clovis Drago
        player4 = "76561198024473700";    // Steam64 ID, Lethean
        player5 = "76561198002772244";    // Steam64 ID, [NvL] Wolle77
        player6 = "76561198160837138";    // Steam64 ID, Robert "Roy" Calais
        player7 = "76561198093123359";    // Steam64 ID, Jax Teller
        player7 = "76561198012374414";    // Steam64 ID, xXSidney91Xx
//        donator = "INSERTSTEAM64IDHERE","INSERTSTEAM64IDHERE","INSERTSTEAM64IDHERE";    // Steam64 IDs of donators, this would make them all share the same loadout
       
        // Custom loadouts
        if(GUID == player1)    // Robert J. F. Calais
        {
            EntityAI rsling1 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling1 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top1 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top1.GetInventory().CreateInInventory("WaterBottle");
            top1.GetInventory().CreateInInventory("Zippo_new");
            top1.GetInventory().CreateInInventory("SmallWalletBlack");
            top1.GetInventory().CreateInInventory("KR_BankingCard");
            top1.GetInventory().CreateInInventory("FieldBandageDressing");
            top1.GetInventory().CreateInInventory("ChernarusMap");
            top1.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee1 = top1.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee1, 2, true);
            EntityAI pistol1 = top1.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol1.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight1 = pistol1.GetInventory().CreateAttachment("TLRLight");
            plight1.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol1, 0, true);
            top1.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top1.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top1.GetInventory().CreateInInventory("Mag_taser");
            top1.GetInventory().CreateInInventory(food.GetRandomElement());
            top1.GetInventory().CreateInInventory(food.GetRandomElement());
            top1.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt1 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster1 = belt1.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser1 = holster1.GetInventory().CreateInInventory("Taser");
            taser1.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser1, 1, true);
            
            EntityAI pants1 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase1 = pants1.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase1, 3, true);
            pants1.GetInventory().CreateInInventory("Heatpack");
            pants1.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("ThinFramesGlasses");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetInventory().CreateInInventory("cigarette_mung");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player2)    // Ciara San
        {
            EntityAI rsling2 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling2 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top2 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top2.GetInventory().CreateInInventory("WaterBottle");
            top2.GetInventory().CreateInInventory("Zippo_new");
            top2.GetInventory().CreateInInventory("SmallWalletBlack");
            top2.GetInventory().CreateInInventory("KR_BankingCard");
            top2.GetInventory().CreateInInventory("FieldBandageDressing");
            top2.GetInventory().CreateInInventory("ChernarusMap");
            top2.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee2 = top2.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee2, 2, true);
            EntityAI pistol2 = top2.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol2.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight2 = pistol2.GetInventory().CreateAttachment("TLRLight");
            plight2.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol2, 0, true);
            top2.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top2.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top2.GetInventory().CreateInInventory("Mag_taser");
            top2.GetInventory().CreateInInventory(food.GetRandomElement());
            top2.GetInventory().CreateInInventory(food.GetRandomElement());
            top2.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt2 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster2 = belt2.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser2 = holster2.GetInventory().CreateInInventory("Taser");
            taser2.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser2, 1, true);
            
            EntityAI pants2 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase2 = pants2.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase2, 3, true);
            pants2.GetInventory().CreateInInventory("Heatpack");
            pants2.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("SportGlasses_Blue");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetInventory().CreateInInventory("cigarette_mung");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player3)    // Clovis Drago
        {
            EntityAI rsling3 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling3 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top3 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top3.GetInventory().CreateInInventory("WaterBottle");
            top3.GetInventory().CreateInInventory("Zippo_new");
            top3.GetInventory().CreateInInventory("SmallWalletBlack");
            top3.GetInventory().CreateInInventory("KR_BankingCard");
            top3.GetInventory().CreateInInventory("FieldBandageDressing");
            top3.GetInventory().CreateInInventory("ChernarusMap");
            top3.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee3 = top3.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee3, 2, true);
            EntityAI pistol3 = top3.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol3.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight3 = pistol3.GetInventory().CreateAttachment("TLRLight");
            plight3.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol3, 0, true);
            top3.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top3.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top3.GetInventory().CreateInInventory("Mag_taser");
            top3.GetInventory().CreateInInventory(food.GetRandomElement());
            top3.GetInventory().CreateInInventory(food.GetRandomElement());
            top3.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt3 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster3 = belt3.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser3 = holster3.GetInventory().CreateInInventory("Taser");
            taser3.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser3, 1, true);
            
            EntityAI pants3 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase3 = pants3.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase3, 3, true);
            pants3.GetInventory().CreateInInventory("Heatpack");
            pants3.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("ThinFramesGlasses");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetInventory().CreateInInventory("cigarette_mung");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player4)    // Lethean
        {
            EntityAI rsling4 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling4 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top4 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top4.GetInventory().CreateInInventory("WaterBottle");
            top4.GetInventory().CreateInInventory("Zippo_new");
            top4.GetInventory().CreateInInventory("SmallWalletBlack");
            top4.GetInventory().CreateInInventory("KR_BankingCard");
            top4.GetInventory().CreateInInventory("FieldBandageDressing");
            top4.GetInventory().CreateInInventory("ChernarusMap");
            top4.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee4 = top4.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee4, 2, true);
            EntityAI pistol4 = top4.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol4.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight4 = pistol4.GetInventory().CreateAttachment("TLRLight");
            plight4.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol4, 0, true);
            top4.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top4.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top4.GetInventory().CreateInInventory("Mag_taser");
            top4.GetInventory().CreateInInventory(food.GetRandomElement());
            top4.GetInventory().CreateInInventory(food.GetRandomElement());
            top4.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt4 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster4 = belt4.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser4 = holster4.GetInventory().CreateInInventory("Taser");
            taser4.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser4, 1, true);
            
            EntityAI pants4 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase4 = pants4.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase4, 3, true);
            pants4.GetInventory().CreateInInventory("Heatpack");
            pants4.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("Massblackgp5");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player5)    // [NvL] Wolle77
        {
            EntityAI rsling5 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling5 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top5 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top5.GetInventory().CreateInInventory("WaterBottle");
            top5.GetInventory().CreateInInventory("Zippo_new");
            top5.GetInventory().CreateInInventory("SmallWalletBlack");
            top5.GetInventory().CreateInInventory("KR_BankingCard");
            top5.GetInventory().CreateInInventory("FieldBandageDressing");
            top5.GetInventory().CreateInInventory("ChernarusMap");
            top5.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee5 = top5.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee5, 2, true);
            EntityAI pistol5 = top5.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol5.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight5 = pistol5.GetInventory().CreateAttachment("TLRLight");
            plight5.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol5, 0, true);
            top5.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top5.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top5.GetInventory().CreateInInventory("Mag_taser");
            top5.GetInventory().CreateInInventory(food.GetRandomElement());
            top5.GetInventory().CreateInInventory(food.GetRandomElement());
            top5.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt5 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster5 = belt5.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser5 = holster5.GetInventory().CreateInInventory("Taser");
            taser5.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser5, 1, true);
            
            EntityAI pants5 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase5 = pants5.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase5, 3, true);
            pants5.GetInventory().CreateInInventory("Heatpack");
            pants5.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("SportGlasses_Orange");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player6)    // Robert "Roy" Calais
        {
            EntityAI rsling6 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling6 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top6 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top6.GetInventory().CreateInInventory("WaterBottle");
            top6.GetInventory().CreateInInventory("Zippo_new");
            top6.GetInventory().CreateInInventory("SmallWalletBlack");
            top6.GetInventory().CreateInInventory("KR_BankingCard");
            top6.GetInventory().CreateInInventory("FieldBandageDressing");
            top6.GetInventory().CreateInInventory("ChernarusMap");
            top6.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee6 = top6.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee6, 2, true);
            EntityAI pistol6 = top6.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol6.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight6 = pistol6.GetInventory().CreateAttachment("TLRLight");
            plight6.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol6, 0, true);
            top6.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top6.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top6.GetInventory().CreateInInventory("Mag_taser");
            top6.GetInventory().CreateInInventory(food.GetRandomElement());
            top6.GetInventory().CreateInInventory(food.GetRandomElement());
            top6.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt6 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster6 = belt6.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser6 = holster6.GetInventory().CreateInInventory("Taser");
            taser6.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser6, 1, true);
            
            EntityAI pants6 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase6 = pants6.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase6, 3, true);
            pants6.GetInventory().CreateInInventory("Heatpack");
            pants6.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("SportGlasses_Black");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player7)    // Jax Teller
        {
            EntityAI rsling7 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling7 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top7 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top7.GetInventory().CreateInInventory("WaterBottle");
            top7.GetInventory().CreateInInventory("Zippo_new");
            top7.GetInventory().CreateInInventory("SmallWalletBlack");
            top7.GetInventory().CreateInInventory("KR_BankingCard");
            top7.GetInventory().CreateInInventory("FieldBandageDressing");
            top7.GetInventory().CreateInInventory("ChernarusMap");
            top7.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee7 = top7.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee7, 2, true);
            EntityAI pistol7 = top7.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol7.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight7 = pistol7.GetInventory().CreateAttachment("TLRLight");
            plight7.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol7, 0, true);
            top7.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top7.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top7.GetInventory().CreateInInventory("Mag_taser");
            top7.GetInventory().CreateInInventory(food.GetRandomElement());
            top7.GetInventory().CreateInInventory(food.GetRandomElement());
            top7.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt7 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster7 = belt7.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser7 = holster7.GetInventory().CreateInInventory("Taser");
            taser7.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser7, 1, true);
            
            EntityAI pants7 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase7 = pants7.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase7, 3, true);
            pants7.GetInventory().CreateInInventory("Heatpack");
            pants7.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("SportGlasses_Black");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetInventory().CreateInInventory("cigarette_mung");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        else if(GUID == player8)    // xXSidney91Xx
        {
            EntityAI rsling8 = player.GetInventory().CreateInInventory("riflesling_black_mung");
            
            EntityAI msling8 = player.GetInventory().CreateInInventory("meleesling_black_mung");
            
            EntityAI top8 = player.GetInventory().CreateInInventory("RidersJacket_Black");
            top8.GetInventory().CreateInInventory("WaterBottle");
            top8.GetInventory().CreateInInventory("Zippo_new");
            top8.GetInventory().CreateInInventory("SmallWalletBlack");
            top8.GetInventory().CreateInInventory("KR_BankingCard");
            top8.GetInventory().CreateInInventory("FieldBandageDressing");
            top8.GetInventory().CreateInInventory("ChernarusMap");
            top8.GetInventory().CreateInInventory("HH_Compass");
            EntityAI melee8 = top8.GetInventory().CreateInInventory("SAK_Mung");
            player.SetQuickBarEntityShortcut(melee8, 2, true);
            EntityAI pistol8 = top8.GetInventory().CreateInInventory("A2DLC_COMPACT");
            pistol8.GetInventory().CreateAttachment("Mag_CZ75_15Rnd");
            EntityAI plight8 = pistol8.GetInventory().CreateAttachment("TLRLight");
            plight8.GetInventory().CreateAttachment(battery.GetRandomElement());
            player.SetQuickBarEntityShortcut(pistol8, 0, true);
            top8.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top8.GetInventory().CreateInInventory("Mag_CZ75_15Rnd");
            top8.GetInventory().CreateInInventory("Mag_taser");
            top8.GetInventory().CreateInInventory(food.GetRandomElement());
            top8.GetInventory().CreateInInventory(food.GetRandomElement());
            top8.GetInventory().CreateInInventory("Mag_taser");
            
            EntityAI belt8 = player.GetInventory().CreateInInventory("CivilianBelt");
            EntityAI holster8 = belt8.GetInventory().CreateAttachment("CarrierHolster_Black");
            EntityAI taser8 = holster8.GetInventory().CreateInInventory("Taser");
            taser8.GetInventory().CreateAttachment("Mag_taser");
            player.SetQuickBarEntityShortcut(taser8, 1, true);
            
            EntityAI pants8 = player.GetInventory().CreateInInventory("Jeans_Blue");
            EntityAI admincase8 = pants8.GetInventory().CreateInInventory("AE_Admin_Case");
            player.SetQuickBarEntityShortcut(admincase8, 3, true);
            pants8.GetInventory().CreateInInventory("Heatpack");
            pants8.GetInventory().CreateInInventory("Heatpack");
            
            player.GetInventory().CreateInInventory("SportGlasses_Blue");
            
            player.GetInventory().CreateInInventory("Fingerless_Gloves");
            
            player.GetInventory().CreateInInventory("AthleticShoes_Black");
            
            player.GetInventory().CreateInInventory("cigarette_mung");
            
            player.GetHumanInventory().CreateInHands("BloodTestKit");
        }
        // Standard loadout
        else    // Everyone else
        {
            EntityAI rsling99 = player.GetInventory().CreateInInventory(rsling.GetRandomElement());
            
            EntityAI msling99 = player.GetInventory().CreateInInventory(msling.GetRandomElement());
            
            EntityAI top99 = player.GetInventory().CreateInInventory(top.GetRandomElement());
            EntityAI flare99 = top99.GetInventory().CreateInInventory("Roadflare");
            player.SetQuickBarEntityShortcut(flare99, 3, true);
            top99.GetInventory().CreateInInventory("Heatpack");
            top99.GetInventory().CreateInInventory("Heatpack");
            top99.GetInventory().CreateInInventory(food.GetRandomElement());
            top99.GetInventory().CreateInInventory(food.GetRandomElement());
            
            EntityAI pants99 = player.GetInventory().CreateInInventory(pants.GetRandomElement());
            EntityAI bandage99 = pants99.GetInventory().CreateInInventory("Rag");
            player.SetQuickBarEntityShortcut(bandage99, 2, true);
            pants99.GetInventory().CreateInInventory(wallet.GetRandomElement());
            EntityAI map99 = pants99.GetInventory().CreateInInventory("ChernarusMap");
            player.SetQuickBarEntityShortcut(map99, 0, true);
            EntityAI compass99 = pants99.GetInventory().CreateInInventory("Compass");
            player.SetQuickBarEntityShortcut(compass99, 1, true);
            pants99.GetInventory().CreateInInventory(drink.GetRandomElement());
            pants99.GetInventory().CreateInInventory("KR_BankingCard");
            
            player.GetInventory().CreateInInventory(glasses.GetRandomElement());
            
            player.GetInventory().CreateInInventory(smoke.GetRandomElement());
            
            player.GetInventory().CreateInInventory(shoes.GetRandomElement());
        }
    }
};

Mission CreateCustomMission(string path)
{
    return new CustomMission();
}

 

Edited by robertjfcalais

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×