AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   EngFunc_GetBonePosition <- how to use (https://forums.alliedmods.net/showthread.php?t=46486)

Zamma 10-27-2006 16:50

EngFunc_GetBonePosition <- how to use
 
Anyone know how I can use this?

AND what does it actually do - im guessing it gets the bones of a model?

p3tsin 10-27-2006 17:11

Re: EngFunc_GetBonePosition <- how to use
 
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

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

btw, i dont think the angles work :?

Zamma 10-28-2006 06:26

Re: EngFunc_GetBonePosition <- how to use
 
Does this only work for cs?

VEN 10-28-2006 08:58

Re: EngFunc_GetBonePosition <- how to use
 
Should work for any HL1 mod.

Zamma 10-28-2006 09:13

Re: EngFunc_GetBonePosition <- how to use
 
Whats the float:angles for the bones?

Im guessing origin = the origin of the bones.


All times are GMT -4. The time now is 04:57.

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