This is a multi-part message in MIME format. -- [ Picked text/plain from multipart/alternative ] Hello everyone,
I have ran into another problem: GetAttachment. I set all my attachment points in the player model and they look fine in the hlviewer. Here's what it looks like in the ...qc file: $attachment 0 "Bip01 R Hand" 0 0 0 $attachment 1 "Bip01 R Hand" 2 0 25 Now, in the game, I have this snippet of code to draw the line that goes from attachment 0 to attachment 1 Vector vecAttSrc, vecAttEnd, vecAng; GetAttachment( 0, vecAttSrc, vecAng ); GetAttachment( 1, vecAttEnd, vecAng ); MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY ); WRITE_BYTE( TE_SHOWLINE); WRITE_COORD(vecAttSrc.x); WRITE_COORD(vecAttSrc.y); WRITE_COORD(vecAttSrc.z); WRITE_COORD(vecAttEnd.x); WRITE_COORD(vecAttEnd.y); WRITE_COORD(vecAttEnd.z); MESSAGE_END(); The origins for both vector are way off, the source vector doesn't even originate at the hand, it just originates somewhere in thin air. Am I using GetAttachment the wrong way? I also tried an alternative, using GetBonePosition on bone 33 (Bip01 R Hand), but it just sends me approximately the same coords as calling GetAttachment 0. I know the attachment points are valid because when I display them in the client side in StudioModelRenderer using : cl_entity_t *player = gEngfuncs.GetLocalPlayer(); player->attachment[0] player->attachment[1] They are perfect. I know that client side, the attachments are only valid once they are rendered, but what about if I need attachments server-side? Aren't they always supposed to be valid? I know some creatures (like the gargantua and nihilanth) use attachment points in this manner, I'm just wondering why it doesn't seem to work for player models. Anybody have any ideas? cyberbum ----------------------------------------------------------- Project Lead/Coder/Designer Gladiator mod [EMAIL PROTECTED] ICQ: 11425443 http://gladiator.lan-gaming.com -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

