mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Reduce ItemBloodbag loot chance slightly for classic system
Since typed bags spawn in bulk (usually 2x 4 different bag types) this reduces bloodbag output slightly when classic system is enabled. Medboxes were spawning with 3-8 blood bags, this reduces it to about 1-6 which should be similar to 1051 values IIRC. Feel free to adjust this up or down if needed.
This commit is contained in:
@@ -34,7 +34,13 @@ if (!local (_this select 0)) exitWith
|
|||||||
{
|
{
|
||||||
private "_item";
|
private "_item";
|
||||||
_item = _x select 1;
|
_item = _x select 1;
|
||||||
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {_item = "ItemBloodbag";};
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
(_this select 0) addMagazine _item;
|
(_this select 0) addMagazine _item;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,13 @@ Author:
|
|||||||
{
|
{
|
||||||
private "_item";
|
private "_item";
|
||||||
_item = _x select 1;
|
_item = _x select 1;
|
||||||
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {_item = "ItemBloodbag";};
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
(_this select 0) addMagazineCargoGlobal [_item, 1];
|
(_this select 0) addMagazineCargoGlobal [_item, 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,13 @@ switch (_lootInfo select 0) do
|
|||||||
{
|
{
|
||||||
private "_item";
|
private "_item";
|
||||||
_item = _lootInfo select 1;
|
_item = _lootInfo select 1;
|
||||||
if (dayz_classicBloodBagSystem && _item in dayz_typedBags) then {_item = "ItemBloodbag";};
|
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";
|
||||||
|
};
|
||||||
|
};
|
||||||
_vehicle = createVehicle ["WeaponHolder", _this select 1, [], 0, "CAN_COLLIDE"];
|
_vehicle = createVehicle ["WeaponHolder", _this select 1, [], 0, "CAN_COLLIDE"];
|
||||||
_vehicle addMagazineCargoGlobal [_item, 1];
|
_vehicle addMagazineCargoGlobal [_item, 1];
|
||||||
_vehicle setPosATL (_this select 1);
|
_vehicle setPosATL (_this select 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user