Make a proyectile that bounces of ground
Make a proyectile that bounces of ground
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!
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
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
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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Make a proyectile that bounces of ground
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?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.
Re: Make a proyectile that bounces of ground
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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Make a proyectile that bounces of ground
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. 
Code: Select all
ObjectTemplate.dieAtObjectHit 1




I have cameras in your head!
Re: Make a proyectile that bounces of ground
What have you used it on, AP?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Make a proyectile that bounces of ground
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. 




I have cameras in your head!
Re: Make a proyectile that bounces of ground
Another question: Will the projectile die [while using that code] when it hits a static object? Or is it just PCOs and players?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Make a proyectile that bounces of ground
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. 




I have cameras in your head!