News: SMF - Just Installed!
 
Welcome, Guest. Please login or register.
+  AnthraxBio
|-+  Return to Castle Wolfenstein
| |-+  Coding Tutorials
| | |-+  Weapon Firing Rate
« previous next »
Pages: [1] Print
Author Topic: Weapon Firing Rate  (Read 260 times)
SkreamerVirii
Administrator
Full Member
*****
Posts: 133


View Profile
« on: September 03, 2008, 11:04:39 PM »

In this tutorial i will show you how to modify a weapons rate of fire
I will be using the Panzerfaust for demonstration Purposes
so set your project to game
and open up bg_misc.c and scroll to line 72
till you find this code

ammotable_t ammoTable[] = {
underneath that you will see a list of weapons to wide to post it in this narrow box
but look for this line of code in that table

{ 5, 1, 1, 1000, 750 , 2000, 0, 0, MOD_PANZERFAUST },
5 is YOur Max AMMO
1 is is how many rockets you shoot at once
1 is How many you can have in your clip at one time
1000 is your Reload time This is how LONG BEFORE YOU CAN RELOAD
750 is your Fire Delay Time THIS IS HOW LONG AFTER YOU RELOADing are you allowed to fire again
2000 is your Next shot this is the DELAY to the NEXT shot you can fire Less is Faster

So lower 2000 to 750
100 to 750
and leave 750 where its at
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Free SMF 1.1.5 Forum Theme by Tamuril. © 2008.