mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update spawn.sqf
Remove check for equip_lever and equip_brick. players can just remove it from the loot config.
This commit is contained in:
@@ -35,23 +35,13 @@ _vehicle = objNull;
|
||||
call {
|
||||
//Spawn a single magazine
|
||||
if (_type == Loot_MAGAZINE) exitWith {
|
||||
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {
|
||||
if (dayz_classicBloodBagSystem && {_item in dayz_typedBags}) then {
|
||||
if (_item in ["bloodTester","bloodBagAPOS","bloodBagABPOS"]) then { // reduce ItemBloodBag output slightly since typed bags spawn in bulk
|
||||
_item = ["ItemBandage","ItemPainkiller","ItemMorphine","ItemHeatPack","ItemAntibacterialWipe"] call BIS_fnc_selectRandom;
|
||||
} else {
|
||||
_item = "ItemBloodbag";
|
||||
};
|
||||
};
|
||||
if (!dayz_toolBreaking) then {
|
||||
if (_item == "equip_lever") then { // The levers are only used if tool breaking is turned on.
|
||||
_item = ["equip_hose","ItemPlank","equip_nails","ItemLog","equip_brick"] call BIS_fnc_selectRandom;
|
||||
};
|
||||
};
|
||||
if (!dayz_knifeDulling) then {
|
||||
if (_item == "equip_brick") then { // Bricks are only used to sharpen tools
|
||||
_item = ["equip_hose","ItemPlank","equip_nails","ItemLog"] call BIS_fnc_selectRandom;
|
||||
};
|
||||
};
|
||||
_vehicle = "WeaponHolder" createVehicle [0,0,0];
|
||||
_vehicle addMagazineCargoGlobal [_item, 1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user