.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   FritzBot (http://forums.bots-united.com/forumdisplay.php?f=53)
-   -   Unrelated question (http://forums.bots-united.com/showthread.php?t=4705)

Sgt.slick 26-11-2005 08:36

Unrelated question
 
Ok,

Here's one for yuz,

Is there a way to make the mg42's firing rate faster?
Currently it's pretty unrealistic and gay firing rate is at about 400 cpm (cycles per minute), while in reality the mg42's true firing rate is about 900-1200 cpm.

Can it be done?

the reason I ask is I'm working on a mod of my own for rtcw and I want to add this feature to it. I've consulted many modding forums but no one seems to know how it can be done.

Somebody should know!

Mal? Denny?

Maleficus 26-11-2005 09:09

Re: Unrelated question
 
Yes, it can be done.

Just off the top of my head look for MG42_RATE_OF_FIRE in the source code.

This is defined in both the game AND cgame source files - you will need to compile both for the gun to fire and be seen properly.

The rate of fire controls how much of a delay there is between shots. The lower the number, the faster it fires.

Cheers!

Denny 26-11-2005 12:17

Re: Unrelated question
 
It's probably all in g_weapons.c and bg_misc.c. But there might be some in cg_weapons.c and bg_pmove.c too, i'm not sure on pmove though.

I'd just search for what mal said and you'll come across it.

Maleficus 26-11-2005 17:15

Re: Unrelated question
 
IIRC, its in bg_public.h. Just modify that one define, because all the other code refers to it.

Sgt.slick 27-11-2005 01:08

Re: Unrelated question
 
Thanks guys.


All times are GMT +2. The time now is 13:03.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.