mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -45,7 +45,6 @@ _maintain = {
|
|||||||
_enoughMoney = if (_wealth >= _amount) then { true } else { false };
|
_enoughMoney = if (_wealth >= _amount) then { true } else { false };
|
||||||
} else {
|
} else {
|
||||||
Z_Selling = false; // Initialize gem currency before Z_canAfford.
|
Z_Selling = false; // Initialize gem currency before Z_canAfford.
|
||||||
if (Z_AllowTakingMoneyFromVehicle) then { false call Z_checkCloseVehicle; };
|
|
||||||
_moneyInfo = _amount call Z_canAfford;
|
_moneyInfo = _amount call Z_canAfford;
|
||||||
_enoughMoney = _moneyInfo select 0;
|
_enoughMoney = _moneyInfo select 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
sched_safetyVehicle = {
|
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 ];
|
diag_log [ __FILE__, "KILLING A HACKER", name _x, " IN ", typeOf vehicle _x ];
|
||||||
(vehicle _x) setDamage 1;
|
(vehicle _x) setDamage 1;
|
||||||
_x setDamage 1;
|
_x setDamage 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user