Raised This Month: $ Target: $400
 0% 

client's head origin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 09-07-2008 , 01:55   Re: client's head origin
Reply With Quote #7

Quote:
Originally Posted by Emp` View Post
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.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode