mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
admin panel update
single out LandVehicle, Air, Ship and Tanks only for vehicle markers. much better performance toggling vehicle markers on
This commit is contained in:
parent
ca2a7acfa3
commit
834d8bcb40
@ -1326,11 +1326,13 @@ _skn_admincode = compileFinal ("
|
|||||||
if ("+_skn_tg_map_vehicle+") then {
|
if ("+_skn_tg_map_vehicle+") then {
|
||||||
_size = (1/ctrlMapScale _display) max 20;
|
_size = (1/ctrlMapScale _display) max 20;
|
||||||
{
|
{
|
||||||
if (alive _x) then {
|
if((_x isKindOf 'LandVehicle') || (_x isKindOf 'Ship') || (_x isKindOf 'Air') || (_x isKindOf 'Tank'))then{
|
||||||
_display drawIcon [
|
if (alive _x) then {
|
||||||
getText (configFile >> 'CfgVehicles' >> typeOf _x >> 'Icon'), _x call _getDmgColor, visiblePosition _x, _size, _size, getDir _x,
|
_display drawIcon [
|
||||||
getText (configFile >> 'CfgVehicles' >> typeOf _x >> 'displayName')
|
getText (configFile >> 'CfgVehicles' >> typeOf _x >> 'Icon'), _x call _getDmgColor, visiblePosition _x, _size, _size, getDir _x,
|
||||||
];
|
getText (configFile >> 'CfgVehicles' >> typeOf _x >> 'displayName')
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}forEach vehicles;
|
}forEach vehicles;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user