mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
#1670 - Laser pointer - pass _brightness to drawFnc
This commit is contained in:
parent
c3fea42bce
commit
d7717448fa
@ -1,7 +1,7 @@
|
|||||||
// by commy2 and esteldunedain
|
// by commy2 and esteldunedain
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_brightness", "_p0", "_p1", "_p0Pos", "_offV1", "_offV2", "_offV3", "_camPos", "_intermediatePos", "_iteration", "_light", "_line", "_pL", "_pL2", "_pX", "_size", "_units", "_fnc_getDistanceToTerrain", "_fnc_doesIntersectWithMan"];
|
private ["_p0", "_p1", "_p0Pos", "_offV1", "_offV2", "_offV3", "_camPos", "_intermediatePos", "_iteration", "_light", "_line", "_pL", "_pL2", "_pX", "_size", "_units", "_fnc_getDistanceToTerrain", "_fnc_doesIntersectWithMan"];
|
||||||
|
|
||||||
// init object
|
// init object
|
||||||
/*if (isNil QGVAR(laserdot)) then {
|
/*if (isNil QGVAR(laserdot)) then {
|
||||||
@ -16,7 +16,7 @@ private ["_brightness", "_p0", "_p1", "_p0Pos", "_offV1", "_offV2", "_offV3", "_
|
|||||||
GVAR(laserdot) = _light;
|
GVAR(laserdot) = _light;
|
||||||
};*/
|
};*/
|
||||||
|
|
||||||
EXPLODE_3_PVT(_this,_unit,_range,_isGreen);
|
EXPLODE_4_PVT(_this,_unit,_range,_isGreen,_brightness);
|
||||||
|
|
||||||
_p0Pos = _unit modelToWorldVisual (_unit selectionPosition "righthand");
|
_p0Pos = _unit modelToWorldVisual (_unit selectionPosition "righthand");
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ _brightness = 2 - call EFUNC(common,ambientBrightness);
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (_laserID > 0 && {_x isFlashlightOn _weapon}) then {
|
if (_laserID > 0 && {_x isFlashlightOn _weapon}) then {
|
||||||
[_x, 50, _laserID == 2 || _isIR] call FUNC(drawLaserpoint);
|
[_x, 50, (_laserID == 2 || _isIR), _brightness] call FUNC(drawLaserpoint);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user