diff --git a/.hemtt/project.toml b/.hemtt/project.toml index 29a93c6..a78f2e6 100644 --- a/.hemtt/project.toml +++ b/.hemtt/project.toml @@ -24,3 +24,9 @@ extends = "default" workshop = [ "2975055854" # Mk13 Secondary ] + +[hemtt.launch.gxdrones] +extends = "default" +workshop = [ + "3460981677" # GX drones +] diff --git a/addons/compat_gxdrones/$PBOPREFIX$ b/addons/compat_gxdrones/$PBOPREFIX$ new file mode 100644 index 0000000..34be66b --- /dev/null +++ b/addons/compat_gxdrones/$PBOPREFIX$ @@ -0,0 +1 @@ +z\arc\addons\compat_gxdrones diff --git a/addons/compat_gxdrones/CfgVehicles.hpp b/addons/compat_gxdrones/CfgVehicles.hpp new file mode 100644 index 0000000..7b077d8 --- /dev/null +++ b/addons/compat_gxdrones/CfgVehicles.hpp @@ -0,0 +1,67 @@ +class CfgVehicles { + class Helicopter_Base_F; + class GX_BLACKHORNET_UAV_BASE: Helicopter_Base_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 100, 200, 300, 400, 600, 800, 1200, 1800 }; + AVAR(defaultPower) = 100; + AVAR(freq)[] = { 433, 915, 1200, 2400, 5800 }; + AVAR(defaultFreq) = 1200; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; + class GX_DRONE40_UAV_BASE: Helicopter_Base_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 100, 200, 300 }; + AVAR(defaultPower) = 100; + AVAR(freq)[] = { 2400, 5800 }; + AVAR(defaultFreq) = 2400; + AVAR(noBattery) = 1; + }; + class GX_MQ8B_UAV_BASE: Helicopter_Base_F { + AVAR(mode) = "SAT"; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; + + class Car_F; + class GX_HONEYBADGER_UGV_BASE: Car_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 100, 200, 300, 400, 600, 800, 1200, 1800 }; + AVAR(defaultPower) = 100; + AVAR(freq)[] = { 433, 915, 1200, 2400, 5800 }; + AVAR(defaultFreq) = 1200; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; + + class Plane_Base_F; + class GX_HUNTER_SP_UAV_BASE: Plane_Base_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 100, 200, 300, 400, 600, 800, 1200, 1800 }; + AVAR(defaultPower) = 100; + AVAR(freq)[] = { 433, 915, 1200, 2400, 5800 }; + AVAR(defaultFreq) = 1200; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; + class GX_RQ11B_UAV_BASE: Plane_Base_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 100, 200, 300, 400, 600, 800, 1200, 1800 }; + AVAR(defaultPower) = 100; + AVAR(freq)[] = { 433, 915, 1200, 2400, 5800 }; + AVAR(defaultFreq) = 1200; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; + + class Tank_F; + class GX_THEMIS_UGV_BASE: Tank_F { + AVAR(mode) = "LOS"; + AVAR(power)[] = { 5000, 10000, 15000, 20000, 30000, 40000, 50000 }; + AVAR(defaultPower) = 5000; + AVAR(freq)[] = { 433, 915, 1200, 2400 }; + AVAR(defaultFreq) = 1200; + AVAR(noBattery) = 1; + AVAR(isr) = QEFUNC(isr,vanilla); + }; +}; diff --git a/addons/compat_gxdrones/config.cpp b/addons/compat_gxdrones/config.cpp new file mode 100644 index 0000000..b0d76d2 --- /dev/null +++ b/addons/compat_gxdrones/config.cpp @@ -0,0 +1,26 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = QUOTE(COMPONENT); + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "arc_core", + "gx_drones_uav_blackhornet", + "gx_drones_uav_drone40", + "gx_drones_uav_hunter", + "gx_drones_uav_mq8b", + "gx_drones_uav_rq11b", + "gx_drones_ugv_honeybadger", + "gx_drones_ugv_themis", + "A3_Air_F_Exp_UAV_04" + }; + skipWhenMissingDependencies = 1; + author = "Cplhardcore"; + VERSION_CONFIG; + }; +}; + +#include "CfgVehicles.hpp" diff --git a/addons/compat_gxdrones/script_component.hpp b/addons/compat_gxdrones/script_component.hpp new file mode 100644 index 0000000..ba0b4be --- /dev/null +++ b/addons/compat_gxdrones/script_component.hpp @@ -0,0 +1,4 @@ +#define COMPONENT compat_gxdrones + +#include "..\main\script_mod.hpp" +#include "..\main\script_macros.hpp"