mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Add PlotPole ESP
Reference #583 and #495 Time to run in editor on Tanoa: 84.5ms
This commit is contained in:
parent
e16ee710ae
commit
209d635add
@ -406,7 +406,7 @@ for "_i" from 1 to 3 do {
|
|||||||
};
|
};
|
||||||
if ("MAP-BASEBUILDING" in _case) then {
|
if ("MAP-BASEBUILDING" in _case) then {
|
||||||
_temp = _temp + "
|
_temp = _temp + "
|
||||||
,[' Base Building Marker (WIP)', [], {"+_skn_tg_map_basebuilding+" = !"+_skn_tg_map_basebuilding+"; ['Base Building MARKER',if ("+_skn_tg_map_basebuilding+") then [{2},{1}]] call "+_skn_adminLog_PVC+"}, '2', []]
|
,[' Base Building Marker', [], {"+_skn_tg_map_basebuilding+" = !"+_skn_tg_map_basebuilding+"; ['Base Building MARKER',if ("+_skn_tg_map_basebuilding+") then [{2},{1}]] call "+_skn_adminLog_PVC+"}, '2', []]
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -1321,7 +1321,15 @@ _skn_admincode = compileFinal ("
|
|||||||
}forEach agents;
|
}forEach agents;
|
||||||
};
|
};
|
||||||
if ("+_skn_tg_map_basebuilding+") then {
|
if ("+_skn_tg_map_basebuilding+") then {
|
||||||
|
_size = (1/ctrlMapScale _display) max 20;
|
||||||
|
{
|
||||||
|
if (_x isKindOf 'PlotPole_Epoch') then {
|
||||||
|
_display drawIcon [
|
||||||
|
getText (configFile >> 'CfgVehicles' >> 'PlotPole_Epoch' >> 'Icon'), _x call _getDmgColor, visiblePosition _x, _size, _size, getDir _x,
|
||||||
|
getText (configFile >> 'CfgVehicles' >> 'PlotPole_Epoch' >> 'displayName')
|
||||||
|
];
|
||||||
|
};
|
||||||
|
} forEach ((getpos player) nearObjects ['NonStrategic', (worldSize/2)]);
|
||||||
};
|
};
|
||||||
if ("+_skn_tg_old_espMap+") then {
|
if ("+_skn_tg_old_espMap+") then {
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user