Advanced trading rework

We don't need to check for close vehicle anymore now for backpack money
since we've made z_vehicle redundant.
This commit is contained in:
oiad
2016-10-29 11:53:23 +13:00
parent aa4a30122b
commit a589bd19b9
2 changed files with 1 additions and 2 deletions

View File

@@ -45,7 +45,6 @@ _maintain = {
_enoughMoney = if (_wealth >= _amount) then { true } else { false };
} else {
Z_Selling = false; // Initialize gem currency before Z_canAfford.
if (Z_AllowTakingMoneyFromVehicle) then { false call Z_checkCloseVehicle; };
_moneyInfo = _amount call Z_canAfford;
_enoughMoney = _moneyInfo select 0;
};

View File

@@ -1,7 +1,7 @@
sched_safetyVehicle = {
{
if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
if (vehicle _x != _x && !(vehicle _x in dayz_serverObjectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle) && (isNil {_x getVariable "DZMSAI"}) && (isNil {_x getVariable "DZMSHOTSPOTSAI"})) then {
diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ];
(vehicle _x) setDamage 1;
_x setDamage 1;