Having trouble changing fire rates.


(MenDAKE) #1

I’m attempting to change the fire rate for the Thompson and MP40, but I haven’t been succcessful so far. Nothing seems to happen when I do the following:

  1. Open bg_misc.c

  2. FInd ammotable_t ammoTableMP[WP_NUM_WEAPONS] = {

  3. Change the “NEXT SHOT” from 150 to 50 for both MOD_MP40 AND MOD_THOMPSON.

According to the source documentation “nextShotTime” does the following:

“when firing continuously, this is the time between shots”

So as far as I can tell changing from 150 to 50 should make the SMGs fire three times faster, but I see no difference. What am I doing wrong?

Just to be sure I’m compiling my mod correctly I tried changing the class load outs in the source and that seemed to work fine. So I am doing the compiling and mod loading correctly. I must just be misunderstanding how to change the rate of fire. Can anyone help?


(=>ETK<=Elite) #2

Just to make sure…the compile was successful without errors? And definitely you edited the correct line for the weapons?


(MenDAKE) #3

No compile errors and I changed the line that has “MOD_THOMPSON” at the end. That seemed like the correct one, am I right?

By the way I’m compiling for Windows using Visual Studio .NET 2005 and the latest 2.60 SDK.


(kamikazee) #4

Also make sure that you try it out with an updated client and server binary… The bg_ files are common for both client and server. This might cause problems when only the server or the client uses modified values.


(=>ETK<=Elite) #5

I had a problem before with only windows builds when I tested out and ran as a server. Make sure you check that your mod is loaded (goto server info, gamename and check that it’s right mod). That could be the problem.

If you just use /devmap and place the builds in etmain, it should be fine on the client side to test it…but I can’t guarantee that.