mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Name Tags - Add ability to set custom rank icon (#8174)
This commit is contained in:
parent
dd454bdfbe
commit
5aa6e564e0
@ -71,6 +71,7 @@ Dharma Bellamkonda <dharma.bellamkonda@gmail.com>
|
|||||||
Dimaslg <dimaslg@telecable.es>
|
Dimaslg <dimaslg@telecable.es>
|
||||||
diwako
|
diwako
|
||||||
dixon13 <dixonbegay@gmail.com>
|
dixon13 <dixonbegay@gmail.com>
|
||||||
|
Drift_91
|
||||||
Drill <drill87@gmail.com>
|
Drill <drill87@gmail.com>
|
||||||
Dudakov aka [OMCB]Kaban <dudakov.s@gmail.com>
|
Dudakov aka [OMCB]Kaban <dudakov.s@gmail.com>
|
||||||
Drofseh <drofseh@gmail.com>
|
Drofseh <drofseh@gmail.com>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
/*
|
/*
|
||||||
* Author: commy2, esteldunedain
|
* Author: commy2, esteldunedain, Drift_91
|
||||||
* Draw the nametag and rank icon.
|
* Draw the nametag and rank icon.
|
||||||
*
|
*
|
||||||
* Arguments:
|
* Arguments:
|
||||||
@ -33,7 +33,9 @@ _fnc_parameters = {
|
|||||||
if (_drawSoundwave) then {
|
if (_drawSoundwave) then {
|
||||||
_icon = format [QPATHTOF(UI\soundwave%1.paa), floor random 10];
|
_icon = format [QPATHTOF(UI\soundwave%1.paa), floor random 10];
|
||||||
} else {
|
} else {
|
||||||
if (_drawRank && {rank _target != ""}) then {
|
if (_drawRank) then {
|
||||||
|
_icon = _target getVariable "ace_nametags_rankIcon";
|
||||||
|
if (isNil "_icon" && {rank _target != ""}) then {
|
||||||
_icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]);
|
_icon = GVAR(factionRanks) getVariable (_target getVariable [QGVAR(faction), faction _target]);
|
||||||
if (!isNil "_icon") then {
|
if (!isNil "_icon") then {
|
||||||
_icon = _icon param [ALL_RANKS find rank _target, ""];
|
_icon = _icon param [ALL_RANKS find rank _target, ""];
|
||||||
@ -42,6 +44,7 @@ _fnc_parameters = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
//Set Text:
|
//Set Text:
|
||||||
private _name = if (_drawName) then {
|
private _name = if (_drawName) then {
|
||||||
|
Loading…
Reference in New Issue
Block a user