Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH Maps, Mods & Skins (alliedassault.us/forumdisplay.php?f=11)
-   -   Add Secondary Fire (alliedassault.us/showthread.php?t=26048)

GICodeWarrior 06-03-2003 07:18 PM

Add Secondary Fire
 
Does anybody know what would need to be modded to add a secondary fire to the rocket launcher. I am looking to mod it to a grenade launcher with two fire types. explodeontouch and bounceontouch

Any tips?

I tried simply adding secondary fire properties and animation but with no avail. I copied some of the code from the grenade and pistol secondary fire to figure out the parms that needed to be set but I am afraid that the secondary fire for those weapons might be hard coded.

Please help,
~GICodeWarrior

bluebrooks 06-04-2003 07:00 AM

On AA, I would think what you're saying should work. I assume that what you mean would make the animations for 2ndary fire the same, but with a different firing result.

On Spear, I could not figure out how to change the 2ndary actions for any weapons. SH was not coded the same way. You change or comment out the 2ndary firing actions and animations all you want, but they still happen.

bluebrooks 06-04-2003 07:01 AM

On AA, I would think what you're saying should work. I assume that what you mean would make the animations for 2ndary fire the same, but with a different firing result.

On Spear, I could not figure out how to change the 2ndary actions for any weapons. SH was not coded the same way. You change or comment out the 2ndary firing actions and animations all you want, but they still happen.

GICodeWarrior 06-04-2003 08:14 AM

I am refering to AA. Sorry I didn't state that before. I copied the animations and init properties from the primary fire in the bazooka and panzershreck tiki file, but it does not do anything when I hit the secondary fire button.

Is there some variable to set that allows a secondary fire?

~GICodeWarrior

bluebrooks 06-04-2003 11:52 AM

don't know. I never tried what you're doing.

Maybe it has something to do with "weapontype" or "weapongroup"
the pistols are the only weapons with 2ndary action in AA, so you could try using their settings. i have no idea if that will work, but it's worth a shot.

I would try that. Compare the colt tiki to the bazooka and see what is different or missing. good luck

GICodeWarrior 06-04-2003 01:03 PM

The grenades and sniper rifle have secondary actions too. Tried comparing but with no luck. I will try the weapontype/weapongroup thing next.

GICodeWarrior 06-04-2003 01:43 PM

Changing the weapon type to pistol or grenade makes the secondary fire click when it is tapped but it still doesn't fire. Plus not only does this make the weapon appear to be in the pistol or grenade group, it makes the weapon model invisible to me. I made sure that the secondary weapon was of the correct firetype and such but it did not help.

I will continue tinkering... If anyone else has any insight into this problem please help.

~GICodeWarrior

bluebrooks 06-04-2003 02:11 PM

hmm.
if it clicks, it sounds like it is out of ammo...?

okay, maybe it won't work.

GICodeWarrior 06-04-2003 03:33 PM

Yea it clicks like there is no ammo...

GICodeWarrior 06-05-2003 05:00 AM

If I wanted to add a scope to the rocket launcher how would I do that? Maybe that would help me with the secondary fire...

Someone out there must know if what I am trying to do is possible. eek:

Please help,
GICodeWarrior

mohaa_rox 06-05-2003 05:42 AM

it isn't possible, cause the weaponclass of the bazooka is "heavy" and the weaponclass of snipers is i think rifle but with the scope stuff.

bluebrooks 06-05-2003 07:05 AM

you can put a scope on a bazooka, easy....
just add a line like this to the tiki...
zoom 40

or 30 or 20 or whatever you want.
I don't think that is going to help with what you are doing though. Using a scope isn't really a secondary action the way you using it. It is kind of an addition to 2ndary actions. For example, you can put a scope on the pistols with the same code line. But then when you right-click, the gun will bash AND try and use the scope at the same time.

GICodeWarrior 06-05-2003 02:36 PM

Really looks like it can't be done... Thanks for all your help.

I am still open to suggestions but don't expect anything new.

~GICodeWarrior

mohaa_rox 06-06-2003 01:48 AM

but u can try, no harm trying. biggrin:


All times are GMT -6. The time now is 11:17 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.