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 → Question concerning Hideki's "Attach Things to Player" tutorial
Question concerning Hideki's "Attach Things to Player" tutorial
2001-12-10, 10:40 PM #1
I'm working w/X-Boarder on the snowboarding level. Can we modify this so that the snowboard can always be attatched to his feet? I assume when the cog gets the PYR that it gets it from the chest, and probably could not get it for the feet.

Any ideas aside from creating player 3do's with the board already attatched to the feet?

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2001-12-11, 12:49 AM #2
I have managed to make a laser pointer attached to enemy characters without creating every second in EPME.

Will write the tutorial sometime soon.
"Attach things to player ver2" [http://forums.massassi.net/html/smile.gif]

------------------
http://millennium.massassi.net/ - Millennium
2001-12-11, 9:35 AM #3
Cool! -- But, could it be attached to say, feet? *hint hint*



------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2001-12-11, 11:22 AM #4
No, Tazz, it doesn't work that way.

The player has a PYR as well as headpitch. They are completely seperate.

The headpitch is how much up or down the player is looking. The headpitch is also used to make projectiles fire in the direction the player is looking.

The PYR is the players pitch, roll, and yaw. This is the orientation of the player's whole body. -NOT just the chest. GetThingLVec() is used to get the PYR. (A lot of coggers mistake the z axis of the lookvec for the headpitch.)

The player always stands straight up so just create the board a little below the player and it should stay with the player's feet. If the board isn't supposed to use it's physics or events, use the 0x8 attach flags and AttachThingToThingEx() to attach the board so it won't get knocked off.

------------------
Incognito

[This message has been edited by SaberMaster (edited December 11, 2001).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-12-11, 2:03 PM #5
What I did was setthingpos and setthinglook in a rapid pulse.

How do you go about getting head pitch in JK again someone?

I did this in mots using getthingjointangle.

------------------
http://millennium.massassi.net/ - Millennium
2001-12-11, 3:00 PM #6
This way?
Code:
SHOT = FireProjectile(player, projectile, -1, -1, '0 0 0', '0 0 0', 0.001, 0x1, 99, 99); 
LOOK = GetThingLVec(SHOT); 


Something tells me thats not what you want, because I thought you invented that technique.
- Wisdom is 99% experience, 1% knowledge. -
2001-12-11, 11:21 PM #7
Quote:
<font face="Verdana, Arial" size="2">
The player always stands straight up so just create the board a little below the player and it should stay with the player's feet. If the board isn't supposed to use it's physics or events, use the 0x8 attach flags and AttachThingToThingEx() to attach the board so it won't get knocked off.
</font>


Do what??? You lost me. The board has to stay exactly with the player's foot, so if he does a spin, or a cool trick, the board will look like it's still bound to his feet, though in reality it only has to be bound to one foot.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2001-12-12, 3:09 AM #8
Your best bet is to make new player 3do's with the board at their feet, cuz all this is gonna be complicated through cog. Plus you can use the keyframes to add in movement of the board, like if the person spun the board with their feet or something....

------------------
-Hell Raiser
Cogging type person that does, umm, stuff.
"Free, your, mind."

[This message has been edited by Hell Raiser (edited December 12, 2001).]
-Hell Raiser
2001-12-12, 8:17 AM #9
Quote:
<font face="Verdana, Arial" size="2">.. so if he does a spin, or a cool trick, the board will look like it's still bound to his feet..</font>


Ahh, so you're going to use new keyframes. I think for that you're going to need to make new player models as HR suggested. It would look much better that way anyhow.

The 0x8 attach flag seems to put the attached thing in a world of it's own. So if you didn't want the player to actually be "riding" on the board, you could attach the board with 0x8 flags and it would stay attached to the bottom of the player. -But if you're going to be using new keys for stunts, it would be nearly impossible to make the board stay with his feet.

Sounds like a good patch. Good luck with it [http://forums.massassi.net/html/wink.gif]

------------------
Incognito
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-12-12, 9:26 AM #10
That's what I was a afraid of. Well, I'm just going to attach the snowboard to the left foot, and then give it multi-celled mats. That way I can make the first completely transparent for running around, and the rest would be the actual boards.

Thanks anyways though.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2001-12-12, 11:58 AM #11
Tazz, beware that if you change a mat cell with cog (SetMaterialCel(material,int);) on a 3do, it will change that mat on every 3do, so make sure each character has a different mat name for the board mats. IE Kyboard.mat Sarisboard.mat, ect ect.......

[edit]rasa frackin smilies[/edit]

------------------
-Hell Raiser
Cogging type person that does, umm, stuff.
"Free, your, mind."

[This message has been edited by Hell Raiser (edited December 12, 2001).]
-Hell Raiser

↑ Up to the top!