mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix spectator icons and camera jitter (#5067)
* Use `Visual` commands for icons and external camera position
This commit is contained in:
parent
1b516bb4fa
commit
bf4b49a213
@ -64,7 +64,7 @@ if (GVAR(camMode) == 0) then {
|
|||||||
_vector = _vector vectorAdd [0,0,_distance*sin(-_tilt)];
|
_vector = _vector vectorAdd [0,0,_distance*sin(-_tilt)];
|
||||||
|
|
||||||
// Update the position of the target camera (used for smooth unit tracking)
|
// Update the position of the target camera (used for smooth unit tracking)
|
||||||
_target camSetPos ((_unit modelToWorldVisual [0,0,0]) vectorAdd [0,0,1.5]);
|
_target camSetPos ((ASLToAGL getPosASLVisual _unit) vectorAdd [0,0,1.5]);
|
||||||
_target camCommit 0;
|
_target camCommit 0;
|
||||||
|
|
||||||
// Update the relative position of the unit camera
|
// Update the relative position of the unit camera
|
||||||
|
@ -29,7 +29,7 @@ _drawVehicles = [];
|
|||||||
_color = GETVAR(_x,GVAR(gColor),[ARR_4(0,0,0,0)]);
|
_color = GETVAR(_x,GVAR(gColor),[ARR_4(0,0,0,0)]);
|
||||||
_txt = groupID _x;
|
_txt = groupID _x;
|
||||||
|
|
||||||
drawIcon3D ["\A3\ui_f\data\map\markers\nato\b_inf.paa", _color, _leader modelToWorldVisual [0,0,30], 1, 1, 0, _txt, 2, 0.02];
|
drawIcon3D ["\A3\ui_f\data\map\markers\nato\b_inf.paa", _color, (_leader modelToWorldVisual (_leader selectionPosition "Head")) vectorAdd [0,0,1.5], 1, 1, 0, _txt, 2, 0.02];
|
||||||
} else {
|
} else {
|
||||||
_drawVehicles append (units _x);
|
_drawVehicles append (units _x);
|
||||||
};
|
};
|
||||||
@ -41,6 +41,6 @@ _drawVehicles = [];
|
|||||||
_color = GETVAR((group _x),GVAR(gColor),[ARR_4(0,0,0,0)]);
|
_color = GETVAR((group _x),GVAR(gColor),[ARR_4(0,0,0,0)]);
|
||||||
_txt = ["", GETVAR(_x,GVAR(uName),"")] select (isPlayer _x);
|
_txt = ["", GETVAR(_x,GVAR(uName),"")] select (isPlayer _x);
|
||||||
|
|
||||||
drawIcon3D ["\A3\ui_f\data\map\markers\military\dot_CA.paa", _color, _x modelToWorldVisual [0,0,3], 0.7, 0.7, 0, _txt, 1, 0.02];
|
drawIcon3D ["a3\Ui_f\data\GUI\Rsc\RscDisplayEGSpectator\UnitIcon_ca.paa", _color, (_x modelToWorldVisual (_x selectionPosition "Head")) vectorAdd [0,0,1.5], 0.7, 0.7, 0, _txt, 1, 0.02];
|
||||||
false
|
false
|
||||||
} count (_drawVehicles arrayIntersect GVAR(unitList));
|
} count (_drawVehicles arrayIntersect GVAR(unitList));
|
||||||
|
Loading…
Reference in New Issue
Block a user