Hi,

I'm currently trying to move around some bones in a particular viewmodel 
(currently I'm testing on the hldm smg) and I've run into some problems. Here's 
the code I'm currently using in C_BaseViewModel::DrawModel just above its own 
call the BaseClass::DrawModel()

CStudioHdr *pStudioHdr = GetModelPtr();

int ibone2 = Studio_BoneIndexByName( pStudioHdr, "ValveBiped.Bip01_L_Forearm");
int ibone = Studio_BoneIndexByName( pStudioHdr, "ValveBiped.Bip01_L_UpperArm");

matrix3x4_t bone = GetBone( ibone );
MatrixCopy( bone, GetBoneForWrite( ibone2 ) );

For now I just want to copy the bone to the other one (I plan to move it around 
once I've got this sorted), but it doesn't seem to work. However it does work 
when firing the smg, but not at any other time. Any ideas on how to get it to 
work?

Thanks

--
This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to