mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 15:23:28 +00:00
fixed CfgPatches modules
This commit is contained in:
@@ -3,10 +3,7 @@
|
|||||||
class CfgPatches {
|
class CfgPatches {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
name = COMPONENT_NAME;
|
name = COMPONENT_NAME;
|
||||||
units[] = {
|
units[] = {};
|
||||||
"armatak_module_core",
|
|
||||||
"armatak_module_callsign"
|
|
||||||
};
|
|
||||||
weapons[] = {};
|
weapons[] = {};
|
||||||
requiredAddons[] = {
|
requiredAddons[] = {
|
||||||
"cba_main",
|
"cba_main",
|
||||||
|
|||||||
@@ -3,7 +3,9 @@
|
|||||||
class CfgPatches {
|
class CfgPatches {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
name = COMPONENT_NAME;
|
name = COMPONENT_NAME;
|
||||||
units[] = {};
|
units[] = {
|
||||||
|
QGVAR(coreModule)
|
||||||
|
};
|
||||||
weapons[] = {};
|
weapons[] = {};
|
||||||
requiredAddons[] = {
|
requiredAddons[] = {
|
||||||
"cba_main",
|
"cba_main",
|
||||||
@@ -38,20 +40,21 @@ class CfgVehicles {
|
|||||||
class AnyBrain;
|
class AnyBrain;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
class armatak_module_core: Module_F {
|
class GVAR(coreModule): Module_F {
|
||||||
scope = 2;
|
scope = 2;
|
||||||
|
scopeCurator = 2;
|
||||||
displayname = "ARMATAK CoT Router";
|
displayname = "ARMATAK CoT Router";
|
||||||
icon = "\a3\Modules_F_Curator\Data\iconRadio_ca.paa";
|
icon = "\a3\Modules_F_Curator\Data\iconRadio_ca.paa";
|
||||||
category = "armatak_module_category";
|
category = QEGVAR(main,moduleCategory);
|
||||||
function = "armatak_fnc_init";
|
function = QFUNC(3denCoreModuleConfig);
|
||||||
functionPriority = 1;
|
functionPriority = 1;
|
||||||
isGlobal = 0;
|
isGlobal = 0;
|
||||||
isTriggerActivated = 0;
|
isTriggerActivated = 1;
|
||||||
isDisposable = 1;
|
isDisposable = 1;
|
||||||
is3den = 0;
|
is3den = 0;
|
||||||
curatorCanAttach = 0;
|
curatorCanAttach = 0;
|
||||||
curatorInfoType = "RscDisplayAttributeModuleNuke";
|
curatorInfoType = "armatak_zeus_core_module_dialog";
|
||||||
|
|
||||||
canSetArea = 0;
|
canSetArea = 0;
|
||||||
canSetAreaShape = 0;
|
canSetAreaShape = 0;
|
||||||
@@ -63,15 +66,15 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Attributes: AttributesBase {
|
class Attributes: AttributesBase {
|
||||||
class armatak_module_tak_server_instance_address: Edit {
|
class GVAR(moduleInstanceAddress): Edit {
|
||||||
property = "armatak_module_tak_server_instance_address";
|
property = QGVAR(moduleInstanceAddress);
|
||||||
displayname = "TAK Server Address";
|
displayname = "TAK Server Address";
|
||||||
tooltip = "TAK Server Instance Address";
|
tooltip = "TAK Server Instance Address";
|
||||||
typeName = "STRING";
|
typeName = "STRING";
|
||||||
defaultValue = "localhost";
|
defaultValue = "localhost";
|
||||||
};
|
};
|
||||||
class armatak_module_tak_server_instance_port: Edit {
|
class GVAR(moduleInstancePort): Edit {
|
||||||
property = "armatak_module_tak_server_instance_port";
|
property = QGVAR(moduleInstancePort);
|
||||||
displayname = "TAK Server TCP Port";
|
displayname = "TAK Server TCP Port";
|
||||||
tooltip = "TAK Server instance Port for TCP connection";
|
tooltip = "TAK Server instance Port for TCP connection";
|
||||||
typeName = "NUMBER";
|
typeName = "NUMBER";
|
||||||
@@ -86,87 +89,8 @@ class CfgVehicles {
|
|||||||
|
|
||||||
class LocationArea_F {
|
class LocationArea_F {
|
||||||
description[] = {
|
description[] = {
|
||||||
"First line",
|
"This module will synchronize all",
|
||||||
"Second line"
|
"players to the TAK server instance"
|
||||||
};
|
|
||||||
position = 1;
|
|
||||||
direction = 1;
|
|
||||||
optional = 1;
|
|
||||||
duplicate = 1;
|
|
||||||
synced[] = { "BluforUnit", "AnyBrain" };
|
|
||||||
};
|
|
||||||
class BluforUnit
|
|
||||||
{
|
|
||||||
description = "Short description";
|
|
||||||
displayName = "Any BLUFOR unit";
|
|
||||||
icon = "iconMan";
|
|
||||||
side = 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
class armatak_module_video_stream_core: armatak_module_core {
|
|
||||||
scope = 2;
|
|
||||||
displayname = "ARMATAK MediaMTX Video Feed Parser";
|
|
||||||
icon = "\a3\Modules_F_Curator\Data\iconcuratorsetcamera_ca.paa";
|
|
||||||
category = "armatak_module_category";
|
|
||||||
function = "armatak_fnc_video_init";
|
|
||||||
functionPriority = 1;
|
|
||||||
isGlobal = 0;
|
|
||||||
isTriggerActivated = 0;
|
|
||||||
isDisposable = 1;
|
|
||||||
is3den = 0;
|
|
||||||
curatorCanAttach = 0;
|
|
||||||
curatorInfoType = "RscDisplayAttributeModuleNuke";
|
|
||||||
|
|
||||||
canSetArea = 0;
|
|
||||||
canSetAreaShape = 0;
|
|
||||||
canSetAreaHeight = 0;
|
|
||||||
|
|
||||||
class AttributesValues {
|
|
||||||
size3[] = { 1, 1, -1 };
|
|
||||||
isRectangle = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
class Attributes: AttributesBase {
|
|
||||||
class armatak_module_mediamtx_video_stream_instance_address: Edit {
|
|
||||||
property = "armatak_module_mediamtx_video_stream_instance_address";
|
|
||||||
displayname = "MediaMTX Provider Address";
|
|
||||||
tooltip = "MediaMTX Provider Instance Address";
|
|
||||||
typeName = "STRING";
|
|
||||||
defaultValue = "localhost";
|
|
||||||
};
|
|
||||||
class armatak_module_mediamtx_video_stream_instance_port: Edit {
|
|
||||||
property = "armatak_module_mediamtx_video_stream_instance_port";
|
|
||||||
displayname = "MediaMTX Provider Port";
|
|
||||||
tooltip = "MediaMTX Provider Port for handling video streams";
|
|
||||||
typeName = "STRING";
|
|
||||||
defaultValue = "8554";
|
|
||||||
};
|
|
||||||
class armatak_module_mediamtx_video_stream_instance_auth_user: Edit {
|
|
||||||
property = "armatak_module_mediamtx_video_stream_instance_auth_user";
|
|
||||||
displayname = "MediaMTX Provider Username";
|
|
||||||
tooltip = "MediaMTX Provider Instance Username";
|
|
||||||
typeName = "STRING";
|
|
||||||
defaultValue = "administrator";
|
|
||||||
};
|
|
||||||
class armatak_module_mediamtx_video_stream_instance_auth_pass: Edit {
|
|
||||||
property = "armatak_module_mediamtx_video_stream_instance_auth_pass";
|
|
||||||
displayname = "MediaMTX Provider Password";
|
|
||||||
tooltip = "MediaMTX Provider Instance Password";
|
|
||||||
typeName = "STRING";
|
|
||||||
defaultValue = "password";
|
|
||||||
};
|
|
||||||
class ModuleDescription: ModuleDescription {};
|
|
||||||
};
|
|
||||||
|
|
||||||
class ModuleDescription: ModuleDescription {
|
|
||||||
description = "Generate the initial ARMATAK configuration, syncronizing all players to the TAK server instance";
|
|
||||||
sync[] = {"LocationArea_F"};
|
|
||||||
|
|
||||||
class LocationArea_F {
|
|
||||||
description[] = {
|
|
||||||
"First line",
|
|
||||||
"Second line"
|
|
||||||
};
|
};
|
||||||
position = 1;
|
position = 1;
|
||||||
direction = 1;
|
direction = 1;
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ class CfgPatches {
|
|||||||
class ADDON {
|
class ADDON {
|
||||||
name = COMPONENT_NAME;
|
name = COMPONENT_NAME;
|
||||||
units[] = {
|
units[] = {
|
||||||
"armatak_module_core",
|
QGVAR(videoModule)
|
||||||
"armatak_module_callsign"
|
|
||||||
};
|
};
|
||||||
weapons[] = {};
|
weapons[] = {};
|
||||||
requiredAddons[] = {
|
requiredAddons[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user