From af721c9cc6a3e906b81f03c3815052ec974845c1 Mon Sep 17 00:00:00 2001 From: Timi007 Date: Sun, 27 Oct 2024 22:10:21 +0100 Subject: [PATCH] Create separate boat class instead of overwriting --- README.md | 2 +- addons/A3_Boats/CfgVehicles.hpp | 43 +++++++++------------------------ addons/A3_Boats/config.cpp | 9 +++---- addons/A3_Boats/stringtable.xml | 9 +++++++ 4 files changed, 25 insertions(+), 38 deletions(-) create mode 100644 addons/A3_Boats/stringtable.xml diff --git a/README.md b/README.md index 2725a03..e74e9eb 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Optional: ### A3 - More durable buildings (can take more damage) -- Make CRRCs more agile +- Add modification of CRRCs that is more agile ### General diff --git a/addons/A3_Boats/CfgVehicles.hpp b/addons/A3_Boats/CfgVehicles.hpp index c9d7dbe..1b4b466 100644 --- a/addons/A3_Boats/CfgVehicles.hpp +++ b/addons/A3_Boats/CfgVehicles.hpp @@ -1,37 +1,16 @@ -#define BOAT_PROPERTIES \ - insideSoundCoef = 1; \ - rudderForceCoef = 0.25; \ - enginePower = 24.5; \ - thrustDelay = 1.5; \ - waterLinearDampingCoefX = 1.2 - class CfgVehicles { - class Rubber_duck_base_F; - class Rescue_duck_base_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; - - class I_C_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; - - class I_G_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; + class B_Boat_Transport_01_F; + class PzGrenBtl402_CRRC: B_Boat_Transport_01_F { + displayName = CSTRING(CRRC); - class I_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; - - class B_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; - - class O_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; - }; + insideSoundCoef = 1; + rudderForceCoef = 0.25; + enginePower = 24.5; + thrustDelay = 1.5; + waterLinearDampingCoefX = 1.2; - class O_T_Boat_Transport_01_F: Rubber_duck_base_F { - BOAT_PROPERTIES; + class TransportItems { + delete _xx_FirstAidKit; + }; }; }; diff --git a/addons/A3_Boats/config.cpp b/addons/A3_Boats/config.cpp index d8c1d57..5d1a222 100644 --- a/addons/A3_Boats/config.cpp +++ b/addons/A3_Boats/config.cpp @@ -3,15 +3,14 @@ class CfgPatches { class ADDON { name = COMPONENT_NAME; - units[] = {}; + units[] = { + "PzGrenBtl402_CRRC" + }; weapons[] = {}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = { "PzGrenBtl402_Main", - "A3_Boat_F_Boat_Transport_01", - "A3_Boat_F_Exp_Boat_Transport_01", - "A3_Boat_F_Gamma_Boat_Transport_01", - "A3_Boat_F_Beta_Boat_Transport_01" + "A3_Boat_F_Boat_Transport_01" }; author = ECSTRING(Main,authors); authors[] = {"Timi007"}; diff --git a/addons/A3_Boats/stringtable.xml b/addons/A3_Boats/stringtable.xml new file mode 100644 index 0000000..caf1c99 --- /dev/null +++ b/addons/A3_Boats/stringtable.xml @@ -0,0 +1,9 @@ + + + + + S-Boot + S-Boot + + + \ No newline at end of file