Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wersal454 committed Sep 1, 2024
1 parent 70894b9 commit 438071d
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 1 deletion.
34 changes: 34 additions & 0 deletions A3A/addons/config_fixes/CUP/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

class CfgVehicles
{
#include "sfp_air.hpp"

// Western Militia
class CUP_B_nM1025_Unarmed_USA_DES;
class CUP_B_nM1025_M240_USA_DES;
Expand Down Expand Up @@ -91,4 +93,36 @@ class CfgVehicles
{
textureList[] = {"Green",1};
};

// Nose-fall tweaks to make planes turn at a semi-decent rate when flown by AI
class Plane_Base_F;
class CUP_A10_Base : Plane_Base_F
{
draconicTorqueXCoef = 2;
};
class CUP_L39_base : Plane_base_F
{
draconicTorqueXCoef = 2;
};

// The faster planes benefit slightly from more torque, so we use the array form
class Plane;
class CUP_AV8B_Base : Plane
{
draconicTorqueXCoef[] = {2,3,4,5,6,7,8,9,10,10.1,10.2};
};
class CUP_Su25_base : Plane
{
draconicTorqueXCoef[] = {2,3,4,5,6,7,8,9,10,10.1,10.2};
//speeds in m/s: {0, 37.5, 75, 112.5, 150, 187.5, 225, 262.5, 300, 337.5, 375m/s}
};
class CUP_F35B_base : Plane
{
draconicTorqueXCoef[] = {2,3.5,5,6.5,8,9,10,11,12,12.1,12.2};
//speeds in m/s: {0, 58.3, 117, 175, 233, 292, 350, 408, 467, 525, 583m/s}
};
class CUP_SU34_BASE : Plane
{
draconicTorqueXCoef[] = {2,3.5,5,6.5,8,9,10,11,12,12.1,12.2};
};
};
24 changes: 24 additions & 0 deletions A3A/addons/config_fixes/CUP/spf_air.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//CUP-SFP - sfp_air.hpp

class CUP_B_UH60S_USN;
class CUP_MH60S_Unarmed_USN;
class CUP_MH60S_Unarmed_FFV_USN;

class a3a_SFP_B_UH60S_USN : CUP_B_UH60S_USN
{
displayName = "UH-60M (M3M)";
textureList[] = {"Black", 1};
animationList[] = {"Navyclan_hide",1,"Navyclan2_hide",1,"Filters_Hide",1,"mainRotor_folded",1,"mainRotor_unfolded",0,"Hide_ESSS2x",1,"Hide_ESSS4x",1,"Hide_Nose",0,"Blackhawk_Hide",0,"Hide_FlirTurret",1,"Hide_Probe",1,"Doorcock_Hide",0};
};
class a3a_SFP_MH60S_Unarmed_USN : CUP_MH60S_Unarmed_USN
{
displayName = "UH-60M (Unarmed)";
textureList[] = {"Black", 1};
animationList[] = {"Navyclan_hide",1,"Navyclan2_hide",1,"Filters_Hide",1,"mainRotor_folded",1,"mainRotor_unfolded",0,"Hide_ESSS2x",1,"Hide_ESSS4x",1,"Hide_Nose",0,"Blackhawk_Hide",0,"Hide_FlirTurret",0,"Hide_Probe",1,"Doorcock_Hide",0};
};
class a3a_SFP_MH60S_Unarmed_FFV_USN : CUP_MH60S_Unarmed_FFV_USN
{
displayName = "UH-60M (Unarmed/FFV)";
textureList[] = {"Black", 1};
animationList[] = {"Navyclan_hide",1,"Navyclan2_hide",1,"Filters_Hide",1,"mainRotor_folded",1,"mainRotor_unfolded",0,"Hide_ESSS2x",1,"Hide_ESSS4x",1,"Hide_Nose",0,"Blackhawk_Hide",0,"Hide_FlirTurret",0,"Hide_Probe",1,"Doorcock_Hide",0};
};
57 changes: 56 additions & 1 deletion A3A/addons/config_fixes/IFA/CfgVehicles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,59 @@
QPATHTOFOLDER(IFA\data\dc3_body_01_bob_co.paa),
QPATHTOFOLDER(IFA\data\dc3_body_02_co.paa)
};
};


};

class DefaultEventHandlers;
class CfgVehicles
{
class LIB_US_Willys_MB_M1919;
class a3a_LIB_Willys_MB_M1919 : LIB_US_Willys_MB_M1919{
hiddenSelectionsTextures[] = {"WW2\Assets_t\Vehicles\Cars_t\IF_Willys_MB\Willys_co.paa","\WW2\Assets_t\Vehicles\Cars_t\IF_Willys_MB\Willys_Additional_co.paa"};
typicalCargo[] = {"LIB_SOV_AT_soldier"};
crew = "LIB_SOV_unequip";
faction = "LIB_RKKA";
side = 0;
};
class LIB_DAK_PzKpfwIV_H;
class a3a_lib_PzKpfwIV_noShield : LIB_DAK_PzKpfwIV_H{
faction = "LIB_WEHRMACHT";
hiddenSelectionsTextures[] = {"\WW2\Assets_t\Vehicles\Tanks_t\IF_PzKpfwIV_H\Body_co.paa","\WW2\Assets_t\Vehicles\Tanks_t\IF_PzKpfwIV_H\Turret_co.paa","\WW2\Assets_t\Vehicles\Tanks_t\IF_PzKpfwIV_H\Wheels_co.paa","\WW2\Assets_t\Vehicles\Tanks_t\IF_PzKpfwIV_H\Tracks_co.paa"};
};
class LIB_Zis6_Parm;
class a3a_lib_Zis6_BOX : LIB_Zis6_Parm {
displayName = "ZIS-5V (Box)";
transportRepair = 0;
typicalCargo[] = {"LIB_FFI_LAT_Soldier"};
faction = "LIB_FFI";
side = 2;
};
// CBA event handlers fix
class Tank;
class LIB_Armored_Target_Dummy : Tank {
delete EventHandlers;
};

// Nose-fall tweaks to make planes turn at a semi-decent rate when flown by AI
// Note: LIB_Ju87 not adjusted because planes with low maxSpeed use different AI logic
class LIB_GER_Plane_base;
class LIB_FW190F8 : LIB_GER_Plane_base
{
draconicTorqueXCoef = 2;
};
class LIB_SU_Plane_base;
class LIB_P39 : LIB_SU_Plane_base
{
draconicTorqueXCoef = 2;
};
class LIB_Pe2 : LIB_SU_Plane_base
{
draconicTorqueXCoef = 2;
};
class LIB_US_Plane_base;
class LIB_P47 : LIB_US_Plane_base
{
draconicTorqueXCoef = 2;
};
};

0 comments on commit 438071d

Please sign in to comment.