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.
// bias for this building. The lower it is, the lower chance some of the lootpiles will spawn
_bias = 50 max dayz_lootSpawnBias;
_bias = 100 min _bias;
_bias = (_bias + random(100-_bias)) / 100;
//diag_log(format["BIAS:%1 LOOTCHANCE:%2", _bias, _lootChance]);
{
if (count _x == 3) then {
_rnd = (random 1) / _bias;
_iPos = _obj modelToWorld _x;
if (_rnd <= _lootChance) then {
class Land_a_stationhouse: Military {
lootChance = 0.3;
lootPos[] = {{-2.69922,-7.57422,-9.46057}, ....
};
class Military: Default {
zombieChance = 0.3;
maxRoaming = 6;
zombieClass[] = {"z_soldier","z_soldier_heavy","z_policeman"};
lootChance = 0.9;
lootPos[] = {};
lootType[] = {
{"M9","weapon",0.05},
.....