Page 1 of 1

Multiple grenades thrown [Solved]

Posted: Mon Feb 14, 2011 4:47 pm
by ColonelKlink
Okay, this topic is kinda less important, than other topics I have made, but I would really like to find an answer to this problem. Anyways.....the reason why I made this topic....
What I want to do, is to make an ODF for a custom grenade, and effect, that when you click the fire button, the unit throws like 3 or 4 grenades at the same time, that explode almost at the same time (it doesn't really matter if there is a delay between explosions, but it would be cool if it did), and also spread apart from each other when they are in the air. I already tried changing some lines, but I couldn't get it to do it right. If anyone could help me figure this out, I would be greatful.

Re: Multiple grenades thrown

Posted: Mon Feb 14, 2011 5:17 pm
by AQT
The way I personally would approach this is: in the main grenade ODF,
  • Change the ClassLabel to launcher
  • Increase the SalvoCount to three (3) or four (4)
  • Increase the SalvoDelay to something slightly greater than zero (0); 0.01, for example
  • Copy the spread values from the stock shotgun, and edit to where sees fit
This should give you a general idea to start with.

Re: Multiple grenades thrown

Posted: Mon Feb 14, 2011 5:51 pm
by ColonelKlink
I must have done something wrong, it didn't work.
What I did.....
Renamed the parent to all grenades, com_weap_blah-blah-detanator, to my grenades name. I changed the label to "launcher", changed the salvocount to 4, and the salvodelay to 0.01.
From the shotgun odf, I copied the pitch and yaw spread values, the spreadpershot and the other three values below it, and the stand, crouch, and prone values. That is all that I did.
Is there a line in the ord or exp that maybe, possibly, prohibits this or something? I think I followed your instructions exactly, and I am checking to make sure everything is as you said. Does shotspersalvo have anything to do with this? I think the default is 1, but I am not sure now.

Re: Multiple grenades thrown

Posted: Mon Feb 14, 2011 6:00 pm
by AQT
Oh yes, I forgot to mention another very important part: the RoundsPerClip should match your SalvoCount. Sorry about that.

Re: Multiple grenades thrown

Posted: Mon Feb 14, 2011 6:05 pm
by ColonelKlink
That fixed it. Thanks AQT!! This will help with other stuff I am working on too!