Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → damage from surfaces
damage from surfaces
2001-04-01, 12:17 PM #1
what cog causes the player to be damaged when landing on a surface as a function of how high up he is? i'm trying to make a level where when the player falls from high up and hits the water, it kills him, when he falls from a medium height it damages him as a function of that height, and when he falls from a short distance it doesn't kill him at all, he just goes into the water. the thing is that he would have to take damage passing through the surface, not landing on it. i would like it to take as much damage as if it were an impassible surface, but have the player pass through it. any ideas?

------------------
"the mouse is my chisel."
Little House of Hazards
Surface Disposal Outpost
"the mouse is my chisel."
MotS mp:
Little House of Hazards
Surface Disposal Outpost
2001-04-01, 4:23 PM #2
nope have fun i was hoping it was something like how can i make a surface damage a player if he touches it, i can do that but i have no idea how to achieve what u want. Sorry maybe hideki will come along with an idea
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-04-01, 7:40 PM #3
Well I do ..

If you attatch a cog to a water

then maybe ...

touched:

toucher=getsourceref();
if(hekei would come along and put in some sort of command that gets the players vectorz viloticy .. >= 5) // hard hit

damagething(toucher, 100);

random=rand()*30
if(random >= 28) random=random-10;
if(speed >= 3) damagething(player, random);

and so on

sorry about the random part I just hate set damage things , there too predictible...

thats why I have selective damage on my TC [http://forums.massassi.net/html/smile.gif]
2001-04-04, 10:05 PM #4
thanks. anybody else?
"the mouse is my chisel."
MotS mp:
Little House of Hazards
Surface Disposal Outpost

↑ Up to the top!