Skip to content

Commit

Permalink
Create separate boat class instead of overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi007 committed Oct 27, 2024
1 parent 292e0f5 commit af721c9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
43 changes: 11 additions & 32 deletions addons/A3_Boats/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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;
};
};
};
9 changes: 4 additions & 5 deletions addons/A3_Boats/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"};
Expand Down
9 changes: 9 additions & 0 deletions addons/A3_Boats/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="PzGrenBtl402">
<Package name="A3_Boats">
<Key ID="STR_PzGrenBtl402_A3_Boats_CRRC">
<Original>S-Boot</Original>
<German>S-Boot</German>
</Key>
</Package>
</Project>

0 comments on commit af721c9

Please sign in to comment.