mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
increase frequency of laser update.
This commit is contained in:
parent
1c28e82725
commit
c3dbcf1351
@ -1,4 +1,4 @@
|
||||
// #define DEBUG_MODE_FULL
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
TRACE_1("enter", _this);
|
||||
@ -68,11 +68,10 @@ FUNC(laserHudDesignatePFH) = {
|
||||
["ace_fcs_forceUpdate", []] call ace_common_fnc_localEvent;
|
||||
};
|
||||
|
||||
if( ((getPosASL _laserTarget) vectorDistance _pos) > 2) then {
|
||||
if( (_laserTarget distance _pos) > 0.1) then {
|
||||
TRACE_1("LaserPos Update", "");
|
||||
_laserTarget setPosATL (ASLToATL _pos);
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
if(diag_tickTime > _forceUpdateTime) then {
|
||||
_args set[3, diag_tickTime + FCS_UPDATE_DELAY];
|
||||
|
Loading…
Reference in New Issue
Block a user