OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: LimeCordial on 05 Oct 2002, 19:03:43

Title: config .cpp question
Post by: LimeCordial on 05 Oct 2002, 19:03:43
what is the .cpp line for defining rate of fire for a machine gun?
Title: Re:config .cpp question
Post by: Baphomet on 05 Oct 2002, 19:31:44


     The variable "reloadTime=x.xx;" is what determines how fast (or slow) the cycles are between shots fired by a weapon. These are measured in seconds, as I was told in a previous query posted here a little while ago.

     Naturally the lower the value the higher the rate of fire.
I hope thats what you were asking about. Otherwise I don't know of any other way to define firing rate o.o;
Title: Re:config .cpp question
Post by: LimeCordial on 05 Oct 2002, 21:29:12
ah, thanks. just what i wanted. also, do you know how you could make it so you could choose between two types of ammo, like with the bmp2, where there is AP cannon and HE cannon? i would like it so you could 'Load HE Rounds' and then the mgun fires HE bullets? or isn't this possible?
Title: Re:config .cpp question
Post by: Baphomet on 06 Oct 2002, 05:08:04
     


     You know what? I'm actually kind of trying to figure out a very similar thing except for infantry weapons (multiple weapon types/ firing modes). I'm having a bit of trouble with that myself. I'd imagine it would work in a similar way for vehicle weapons as it would for infantry ones.

     I haven't quite figured that one out yet though.
Title: Re:config .cpp question
Post by: LimeCordial on 06 Oct 2002, 14:00:17
yeah that's what i want it for. an infantry machine gun. (im editing the minigun to make it more 'fun'). let me know if yo work it out please?