Merge pull request #1978 from oiad/patch-10

Add extra magazine instead of reloading current one
This commit is contained in:
icomrade
2017-09-08 18:52:13 -04:00
committed by GitHub

View File

@@ -17,10 +17,9 @@ _magazines = getArray (configFile >> "cfgWeapons" >> _weapon >> "magazines");
} count _magazines;
if (_ammo != "") then {
_vehicle removeMagazineTurret [_ammo,_turret];
_vehicle addMagazineTurret [_ammo,_turret];
player removeMagazine _ammo;
format[localize "str_player_ammo_successful",_ammoType] call dayz_rollingMessages;
} else {
format[localize "str_player_ammo_fail",_text] call dayz_rollingMessages;
};
};