ACE3/addons/compat_rhs_afrf3/XEH_postInit.sqf
johnb432 e181cffc83
RHS Compats - Remove nametags related functions being called if nametags isn't loaded (#10177)
Don't call nametags related functions if nametags isn't loaded
2024-08-10 12:58:43 -05:00

28 lines
823 B
Plaintext

#include "script_component.hpp"
if !(["ace_nametags"] call EFUNC(common,isModLoaded)) exitWith {};
private _russianRankIcons = [
QPATHTOEF(nametags,UI\icons_russia\private_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\corporal_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\sergeant_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\lieutenant_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\captain_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\major_gs.paa),
QPATHTOEF(nametags,UI\icons_russia\colonel_gs.paa)
];
{
[_x, _russianRankIcons] call EFUNC(nametags,setFactionRankIcons);
} forEach [
"rhs_faction_msv",
"rhs_faction_vdv",
"rhs_faction_vmf",
"rhs_faction_vv",
"rhs_faction_tv",
"rhs_faction_vpvo",
"rhs_faction_vvs",
"rhs_faction_vvs_c",
"rhs_faction_rva"
];