From 2e2a3210068274131ce44ff3942079f3e53f1488 Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Tue, 20 May 2025 21:40:27 -0300 Subject: [PATCH] Added Mark Entity curator module to add entities in game --- addons/server/Cfgvehicles.hpp | 52 +++++++++++++++++++++++++++++++++++ addons/server/config.cpp | 3 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/addons/server/Cfgvehicles.hpp b/addons/server/Cfgvehicles.hpp index ad868fc..b6f516e 100644 --- a/addons/server/Cfgvehicles.hpp +++ b/addons/server/Cfgvehicles.hpp @@ -90,6 +90,7 @@ class CfgVehicles { scope = 1; scopeCurator = 2; function = ""; + displayName = "CoT Router (Zeus)"; curatorInfoType = "armatak_zeus_core_module_dialog"; class AttributesValues { @@ -125,4 +126,55 @@ class CfgVehicles { }; }; }; + + class GVAR(markEntity): GVAR(coreModuleCurator) { + scope = 1; + scopeCurator = 2; + displayname = "Mark Entity"; + isDisposable = 1; + curatorInfoType = "RscDisplayAttributeModuleNuke"; + curatorCanAttach = 1; + + author = "Valmo Trindade"; + category = QEGVAR(main,moduleCategory); + function = QFUNC(routerEntityAdd); + functionPriority = 1; + isGlobal = 1; + isTriggerActivated = 0; + + icon = "\a3\Modules_F_Curator\Data\iconRadio_ca.paa"; + + class AttributesValues { + size3[] = { 1, 1, -1 }; + isRectangle = 0; + }; + + class Attributes: AttributesBase { + class ModuleDescription: ModuleDescription {}; + }; + + class ModuleDescription: ModuleDescription { + description = "Select a unit to be marked to the TAK Server"; + sync[] = {"LocationArea_F"}; + + class LocationArea_F { + description[] = { + "This module will add a marker", + "to the TAK server" + }; + position = 1; + direction = 1; + optional = 1; + duplicate = 1; + synced[] = { "BluforUnit", "AnyBrain" }; + }; + class BluforUnit + { + description = "Short description"; + displayName = "Any BLUFOR unit"; + icon = "iconMan"; + side = 1; + }; + }; + }; }; \ No newline at end of file diff --git a/addons/server/config.cpp b/addons/server/config.cpp index 20f9d8e..fd83f61 100644 --- a/addons/server/config.cpp +++ b/addons/server/config.cpp @@ -5,7 +5,8 @@ class CfgPatches { name = COMPONENT_NAME; units[] = { QGVAR(coreModule), - QGVAR(coreModuleCurator) + QGVAR(coreModuleCurator), + QGVAR(markEntity) }; weapons[] = {}; requiredAddons[] = {