How to make Dayz Origins Loot Spawn working .

daizi

New Member



My origins server is working , every thing is good but BE. and loot spawn .

Loot spawn is not good enough. but i still want show the way how i make it spawn .

Do a backup bbefore u do next .
in Dayz_code.pbo . \compile\building_spawnZombies.sqf

Use this . (this is from Dayz Mod) , it make spwan loot beter.
-------------------------------------------------------------
Code:
private["_obj","_type","_config","_positions","_iPos","_nearBy","_itemType","_itemTypes","_itemChances","_lootChance","_weights","_cntWeights","_index"];
 
_obj =            _this select 0;
_type =        typeOf _obj;
_config =        configFile >> "CfgBuildingLoot" >> _type;
_positions =    [] + getArray (_config >> "lootPos");
_itemTypes =    [] + getArray (_config >> "itemType");
_lootChance =    1");
{
    if ((random 1) < _lootChance) then {
        _iPos = _obj modelToWorld _x;
        _nearBy = nearestObjects [_iPos, ["WeaponHolder","WeaponHolderBase"], 1];
        if (count _nearBy == 0) then {
            _index = dayz_CBLBase find _type;
            _weights = dayz_CBLChances select _index;
            _cntWeights = count _weights;
            _index = floor(random _cntWeights);
            _index = _weights select _index;
            _itemType = _itemTypes select _index;
            [_itemType select 0, _itemType select 1 , _iPos, 0.0]  call spawn_loot;
            _obj setVariable ["created",(DateToNumber date),true];
        };
    };
} forEach _positions;


-------------------------------------------------------------------------------

step 2 .

dayz_code.pbo /config.cpp

find "Zombie chance" and "Lootchance" and make sure it > 0.5 or more , like 0.8

class Industrial: Default {
zombieChance = 0.6;
zombieClass[] = {"z_worker1","z_worker2","z_worker3"};
maxRoaming = 5;
lootChance = 0.8;


this way make lootspawn better . Do u have a Goodway to fix it ?

and i realy want know how to make Battleye working . too many cheaters in my server
..


//my server 220.165.85.178 password: ami
 
Back
Top