codemp/game/bg_strap.h

Go to the documentation of this file.
00001 //rww - shared trap call system
00002 #include "q_shared.h"
00003 #include "bg_public.h"
00004 
00005 #include "../namespace_begin.h"
00006 
00007 qboolean strap_G2API_GetBoltMatrix(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00008                                                                 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale);
00009 
00010 qboolean strap_G2API_GetBoltMatrix_NoReconstruct(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00011                                                                 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale);
00012 
00013 qboolean strap_G2API_GetBoltMatrix_NoRecNoRot(void *ghoul2, const int modelIndex, const int boltIndex, mdxaBone_t *matrix,
00014                                                                 const vec3_t angles, const vec3_t position, const int frameNum, qhandle_t *modelList, vec3_t scale);
00015 
00016 qboolean strap_G2API_SetBoneAngles(void *ghoul2, int modelIndex, const char *boneName, const vec3_t angles, const int flags,
00017                                                                 const int up, const int right, const int forward, qhandle_t *modelList,
00018                                                                 int blendTime , int currentTime );
00019 
00020 qboolean strap_G2API_SetBoneAnim(void *ghoul2, const int modelIndex, const char *boneName, const int startFrame, const int endFrame,
00021                                                           const int flags, const float animSpeed, const int currentTime, const float setFrame , const int blendTime );
00022 
00023 qboolean strap_G2API_GetBoneAnim(void *ghoul2, const char *boneName, const int currentTime, float *currentFrame,
00024                                                    int *startFrame, int *endFrame, int *flags, float *animSpeed, int *modelList, const int modelIndex);
00025 
00026 void strap_G2API_SetRagDoll(void *ghoul2, sharedRagDollParams_t *params);
00027 
00028 void strap_G2API_AnimateG2Models(void *ghoul2, int time, sharedRagDollUpdateParams_t *params);
00029 
00030 qboolean strap_G2API_SetBoneIKState(void *ghoul2, int time, const char *boneName, int ikState, sharedSetBoneIKStateParams_t *params);
00031 
00032 qboolean strap_G2API_IKMove(void *ghoul2, int time, sharedIKMoveParams_t *params);
00033 
00034 void strap_TrueMalloc(void **ptr, int size);
00035 
00036 void strap_TrueFree(void **ptr);
00037 
00038 #include "../namespace_end.h"