by Spike » Sun Mar 29, 2015 4:13 am
toneddu2000, I'm not sure what you're even trying to do, iiuc you're trying to position a viewmodel (as opposed to a vwep) directly on the player's model instead of simply positioning it in screenspace?
either way, you seem confused about what the various builtins return that you've decided to randomly call, so I'll try to describe them again:
skel_get_boneabs:
directly returns the modelspace position of the bone, also obtains the orientation via storing to the v_forward/v_right/v_up vectors (like makevectors does).
I'll say that again, returns a POSITION, not an ANGLE.
the result matrix is in model space. that is it does not consider the origin of the entity because there IS no specific entity to which it should be oriented.
because this is modelspace, positions won't be much larger than the entity's bbox.
gettaginfo:
exactly like skel_get_boneabs, but the result is in world space. uses the specified entity's skeleltal object, or the current frame if none is specified.
skel_get_bonerel:
exactly like skel_get_boneabs, except the result is relative to its parent bone, and thus will be quite small.
.