Add toggleable Bury and Butcher Bodies by salival

This also re-arranges the configVariables.sqf and loads the variables for both (server and client) first. This allows to check for certain variables like Z_SingleCurrency and stops the loading of all other Z_SingleCurrency variables even when Z_SingleCurrency was not on.
This commit is contained in:
A Man
2021-08-18 18:38:03 +02:00
parent fa75563ae1
commit be7898aac1
11 changed files with 294 additions and 122 deletions

View File

@@ -46,7 +46,7 @@ _magazines = getMagazineCargo _object;
_backpacks = getBackpackCargo _object;
_inv = [_weapons,_magazines,_backpacks];
if (Z_SingleCurrency && ZSC_VehicleMoneyStorage) then {
if (Z_SingleCurrency && {ZSC_VehicleMoneyStorage}) then {
_coins = _object getVariable ["cashMoney",0];
};
@@ -107,7 +107,7 @@ if (_outcome != "PASS") then {
_object setVariable ["lastUpdate",diag_tickTime];
_object setVariable ["CharacterID", _characterID, true];
if (Z_SingleCurrency && ZSC_VehicleMoneyStorage && {_coins > 0}) then {
if (Z_SingleCurrency && {ZSC_VehicleMoneyStorage && (_coins > 0)}) then {
_object setVariable ["cashMoney",_coins,true];
};