Jump to content

Sign in to follow this  
ZU23

How to increase rate of fire?

Recommended Posts

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

Look at the other classes in CfgWeapons, you need to change those to.

  Reveal hidden contents

class close,short,medium,far is for AI, class player for player

Share this post


Link to post
Share on other sites
  On 5/9/2017 at 12:24 PM, Whitefame said:

Look at the other classes in CfgWeapons, you need to change those to.

  Reveal hidden contents

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

If you write it like this, does it work for you then??

  Reveal hidden contents

 

Share this post


Link to post
Share on other sites
  On 5/9/2017 at 3:04 PM, Whitefame said:

If you write it like this, does it work for you then??

  Reveal hidden contents

 

Again nothing

Share this post


Link to post
Share on other sites

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
  On 5/9/2017 at 3:24 PM, 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
  Reveal hidden contents

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

  • Like 1

Share this post


Link to post
Share on other sites
  On 5/9/2017 at 4:59 PM, Whitefame said:
  Reveal hidden contents

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×