I have a issue with my custom loot here is my loot sqf http://pastebin.com/7YmsnvzQ doesn't work with my custom buildings I added in and some already added barracks that won't add anything. is 0.9 like 90% or for 90% is 90.0?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
you would need to modify them extra values in the building_spawnZombie.sqf, using the same idea here
But the lootChance value can be modified in here, simple add that to the defining class sectionCode:case "Land_HouseV_1I4": { _LootClass = "Residential"; _lootChance = 0.8; };
You can easily push this code further to actually adding more loot spots in buildings or moving them.
private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index","_LootClass","_lootPos"];
switch (_type) do { //Assign building classes
case "Land_dum_mesto_in": { _LootClass = "Residential"; _lootChance = 0.6;
_lootPos = {
{ -5.53796,-2.51996,-3.99769 },
{ -4.66113,1.34052,-4.26331 },
{ -4.9137,3.4718,-4.26331 },
{ 0.397583,-2.74866,-4.26418 },
{ 2.18762,0.74707,-4.26418 },
{ 4.94128,-1.67108,-4.26418 },
{ 4.48279,2.82495,-4.26418 },
{ 1.11023,4.69928,-2.75561 },
{ 4.98938,3.79883,-1.28095 },
{ 5.55957,-1.61218,-1.28095 },
{ 0.695679,-2.18268,-1.28095 },
{ -2.42969,-1.18854,-1.27582 },
{ -4.77722,3.51996,-1.27582 }
};
};
case "usec_rig_a": { _LootClass = "MilitarySpecial"; _positions = [[-9.33008, 4.07715, 2.48618], [-15.1563, -15.708, 2.33903], [-17.2188, -11.8174, 2.33903], [9.64648, -5.80176, 2.4789], [16.4277, 12.4863, 2.40179], [-15.0566, 16.5352, 2.33903], [-10.0488, 13.8496, -3.50033], [12.2891, 14.7031, -3.50033], [25.668, 4.60742, -3.49775], [13.6211, -6.76172, -3.50033]]; };
Thanks for the help Saethkept. I will make the necessary adjustments. As for which building, it's a two story house that is on Lingor Island.The array in your post above is in C++ format, while it must be in .sqf to work correctly.
_itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iClass)) select 0);
I'm looking to alter my spawn_loot.sqf to edit the loot pile classes themselves.
Code:_itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iClass)) select 0);
This is the line calling for the cfgLoot hpp file, any chance this can be changed to point to my mission file with a custom sqf file or is this not possible? If so - what would i need to make that look like?
with Chernrus map i would like to make 24 slot back packs harder to loot for at the moment they are 0.01 can it come down to 0.001 ? or is that insane maybe 0.050 ? or is 0.01 the lowest for loot tables
This code is designed for chernarus, someone, or yourself would need to design a new loot table based of the panthera code, to copy this design to allow panthera to run correctly.hi guys !
sometimes on my panthera 1.8 server the loot wont spawn porperly , anyone here knows a solution since i saw a few 1.8 Server with a lootfix ?!
btw nice loottable for chernarus !
I've never tested 0.001 but I would assume it will work, although changing the values of other objects in the same table to make them more common will reduce the value 0.01 represents.with Chernrus map i would like to make 24 slot back packs harder to loot for at the moment they are 0.01 can it come down to 0.001 ? or is that insane maybe 0.050 ? or is 0.01 the lowest for loot tables
well and i want to know how to change the, "general", "military", and "trash" loot!
That's basically what I'm getting at, I also wana change those