From 668cd0c1c4015079bfa484905db51825f1e7d58a Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 27 Oct 2013 00:45:09 -0500 Subject: [PATCH] only allow combine if 85% bullet count of mag --- SQF/dayz_code/actions/player_reloadMags.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SQF/dayz_code/actions/player_reloadMags.sqf b/SQF/dayz_code/actions/player_reloadMags.sqf index 591e64c2b..c6d5d5056 100644 --- a/SQF/dayz_code/actions/player_reloadMags.sqf +++ b/SQF/dayz_code/actions/player_reloadMags.sqf @@ -91,10 +91,8 @@ _qtynew_create_mags_full = floor(_qtynew_create_ammo/_create_magsize); _qtynew_consume_ammo_rest = _qtynew_consume_ammo - (_qtynew_consume_mags_full*_consume_magsize); _qtynew_create_ammo_rest = _qtynew_create_ammo - (_qtynew_create_mags_full*_create_magsize); - // abort if no complete mags or partial mag is less than 15% full -//if((_create_magsize*0.85)) exitWith {}; - +if(_qtynew_create_ammo_rest > 0 and _qtynew_create_ammo_rest < (_create_magsize*0.85)) exitWith { cutText ["\n\nCombine ammo failed you need at least 85% capacity to fill a mag", "PLAIN DOWN"]; }; //remove all _consume and _create mags (we already have total ammo count) player removeMagazines _consume;