From 35742847a7cb2b2281c96e32b742afb3f89b2c15 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Tue, 17 Jun 2025 03:57:13 -0300 Subject: [PATCH] linted extract group color function and parsed colors gvar --- .../extract_data/fn_extract_group_color.sqf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/addons/main/functions/extract_data/fn_extract_group_color.sqf b/addons/main/functions/extract_data/fn_extract_group_color.sqf index b2db502..38aff2d 100644 --- a/addons/main/functions/extract_data/fn_extract_group_color.sqf +++ b/addons/main/functions/extract_data/fn_extract_group_color.sqf @@ -1,9 +1,11 @@ +#include "..\..\script_component.hpp" + params["_group"]; -_group_name = _group getVariable "_atak_group_name"; +_group_name = _group getVariable QGVAR(group_name); if (isNil "_group_name") then { - _group_colors = missionNamespace getVariable "armatak_group_colors"; + _group_colors = missionNamespace getVariable QGVAR(group_colors); _group_name = selectRandom _group_colors; if (count _group_colors > 0) then { @@ -14,11 +16,11 @@ if (isNil "_group_name") then { _group_colors deleteAt _randomIndex; _group_name = _selectedColor; - _group setVariable ["_atak_group_name", _group_name]; - missionNamespace setVariable ["armatak_group_colors", _group_colors] + _group setVariable [QGVAR(group_name), _group_name]; + missionNamespace setVariable [QGVAR(group_colors), _group_colors] } else { _group_name = "Red"; - _group setVariable ["_atak_group_name", _group_name]; + _group setVariable [QGVAR(group_name), _group_name]; }; };