mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove optional laser visual.
This commit is contained in:
parent
16cd05edc8
commit
887e1d1d99
8
addons/laser/CfgWeapons.hpp
Normal file
8
addons/laser/CfgWeapons.hpp
Normal file
@ -0,0 +1,8 @@
|
||||
/*
|
||||
class Default;
|
||||
class Item_Base_F;
|
||||
|
||||
class Laserdesignator_mounted : Default {};
|
||||
class Item_Laserdesignator : Item_Base_F {};
|
||||
|
||||
*/
|
@ -11,4 +11,5 @@ class CfgPatches {
|
||||
};
|
||||
|
||||
#include "CfgEventhandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgWeapons.hpp"
|
@ -4,7 +4,8 @@ if( (count _this) > 2) then {
|
||||
EXPLODE_3_PVT(_this,_shooter,_laserUuid, _localLaserTarget);
|
||||
|
||||
[_laserUuid] call EFUNC(laser,laserOff);
|
||||
deleteVehicle _localLaserTarget;
|
||||
// @TODO: Nou gets to field all tickets about missing lasers.
|
||||
//deleteVehicle _localLaserTarget;
|
||||
};
|
||||
|
||||
GVAR(active) = false;
|
||||
|
@ -50,7 +50,8 @@ FUNC(laserHudDesignatePFH) = {
|
||||
_args set[3, diag_tickTime + FCS_UPDATE_DELAY];
|
||||
};
|
||||
|
||||
_localLaserTarget setPosASL _laserResultPosition;
|
||||
// @TODO: Nou gets to field all tickets about missing lasers.
|
||||
//_localLaserTarget setPosASL _laserResultPosition;
|
||||
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selectover_ca.paa", [1,0,0,1], _laserResultPosition, 0.75, 0.75, 0, "", 0.5, 0.025, "TahomaB"];
|
||||
@ -69,9 +70,10 @@ if(!GVAR(active)) then {
|
||||
_laserUuid = [(vehicle ACE_player), ACE_player, FUNC(findLaserSource), 1550, 1001, 1] call EFUNC(laser,laserOn);
|
||||
|
||||
// @TODO: Create the local target for the players side
|
||||
_localLaserTarget = "LaserTargetW" createVehicleLocal (getpos ACE_player);
|
||||
// @TODO: Nou gets to field all tickets about missing lasers.
|
||||
//_localLaserTarget = "LaserTargetW" createVehicleLocal (getpos ACE_player);
|
||||
|
||||
_handle = [FUNC(laserHudDesignatePFH), 0.25, [ACE_player, _laserUuid, _localLaserTarget]] call cba_fnc_addPerFrameHandler;
|
||||
_handle = [FUNC(laserHudDesignatePFH), 0.25, [ACE_player, _laserUuid, nil]] call cba_fnc_addPerFrameHandler;
|
||||
} else {
|
||||
[] call FUNC(laserHudDesignateOff);
|
||||
[] call FUNC(laserHudDesignateOn);
|
||||
|
Loading…
Reference in New Issue
Block a user