mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added Show Player Names option to Blue Force Tracking Module
This commit is contained in:
parent
804456c722
commit
00f06f81d1
@ -17,6 +17,12 @@ class ACE_Settings {
|
||||
displayName = CSTRING(BFT_HideAiGroups_DisplayName);
|
||||
description = CSTRING(BFT_HideAiGroups_Description);
|
||||
};
|
||||
class GVAR(BFT_ShowPlayerNames) {
|
||||
value = 0;
|
||||
typeName = "BOOL";
|
||||
displayName = CSTRING(BFT_ShowPlayerNames_DisplayName);
|
||||
description = CSTRING(BFT_ShowPlayerNames_Description);
|
||||
};
|
||||
class GVAR(mapIllumination) {
|
||||
value = 1;
|
||||
typeName = "BOOL";
|
||||
|
@ -104,6 +104,12 @@ class CfgVehicles {
|
||||
typeName = "BOOL";
|
||||
defaultValue = 0;
|
||||
};
|
||||
class ShowPlayerNames {
|
||||
displayName = CSTRING(BFT_ShowPlayerNames_DisplayName);
|
||||
description = CSTRING(BFT_ShowPlayerNames_Description);
|
||||
typeName = "BOOL";
|
||||
defaultValue = 0;
|
||||
};
|
||||
};
|
||||
class ModuleDescription {
|
||||
description = CSTRING(BFT_Module_Description);
|
||||
|
@ -18,5 +18,6 @@ params ["_logic"];
|
||||
[_logic, QGVAR(BFT_Enabled), "Enabled"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(BFT_Interval), "Interval"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(BFT_HideAiGroups), "HideAiGroups"] call EFUNC(common,readSettingFromModule);
|
||||
[_logic, QGVAR(BFT_ShowPlayerNames), "ShowPlayerNames"] call EFUNC(common,readSettingFromModule);
|
||||
|
||||
ACE_LOGINFO_3("Blue Force Tracking Module Initialized:", GVAR(BFT_Enabled), GVAR(BFT_Interval), GVAR(BFT_HideAiGroups));
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "script_component.hpp"
|
||||
// BEGIN_COUNTER(blueForceTrackingUpdate);
|
||||
|
||||
private ["_groupsToDrawMarkers", "_playerSide", "_anyPlayers", "_colour", "_marker"];
|
||||
private ["_groupsToDrawMarkers", "_playersToDrawMarkers", "_playerSide", "_anyPlayers", "_colour", "_marker"];
|
||||
|
||||
// Delete last set of markers (always)
|
||||
{
|
||||
@ -17,6 +17,7 @@ if (GVAR(BFT_Enabled) and {(!isNil "ACE_player") and {alive ACE_player}}) then {
|
||||
_playerSide = call EFUNC(common,playerSide);
|
||||
|
||||
_groupsToDrawMarkers = allGroups select {side _x == _playerSide};
|
||||
_playersToDrawMarkers = allPlayers select {side _x == _playerSide};
|
||||
|
||||
if (GVAR(BFT_HideAiGroups)) then {
|
||||
_groupsToDrawMarkers = _groupsToDrawMarkers select {
|
||||
@ -26,6 +27,26 @@ if (GVAR(BFT_Enabled) and {(!isNil "ACE_player") and {alive ACE_player}}) then {
|
||||
};
|
||||
};
|
||||
|
||||
if (GVAR(BFT_ShowPlayerNames)) then {
|
||||
{
|
||||
private _markerType = [_x] call EFUNC(common,getMarkerType);
|
||||
private _colour = format ["Color%1", side _x];
|
||||
|
||||
private _marker = createMarkerLocal [format ["ACE_BFT_%1", _forEachIndex], [(getPos leader _x) select 0, (getPos leader _x) select 1]];
|
||||
_marker setMarkerTypeLocal _markerType;
|
||||
_marker setMarkerColorLocal _colour;
|
||||
_marker setMarkerTextLocal (name _x);
|
||||
|
||||
GVAR(BFT_markers) pushBack _marker;
|
||||
} forEach _playersToDrawMarkers;
|
||||
|
||||
_groupsToDrawMarkers = _groupsToDrawMarkers select {
|
||||
{
|
||||
!(_x call EFUNC(common,isPlayer));
|
||||
} count units _x > 0;
|
||||
};
|
||||
};
|
||||
|
||||
{
|
||||
private _markerType = [_x] call EFUNC(common,getMarkerType);
|
||||
private _colour = format ["Color%1", side _x];
|
||||
@ -33,7 +54,7 @@ if (GVAR(BFT_Enabled) and {(!isNil "ACE_player") and {alive ACE_player}}) then {
|
||||
private _marker = createMarkerLocal [format ["ACE_BFT_%1", _forEachIndex], [(getPos leader _x) select 0, (getPos leader _x) select 1]];
|
||||
_marker setMarkerTypeLocal _markerType;
|
||||
_marker setMarkerColorLocal _colour;
|
||||
_marker setMarkerTextLocal (groupID _x);
|
||||
_marker setMarkerTextLocal (groupId _x);
|
||||
|
||||
GVAR(BFT_markers) pushBack _marker;
|
||||
} forEach _groupsToDrawMarkers;
|
||||
|
@ -225,6 +225,30 @@
|
||||
<Russian>Скрыть маркеры групп, которые состоят полностью из ботов?</Russian>
|
||||
<Italian>Nascondi markers per gruppi di sole IA?</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Map_BFT_ShowPlayerNames_DisplayName">
|
||||
<English>Show player names?</English>
|
||||
<Polish>Pokaż imiona graczy?</Polish>
|
||||
<Spanish>Mostrar nombres de los jugadores?</Spanish>
|
||||
<German>Zeigen Sie die Namen der Spieler?</German>
|
||||
<Czech>Zobrazit jména hráčů?</Czech>
|
||||
<Portuguese>Mostrar os nomes dos jogadores?</Portuguese>
|
||||
<French>Afficher les noms des joueurs?</French>
|
||||
<Hungarian>Itt található az a játékos nevét?</Hungarian>
|
||||
<Russian>Показать имена игроков?</Russian>
|
||||
<Italian>Mostra i nomi dei giocatori?</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Map_BFT_ShowPlayerNames_Description">
|
||||
<English>Show individual player names?</English>
|
||||
<Polish>Pokaż poszczególne imiona graczy?</Polish>
|
||||
<Spanish>Mostrar nombres de los jugadores individuales?</Spanish>
|
||||
<German>Zeigen einzelnen Spielernamen?</German>
|
||||
<Czech>Zobrazit názvy jednotlivých hráčů?</Czech>
|
||||
<Portuguese>Mostrar nomes individuais dos jogadores?</Portuguese>
|
||||
<French>Afficher les noms des joueurs individuels?</French>
|
||||
<Hungarian>Itt található az adott játékos neveket?</Hungarian>
|
||||
<Russian>Показать отдельные имена игроков?</Russian>
|
||||
<Italian>Mostra i nomi dei giocatori singoli?</Italian>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Map_BFT_Module_Description">
|
||||
<English>This module allows the tracking of allied units with BFT map markers.</English>
|
||||
<Polish>Pozwala śledzić na mapie pozycje sojuszniczych jednostek za pomocą markerów BFT.</Polish>
|
||||
|
Loading…
Reference in New Issue
Block a user