Page 1 of 2
Make a proyectile that bounces of ground
Posted: Thu Jul 28, 2011 5:44 am
by Machi
Hi!
Do you know how can i do a proyectile that properly bounces of ground? I m also interested on making an effect that is called on a collision, but that has a velocity component of the proyectile that caused the collision. I want this to make an effect of tracer bullets ricocheting the ground.
http://www.youtube.com/watch?v=DoQTFbPb ... re=related
thanks!
Re: Make a proyectile that bounces of ground
Posted: Thu Jul 28, 2011 8:46 am
by Senshi
For bouncy weapons, take a look at the grenade.

That should help. And for effects...not so easy...
Re: Make a proyectile that bounces of ground
Posted: Thu Jul 28, 2011 4:15 pm
by Swaffy
I played a mod where the bouncing tracer is the after-effect. Once the projectile hit the ground and disappeared, an effect would happen where a bullet would randomly fly off in a direction. But I think you want that bouncing bullet to do damage I suppose.
Re: Make a proyectile that bounces of ground
Posted: Fri Jul 29, 2011 1:15 am
by Machi
Swaffy wrote:I played a mod where the bouncing tracer is the after-effect. Once the projectile hit the ground and disappeared, an effect would happen where a bullet would randomly fly off in a direction. But I think you want that bouncing bullet to do damage I suppose.
Actually is one of the things i want, i dont need them to do damage, im trying to do only eye candy. Could you tell wich mod was?
Re: Make a proyectile that bounces of ground
Posted: Fri Jul 29, 2011 1:22 am
by Swaffy
I'm sorry, I cannot be totally sure about which one. I strongly believe it is from Silent Heroes. The bouncing bullet didn't happen after every shot, it was random, and seemed to happen between every 3-7 shots.
Re: Make a proyectile that bounces of ground
Posted: Thu Aug 04, 2011 8:31 pm
by Apache Thunder
You can use this unused command to tell the bullet to only die when hitting an object (aka ground collisions won't kill it) which will help in having the bullet still hurt vehicles/objects while allowing it to bounce off the ground:
You may need to set "objectTemplate.dieAfterColl" to zero when using this command.

Re: Make a proyectile that bounces of ground
Posted: Thu Aug 04, 2011 10:26 pm
by Swaffy
What have you used it on, AP?
Re: Make a proyectile that bounces of ground
Posted: Sat Aug 06, 2011 2:12 am
by Apache Thunder
I personally have not used this code on anything. At one point I thought about adding it to the green shell in Mario Kart to allow it to die on vehicle hits but still bounce on everything else, but scrapped that quickly because the mario kart level meshes are objects unlike normal maps that use the heightmap.

Re: Make a proyectile that bounces of ground
Posted: Sat Aug 06, 2011 3:12 am
by Swaffy
Another question: Will the projectile die [while using that code] when it hits a static object? Or is it just PCOs and players?
Re: Make a proyectile that bounces of ground
Posted: Wed Aug 10, 2011 3:36 am
by Apache Thunder
The code doesn't differentiate from PCOs and statics from what I can tell. So yes it will die if it touches anything other then the terrain/water.
