From a08cf691493072abf84f9fb450cad7eac34e576f Mon Sep 17 00:00:00 2001 From: commy2 Date: Wed, 9 Dec 2015 22:56:14 +0100 Subject: [PATCH] tweak size of laserpointer, fix #2975 --- addons/laserpointer/functions/fnc_drawLaserpoint.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/laserpointer/functions/fnc_drawLaserpoint.sqf b/addons/laserpointer/functions/fnc_drawLaserpoint.sqf index 29befe96cd..3ea9ed158b 100644 --- a/addons/laserpointer/functions/fnc_drawLaserpoint.sqf +++ b/addons/laserpointer/functions/fnc_drawLaserpoint.sqf @@ -81,7 +81,7 @@ _camPos = AGLToASL _camPos; if (terrainIntersectASL [_camPos, _pL2]) exitWith {}; if (lineIntersects [_camPos, _pL2]) exitWith {}; -private _size = 2 * (_range - (positionCameraToWorld [0,0,0] vectorDistance _pL)) / _range; +private _size = 2 * sqrt (1 / _distance) * (call EFUNC(common,getZoom)); drawIcon3D [ format ["\a3\weapons_f\acc\data\collimdot_%1_ca.paa", ["red", "green"] select _isGreen],