TheVampireBat 1 Posted November 9, 2018 Previously, I had it setp to spawn in with bag, leather jacket etc etc but since the most recent update.. the same code isn't working? Has the format changed in the Init.c file ? It doesnt appear to have.. Share this post Link to post Share on other sites
Malotru 2 Posted November 9, 2018 my code /*---------------------------------------------------------------------------------------------------------------------\ | Starting Equip Setup | \---------------------------------------------------------------------------------------------------------------------*/ //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) //<!-------------------------------- Normal --------------------------------> case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; //<!-------------------------------- Prisoner ------------------------------> case 1: player.RemoveAllItems(); // Remove All Items player.SetHealth(60); // Health 60% player.GetStatStamina().Set(100); // Stamina 10% player.GetStatEnergy().Set(900); // Energy 90% player.GetStatWater().Set(800); // Water 80% player.GetInventory().CreateInInventory("PrisonerCap"); // Prisoner Cap player.GetInventory().CreateInInventory("PrisonUniformJacket"); // PrisonUniform Jacket player.GetInventory().CreateInInventory("PrisonUniformPants"); // PrisonUniform Pants player.GetInventory().CreateInInventory("WorkingBoots_Grey"); // WorkingBoots Grey player.GetInventory().CreateInInventory("StoneKnife"); // Stone Knife player.GetHumanInventory().CreateInHands("Rope"); // Rope player.SetPosition("2763.1 26.7 1307.1"); // Position Prison Island break; //<!-------------------------------- Fire ----------------------------------> case 2: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("FirefightersHelmet_Red"); // FirefightersHelmet Red player.GetInventory().CreateInInventory("FirefighterJacket_Black"); // FirefighterJacket Black player.GetInventory().CreateInInventory("FirefightersPants_Black"); // FirefightersPants Black player.GetInventory().CreateInInventory("Wellies_Black"); // Wellies Black player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola player.GetInventory().CreateInInventory("FireExtinguisher"); // FireExtinguisher player.GetHumanInventory().CreateInHands("FirefighterAxe"); // Firefighter Axe ItemBase rags2 = player.GetInventory().CreateInInventory("Rag"); // Rag rags2.SetQuantity(4); break; //<!-------------------------------- Medic ---------------------------------> case 3: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("ParamedicJacket_Crimson"); // Paramedic Jacket Crimson player.GetInventory().CreateInInventory("ParamedicPants_Crimson"); // Paramedic Pants Crimson player.GetInventory().CreateInInventory("Sneakers_Red"); // Sneakers Red player.GetInventory().CreateInInventory("FirstAidKit"); // FirstAid Kit player.GetInventory().CreateInInventory("SalineBagIV"); // Saline Bag IV player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola EntityAI Defibrillator3 = player.GetHumanInventory().CreateInHands("Defibrillator"); // Defibrillator Defibrillator3.GetInventory().CreateAttachment("Battery9V"); // Battery 9V break; //<!-------------------------------- Police --------------------------------> case 4: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("PoliceCap"); // Police Cap player.GetInventory().CreateInInventory("PoliceVest"); // Police Vest player.GetInventory().CreateInInventory("PoliceJacket"); // Police Jacket player.GetInventory().CreateInInventory("PolicePants"); // Police Pants player.GetInventory().CreateInInventory("CombatBoots_Black"); // Combat Boots Black player.GetInventory().CreateInInventory("Handcuffs"); // Handcuffs player.GetInventory().CreateInInventory("HandcuffKeys"); // Handcuff Keys player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Kvass"); // Kvass player.GetInventory().CreateInInventory("Roadflare"); // Roadflare EntityAI Radio4 = player.GetInventory().CreateInInventory("PersonalRadio"); // Radio Radio4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V EntityAI light4 = player.GetInventory().CreateInInventory("Flashlight"); // Flashlight light4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V player.GetHumanInventory().CreateInHands("PoliceBaton"); // PoliceBaton break; //<!-------------------------------- Sniper --------------------------------> case 5: player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.GetInventory().CreateInInventory("GasMask"); // Gas Mask player.GetInventory().CreateInInventory("TacticalGloves_Green"); // Tactical Gloves Green player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // Combat Boots Green player.GetInventory().CreateInInventory("GhillieHood_Mossy"); // Ghillie Hood player.GetInventory().CreateInInventory("GhillieSuit_Mossy"); // Ghillie Suit player.GetInventory().CreateInInventory("Binoculars"); // Binoculars player.GetInventory().CreateInInventory("Lockpick"); // Lockpick player.GetInventory().CreateInInventory("ChernarusMap"); // Chernarus Map player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("Battery9V"); // Battery 9V player.GetInventory().CreateInInventory("Compass"); // Compass player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("Rope"); // Rope player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("DuctTape"); // DuctTape player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("Matchbox"); // Matchbox player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD EntityAI Maka5 = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Maka5.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor EntityAI SVD5 = player.GetHumanInventory().CreateInHands("SVD"); // SVD SVD5.GetInventory().CreateAttachment("GhillieAtt_Woodland"); // Ghillie Weapons SVD5.GetInventory().CreateAttachment("PSO1Optic"); // PSO1 optique ItemBase rags5 = player.GetInventory().CreateInInventory("Rag"); // Rag rags5.SetQuantity(6); break; } } } Share this post Link to post Share on other sites
TheVampireBat 1 Posted November 9, 2018 25 minutes ago, Malotru said: my code /*---------------------------------------------------------------------------------------------------------------------\ | Starting Equip Setup | \---------------------------------------------------------------------------------------------------------------------*/ //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) //<!-------------------------------- Normal --------------------------------> case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; //<!-------------------------------- Prisoner ------------------------------> case 1: player.RemoveAllItems(); // Remove All Items player.SetHealth(60); // Health 60% player.GetStatStamina().Set(100); // Stamina 10% player.GetStatEnergy().Set(900); // Energy 90% player.GetStatWater().Set(800); // Water 80% player.GetInventory().CreateInInventory("PrisonerCap"); // Prisoner Cap player.GetInventory().CreateInInventory("PrisonUniformJacket"); // PrisonUniform Jacket player.GetInventory().CreateInInventory("PrisonUniformPants"); // PrisonUniform Pants player.GetInventory().CreateInInventory("WorkingBoots_Grey"); // WorkingBoots Grey player.GetInventory().CreateInInventory("StoneKnife"); // Stone Knife player.GetHumanInventory().CreateInHands("Rope"); // Rope player.SetPosition("2763.1 26.7 1307.1"); // Position Prison Island break; //<!-------------------------------- Fire ----------------------------------> case 2: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("FirefightersHelmet_Red"); // FirefightersHelmet Red player.GetInventory().CreateInInventory("FirefighterJacket_Black"); // FirefighterJacket Black player.GetInventory().CreateInInventory("FirefightersPants_Black"); // FirefightersPants Black player.GetInventory().CreateInInventory("Wellies_Black"); // Wellies Black player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola player.GetInventory().CreateInInventory("FireExtinguisher"); // FireExtinguisher player.GetHumanInventory().CreateInHands("FirefighterAxe"); // Firefighter Axe ItemBase rags2 = player.GetInventory().CreateInInventory("Rag"); // Rag rags2.SetQuantity(4); break; //<!-------------------------------- Medic ---------------------------------> case 3: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("ParamedicJacket_Crimson"); // Paramedic Jacket Crimson player.GetInventory().CreateInInventory("ParamedicPants_Crimson"); // Paramedic Pants Crimson player.GetInventory().CreateInInventory("Sneakers_Red"); // Sneakers Red player.GetInventory().CreateInInventory("FirstAidKit"); // FirstAid Kit player.GetInventory().CreateInInventory("SalineBagIV"); // Saline Bag IV player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Cola"); // Cola EntityAI Defibrillator3 = player.GetHumanInventory().CreateInHands("Defibrillator"); // Defibrillator Defibrillator3.GetInventory().CreateAttachment("Battery9V"); // Battery 9V break; //<!-------------------------------- Police --------------------------------> case 4: player.RemoveAllItems(); // Remove All Items player.GetInventory().CreateInInventory("PoliceCap"); // Police Cap player.GetInventory().CreateInInventory("PoliceVest"); // Police Vest player.GetInventory().CreateInInventory("PoliceJacket"); // Police Jacket player.GetInventory().CreateInInventory("PolicePants"); // Police Pants player.GetInventory().CreateInInventory("CombatBoots_Black"); // Combat Boots Black player.GetInventory().CreateInInventory("Handcuffs"); // Handcuffs player.GetInventory().CreateInInventory("HandcuffKeys"); // Handcuff Keys player.GetInventory().CreateInInventory("BandageDressing"); // Bandage player.GetInventory().CreateInInventory("SodaCan_Kvass"); // Kvass player.GetInventory().CreateInInventory("Roadflare"); // Roadflare EntityAI Radio4 = player.GetInventory().CreateInInventory("PersonalRadio"); // Radio Radio4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V EntityAI light4 = player.GetInventory().CreateInInventory("Flashlight"); // Flashlight light4.GetInventory().CreateAttachment("Battery9V"); // Battery 9V player.GetHumanInventory().CreateInHands("PoliceBaton"); // PoliceBaton break; //<!-------------------------------- Sniper --------------------------------> case 5: player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.GetInventory().CreateInInventory("GasMask"); // Gas Mask player.GetInventory().CreateInInventory("TacticalGloves_Green"); // Tactical Gloves Green player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // Combat Boots Green player.GetInventory().CreateInInventory("GhillieHood_Mossy"); // Ghillie Hood player.GetInventory().CreateInInventory("GhillieSuit_Mossy"); // Ghillie Suit player.GetInventory().CreateInInventory("Binoculars"); // Binoculars player.GetInventory().CreateInInventory("Lockpick"); // Lockpick player.GetInventory().CreateInInventory("ChernarusMap"); // Chernarus Map player.GetInventory().CreateInInventory("Morphine"); // Morphine player.GetInventory().CreateInInventory("Epinephrine"); // Epinephrine player.GetInventory().CreateInInventory("Battery9V"); // Battery 9V player.GetInventory().CreateInInventory("Compass"); // Compass player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("Rope"); // Rope player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("DuctTape"); // DuctTape player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("WaterBottle"); // WaterBottle player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("SpaghettiCan"); // Spaghetti player.GetInventory().CreateInInventory("Matchbox"); // Matchbox player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Cannabis"); // Cannabis player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD player.GetInventory().CreateInInventory("Mag_SVD_10Rnd"); // Mag SVD EntityAI Maka5 = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Maka5.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor EntityAI SVD5 = player.GetHumanInventory().CreateInHands("SVD"); // SVD SVD5.GetInventory().CreateAttachment("GhillieAtt_Woodland"); // Ghillie Weapons SVD5.GetInventory().CreateAttachment("PSO1Optic"); // PSO1 optique ItemBase rags5 = player.GetInventory().CreateInInventory("Rag"); // Rag rags5.SetQuantity(6); break; } } } tried this quickly and getting error message saying 'Startingequipsetup' is marked as override but there is no function with this name in the base class Share this post Link to post Share on other sites
Malotru 2 Posted November 9, 2018 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 , 1.0 ); weather.GetFog().SetLimits( 0.0 , 0.25 ); weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 ); weather.GetRain().SetForecastChangeLimits( 0.0, 0.1 ); 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(30); weather.SetWindFunctionParams(0.1, 1.0, 50); } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { int rndHlt = Math.RandomInt(40,100); itemEnt.SetHealth("","",rndHlt); } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; } } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } tried this quickly my init light Share this post Link to post Share on other sites
TheVampireBat 1 Posted November 15, 2018 On 09/11/2018 at 10:11 PM, Malotru said: 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 , 1.0 ); weather.GetFog().SetLimits( 0.0 , 0.25 ); weather.GetOvercast().SetForecastChangeLimits( 0.0, 0.2 ); weather.GetRain().SetForecastChangeLimits( 0.0, 0.1 ); 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(30); weather.SetWindFunctionParams(0.1, 1.0, 50); } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { int rndHlt = Math.RandomInt(40,100); itemEnt.SetHealth("","",rndHlt); } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } //<!--------------------------------- ADMIN --------------------------------> override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { bool IsAdmin = false; string SteamId_Malotru = "76561198122445830"; // Steam id if (player.GetIdentity().GetPlainId() == SteamId_Malotru){IsAdmin = true;} if (IsAdmin){ player.RemoveAllItems(); // Remove All Items player.GetStatWater().Set(1000); // Water 100% player.SetHealth(100); // Health 100% player.GetInventory().CreateInInventory("TTsKOJacket_Camo"); // TTsKO Jacket Camo player.GetInventory().CreateInInventory("HighCapacityVest_Olive"); // HighCapacityVest Olive player.GetInventory().CreateInInventory("TTSKOPants"); // TTSKO Pants player.GetInventory().CreateInInventory("CombatBoots_Green"); // CombatBoots Green player.GetInventory().CreateInInventory("Chemlight_Green"); // Chemlight Green player.GetInventory().CreateInInventory("CombatKnife"); // Combat Knife player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Mag_IJ70_8Rnd"); // Mag MakarovIJ70 player.GetInventory().CreateInInventory("Rag"); // Rag EntityAI Makaa = player.GetInventory().CreateInInventory("MakarovIJ70"); // MakarovIJ70 Makaa.GetInventory().CreateAttachment("PistolSuppressor"); // Suppressor player.SetPosition("4107.80 342.7 11205.29"); // Position Vybor airport //<!-------------------------------- PLAYER --------------------------------> } else { switch (Math.RandomInt(0, 1)) { // Activate all classes (0, 6) case 0: EntityAI itemEnt; player.GetInventory().CreateInInventory("Roadflare"); // Roadflare ItemBase rags0 = player.GetInventory().CreateInInventory("Rag"); // Rag rags0.SetQuantity(4); SetRandomHealth(itemEnt); break; } } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } tried this quickly my init light not working, keeps saying unknown code.. that format isn't the same as the code I was using prior to beta launch.. or it doesnt appear to be. Other things I have tried also not working, I can get items to spawn within the default clothing no problem but cannot change the clothes or add a backpack Share this post Link to post Share on other sites