ZU23 2 Posted April 30, 2017 Hello, can someone give me the exact config.cpp code on how to double the rate of fire for the 35mm AA cannon? I tried this code by changing the reloadTime from 1 to 0.5 but nothing happened. class CfgWeapons { class autocannon_35mm; class IncreasedROFCannon : autocannon_35mm { reloadTime = 0.5; }; }; Share this post Link to post Share on other sites
Whitefame 16 Posted May 9, 2017 Look at the other classes in CfgWeapons, you need to change those to. Spoiler class wht_IROF_120mm : wht_cannon_120mm { magazinereloadTime=4.0; class close : close { reloadTime=2.0; }; class far : far { reloadTime=2.0; }; class short : short { reloadTime=2.0; }; class medium : medium { reloadTime=2.0; }; class player : player { reloadTime=2.0; }; }; class close,short,medium,far is for AI, class player for player Share this post Link to post Share on other sites
ZU23 2 Posted May 9, 2017 2 hours ago, Whitefame said: Look at the other classes in CfgWeapons, you need to change those to. Hide contents class wht_IROF_120mm : wht_cannon_120mm { magazinereloadTime=4.0; class close : close { reloadTime=2.0; }; class far : far { reloadTime=2.0; }; class short : short { reloadTime=2.0; }; class medium : medium { reloadTime=2.0; }; class player : player { reloadTime=2.0; }; }; class close,short,medium,far is for AI, class player for player Sorry this didnt help, there is no player class in autocannon_35mm so I tried this class CfgWeapons { class autocannon_35mm; class autocannon_IROF_35mm : autocannon_35mm { class close { reloadTime = 0.0275; }; class far { reloadTime = 0.0275; }; class short { reloadTime = 0.0275; }; class medium { reloadTime = 0.0275; }; class manual { reloadTime = 0.0275; }; }; }; and again nothing happened Share this post Link to post Share on other sites
Whitefame 16 Posted May 9, 2017 If you write it like this, does it work for you then?? Spoiler class autocannon_35mm; class test_autocannon_35mm: autocannon_35mm { class close; class far; class short; class medium; class player; }; class autocannon_IROF_35mm : test_autocannon_35mm { class close : close { reloadTime=4.0; }; class far : far { reloadTime=4.0; }; class short : short { reloadTime=4.0; }; class medium : medium { reloadTime=4.0; }; class player : player { reloadTime=4.0; }; Share this post Link to post Share on other sites
ZU23 2 Posted May 9, 2017 14 minutes ago, Whitefame said: If you write it like this, does it work for you then?? Reveal hidden contents class autocannon_35mm; class test_autocannon_35mm: autocannon_35mm { class close; class far; class short; class medium; class player; }; class autocannon_IROF_35mm : test_autocannon_35mm { class close : close { reloadTime=4.0; }; class far : far { reloadTime=4.0; }; class short : short { reloadTime=4.0; }; class medium : medium { reloadTime=4.0; }; class player : player { reloadTime=4.0; }; Again nothing Share this post Link to post Share on other sites
Whitefame 16 Posted May 9, 2017 Weird, that works fine for me. you haven't forgotten to call for it in Cfgvehicles: class Turrets: Turrets { class MainTurret: MainTurret { weapons[]={autocannon_IROF_35mm}; }; }; Share this post Link to post Share on other sites
ZU23 2 Posted May 9, 2017 21 minutes ago, Whitefame said: Weird, that works fine for me. you haven't forgotten to call for it in Cfgvehicles: class Turrets: Turrets { class MainTurret: MainTurret { weapons[]={autocannon_IROF_35mm}; }; }; This is a bit confusing, can you just post the entire config.cpp? thanks Share this post Link to post Share on other sites
Whitefame 16 Posted May 9, 2017 Spoiler class CfgPatches { class AA_APC_Tracked_01_IROF { requiredAddons[] = {"A3_Armor_F_Beta"}; units[] = {"B_APC_Tracked_01_IROF"}; weapons[] = {}; }; }; class CfgVehicles{ class B_APC_Tracked_01_AA_F; class B_APC_Tracked_01_IROF_Base: B_APC_Tracked_01_AA_F { class Turrets; class MainTurret; }; class B_APC_Tracked_01_IROF: B_APC_Tracked_01_IROF_Base { displayName = "AA IROF"; class Turrets: Turrets { class MainTurret: MainTurret { weapons[]={autocannon_IROF_35mm}; }; }; }; }; class CfgWeapons { class autocannon_35mm; class test_autocannon_35mm: autocannon_35mm { class close; class far; class short; class medium; class manual; }; class autocannon_IROF_35mm : test_autocannon_35mm { class manual : manual { reloadTime=0.030; }; }; }; Apparently the class for player ROF for the 35mm cannon was "class manual" and not class player: So just change that. The config above will make a new nato AA and its firerate to 0.030, but remember that ROF is FPS-dependent in arma so if you go below a certain FPS the gun will fire slower 1 Share this post Link to post Share on other sites
ZU23 2 Posted May 9, 2017 48 minutes ago, Whitefame said: Reveal hidden contents class CfgPatches { class AA_APC_Tracked_01_IROF { requiredAddons[] = {"A3_Armor_F_Beta"}; units[] = {"B_APC_Tracked_01_IROF"}; weapons[] = {}; }; }; class CfgVehicles{ class B_APC_Tracked_01_AA_F; class B_APC_Tracked_01_IROF_Base: B_APC_Tracked_01_AA_F { class Turrets; class MainTurret; }; class B_APC_Tracked_01_IROF: B_APC_Tracked_01_IROF_Base { displayName = "AA IROF"; class Turrets: Turrets { class MainTurret: MainTurret { weapons[]={autocannon_IROF_35mm}; }; }; }; }; class CfgWeapons { class autocannon_35mm; class test_autocannon_35mm: autocannon_35mm { class close; class far; class short; class medium; class manual; }; class autocannon_IROF_35mm : test_autocannon_35mm { class manual : manual { reloadTime=0.030; }; }; }; Apparently the class for player ROF for the 35mm cannon was "class manual" and not class player: So just change that. The config above will make a new nato AA and its firerate to 0.030, but remember that ROF is FPS-dependent in arma so if you go below a certain FPS the gun will fire slower Alright thanks got it working now Share this post Link to post Share on other sites