How do you change the ROF? -1 reply

Please wait...

hoontergoose

I don't spend enough time here

50 XP

12th August 2004

0 Uploads

17 Posts

0 Threads

#1 15 years ago

Specifically, of the pistol and machinegun. As I understand it, the minigun is a little more difficult to mod. I'd also like to know how that's done, if anyone here knows.




Bytrix

I post to get attention

50 XP

22nd October 2003

0 Uploads

72 Posts

0 Threads

#2 15 years ago

As the SDK isn't out yet it's just trial and error for us all, but a good place to start I would recommend you download the Quake3 SDK and look at the example they have (changing the rate of fire of the rocket launcher). It's most likely the exact same way in Doom3 but I haven't looked at those yet. Just maps and textures so far.




Trojanman190

Dread thinks I'm a special person

50 XP

27th July 2004

0 Uploads

346 Posts

0 Threads

#3 15 years ago

Its in the script files. Its one of hte first lines in the weapons script file. I think those files are in pak0000 or pak0001.




hoontergoose

I don't spend enough time here

50 XP

12th August 2004

0 Uploads

17 Posts

0 Threads

#4 15 years ago

So no one knows how to change the ROF on the chaingun? Cuz I was going to have it consume oodles of ammo just to make it realistic. I'd rather not take the "add more bullets" approach, as that seems lame and unrealistic. It seems there's some weird equation dealie in the .script file. Anyone know how to work that?




stelu

I don't spend enough time here

50 XP

1st April 2005

0 Uploads

33 Posts

0 Threads

#5 15 years ago

under the script file of the chaingun at the very top where it says: #define CHAINGUN_FIRE_SKIPFRAMES change the number out beside it for the Rate Of Fire.




hoontergoose

I don't spend enough time here

50 XP

12th August 2004

0 Uploads

17 Posts

0 Threads

#6 15 years ago

Thanks. I got it, and I found that the lower the number the faster the ROF. I upped the clipsize to about a 1000 (though I'm thinking about dropping it to 500 for balancing reasons) to accomodate this, and it's splendiferous. It's so great to see all of those bullets pinging off of the wall. I also took out the smoke that gets emmitted by the barrel cuz it was getting in the way.

One last problem, though. How would I go about changing the animation, if I can, so that I can actually see the ammo counter draining while I'm shooting? Because the minigun gets kicked too far back to actually see that, and I find that somewhat distressing.