Hidden/Spoiler:
Rapid Fire rocket launcher?
Moderator: Moderators
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Rapid Fire rocket launcher?
how would i edit a rocket launcher's odf file to make it so there is little or no delay when reloading, thus making it rapidfire? heres my rocket launcher's odf:
if somebody could point out what has to be changed, it would help a lot :jab:
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Rapid Fire rocket launcher?
if you look at other odfs(for reference), and edit the com_Weap_inf_launcher odf (or the classparent of the weap) the odfs are really self-explaining, and you could have easily found the answer with search or the everything you need thread (search odf guide or something like that)
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Rapid Fire rocket launcher?
Hidden/Spoiler:
-
Taivyx
- 2008 Best Games Related Avatar
- Posts: 1706
- Joined: Thu Jun 07, 2007 3:34 pm
- Projects :: Terra Strife - discontinued
- xbox live or psn: No gamertag set
- Contact:
Re: Rapid Fire rocket launcher?
Since I was bored, I decided to type a rather large response
There are two fairly straightforward ways of doing this. Both pieces of code go under the "[Properties]" section of the odf.
The first involves your way of thinking about it, decreasing the reloading time.
The bad thing about this is that you'd also have a ridiculously fast reloading animation to go along with it.
In any case, this is the code to do that:
An example of a ridiculously fast reloading time would be something like
The second way involves decreasing the delay between shots, and then increasing the clip size.
This way, you'll still have to reload after x amount of shots, but it'll be a more normal looking reloading animation, unless you decide to have a ridiculously fast reloading time on top of that.
So the code to set the delay (in seconds) between shots is:
To give you an impression of how fast that is, it's around the fire rate of many modern automatic weapons.
Then you'll also have to increase the clip size to see this rapid fire.
This means how many shots you can shoot before having to reload.
You can set this using this piece of code:
There are two fairly straightforward ways of doing this. Both pieces of code go under the "[Properties]" section of the odf.
The first involves your way of thinking about it, decreasing the reloading time.
The bad thing about this is that you'd also have a ridiculously fast reloading animation to go along with it.
In any case, this is the code to do that:
Code: Select all
ReloadTime = "[insert the time in seconds you want the reload to be]"Code: Select all
ReloadTime = "0.15"This way, you'll still have to reload after x amount of shots, but it'll be a more normal looking reloading animation, unless you decide to have a ridiculously fast reloading time on top of that.
So the code to set the delay (in seconds) between shots is:
Code: Select all
ShotDelay = "0.1"Then you'll also have to increase the clip size to see this rapid fire.
This means how many shots you can shoot before having to reload.
You can set this using this piece of code:
Code: Select all
RoundsPerClip = "30"-
bhawkgoalie10
- Private Second Class
- Posts: 60
- Joined: Mon Dec 29, 2008 1:55 pm
Re: Rapid Fire rocket launcher?
you could also make it like a pistol so it has unlimited clips/ammo, but with heat instead 
check out the values on the common pistol ODF for that
check out the values on the common pistol ODF for that
- jedimaster745
- First Lance Corporal

- Posts: 136
- Joined: Sun Sep 07, 2008 5:05 pm
Re: Rapid Fire rocket launcher?
thank you everybody. i have exactly what i need now, and my knowledge of how .odfs work has been expanded. admins, this topic may be locked.
