From 2c6a42058024abc2a7df19bdf9e87dfba729eedb Mon Sep 17 00:00:00 2001 From: mrschick <58027418+mrschick@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:18:17 +0100 Subject: [PATCH 1/2] Compat Unsung --- addons/compat_unsung/$PBOPREFIX$ | 1 + addons/compat_unsung/CfgVehicles.hpp | 782 ++++++++++++++++++++++ addons/compat_unsung/config.cpp | 18 + addons/compat_unsung/script_component.hpp | 13 + 4 files changed, 814 insertions(+) create mode 100644 addons/compat_unsung/$PBOPREFIX$ create mode 100644 addons/compat_unsung/CfgVehicles.hpp create mode 100644 addons/compat_unsung/config.cpp create mode 100644 addons/compat_unsung/script_component.hpp diff --git a/addons/compat_unsung/$PBOPREFIX$ b/addons/compat_unsung/$PBOPREFIX$ new file mode 100644 index 000000000..775a4614d --- /dev/null +++ b/addons/compat_unsung/$PBOPREFIX$ @@ -0,0 +1 @@ +idi\acre\addons\compat_unsung diff --git a/addons/compat_unsung/CfgVehicles.hpp b/addons/compat_unsung/CfgVehicles.hpp new file mode 100644 index 000000000..5e8b0d337 --- /dev/null +++ b/addons/compat_unsung/CfgVehicles.hpp @@ -0,0 +1,782 @@ +class CfgVehicles { + // Cars + class Car_F; + class uns_willys_base: Car_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "external"}; + mountedRadio = "ACRE_PRC77"; + }; + }; + }; + + // Trucks + class Truck_F; + class uns_P12_base: Truck_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + }; + + // AFVs + class Wheeled_APC_F; + class uns_xm706e1_base: Wheeled_APC_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"commander"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + }; + }; + + class uns_Type63_mg_base: Wheeled_APC_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"commander"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + }; + }; + + class Tank_F; + class uns_M113_base: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC103"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC117F"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"gunner", "commander"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_m48a3: Tank_F { + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {}; + masterPositions[] = {"commander"}; + numLimitedPositions = 0; + connectedByDefault = 1; + }; + }; + + acre_infantryPhonePosition[] = {0.40, -3.75, 1.13}; + }; + + class uns_m551_base: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {}; + masterPositions[] = {"commander"}; + numLimitedPositions = 0; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_t34_85_nva: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {}; + masterPositions[] = {"commander"}; + numLimitedPositions = 0; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_pt76: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {}; + masterPositions[] = {"commander"}; + numLimitedPositions = 0; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_T55_Base: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {}; + masterPositions[] = {"commander"}; + numLimitedPositions = 0; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class MBT_01_arty_base_F; + class uns_m107_base: MBT_01_arty_base_F { + acre_hasInfantryPhone = 0; + }; + + class uns_ZSU_base: Tank_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + // Aircraft + class Helicopter_Base_H; + class uns_AH1g_base: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + }; + + class uns_H13_base: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner", {"turret", {0}}}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew", {"turret", {0}}}; + masterPositions[] = {"driver", "gunner", {"turret", {0}}}; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_UH1D_base: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 1; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}, {"ffv", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_UH1C_M21_M200: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 1; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}, {"ffv", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_ch34: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "copilot"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"driver", "copilot"}; + numLimitedPositions = 1; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}, {"ffv", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_ch46d: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_ch47_m60_usmc: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "gunner"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {}; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_ch53_base: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", {"turret", {0}}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"driver", {"turret", {0}}}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_Mi8TV_base: Helicopter_Base_H { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", {"turret", {0}}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"driver", {"turret", {0}}}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class Plane_Base_F; + class uns_plane: Plane_Base_F { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "copilot", "gunner", "commander"}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + masterPositions[] = {"driver", "copilot"}; + connectedByDefault = 1; + }; + }; + }; + + class uns_plane; + class uns_o1: uns_plane { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", {"turret", {0}}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"driver", {"turret", {0}}}; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_skymaster_base: uns_plane { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", {"turret", {0}}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"inside"}; + masterPositions[] = {"driver", {"turret", {0}}}; + connectedByDefault = 1; + }; + }; + + acre_hasInfantryPhone = 0; + }; + + class uns_c1a: uns_plane { + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_C130_Base: uns_plane { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander", {"turret", {1}}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"driver", "commander", {"turret", {1}}}; + numLimitedPositions = 4; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}, {"ffv", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + class uns_AC47: uns_plane { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", {"cargo", 0}}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + masterPositions[] = {"driver", {"cargo", 0}}; + connectedByDefault = 1; + }; + }; + }; + + class uns_b52h: uns_plane { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dashUpper); + shortName = ECSTRING(sys_rack,dashUpperShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"inside"}; + mountedRadio = "ACRE_PRC77"; + }; + class Rack_2: Rack_1 { + displayName = ECSTRING(sys_rack,dashLower); + shortName = ECSTRING(sys_rack,dashLowerShort); + }; + }; + }; + + class uns_an2: uns_plane { + class AcreIntercoms { + class Intercom_1 { + displayName = ECSTRING(sys_intercom,crewIntercom); + shortName = ECSTRING(sys_intercom,shortCrewIntercom); + allowedPositions[] = {"crew"}; + limitedPositions[] = {{"cargo", "all"}, {"ffv", "all"}}; + masterPositions[] = {"driver", "gunner"}; + numLimitedPositions = 2; + connectedByDefault = 1; + }; + class Intercom_2: Intercom_1 { + displayName = ECSTRING(sys_intercom,passengerIntercom); + shortName = ECSTRING(sys_intercom,shortPassengerIntercom); + allowedPositions[] = {"crew", {"cargo", "all"}, {"ffv", "all"}}; + limitedPositions[] = {}; + numLimitedPositions = 0; + connectedByDefault = 0; + }; + }; + }; + + // Boats + class uns_boat_base_turret; + class UNS_BOATS_Base: uns_boat_base_turret { + class AcreRacks { + class Rack_1 { + displayName = ECSTRING(sys_rack,dash); + shortName = ECSTRING(sys_rack,dashShort); + componentName = "ACRE_VRC64"; + allowedPositions[] = {"driver", "commander"}; + mountedRadio = "ACRE_PRC77"; + intercom[] = {"intercom_1"}; + }; + }; + }; +}; diff --git a/addons/compat_unsung/config.cpp b/addons/compat_unsung/config.cpp new file mode 100644 index 000000000..16a79a618 --- /dev/null +++ b/addons/compat_unsung/config.cpp @@ -0,0 +1,18 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"acre_main", "acre_api", "uns_main"}; + skipWhenMissingDependencies = 1; + author = ECSTRING(main,Author); + authors[] = {"TheMagnetar", "mrschick"}; + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; + +#include "CfgVehicles.hpp" diff --git a/addons/compat_unsung/script_component.hpp b/addons/compat_unsung/script_component.hpp new file mode 100644 index 000000000..75c633241 --- /dev/null +++ b/addons/compat_unsung/script_component.hpp @@ -0,0 +1,13 @@ +#define COMPONENT compat_unsung +#define COMPONENT_BEAUTIFIED Unsung Compatibility +#include "\idi\acre\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_COMPAT_UNSUNG + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_ENABLED_COMPAT_UNSUNG + #define DEBUG_SETTINGS DEBUG_SETTINGS_COMPAT_UNSUNG +#endif + +#include "\idi\acre\addons\main\script_macros.hpp" From e1f69d1ba04528c462a0656e71101bf13619c0f6 Mon Sep 17 00:00:00 2001 From: mrschick <58027418+mrschick@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:18:49 +0100 Subject: [PATCH 2/2] Fix duplicate class --- addons/compat_unsung/CfgVehicles.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/compat_unsung/CfgVehicles.hpp b/addons/compat_unsung/CfgVehicles.hpp index 5e8b0d337..997fa7b7d 100644 --- a/addons/compat_unsung/CfgVehicles.hpp +++ b/addons/compat_unsung/CfgVehicles.hpp @@ -587,7 +587,6 @@ class CfgVehicles { }; }; - class uns_plane; class uns_o1: uns_plane { class AcreRacks { class Rack_1 {