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 → Discovery: Physics flag 0x800 enables slipping when attached to walls
Discovery: Physics flag 0x800 enables slipping when attached to walls
2003-12-13, 8:33 PM #1
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).]
2003-12-13, 11:36 PM #2
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..
2003-12-14, 6:06 AM #3
Clarification:

0x800 Enables slipping (to floor if wall <= 90 degrees or to ceiling otherwise) when player is attached to wall.
2003-12-14, 6:14 AM #4
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.
2003-12-14, 7:14 AM #5
Interesting....

------------------
Fight the future.
And when the moment is right, I'm gonna fly a kite.
2003-12-15, 6:24 AM #6
Quote:
<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
-Hell Raiser
2003-12-15, 7:36 AM #7
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

-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
I am Darth PJB!
well, go on, run away!

i have a plastic lightsaber and a jedi cape.. am i a nerd?

If gravity is a crule mistress, and bar tenders with bad grammar are untrustworthy, what is air?
2003-12-16, 11:58 AM #8
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 key count: Zero! Down to guns and forces. Expect a release soon.
2003-12-17, 4:25 AM #9
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]
2003-12-17, 4:40 AM #10
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]
2003-12-18, 8:53 AM #11
Well, dog gone, put it in a gob and release it.
2003-12-19, 1:41 AM #12
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
-Hell Raiser
2003-12-19, 1:44 AM #13
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!

Code:
# 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
-Hell Raiser

↑ Up to the top!