Skip to content

Commit

Permalink
Add some lint annotations (#10372)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Oct 12, 2024
1 parent 5ffb545 commit 631db9d
Show file tree
Hide file tree
Showing 55 changed files with 19 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ TRACE_2("searching for new vehicles",_vehicleAdded,_rangeTablesShown);
[FUNC(rangeTableOpen), _info] call CBA_fnc_execNextFrame; // delay a frame because of interaction menu closing dialogs
};
private _condition = {
//IGNORE_PRIVATE_WARNING ["_player"];
("ACE_artilleryTable" in (_player call EFUNC(common,uniqueItems))) && {[_player, objNull, ["notOnMap", "isNotSitting", "isNotInside"]] call EFUNC(common,canInteractWith)}
};
private _displayName = format ["%1%2", getText (_vehicleCfg >> "displayName"),["","*"] select _advCorrection];
Expand Down
6 changes: 0 additions & 6 deletions addons/cargo/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,11 @@
GVAR(vehicleAction) = [
QGVAR(openMenu), LLSTRING(openMenu), "",
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(interactionVehicle) = _target;
GVAR(interactionParadrop) = false;
createDialog QGVAR(menu);
},
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(enable) &&
{alive _target} &&
{locked _target < 2} &&
Expand All @@ -96,12 +94,10 @@ GVAR(vehicleAction) = [
GVAR(objectActions) = [
[QGVAR(renameObject), LELSTRING(common,rename), "\a3\Modules_F_Curator\Data\iconMissionName_ca.paa",
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(interactionVehicle) = _target;
createDialog QGVAR(renameMenu);
},
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(enable) &&
{GVAR(enableRename)} &&
{alive _target} &&
Expand All @@ -127,11 +123,9 @@ GVAR(objectActions) = [
] call EFUNC(interact_menu,createAction),
[QGVAR(load), LLSTRING(loadObject), "a3\ui_f\data\IGUI\Cfg\Actions\loadVehicle_ca.paa",
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
[_player, _target] call FUNC(startLoadIn);
},
{
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(enable) &&
{alive _target} &&
{locked _target < 2} &&
Expand Down
2 changes: 0 additions & 2 deletions addons/cargo/functions/fnc_initVehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ if (_hasCargoConfig) then {
// Add the paradrop self interaction for planes and helicopters
if (_vehicle isKindOf "Air") then {
private _condition = {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(enable) &&
{[_player, _target, []] call EFUNC(common,canInteractWith)} && {
private _turretPath = _target unitTurret _player;
Expand All @@ -107,7 +106,6 @@ if (_vehicle isKindOf "Air") then {
};

private _statement = {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
GVAR(interactionVehicle) = _target;
GVAR(interactionParadrop) = true;
createDialog QGVAR(menu);
Expand Down
1 change: 1 addition & 0 deletions addons/cargo/functions/fnc_onMenuOpen.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ if (GVAR(interactionParadrop)) then {
_damageStr = ((_damage * 100) toFixed 0) + "%";

if (_itemSize >= 0) then {
//IGNORE_PRIVATE_WARNING ["ace_cargo_interactionParadrop"];
_index = if (GVAR(interactionParadrop)) then {
_ctrl lbAdd format ["%1. %2 (%3s)", _forEachIndex + 1, _displayName, GVAR(paradropTimeCoefficent) * _itemSize]
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
params ["_client"];

{
//IGNORE_PRIVATE_WARNING ["_x", "_y"];
_y params ["", "_eventlog"];
["ACEs", [_x, _eventLog], _client] call CBA_fnc_targetEvent;
false
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_showHud.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if (_reason != "") then {
};

private _masks = values GVAR(showHudHash);
private _resultMask = [];
private _resultMask = []; //IGNORE_PRIVATE_WARNING ["_resultMask"];

for "_index" from 0 to 9 do {
private _set = true; //Default to true
Expand Down
1 change: 0 additions & 1 deletion addons/csw/dev/checkStaticWeapons.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ private _logAll = false; // logs all possible weapon magazines (even if not used
} forEach _staticWeaponConfigs;

{
//IGNORE_PRIVATE_WARNING ["_x", "_y"];
INFO_2("[%1] has no carry variant - Used in %2",_x,_y);
} forEach _hash;

Expand Down
1 change: 0 additions & 1 deletion addons/csw/functions/fnc_getUnloadActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ private _statement = {
TIME_PROGRESSBAR(_timeToUnload),
[_target, _turretPath, _player, _carryMag, _vehMag],
{
//IGNORE_PRIVATE_WARNING ["_player"];
(_this select 0) params ["_target", "_turretPath", "", "_carryMag", "_vehMag"];
TRACE_5("unload progressBar finish",_target,_turretPath,_carryMag,_vehMag,_player);
[QGVAR(removeTurretMag), [_target, _turretPath, _carryMag, _vehMag, _player]] call CBA_fnc_globalEvent;
Expand Down
2 changes: 1 addition & 1 deletion addons/csw/functions/fnc_initVehicle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if (hasInterface && {!(_typeOf in GVAR(initializedStaticTypes))}) then {

private _ammoActionPath = [];
private _magazineLocation = getText (_configOf >> QUOTE(ADDON) >> "magazineLocation");
private _condition = { //IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _condition = {
// If magazine handling is enabled or weapon assembly/disassembly is enabled we enable ammo handling
if ((GVAR(ammoHandling) == 0) && {!([false, true, true, GVAR(defaultAssemblyMode)] select (_target getVariable [QGVAR(assemblyMode), 3]))}) exitWith { false };
[_player, _target, ["isNotSwimming", "isNotSitting"]] call EFUNC(common,canInteractWith)
Expand Down
1 change: 0 additions & 1 deletion addons/csw/functions/fnc_reload_getLoadableMagazines.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ private _return = [];
{
private _weapon = _x;
{
//IGNORE_PRIVATE_WARNING ["_x", "_y"];
private _carryMag = _x;
private _magSource = _y;
private _carryGroup = _magGroupsConfig >> _carryMag;
Expand Down
1 change: 1 addition & 0 deletions addons/dagr/functions/fnc_menuInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ GVAR(menuRun) = true;
GVAR(digit8) = floor (GVAR(wp3) - GVAR(digit7) * 10 - GVAR(digit6) * 100 - GVAR(digit5) * 1000 - GVAR(digit4) * 10000 - GVAR(digit3) * 100000 - GVAR(digit2) * 1000000 - GVAR(digit1) * 10000000);
};
case 4: {
//IGNORE_PRIVATE_WARNING ["ace_dagr_wp4"];
GVAR(digit1) = floor (GVAR(wp4) / 10000000);
GVAR(digit2) = floor (GVAR(wp4) / 1000000 - GVAR(digit1) *10);
GVAR(digit3) = floor (GVAR(wp4) / 100000 - GVAR(digit2) * 10 - GVAR(digit1) * 100);
Expand Down
1 change: 0 additions & 1 deletion addons/dogtags/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ if (hasInterface) then {
if !(GETEGVAR(medical,enabled,false)) exitWith {};

if (hasInterface) then {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _checkTagAction = [
"ACE_CheckDogtag",
format ["%1: %2", LLSTRING(itemName), LLSTRING(checkDogtag)],
Expand Down
1 change: 0 additions & 1 deletion addons/dogtags/functions/fnc_addDogtagActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
params ["_player"];

private _fnc_getActions = {
//IGNORE_PRIVATE_WARNING ["_player"];
private _actions = [];
private _cfgWeapons = configFile >> "CfgWeapons";

Expand Down
1 change: 0 additions & 1 deletion addons/dragging/functions/fnc_setCarryable.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ GVAR(initializedClasses_carry) = _initializedClasses;

private _icon = [QPATHTOF(UI\icons\box_carry.paa), QPATHTOF(UI\icons\person_carry.paa)] select (_object isKindOf "CAManBase");

//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _carryAction = [
QGVAR(carry),
LLSTRING(Carry),
Expand Down
1 change: 0 additions & 1 deletion addons/dragging/functions/fnc_setDraggable.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ GVAR(initializedClasses) = _initializedClasses;

private _icon = [QPATHTOF(UI\icons\box_drag.paa), QPATHTOF(UI\icons\person_drag.paa)] select (_object isKindOf "CAManBase");

//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _dragAction = [
QGVAR(drag),
LLSTRING(Drag),
Expand Down
1 change: 0 additions & 1 deletion addons/explosives/functions/fnc_addDetonateActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ if (_detonator != "ACE_DeadManSwitch") then {
format [localize LSTRING(connectInventoryExplosiveToDeadman), _name],
_picture,
{
//IGNORE_PRIVATE_WARNING ["_player"];
params ["_player", "", "_mag"];
TRACE_2("set new",_player,_mag);
_player setVariable [QGVAR(deadmanInvExplosive), _mag, true];
Expand Down
1 change: 0 additions & 1 deletion addons/explosives/functions/fnc_getPlacedExplosives.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*
* Public: Yes
*/
//IGNORE_PRIVATE_WARNING ["_allExplosives", "_deadmanExplosives"];

params ["_unit"];
TRACE_1("params",_unit);
Expand Down
1 change: 0 additions & 1 deletion addons/explosives/functions/fnc_hasPlacedExplosives.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
*
* Public: Yes
*/
//IGNORE_PRIVATE_WARNING ["getPlacedExplosives"];

(count (_this call FUNC(getPlacedExplosives)) > 0)
1 change: 0 additions & 1 deletion addons/field_rations/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ if !(hasInterface) exitWith {};
[false, false, false, false, true]
] call EFUNC(interact_menu,createAction);

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
private _subActions = [
[
QGVAR(checkWater),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
params ["_player"];

private _fnc_getActions = {
//IGNORE_PRIVATE_WARNING ["_player"];
TRACE_1("Creating consumable item actions",_player);

private _actions = [];
Expand Down
1 change: 0 additions & 1 deletion addons/finger/functions/fnc_perFrameEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ if ((ACE_player != vehicle ACE_player) && {!((vehicle ACE_player) isKindOf "Stat
private _iconBaseSize = GVAR(sizeCoef) * BASE_SIZE * 0.10713 * (call EFUNC(common,getZoom));

{
//IGNORE_PRIVATE_WARNING ["_x", "_y"];
_y params ["_lastTime", "_pos", "_name", "_sourceUnit"];
private _timeLeftToShow = _lastTime + FP_TIMEOUT - diag_tickTime;
if (_timeLeftToShow <= 0) then {
Expand Down
1 change: 0 additions & 1 deletion addons/fortify/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ GVAR(objectRotationZ) = 0;
private _text = [format ["Remove Object +$%1", _cost], "Remove Object"] select (_budget == -1);

// Remove object action
//IGNORE_PRIVATE_WARNING ["_player"];
private _removeAction = [
QGVAR(removeObject),
_text,
Expand Down
3 changes: 0 additions & 3 deletions addons/interact_menu/functions/fnc_createAction.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
* Public: Yes
*/

//IGNORE_PRIVATE_WARNING ["_actionName", "_displayName", "_icon", "_statement", "_condition", "_insertChildren"];
//IGNORE_PRIVATE_WARNING ["_customParams", "_position", "_distance", "_params", "_modifierFunction"];

if (!hasInterface) exitWith { [] };
params [
"_actionName",
Expand Down
1 change: 0 additions & 1 deletion addons/interact_menu/functions/fnc_isSubPath.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ private _isSubPath = true;

if (count _shortPath > count _longPath) exitWith {false};

//IGNORE_PRIVATE_WARNING ["_i"];
for [{private _i = 0},{_i < count _shortPath},{_i = _i + 1}] do {
if ((_longPath select _i) isNotEqualTo (_shortPath select _i)) exitWith {
_isSubPath = false;
Expand Down
1 change: 0 additions & 1 deletion addons/interaction/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ GVAR(isOpeningDoor) = false;
} forEach ["loadout", "weapon"];

// add "Take _weapon_" action to dropped weapons
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
private _action = [
// action display name will be overwritten in modifier function
QGVAR(takeWeapon), "take", "\A3\ui_f\data\igui\cfg\actions\take_ca.paa",
Expand Down
1 change: 0 additions & 1 deletion addons/interaction/functions/fnc_addPassengersActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ private _icon = "";
_icon = QPATHTOEF(captives,UI\handcuff_ca.paa);
};

//IGNORE_PRIVATE_WARNING ["_target"];
_actions pushBack [
[
str _unit,
Expand Down
1 change: 0 additions & 1 deletion addons/interaction/functions/fnc_addSquadChildren.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ private _fnc_color = {

private _units = (units group _player) - [_player];

//IGNORE_PRIVATE_WARNING ["_target"];
private _subActions = [];
_subActions pushBack (["drop", localize "str_a3_endgame_notifications_title_drop", "\a3\ui_f\data\igui\cfg\actions\ico_off_ca.paa",
{[_target] joinSilent grpNull}, {true}] call EFUNC(interact_menu,createAction));
Expand Down
2 changes: 0 additions & 2 deletions addons/laser/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ if (hasInterface) then {
_unit setVariable [QGVAR(laserSpotTrackerOn), false];

private _condition = {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
(_player == driver _target)
&& {(_target getVariable [QGVAR(laserSpotTrackerOn), false])}
&& {[_player, _target, []] call EFUNC(common,canInteractWith)}
Expand All @@ -78,7 +77,6 @@ if (hasInterface) then {
[_unit, 1, ["ACE_SelfActions"], _actionOff] call EFUNC(interact_menu,addActionToObject);

private _condition = {
//IGNORE_PRIVATE_WARNING ["_target", "_player"];
(_player == driver _target)
&& {!(_target getVariable [QGVAR(laserSpotTrackerOn), false])}
&& {[_player, _target, []] call EFUNC(common,canInteractWith)}
Expand Down
1 change: 0 additions & 1 deletion addons/laser/functions/fnc_dev_drawVisibleLaserTargets.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ private _testSeekerDir = vectorDirVisual _seekerVehicle;

// Draw all lasers
{
//IGNORE_PRIVATE_WARNING ["_x", "_y];
// TRACE_2("",_x,_y);
_y params ["_obj", "_owner", "_laserMethod", "_waveLength", "_laserCode", "_beamSpread"];

Expand Down
1 change: 0 additions & 1 deletion addons/laser/functions/fnc_seekerFindLaserSpot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ if (_spots isNotEqualTo []) then {
private _maxOwnerCount = -1;

{
//IGNORE_PRIVATE_WARNING ["_x", "_y"];
_y params ["_count", "_owner"];
if (_count > _maxOwnerCount) then {
_maxOwnerCount = _count;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ _arrayOfAmmoCounts = +_arrayOfAmmoCounts;
_arrayOfAmmoCounts sort true;

private _fnc_newMag = {
//IGNORE_PRIVATE_WARNING ["_time", "_events"];
_time = _time + GVAR(TimePerMagazine);
_events pushBack [_time, false, +_arrayOfAmmoCounts];
};
Expand Down
1 change: 0 additions & 1 deletion addons/marker_flags/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ private _weapons = (call (uiNamespace getVariable [QGVAR(flagItems), {[]}])) app
private _icon = getText (_x >> QGVAR(icon));
GVAR(flagCache) set [_name, [_vehicleClass, _displayName, _icon]];

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
private _action = [
QGVAR(pickup),
LLSTRING(ActionPickUp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

if (!hasInterface) exitWith {};

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
private _action = [
QGVAR(heal),
localize "STR_A3_Task180_name",
Expand Down
1 change: 0 additions & 1 deletion addons/medical_treatment/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ if (["ace_trenches"] call EFUNC(common,isModLoaded)) then {
LLSTRING(checkHeadstoneName),
QPATHTOEF(medical_gui,ui\grave.paa),
{
//IGNORE_PRIVATE_WARNING ["_target"];
[
[_target getVariable QGVAR(headstoneData)],
true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define CHECK_OBJECTS(var) ((var) findIf {typeOf _x in GVAR(facilityClasses) || {_x getVariable [QEGVAR(medical,isMedicalFacility), false]}} != -1)

params ["_unit"];
//IGNORE_PRIVATE_WARNING ["_unit"];

private _fnc_check = {
private _position = _unit modelToWorldVisual [0, 0, eyePos _unit select 2];
Expand Down
1 change: 0 additions & 1 deletion addons/nametags/functions/fnc_onDraw3d.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ if (_enabledTagsCursor) then {
if (_enabledTagsNearby) then {
// Find valid targets and cache them
private _targets = [[], {
//IGNORE_PRIVATE_WARNING ["_camPosAGL", "_maxDistance"];
private _nearMen = _camPosAGL nearObjects ["CAManBase", _maxDistance + 7];
_nearMen = _nearMen select {
_x != ACE_player &&
Expand Down
1 change: 0 additions & 1 deletion addons/overheating/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ if (hasInterface) then {
LLSTRING(CoolWeaponWithWaterSource),
QPATHTOEF(field_rations,ui\icon_water_tap.paa),
{
//IGNORE_PRIVATE_WARNING ["_player", "_target"];
private _waterSource = _target getVariable [QEGVAR(field_rations,waterSource), objNull];
[_player, _waterSource] call FUNC(coolWeaponWithWaterSource);
},
Expand Down
1 change: 0 additions & 1 deletion addons/overheating/functions/fnc_getConsumableChildren.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ params ["_unit"];

private _fnc_getActions = {
TRACE_1("Creating overheating consumable item actions",_unit);
//IGNORE_PRIVATE_WARNING ["_unit"];

private _actions = [];
private _cfgWeapons = configFile >> "CfgWeapons";
Expand Down
1 change: 0 additions & 1 deletion addons/pylons/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

GVAR(aircraftWithPylons) = [];

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
GVAR(loadoutAction) = [ // create action
QGVAR(loadoutAction),
localize LSTRING(ConfigurePylons),
Expand Down
1 change: 0 additions & 1 deletion addons/quickmount/functions/fnc_addFreeSeatsActions.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
)

#define MOVE_IN_CODE(command) (_this select 0) command (_this select 1)
//IGNORE_PRIVATE_WARNING ["_player", "_target"];

private _fnc_move = {
(_this select 2) params ["_moveInCode", "_moveInParams", "_currentTurret", "_moveBackCode", "_moveBackParams"];
Expand Down
1 change: 0 additions & 1 deletion addons/refuel/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@

["MouseButtonDown", LINKFUNC(onMouseButtonDown)] call CBA_fnc_addDisplayHandler;

//IGNORE_PRIVATE_WARNING ["_player", "_target"];
GVAR(mainAction) = [
QGVAR(Refuel),
localize LSTRING(Refuel),
Expand Down
2 changes: 0 additions & 2 deletions addons/refuel/functions/fnc_makeJerryCan.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ if (isServer) then {
[QGVAR(jerryCanInitalized), [_target]] call CBA_fnc_globalevent;
};

//IGNORE_PRIVATE_WARNING ["_player", "_target"];

// Main Action
private _action = [QGVAR(Refuel),
localize LSTRING(Refuel),
Expand Down
1 change: 0 additions & 1 deletion addons/repair/functions/fnc_isInRepairFacility.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ private _checkObject = {
};

private _fnc_check = {
//IGNORE_PRIVATE_WARNING ["_unit", "_checkObject", "_x"];
private _position = _unit modelToWorldVisual [0, 0, eyePos _unit select 2];
CHECK_OBJECTS(lineIntersectsWith [ARR_3(_position,_position vectorAdd [ARR_3(0,0,10)],_unit)])
|| {CHECK_OBJECTS(_unit nearObjects 7.5)}
Expand Down
Loading

0 comments on commit 631db9d

Please sign in to comment.