Skip to content

Commit

Permalink
Increase Proiority of Medic, Engineer and EOD for Icons (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokoho48 authored Apr 10, 2021
1 parent 935d2b1 commit 763ba23
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions addons/radar/functions/fnc_getIcon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ if ((leader _unit) isEqualTo _unit) exitWith {
_namespace getVariable ["sql", DUI_SQL];
};

// AR
if (getText(configFile >> "CfgWeapons" >> (primaryWeapon (_unit)) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_mg_ca.paa") exitWith {
_namespace getVariable ["auto_rifleman", DUI_AUTO_RIFLEMAN];
};

// AT
if (getText(configFile >> "CfgWeapons" >> (secondaryWeapon (_unit)) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_at_ca.paa") exitWith {
_namespace getVariable ["at_gunner", DUI_AT_GUNNER];
};

// Medic
if (GVAR(ace_medic) && {_unit getVariable ["ace_medical_medicClass", [0, 1] select (_unit getUnitTrait "medic")] > 0}) exitWith {
_namespace getVariable ["medic", DUI_MEDIC];
Expand All @@ -83,4 +73,14 @@ if ((_unit getVariable ["ACE_isEOD", _unit getUnitTrait "explosiveSpecialist"])
_namespace getVariable ["explosive_specialist", DUI_EXPLOSIVE_SPECIALIST];
};

// AR
if (getText(configFile >> "CfgWeapons" >> (primaryWeapon (_unit)) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_mg_ca.paa") exitWith {
_namespace getVariable ["auto_rifleman", DUI_AUTO_RIFLEMAN];
};

// AT
if (getText(configFile >> "CfgWeapons" >> (secondaryWeapon (_unit)) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_at_ca.paa") exitWith {
_namespace getVariable ["at_gunner", DUI_AT_GUNNER];
};

_namespace getVariable ["rifleman", DUI_RIFLEMAN];

0 comments on commit 763ba23

Please sign in to comment.