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 walls/sky
Damage from walls/sky
2002-02-23, 12:46 PM #1
If you run at high speed vs. walls or jump fast at the sky, you get damaged.. is there a way to prevent this?

Thanks in advance,
-Raze
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 12:54 PM #2
Yes. A very easy way. Flag the surface as 'no damage from fall'. Walls, cieling, sky, doesnt matter, still works.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-02-23, 1:36 PM #3
if you want to do it without changing the level, it's going to be hard. Try to change some actor/thing flags, i think there are some for invulnerability, but i'm not sure if they will work, and rechange them after a timer has timed out. You could change the flags and start the timer in the weapons cog that does the kickback.
If this does not work, there is another way i can think of. Try to create a thing with a bounding box a little bigger than the one of a player. Then have in the weapon cog this thing created and attached to the player. Maybe it will work as a shield, who knows (of course, you would not want to create a 3do for it, and you would want to destroy it shortly after it's creation). Tell me if you managed to do one of those things...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 1:40 PM #4
Just had a bright moment..

For each [surface] do
SetSurfaceFlags[no fall damage].


BUT.. erm, are surfaces 'things'? Do they have a thingtype? Then it would be easy, done that kind of things before =) .
if they don't.. how could I get the ID of each single surface in the level?
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 1:56 PM #5
I think I got it, found the cog verb GetSurfaceCount() =)

a simple

surfacecount = GetSurfaceCount();
while (surfacecount != 0) {
SetSurfaceFlags(surfacecount, 0x80);
surfacecount = surfacecount -1;
}

seems to do the trick...

Or would that by any chance not work? Oh, and is the first surface 0 or 1 ?

-Raze
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 2:08 PM #6
the first surface is 0. I'm not sure if you can just reference a surface by an int...could work, but tell us if it doesn't.

[This message has been edited by zagibu (edited February 23, 2002).]
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 2:42 PM #7
Well, I have only experienced one surface that gives damage and that's probably the 0... apart from that, 3dos still give damage.. any work-around suggestions?
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 2:56 PM #8
err...what are you trying to do again? I mean, exactly.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 3:00 PM #9
ah, i see now. The 0 surface gives damage because you are not changing it in your while loop (try while(surfacecount > 0)).
No idea for the 3dos, cause both of my ways described above dont work...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-02-23, 3:10 PM #10
Well it works if I include the 0, so the only prob are the 3dos but oh well, how many objects in a level are 3dos, gotta live with that =) .
--
You are all just jealous because you can't hear the small voices!!
2002-02-23, 3:18 PM #11
[http://forums.massassi.net/html/wink.gif] Just watch where you are going! [http://forums.massassi.net/html/tongue.gif]

------------------
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
Have Lightsaber Will Travel JK Editing tips, troubleshooting information, resources and more.
www.swgalaxies.net For all your Star Wars Galaxies needs
The Massassi A SW Galaxies Player Association
2002-02-23, 3:18 PM #12
couldn't you just do something like this...

damaged:
if(GetParam(1) == 64)
{
ReturnEx(0);
}
else
{
ReturnEx(GetParam(0));
}
Return;
- Wisdom is 99% experience, 1% knowledge. -
2002-02-23, 3:44 PM #13
Yep, just run an array setting all of the surfaces to nodamage. (I didnt know this was for a mod... [http://forums.massassi.net/html/frown.gif] )

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!