OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: kupala84 on 22 Nov 2005, 20:04:24

Title: Weapon editing question
Post by: kupala84 on 22 Nov 2005, 20:04:24
I have heard rumors that it is possible to edit the standard M16 rifle to fire automatic and not burst fire by editing main config.bin.

So my question is, how do i do this? Is it really REALLY complicated?
 :P
Title: Re:Weapon editing question
Post by: LoTekK on 23 Nov 2005, 04:55:59
Relatively simple. In config.cpp, search for

Code: [Select]
class M16 : Riffle
...
...
   class burst

And change the following:

Code: [Select]
        burst=3; <- change to 1
         sound[]={"\WST_Weapons\Sounds\M16Burst.wss","db0",1}; <- change to M16Single.wss
         autoFire=0; <- change to 1

Voila, fully auto M16. You may want to either change the displayname to "M16 Auto", or edit stringtable.csv.
Title: Re:Weapon editing question
Post by: Serial Killer on 23 Nov 2005, 14:16:10
I was wonderinhg, what happens if you use that in multiplayer?
Title: Re:Weapon editing question
Post by: kupala84 on 23 Nov 2005, 16:53:07
My guess is that it fucks things up.. But it would be possible to make a backup copy of the original config.cpp file?

I dont play it so much on internet since i suck on the game and allways die..  :(
Title: Re:Weapon editing question
Post by: oyman on 24 Nov 2005, 07:14:41
if you used it on the internet, you would get a modified config.bin error and probably get banned, unless your running a mod :P