Make a proyectile that bounces of ground

Ask questions, discuss ideas, get answers
Machi
Posts: 14
Joined: Sat Dec 11, 2010 6:51 pm

Make a proyectile that bounces of ground

Post 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!
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Make a proyectile that bounces of ground

Post by Senshi »

For bouncy weapons, take a look at the grenade. :) That should help. And for effects...not so easy...
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make a proyectile that bounces of ground

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Machi
Posts: 14
Joined: Sat Dec 11, 2010 6:51 pm

Re: Make a proyectile that bounces of ground

Post 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?
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make a proyectile that bounces of ground

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
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

Post 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:

Code: Select all

ObjectTemplate.dieAtObjectHit 1
You may need to set "objectTemplate.dieAfterColl" to zero when using this command. ;)
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make a proyectile that bounces of ground

Post by Swaffy »

What have you used it on, AP?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
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

Post 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. :P
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Make a proyectile that bounces of ground

Post 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?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
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

Post 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. ;)
ImageImageImage
I have cameras in your head!
Post Reply