View Full Version : Discovery: Physics flag 0x800 enables slipping when attached to walls
ZeqMacaw
12-13-2003, 11:33 PM
Physics Flag
0x800 Enables slipping (to floor if wall <= 90 degrees or to ceiling) when player is attached to wall.
This flag is set in the _actor template, which a walkplayer uses by default.
If this flag is cleared while the 0x10 and the 0x80 physics flags are set, then the player can walk on the walls and ceiling without slipping.
Please post in this topic if you have any more information on this flag.
[This message has been edited by ZeqMacaw (edited December 13, 2003).]
EH_AceCSF
12-14-2003, 02:36 AM
hmm intresting.. what about faces that are more then 90 degreses?
------------------
The miners of Kiith Somtaaw sacificed much, and risked all. For their efforts they were brought into the inner most circle of Hiigaren power. Naabal, S'jet, and Sobanii bowed before them. And from that day to this, Somtaaw's children have been known to one and all as Beastslayers..
ZeqMacaw
12-14-2003, 09:06 AM
Clarification:
0x800 Enables slipping (to floor if wall <= 90 degrees or to ceiling otherwise) when player is attached to wall.
ZeqMacaw
12-14-2003, 09:14 AM
This flag (with the 0x10 and 0x80 flags) has been tested on a small SP level and a small MP level (both in JK only).
I would guess that a SpiderMan, Walk on Walls, or climbing mod would be much easier to implement or better with this flag cleared.
Interesting....
------------------
Fight (http://12.220.251.111/cgi-bin/addies.pl) the (http://12.220.251.111/ol) future (http://12.220.251.111/ol/cogpad/cogpad.html).
Hell Raiser
12-15-2003, 09:24 AM
<font face="Verdana, Arial" size="2">Originally posted by EH_AceCSF:
hmm intresting.. what about faces that are more then 90 degreses?
</font>
I would assume it would apply for any degree angle. http://forums.massassi.net/html/rolleyes.gif
------------------
-Blessed Be-
A solid challenge will bring forth your finest abilities.
DBZ: The Destruction is Real (http://www.hellraiser64.com/tdir)
[SF]pjb
12-15-2003, 10:36 AM
to quote GBK....
intresting....
------------------
I am pjb.
Another post......
another moment of my life wasted.....
at least i made a level.
PJB's JK page's (http://www.geocities.com/SF_PJB1)
-the PJB jedi rule book-
rule one, "never trust a bartender with bad grammar"-kyle katarn in JO
Rule Two, "Gravity is a crule misstress" -kyle katarn in MotS, and the alternatior MK I in AJTD
Checksum
12-16-2003, 02:58 PM
This is COOL. WoW needed this. Badly.
On another note, somehow or another crouching seems to clear this flag, or at least give the same effects.
Remember in WoW, you'd be sliding and you'd hit crouch and it'd stop you dead.
------------------
Duel Zero (http://forums.massassi.net/html/Forum5/HTML/010438.html) key count: Zero! Down to guns and forces. Expect a release soon.
ZeqMacaw
12-17-2003, 07:25 AM
Clarification:
0x800 Enables slipping when player is attached to wall surfaces. Player slips toward floor if the wall is angled like a ramp to the floor (i.e. 180 degrees > ramp >= 90 degrees, measured from the floor to the ramp). Player slips toward ceiling if the wall is angled like a ramp to the ceiling. (i.e. 180 degrees > ramp > 90 degress, measured from the ceiling to the ramp).
http://forums.massassi.net/html/smile.gif
ZeqMacaw
12-17-2003, 07:40 AM
Notes:
- When a sector thrust pushes a player attached to a wall angled toward ceiling (as described above) or attached to the ceiling, the player does a "jump landing" quickly in succession for about 5 seconds. This "jump landing" effect and the end of it place the player sunk into the surface. The "jump landing" effect is replayed while the player moves on this surface. One workaround is to use the "entered" and "exited" (and possibly "touched") messages for the surfaces with the following code:
entered:
player = GetLocalPlayerThing();
senderType = GetSenderType();
theThing = GetSourceRef();
// Sender is a surface.
if (senderType == 6 && theThing == player)
{
SetPhysicsFlags(player, 0x400000); // Disable sector thrust on player.
}
return;
exited:
player = GetLocalPlayerThing();
senderType = GetSenderType();
theThing = GetSourceRef();
if (senderType == 6 && theThing == player)
{
ClearPhysicsFlags(player, 0x400000); // Enable sector thrust on player.
}
return;
touched:
player = GetLocalPlayerThing();
senderType = GetSenderType();
theThing = GetSourceRef();
if (senderType == 6 && theThing == player)
{
SetPhysicsFlags(player, 0x400000); // Disable sector thrust on player.
}
return;
http://forums.massassi.net/html/smile.gif
Well, dog gone, put it in a gob and release it.
Hell Raiser
12-19-2003, 04:41 AM
Well I'll be damned. This is all you need:
SetPhysicsFlags(player, 0x400090);
ClearPhysicsFlags(player, 0x800);
Makes the walk around King Kai's planet really cool now. http://forums.massassi.net/html/biggrin.gif
------------------
-Blessed Be-
A solid challenge will bring forth your finest abilities.
DBZ: The Destruction is Real (http://www.hellraiser64.com/tdir)
Hell Raiser
12-19-2003, 04:44 AM
Figured I'd share this, just add this in your level and reference a thing, say a planitoid sphere or some type http://forums.massassi.net/html/wink.gif and voila!
# Jedi Knight Cog Script
# walk on king kais planet, even upside-down.
# Shred18 & Hell Raiser
flags=0x240
symbols
thing player local
thing planet
message touched
message pulse
end
code
touched:
player = GetSourceRef();
if(planet == GetSenderRef())
{
player = GetSourceRef();
SetPhysicsFlags(player, 0x400090);
ClearPhysicsFlags(player, 0x800);
AttachThingtoThingEx(player, planet, 0x2);
SetPulse(0.5);
}
Return;
pulse:
if(GetThingAttachFlags(player) != 0x2)
{
ClearPhysicsFlags(player, 0x40);
ClearPhysicsFlags(player, 0x10);
ClearPhysicsFlags(player, 0x80);
DetachThing(player);
ClearThingAttachFlags(player,0x2);
SetPulse(0.0);
}
Return;
end
May look a little ugly, sorry about that. http://forums.massassi.net/html/smile.gif
------------------
-Blessed Be-
A solid challenge will bring forth your finest abilities.
DBZ: The Destruction is Real (http://www.hellraiser64.com/tdir)
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.