From 132e9506c122c3ef09478c6d1f215f11916e54f7 Mon Sep 17 00:00:00 2001 From: A Man Date: Mon, 11 May 2020 20:02:29 +0200 Subject: [PATCH] Delete Chainsaw gas on relog if the player had a chainsaw in his backpack --- SQF/dayz_code/system/player_monitor.fsm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/SQF/dayz_code/system/player_monitor.fsm b/SQF/dayz_code/system/player_monitor.fsm index 6c1de18eb..288dd255c 100644 --- a/SQF/dayz_code/system/player_monitor.fsm +++ b/SQF/dayz_code/system/player_monitor.fsm @@ -678,14 +678,16 @@ class FSM " //Magazines" \n " _countr = 0;" \n " {" \n - " if (_x == ""BoltSteel"") then { _x = ""1Rnd_Arrow_Wood"" }; // Convert BoltSteel to WoodenArrow" \n - " if (dayz_classicBloodBagSystem) then {" \n - " if (_x in dayz_typedBags) then {_x = ""ItemBloodbag""};" \n - " } else {" \n - " if (_x == ""ItemBloodbag"") then { _x = ""bloodBagONEG"" }; // Convert ItemBloodbag into universal blood type/rh bag" \n + " if (_x != ""CSGAS"") then {" \n + " if (_x == ""BoltSteel"") then { _x = ""1Rnd_Arrow_Wood"" }; // Convert BoltSteel to WoodenArrow" \n + " if (dayz_classicBloodBagSystem) then {" \n + " if (_x in dayz_typedBags) then {_x = ""ItemBloodbag""};" \n + " } else {" \n + " if (_x == ""ItemBloodbag"") then { _x = ""bloodBagONEG"" }; // Convert ItemBloodbag into universal blood type/rh bag" \n + " };" \n + " dayz_myBackpack addMagazineCargoGlobal [_x,(_backpackMagQty select _countr)];" \n " };" \n - " dayz_myBackpack addMagazineCargoGlobal [_x,(_backpackMagQty select _countr)];" \n - " _countr = _countr + 1;" \n + " _countr = _countr + 1;" \n " } forEach _backpackMagTypes;" \n " " \n " dayz_myBackpackMags = getMagazineCargo dayz_myBackpack;" \n