Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Adding new loot to spawning

Experienced Elementalist
Joined
Mar 10, 2015
Messages
264
Reaction score
33
Hi to all, today we gonna to add new items in loot spawns.

Open server_data,pbo with PBO Manager
2fed - Adding new loot to spawning - RaGEZONE Forums

Open config.cpp (if no config.cpp use UnRap to convert config.bin to config.cpp)This config work with, all of loot, zombies and animals spawns.
We can add new items or guns in loot spawn from here.

Example:
I don't have in loot spawns my new model "GuyFawkesMask" (It's a class name)
I found an building, for example that is "Land_Mil_ControlTower" i found that building in file and than i can add there my new loot:

2fed - Adding new loot to spawning - RaGEZONE Forums


Added new loot:
Code:
    class [B]Land_Mil_ControlTower[/B] : HouseDefault {
        class Spawns : Spawns {
            class MilitaryMix {
                locations[] = { { "pointUnderStairs", 1 }, { "pointGroundFloor", 2 }, { "pointMezanin", 1 }, { "pointOnTables", 2 }, { "pointControlRoomFloor", 2 }, { "pointRoof", 2 }, { "point1stFloor", 1 }, { "point2ndFloorBalcony", 1 }, { "pointOnLockers", 1 } };
                items[] = { { "Ammo_9mm", 0.03 }, { "Ammo_45FMJ", 0.018 }, { "Ammo_9x39_20Rnd", 0.01 }, { "Glasses_Round", 0.012 }, { "Ammo_556", 0.03 }, { "Ammo_762x39", 0.03 }, { "Ammo_9mm_25rnd", 0.0156 }, { "Ammo_45acp_25rnd", 0.0156 }, { "Ammo_556_20Rnd", 0.0156 }, { "Ammo_762x39_20Rnd", 0.0156 }, { "Ammo_545_20Rnd", 0.0156 }, { "Tool_WeaponCleaningKit", 0.002 }, { "Att_Compensator_Mosin", 0.105 }, { "Att_Bipod_Atlas", 0.045 }, { "M_IJ70_8Rnd", 0.2 }, { "BoonieHat_DPM", 0.0051 }, { "BoonieHat_flecktran", 0.0068 }, { "BoonieHat_dubok", 0.0051 }, { "PilotHelmet_ZSh3", 0.0085 }, { "PilotkaCap", 0.0034 }, { "BallisticHelmet_Green", 0.0068 }, { "BallisticHelmet_Black", 0.0068 }, { "BallisticHelmet_UN", 0.0034 }, { "MilitaryBeretNZ", 0.0008925 }, { "MilitaryBeretChDKZ", 0.0008925 }, { "MilitaryBeretCDF", 0.000765 }, { "OfficerHat", 0.00085 }, { "MilitaryBeret", 0.00085 }, { "MilitaryBeretUN", 0.00085 }, { "TacticalShirtGrey", 0.00425 }, { "TacticalShirtBlack", 0.00425 }, { "TacticalShirtOlive", 0.00425 }, { "TacticalShirtTan", 0.00425 }, { "UKAssVest_Black", 0.00425 }, { "UKAssVest_Camo", 0.00425 }, { "UKAssVest_Khaki", 0.00425 }, { "UKAssVest_Olive", 0.00425 }, { "Gorka_up_summer", 0.0034 }, { "Gorka_up_autumn", 0.00085 }, { "Gorka_up_flat", 0.0034 }, { "Gorka_up_PautRev", 0.00085 }, { "Container_CarrierPouches", 0.00255 }, { "CarrierHolsterSolo", 0.0017 }, { "PlateCarrierBlank", 0.00425 }, { "Gorka_pants_summer", 0.0068 }, { "Gorka_pants_autumn", 0.0017 }, { "Gorka_pants_flat", 0.0068 }, { "Gorka_pants_PautRev", 0.0017 }, { "GorkaHelmet_Green", 0.0595 }, { "GorkaHelmet_visor", 0.0255 }, { "CargoPants_Beige", 0.0017 }, { "CargoPants_Blue", 0.0017 }, { "CargoPants_Black", 0.0017 }, { "CargoPants_Green", 0.0017 }, { "CargoPants_Grey", 0.0017 }, { "HunterPants_Autumn", 0.0017 }, { "HunterPants_Brown", 0.0017 }, { "HunterPants_Spring", 0.0051 }, { "HunterPants_Summer", 0.0051 }, { "HunterPants_Winter", 0.0034 }, { "ttsko_pants_Beige", 0.00425 }, { "TTsKO_Jacket_Camo", 0.00425 }, { "WorkingGloves_Beige", 0.00085 }, { "WorkingGloves_Black", 0.00085 }, { "WorkingGloves_Brown", 0.00085 }, { "WorkingGloves_Yellow", 0.00085 }, { "RocketAviators", 0.000255 }, { "Glasses_Designer", 0.000255 }, { "Glasses_ThickFrames", 0.00051 }, { "Glasses_ThinFrames", 0.00068 }, { "Optics_Binoculars", 0.00119 }, { "Optics_Rangefinder", 0.00051 }, { "ChestHolster", 0.0017 }, { "JungleBoots_Beige", 0.002 }, { "JungleBoots_Black", 0.008 }, { "JungleBoots_Brown", 0.004 }, { "JungleBoots_Green", 0.004 }, { "JungleBoots_Olive", 0.002 }, { "MilitaryBoots_Beige", 0.006 }, { "MilitaryBoots_Black", 0.012 }, { "MilitaryBoots_Bluerock", 0.008 }, { "MilitaryBoots_Brown", 0.012 }, { "MilitaryBoots_Redpunk", 0.002 }, { "CombatBoots_Beige", 0.008 }, { "CombatBoots_Black", 0.008 }, { "CombatBoots_Brown", 0.008 }, { "CombatBoots_Green", 0.008 }, { "CombatBoots_Grey", 0.008 }, { "RocketAviators", 0.00225 }, { "Glasses_Designer", 0.00225 }, { "Glasses_ThickFrames", 0.0045 }, { "Glasses_ThinFrames", 0.006 }, { "PilotHelmet_ZSh3", 0.014 }, { "MilitaryBeretNZ", 0.00525 }, { "MilitaryBeretChDKZ", 0.00525 }, { "MilitaryBeretCDF", 0.0045 }, { "MilitaryBeret", 0.0075 }, { "MilitaryBeretUN", 0.0075 }, { "BoonieHat_DPM", 0.003 }, { "BoonieHat_flecktran", 0.004 }, { "BoonieHat_dubok", 0.003 }, { [B]"GuyFawkesMask"[/B], 0.0005 }, { "BallisticHelmet_Green", 0.006 }, { "BallisticHelmet_Black", 0.006 }, { "BallisticHelmet_UN", 0.003 }, { "TankerHelmet", 0.005 }, { "BalaclavaMask_Green", 0.01 }, { "GP5GasMask", 0.00015 }, { "GasMask", 0.00015 }, { "DallasMask", 5e-005 }, { "HoxtonMask", 5e-005 }, { "WolfMask", 5e-005 }, { [B]"GuyFawkesMask"[/B], 0.000495 }, { "WeldingMask", 5e-006 }, { "magnum", 0.006 }, { "P1", 0.006 }, { CZ75, 0.0084 }, { "LongHorn", 0.0003 }, { 1911, 0.006 }, { "1911_Engraved", 0.0003 }, { "Derringer_Black", 0.014985 }, { [B]"GuyFawkesMask"[/B], 3e-005 }, { "GuyFawkesMask", 0.014985 }, { [B]"GuyFawkesMask"[/B], 0.05 } };
            };

and in and of that all i added my mask: "GuyFawkesMask" than i delete old config.cpp or config.bin and add my new config.cpp.
After adding new config, we gonna to re-create an proxyexport.bin file,
2fed - Adding new loot to spawning - RaGEZONE Forums

to do that we need open servers init.sqf (for old versions, in new you need to find that line for yourself) "//exportProxies [_position,200000];" than we need uncomment line like "exportProxies [_position,200000];", save and start the server, after several minutes (15-20 mins) we need to close server, comment line "//exportProxies [_position,200000];", start server go to that building and find my mask.
 
Last edited:
Junior Spellweaver
Joined
Mar 14, 2016
Messages
103
Reaction score
10
OK, very good ! but what would be the 0.05 mascara that you spawn?
{ "GuyFawkesMask", 0,05} --> 0,05
 
Experienced Elementalist
Joined
Mar 10, 2015
Messages
264
Reaction score
33
OK, very good ! but what would be the 0.05 mascara that you spawn?
{ "GuyFawkesMask", 0,05} --> 0,05

That value i don't understand, i think it's like percent of spawning, like if you increase value that must be spawned at there. but if you decrease value it's be like "exclusive spawn" 1-2 times be founded only.
 
Initiate Mage
Joined
Aug 26, 2017
Messages
16
Reaction score
0
I do this but every time I try to join the server it says waiting for host then shows me a random area of the map, any help?
 
Initiate Mage
Joined
Dec 17, 2017
Messages
33
Reaction score
2
i dont have this "exportProxies [_position,200000];" in my mission init i want to re add loot to the camo buldings on the airfeild and vyborg mill base how do i do this please here is what ive done so far i think its correct but no loot spawns :(


class Land_Mil_House : HouseDefault {
class Spawns : Spawns {
class BigClothes {
locations[] = {{"lootBigClothes", 23}};
lootCategory[] = {"Tops", "Pants", "Headgear"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class SmallClothes {
locations[] = {{"lootSmallClothes", 50}};
lootCategory[] = {"Food", "Feet", "Tools", "Headgear"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class Books {
locations[] = {{"lootBookCase", 6}};
lootCategory[] = {"Books"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class Medical {
locations[] = {{"lootMedical", 17}};
lootCategory[] = {"Medical"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class Weapons {
locations[] = {{"lootWeapons", 21}};
lootCategory[] = {"Pistols"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class Ammo {
locations[] = {{"lootAmmoAndAttachments", 25}};
lootCategory[] = {"Ammo", "Magazines", "Explosives"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class OutsideShed {
locations[] = {{"lootShed", 20}};
lootCategory[] = {"Tools", "Materials"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class MilitaryRifles {
locations[] = {{"lootProxyWeapons", 123}};
lootCategory[] = {"Rifles"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class MilitaryBackpacks {
locations[] = {{"lootProxyBackpacks", 66}};
lootCategory[] = {"Bags"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};

class MeleeWeapons {
locations[] = {{"lootProxyMeleeWeapons", 31}};
lootCategory[] = {"Tools"};
lootTag[] = {"Military_east", "Military_west", "Tents", "Camping"};
};
};
};
 
Experienced Elementalist
Joined
Mar 10, 2015
Messages
264
Reaction score
33
This tutorial only for old builds, not for 0.60 or 0.61-0.62
 
Initiate Mage
Joined
Dec 17, 2017
Messages
33
Reaction score
2
ahh ok i was using 61 as there is no 62 files anywhere i have to use 61. i was hopeing i could get this to work on 61
 
Experienced Elementalist
Joined
Mar 10, 2015
Messages
264
Reaction score
33
Do this in .61 is problem. Big problem. I added, but when i spawned new item, server crashes.
 
Back
Top