Jump to content
Sign in to follow this  
erem2k

Adding firemode to vehicle weapon

Recommended Posts

Hello there,

I'm trying to add second, higher ROF firemode for Pawnee's M134 minigun by creating weapon class based on M134_minigun. If I'm trying to edit default firing mode class in new weapon, it only allows to shoot in semiauto mode - and if I'm trying to create a new class, getting "no base class defined" - even though mentioned base class exists in the inherited weapon's (M134_minigun) config.

class M134_minigun;
class M134_minigun_modROF: M134_minigun
{
	modes[]=
	{
		"HighROF",
		"LowROF",
		"VHighROF",
		"close",
		"short",
		"medium",
		"far"
	};
	class VHighROF: HighROF
	{
		reloadTime=0.014999999;
	};
};

Share this post


Link to post
Share on other sites

In your config you haven't declared HighROF and there's no mention of CfgWeapons.. This might help:

http://forums.bistudio.com/showthread.php?181267-reloadTime-with-A-164-Cannon&p=2743277&viewfull=1#post2743277

But be aware it's pointless (and maybe even detrimental) to turn the rof up to what it should be in real life:

http://forums.bistudio.com/showthread.php?174581-The-A-164-WIPEOUT-Fixed-Wing-Aircraft&p=2827767&viewfull=1#post2827767

Edited by Das Attorney

Share this post


Link to post
Share on other sites

Alright, thanks a lot mate. How did ROF work in Arma 2 anyways, wasn't it tied to frames like it is now in A3?

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  

×