Jump to content
  • 0

Custom loot spawns/ More loot spawns


Saije

Question

I have followed this persons instructions for custom loot spawns. it works fine, I changed all the percentages to have a 100% chance to spawn, but there has been no change.
I am wondering if anyone else has custom loot spawn that could share with me their .hpp files.

I need


CfgBuildingLoot.hpp, Cfgloot.hpp, and Cfglootsmall.hpp

I have all these as well as CfgBuildingPos.hpp But I really would like to see other peoples hpp's for these files to compare.

as things are now, barely any loot spawns around my server.
Im on chernarus epoch 1.0.5.1

This is the link to the instructions for custom loot spawns that I followed: http://opendayz.net/threads/release-custom-loot-for-epoch-overpoch-updated-as-of-01-31-2016-1-0-5-1.18628/

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

in 1.0.5.1 loot spawns are not a percentage, they are weighted average. i.e. the number in the .hpp is related to the amount of occurrences in an array. the build array is then used to randomly select an item, items with more occurrences are more likely and vice versa.

The number you see in the .hpp files is multiplied by 100 to give the weight of the item (which will be proportional, it's just that it needs to be multiples in order to have config values <1). By assigning all items the same value, I assume you put 1 or 100, you give them all the same chance of spawning.

https://github.com/EpochModTeam/DayZ-Epoch/blob/Release_1.0.5.1/SQF/dayz_code/init/loot_init.sqf#L26

That is to say that the guide you linked to is actually extremely inaccurate, and should not be used.

Example from your guide:

[class, weighted fraction -> final weight (occurrences in the array). if you are keen, you will notice that this forms a ratio!

{"AK_107_PSO",0.1} -> 10
,{"M4SPR",0.09} -> 9
,{"M40A3",0.09} -> so on and so forth
,{"SVD_CAMO",0.07}
,{"SVD_des_EP1",0.07}
,{"SVD",0.07}
,{"huntingrifle",0.09}
,{"M24_des_EP1",0.08}
,{"M24",0.07}
,{"BAF_LRR_scoped",0.07}
,{"M107_DZ",0.05}
,{"KSVK_DZE",0.05}
,{"VSS_vintorez",0.04}
,{"SCAR_H_LNG_Sniper_SD",0.03}
,{"M14_EP1",0.02}
,{"BAF_AS50_scoped",0.01}
,{"M110_NVG_EP1",0.01}
,{"M110_TWS_EP1",0.01}
,{"SCAR_H_LNG_Sniper",0.01}
,{"SCAR_H_LNG_Sniper_SD",0.01}
,{"DMR",0.01} 

The ratio would look like:

10:9:9:7:7:7:9:8:7:7:5:5:4:3:2:1:1:1:1:1:1

Link to comment
Share on other sites

  • 0

yeah, I changed everything to a 1 with the impresion that this would increase the amount of these items spawning. in most server for example, i would go into a barracks and there will be so many guns on the floor.
But with the changes i made to those hpp's nothing in game has changed with the amounts of loot spawning.

Following that persons instruction gave me the impresion that more loot would spawn... I dont know how people get such good amounts of loot spawning in their servers.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...