mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Removed redundant checks
This commit is contained in:
parent
e3a94eaeb8
commit
f1a3d46c64
@ -28,11 +28,7 @@ _servicepointDist = ["CfgServicePoint", "ServicePointDist", 40] call EPOCH_fnc
|
||||
_ServicePointClasses = ["CfgServicePoint", "ServicePointClasses", []] call EPOCH_fnc_returnConfigEntryV2;
|
||||
|
||||
if (_servicepoints isequalto [] && _ServicePointClasses isequalto []) exitwith {false};
|
||||
if (_vehicle == player) exitwith {false};
|
||||
if !(local _vehicle) exitwith {false};
|
||||
if (speed _vehicle > 2 || speed _vehicle < -2) exitwith {false};
|
||||
if (((getpos _vehicle) select 2) > 1) exitwith {false};
|
||||
if (!(_vehicle iskindof 'ship') && (((getposasl _vehicle) select 2) < 1)) exitwith {false};
|
||||
|
||||
_inSP = false;
|
||||
if (({player distance _x < _servicepointDist} count _servicepoints > 0)) then {
|
||||
_inSP = true;
|
||||
|
Loading…
Reference in New Issue
Block a user