Raised This Month: $ Target: $400
 0% 

EngFunc_GetBonePosition <- how to use


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zamma
Member
Join Date: May 2004
Old 10-27-2006 , 16:50   EngFunc_GetBonePosition <- how to use
Reply With Quote #1

Anyone know how I can use this?

AND what does it actually do - im guessing it gets the bones of a model?
Zamma is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 10-27-2006 , 17:11   Re: EngFunc_GetBonePosition <- how to use
Reply With Quote #2

Code:
EngFunc_GetBonePosition,			// void )			(const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);
heres the list of the bone indexes (by PM if i recall):
Code:
#define PLAYERBONE_PELVIS 1
#define PLAYERBONE_SPINE 2
#define PLAYERBONE_SPINE1 3
#define PLAYERBONE_SPINE2 4
#define PLAYERBONE_SPINE3 5
#define PLAYERBONE_NECK 6
#define PLAYERBONE_HEAD 7
#define PLAYERBONE_L_CLAVICLE 9
#define PLAYERBONE_L_UPPERARM 10
#define PLAYERBONE_L_FOREARM 11
#define PLAYERBONE_L_HAND 12
#define PLAYERBONE_L_FINGER0 13
#define PLAYERBONE_L_FINGER01 14
#define PLAYERBONE_L_FINGER1 15
#define PLAYERBONE_L_FINGER11 16
#define PLAYERBONE_L_THIGH 40
#define PLAYERBONE_L_CALF 41
#define PLAYERBONE_L_FOOT 42
#define PLAYERBONE_R_CLAVICLE 23
#define PLAYERBONE_R_UPPERARM 24
#define PLAYERBONE_R_FOREARM 25
#define PLAYERBONE_R_HAND 26
#define PLAYERBONE_R_FINGER0 27
#define PLAYERBONE_R_FINGER01 28
#define PLAYERBONE_R_FINGER1 29
#define PLAYERBONE_R_FINGER11 30
#define PLAYERBONE_R_THIGH 46
#define PLAYERBONE_R_CALF 47
#define PLAYERBONE_R_FOOT 48

Code:
static Float:origin[3], Float:angles[3] engfunc(EngFunc_GetBonePosition, id,PLAYERBONE_HEAD,origin,angles)

btw, i dont think the angles work
__________________
plop
p3tsin is offline
Zamma
Member
Join Date: May 2004
Old 10-28-2006 , 06:26   Re: EngFunc_GetBonePosition <- how to use
Reply With Quote #3

Does this only work for cs?
Zamma is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 10-28-2006 , 08:58   Re: EngFunc_GetBonePosition <- how to use
Reply With Quote #4

Should work for any HL1 mod.
VEN is offline
Zamma
Member
Join Date: May 2004
Old 10-28-2006 , 09:13   Re: EngFunc_GetBonePosition <- how to use
Reply With Quote #5

Whats the float:angles for the bones?

Im guessing origin = the origin of the bones.
Zamma is offline
Reply



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 18:14.


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