Page 1 of 1

Setting up Object Materials & Projectiles Material Responses

Posted: Sat Feb 16, 2008 6:58 pm
by neodos
Hello,

Yes one more tut because today i am motivaed enough :P

In this tutorial i explain how to setup the projectiles reactions when they touch an object like on this video at 1:00s :
http://youtube.com/watch?v=Inacc75oOWw

The rocket bounces over that bubble shield.
In this tutorial i'll give an example how to make a rocket bouce on a crate.

What we need:
entity 1.6UE

Plugins here:
http://www.trashalo.hostgratos.net/plugins/

1- Setting up the object material type

Choose an object in which you want the rocket to bounce, i'll take the crate_packing_giant (big green box)

Go to it's [hlmt]

Open meta editor

Go to the "Materials" reflexive

Now we are going to choose a wreid SID name that has nothing to do with materials so we have a unique material response and the rocket will only bounce for this object.
I'll set the Global Material SID to "rocket_trigger"

Image

2- Adding the material respons to a projectile

Ok now do to [Proj]

Select smg projectile
Open Chunk cloner
Open material responses reflexive

Copy the chunk called "liqui_thin"

And Save



Clic "Copy to clipboard"
Close chunk cloner

Select rocket proj
Open chunk cloner
Clic on material responses reflexive
clic "Add to selected Reflex/Chunk"
clic "Add meta to map"

Open meta editor

Go to "Material Responses"

Select the second chunk

Change the "Surface"
To "rocket_trigger"
Default response to "Attach"
And Save

Now sign, test the map shoot a rocket on the bg green box, the rocket should bounce over the green box!
But if you shoot a wall it will explode because it's the default material response, "rocket_trigger" response is an exception we created.

Image

That's all

-neodos

Setting up Object Materials & Projectiles Material Responses

Posted: Sat Feb 16, 2008 11:44 pm
by Grimdoomer
Dam neodos your on a roll today :D Keep up the good work!

Setting up Object Materials & Projectiles Material Responses

Posted: Mon Feb 18, 2008 11:50 pm
by Rockymods
How you figured this I do not now, but I love it anyways!

Setting up Object Materials & Projectiles Material Responses

Posted: Tue Feb 19, 2008 1:59 am
by bumlove
Only a small finding to add to this, the initial friction below all this in the material responses is how fast it will bounce off, any number below 2 will bounce off slower than what it hit, 2 and it will bounce off at the same speed as what it hit and above 2 will bounce off faster, in real world maths this is usually 1, who knows why bungie choose 2

*edit just out of curiosity I tried initial friction of Zero and it doesn't bounce off*