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 → Stopping the Player
Stopping the Player
2004-01-18, 6:28 PM #1
Is there a way to stop a player from moving in JK, while still letting him rotate and fall?
I've tried StopThing() and SetThingVel() in a pulse message but they also keep the player from falling (he stays suspended in the air and descends SLOWLY).
I've also tried to apply negative force along the X and Y axes, but I've had no luck. Of course, I might be doing it wrong. Here is what I used for the negative force
Code:
	ApplyForce(player, vectorset(-vectorx(GetThingThrust(player)), -vectory(GetThingThrust(player)), 0));


Is there a way to do it? Will what I tried work but should done differently(correctly)?
It's not a BIG deal if I can't, but I'd really like to get it to work. Thanks in advance for any help I can get. I'm gonna go to bed now (I'm on the East coast and it's 12:26). Good night. [http://forums.massassi.net/html/smile.gif]

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team
May the mass times acceleration be with you.
2004-01-18, 7:36 PM #2
Im sure theres a few physics flags you could strip the player of, or a few actor flags, that would remove player control.... Kyle would still react to physics, but the player wouldnt be able to move him....

------------------
The future is here, and all bets are off.
And when the moment is right, I'm gonna fly a kite.
2004-01-18, 8:13 PM #3
Clearphysicsflags(player, 0x2);

that should take away the player's ability to run and stuff. I don't know about jumping, but he can still turn and fall.

------------------
Duel Zero : Released the beta. Probably the end of it. Not to worry though, I'm working on Randsaber, which is a lot better.
2004-01-19, 7:06 AM #4
I hadn't considered clearing flags for this. Thanks for pointing me in the right direction guys.
Also, thanks for telling me which flag to clear, Checksum.

GBK suggested that there were probably some actor flags as well. I found this one in the Datamaster's actor flag section:
Code:
0x40000 - Both (Actor and Player) - Creature is partially immobilized. It cannot move or jump, but can still turn and fire.

I cleared it (because it prevented jumping, too), but it didn't have any effect on the player.

Anyway, thanks for helping me (again!) [http://forums.massassi.net/html/biggrin.gif].

------------------
I am Darth Slaw.
The Dark Lord of the Sith,
And part of the Nightfire mod team

[This message has been edited by Darth Slaw (edited January 19, 2004).]
May the mass times acceleration be with you.

↑ Up to the top!