2015-11-23 19:52:04 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Draw the visible laser beams of all cached units.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-17 22:38:13 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2017-02-10 18:47:08 +00:00
|
|
|
// no lasers in thermal mode
|
|
|
|
if !(GVAR(isTI)) then {
|
|
|
|
private _brightness = 2 - call EFUNC(common,ambientBrightness);
|
|
|
|
|
|
|
|
{
|
|
|
|
// red laser. draw green dot anyway in IR mode
|
|
|
|
[_x, 100, GVAR(isIR), _brightness] call FUNC(drawLaserpoint);
|
|
|
|
} count GVAR(redLaserUnits);
|
|
|
|
|
|
|
|
{
|
|
|
|
// green laser
|
|
|
|
[_x, 100, true, _brightness] call FUNC(drawLaserpoint);
|
|
|
|
} count GVAR(greenLaserUnits);
|
|
|
|
};
|