 |
|
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
|

09-07-2008
, 01:55
Re: client's head origin
|
#7
|
Quote:
Originally Posted by Emp`
Code:
engfunc(EngFunc_GetBonePosition, target, bone, origin, angles)
Bone 8 Name: "Bip01 Head"
So I would assume:
Code:
new Float:HeadOrigin[3], Float:HeadAngles[3];
engfunc(EngFunc_GetBonePosition, id, 8, HeadOrigin, HeadAngles);
if you really need the z-axis offset only, then just:
Code:
new Float:origin[3];
pev( id, pev_origin, origin );
new Float:offset = floatabs( HeadOrigin[2] - origin[2]);
|
Where can I find this information on the functions, i tried the online func area and the .inc files and haven't found it.
__________________
Don't ever place an order with Vee Servers. This is why.
|
|
|
|