Fixed: Reduce bouncing.

TODO: wtf is going on with the lateral axis?
TODO: maybe dummy laser that doesnt show up as a target.
This commit is contained in:
jaynus 2015-04-03 10:34:36 -07:00
parent 368b51e0ee
commit ced44f8a9d

View File

@ -48,7 +48,6 @@ FUNC(laserHudDesignatePFH) = {
_povDir = _turretInfo select 1; _povDir = _turretInfo select 1;
_result = [_povPos, _povDir] call EFUNC(laser,shootCone); _result = [_povPos, _povDir] call EFUNC(laser,shootCone);
if((count _result) > 0) then { if((count _result) > 0) then {
_resultPositions = _result select 2; _resultPositions = _result select 2;
@ -67,7 +66,7 @@ FUNC(laserHudDesignatePFH) = {
["ace_fcs_forceUpdate", []] call ace_common_fnc_localEvent; ["ace_fcs_forceUpdate", []] call ace_common_fnc_localEvent;
}; };
if( diag_tickTime > _forceUpdateTime || ((getPosASL _laserTarget) distance _pos) > 0.5) then { if( (str (getPosASL _laserTarget)) != str _pos) then {
TRACE_1("LaserPos Update", ""); TRACE_1("LaserPos Update", "");
_laserTarget setPosATL (ASLToATL _pos); _laserTarget setPosATL (ASLToATL _pos);