use createVeh non-array on the server

Faster by my testing. Also, some more performance related changes to
server_monitor
This commit is contained in:
icomrade
2016-08-17 15:17:43 -04:00
parent f04d581b4d
commit 6d45a8f2b6
12 changed files with 61 additions and 25 deletions

View File

@@ -1,15 +1,31 @@
//DO NOT USE IF YOU NEED ANGLE COMPENSATION!!!!
private "_pos";
_params = count _this;
_thingy = _this select 0;
if ((count _this) > 1) then {
_isATL = false;
if (_params > 1) then {
_pos = _this select 1;
if (_params > 2) then {
_isATL = _this select 2;
};
} else {
_pos = getPosASL _thingy;
};
if (surfaceIsWater _pos) then {
_thingy setPosASL _pos;
if (_isATL) then {
_thingy setPosASL (ATLToASL _pos);
} else {
_thingy setPosASL _pos;
};
} else {
_thingy setPosATL (ASLToATL _pos);
};
if (_isATL) then {
_thingy setPosATL _pos;
} else {
_thingy setPosATL (ASLToATL _pos);
};
};
_pos;