Page 1 of 3

weapon request: bouncing grenade

Posted: 22 Jun 2007, 18:18
by smoth
Something like the quake 3 grenade laucher, it could have a
time delay on explosion
or/and
bounce count then explosion
along with explosion when it hits a unit as it is moving along.

I do not particularly need it for gundam but I was thinking that it is an interesting weapon type that we do not have.

Posted: 22 Jun 2007, 18:27
by Guessmyname
groundbounce=1 make the weapon bounce on the ground, might not work in spring though - I've never tested it

Posted: 22 Jun 2007, 20:12
by KDR_11k
I think it works only for certain weapontypes.

Posted: 23 Jun 2007, 00:13
by Nemo
groundbounce doesn't work for ballistic weapons. Come to think of it, I've never seen it used, actually.

Posted: 23 Jun 2007, 02:12
by AF
I thought trepans lua physics allowed for these sorts of customizations?

Posted: 23 Jun 2007, 08:15
by KDR_11k
AFAIK there's no lua control of projectiles and no plans to add them.

Posted: 23 Jun 2007, 08:31
by ILMTitan
How would you determine how much height it lost per bounce? 20%? Another tag?

Posted: 23 Jun 2007, 13:31
by Tobi
Maybe just reuse groundbounce for it?

(ie. groundbounce=1 means it bounces back at full energy, groundbounce=0.5 means it loses half it's energy or velocity etc.)

Posted: 23 Jun 2007, 19:33
by smoth
I had no idea that we had a tag for that... I feel kinda stupid...

I tried ground bounce on a rocket and the rocket didn't bounce. What am I missing?

Posted: 23 Jun 2007, 19:58
by Tobi
Well no one is sure we have one, let me check..

EDIT: nope, not implemented in Spring

Posted: 23 Jun 2007, 20:35
by KDR_11k
I think it's implemented for flamers but only for those.

Posted: 23 Jun 2007, 20:47
by Tobi
I searched through the entire solution for 'groundbounce' in MSVC, but didn't find anything.

Posted: 23 Jun 2007, 21:22
by ILMTitan
This seems like something I would like to work on, but I don't think I should try to include it in .75. .75 is theoretically feature complete, and this would be a new feature.

Posted: 24 Jun 2007, 08:45
by smoth
cool, I look forward to whatever you work out.

Posted: 24 Jun 2007, 15:35
by Tobi
ILMTitan wrote:This seems like something I would like to work on, but I don't think I should try to include it in .75. .75 is theoretically feature complete, and this would be a new feature.
Well you could work on it and once a patch is ready we can see whether 0.75 has already been released or is really feature frozen or there is still room to commit the patch...

Posted: 02 Jul 2007, 06:09
by ILMTitan
Finally got back down to coding this afternoon. Getting things to skip off of the ground is easy, but now we need a way to determine how long a groundbouncing projectile can last, such as a new tag. Does "projectiletimeout" sound right? Is it available?

Posted: 02 Jul 2007, 06:13
by Snipawolf
Timeout? Sounds good.. Seconds, right? Milliseconds and ticks are too short..

Hope this turns out well, I may have a use for it, grenades don't have enough pop.. Bouncing bombs DO! :mrgreen: :mrgreen: :mrgreen:

http://en.wikipedia.org/wiki/Bouncing_bomb

Posted: 02 Jul 2007, 06:34
by smoth
Whatever tag you feel fine with ilm is good enough for me. I honestly do not have a unit which can utilize this in my gundam project but I look forward to what 44 and others can do with it.

Posted: 02 Jul 2007, 07:35
by ILMTitan
That link brings me to another question I had. How do I determine if it should skip of the water. Some things you might want to explode when it hits the water, and some skip of the surface, and some off of the floor. Would I be able to use underwater weapon for that?

Posted: 02 Jul 2007, 07:45
by smoth
hmm... could just be like a waterexplode tag to denote that it would explode underwater?