Swap bloodbags in traders and loot for classic system

This commit is contained in:
ebaydayz
2016-04-15 16:11:17 -04:00
parent 0b290d8fec
commit 110befba7f
37 changed files with 86 additions and 104 deletions

View File

@@ -75,8 +75,11 @@ switch (_lootInfo select 0) do
//Spawn a single magazine
case Loot_MAGAZINE:
{
private "_item";
_item = _lootInfo select 1;
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {_item = "ItemBloodbag";};
_vehicle = createVehicle ["WeaponHolder", _this select 1, [], 0, "CAN_COLLIDE"];
_vehicle addMagazineCargoGlobal [_lootInfo select 1, 1];
_vehicle addMagazineCargoGlobal [_item, 1];
_vehicle setPosATL (_this select 1);
INCREMENT_WEAPON_HOLDERS();
};