Add PlotPole ESP

Reference #583 and #495

Time to run in editor on Tanoa: 84.5ms
This commit is contained in:
Darren 2017-06-16 18:09:25 -04:00 committed by GitHub
parent e16ee710ae
commit 209d635add

View File

@ -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 {
{ {