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 → Resetting the players Z axis
Resetting the players Z axis
2003-01-25, 1:37 PM #1
Is there a way to reset the players Z look to 0 (like when he first spawns).

Because you cant SetThingLook(player, '0 1 0'); because it doesnt effect Z head pitch.

Any ideas?
Team Battle.
2003-01-25, 2:46 PM #2
Two ideas -

SetActorFlags(player, 0x2);

ParseArg(player, "orient=(0.0/0.0/0.0)");



[This message has been edited by The_New_Guy (edited January 25, 2003).]
- Wisdom is 99% experience, 1% knowledge. -
2003-01-25, 3:01 PM #3
Thanks, the parsearg one reset the X and Y, but not the Z. The SetActorFlag(player, 0x2); didnt appear to do anything. Any other ideas?
Team Battle.
2003-01-25, 3:12 PM #4
Code:
SetActorFlags(JKgetlocalplayer(), 0x2);


It works. I know, becuse I just tried it. When run, the player's pitch is (kinda slowly) rotated back to zero.


In other words, make sure you defined 'Player' right.
And when the moment is right, I'm gonna fly a kite.
2003-01-25, 3:27 PM #5
Eekk, your right. I'm an idiot!

Thank you both very much.
Team Battle.
2003-01-25, 4:08 PM #6
Just because I want to. [http://forums.massassi.net/html/tongue.gif]

Code:
VecX = VectorX(GetThingLVec(player));
VecY = VectorY(GetThingLVec(player));
SetThingLook(Player, VectorSet(VecX, VecY, 0));


Will reset the player's Look Vector (not headpitch [http://forums.massassi.net/html/wink.gif] ) to 0 along the Z-axis.
-Hell Raiser
2003-01-25, 6:09 PM #7
How can I control the player headpitch though?
2003-01-25, 6:39 PM #8
You cant using simple methods. But if you dont mind fooling around then you set up a camera at the position of the player and adjusting its rotation relative to the players camera. You then need to fire projectiles from the ghost thing that is the cameras focus.

Then when you want to add the POV you need to use seifers cog because the standard jk one wont work.

[This message has been edited by Hellcat (edited January 25, 2003).]
Team Battle.
2003-01-26, 6:22 AM #9
I'm not sure I understand exactly what you mean. Perhaps you could post some code to get me thinking...

Also, MotS has some extra verbs such at SetActorHeadPitch() which I haven't really had any luck getting to work. But I will continue to experiement with them.
2003-01-26, 12:36 PM #10
Mots has a SetActorHeadPitch() ???

I gotta test this out [http://forums.massassi.net/html/redface.gif]
Team Battle.
2003-01-26, 1:01 PM #11
Are you sure it really has those verbs? I cant find them in the mots .exe [http://forums.massassi.net/html/confused.gif]
Team Battle.
2003-01-26, 1:10 PM #12
JKM.exe right?
-Hell Raiser
2003-01-26, 1:28 PM #13
I'm sorry, I meant SetActorHeadPYR(). I've been messing with it and it doesn't seem to work in the way I need it too.
2003-01-26, 3:35 PM #14
Yep HR.

I will test SetActorHeadPYR(). [http://forums.massassi.net/html/smile.gif]
Team Battle.
2003-01-26, 3:50 PM #15
okay SetActorHeadPYR() works. Heres how to use it:

The way you use it is like this:

Code:
	//Print our current vector
	Printflex(VectorX(GetActorHeadPYR(player)));
	
	//This is what you want the Pitch (z zxis) to be
	z_axis = 15;

	//Set the vector up
	head_pitch = VectorSet(z_axis, 0, 0);

	//Now apply it
	SetActorHeadPYR(player, head_pitch);


Darn I wish JK had these features [http://forums.massassi.net/html/frown.gif]
Team Battle.
2003-01-26, 5:27 PM #16
You're not the only one Hellcat. [http://forums.massassi.net/html/frown.gif]

Would it be terribly illegal to make a mod for MotS and distribute JKM.exe with it? It is abandon-ware. =\

[Me english speak well]

[This message has been edited by Hell Raiser (edited January 26, 2003).]
-Hell Raiser
2003-01-26, 5:56 PM #17
I dunno, its 5-6 years old...

Its possible to make a cut down version of mots which runs if your mod has everything including levels and sound. (I made one today)

But lucasarts might not like that... [http://forums.massassi.net/html/frown.gif]
Team Battle.
2003-01-27, 4:02 AM #18
Does it move just the headpitch, or the entire body?
2003-01-27, 4:40 AM #19
It is unlikely LEC would notice...but that sounds fairly illegal to me. And I doubt massassi would post it. Believe me, I wish it were possible since I do everything for MotS and I know no one has it....
2003-01-27, 1:15 PM #20
It only moves head pitch I believe. Let me test...

//testing...

Yeah it only moves head pitch. Or the upper body (You can change that with the PUP file I think)
Team Battle.

↑ Up to the top!