/dports/games/openjk/OpenJK-07675e2/codemp/rd-dedicated/ |
H A D | G2_API.cpp | 505 if (ghoul2[0].mFileName && ghoul2[0].mFileName[0]) in G2API_CleanGhoul2Models() 615 if (model==ghoul2.size()) in G2API_InitGhoul2Model() 630 G2_Init_Bone_List(ghoul2[model].mBlist, ghoul2[model].aHeader->numBones); in G2API_InitGhoul2Model() 685 if (ghoul2.size()>0) in G2API_SetSurfaceOnOff() 687 ghlInfo = &ghoul2[0]; in G2API_SetSurfaceOnOff() 1370 assert(ghoul2.size()); in G2API_AbsurdSmoothing() 1458 assert(ghoul2.size()); in G2_GetRagBoneConveniently() 1576 assert(ghoul2.size()); in G2API_RagForceSolve() 2390 if (ghoul2.size()>0) in G2API_SetNewOrigin() 2392 ghlInfo = &ghoul2[0]; in G2API_SetNewOrigin() [all …]
|
H A D | G2_surfaces.cpp | 349 assert(ghoul2[modelIndex].currentModel && ghoul2[modelIndex].animModel); in G2_SetRootSurface() 371 ghoul2[modelIndex].mSurfaceRoot = surf; in G2_SetRootSurface() 387 ghoul2[modelIndex].mSlist, in G2_SetRootSurface() 389 ghoul2[modelIndex].mBlist); in G2_SetRootSurface() 400 …G2_RemoveRedundantBolts(ghoul2[modelIndex].mBltlist, ghoul2[modelIndex].mSlist, activeSurfaces, ac… in G2_SetRootSurface() 403 for (int i=0; i<ghoul2.size(); i++) in G2_SetRootSurface() 406 if (ghoul2[i].mModelBoltLink != -1) in G2_SetRootSurface() 415 CGhoul2Info_v *g2i = &ghoul2; in G2_SetRootSurface() 529 if (ghoul2->mSlist[i].surface == -1) in G2_AddSurface() 536 ghoul2->mSlist[i].genLod = lod; in G2_AddSurface() [all …]
|
H A D | G2_bones.cpp | 1336 CGhoul2Info &ghoul2, in G2_Set_Bone_Rag() argument 1365 CGhoul2Info &ghoul2, in G2_Set_Bone_Angles_Rag() argument 2157 assert(ghoul2.mFileName[0]); in G2_RagDollSetup() 2320 assert(ghoul2.mFileName[0]); in G2_RagDoll() 2507 assert(ghoul2.mFileName[0]); in G2_RagDollCurrentPosition() 2520 char *debugBoneName = G2_Get_Bone_Name(&ghoul2, ghoul2.mBlist, bone.boneNumber); in G2_RagDollCurrentPosition() 3202 assert(ghoul2.animModel); in G2_RagGetPelvisLumbarOffsets() 3203 int boneIndex = G2_Find_Bone(ghoul2.animModel, ghoul2.mBlist, "pelvis"); in G2_RagGetPelvisLumbarOffsets() 3206 G2_RagGetWorldAnimMatrix(ghoul2, ghoul2.mBlist[boneIndex], params, final); in G2_RagGetPelvisLumbarOffsets() 3218 int bolt = G2_Add_Bolt(&ghoul2, ghoul2.mBltlist, ghoul2.mSlist, "pelvis"); in G2_RagGetPelvisLumbarOffsets() [all …]
|
H A D | G2_misc.cpp | 376 assert(ghoul2.currentModel); in G2_DecideTraceLod() 582 CGhoul2Info &g=ghoul2[i]; in G2_TransformModel() 1524 if (!ghoul2[i].mValid) in G2_TraceModels() 1545 if ( ghoul2[i].mSkin > 0 && ghoul2[i].mSkin < tr.numSkins ) in G2_TraceModels() 1699 if (!ghoul2.size()) in G2_SaveGhoul2Models() 1799 ghoul2.resize(newSize); in G2_LoadGhoul2Model() 1816 ghoul2[i].mModelindex=-1; in G2_LoadGhoul2Model() 1817 ghoul2[i].mFileName[0]=0; in G2_LoadGhoul2Model() 1818 ghoul2[i].mValid=false; in G2_LoadGhoul2Model() 1824 if (ghoul2[i].mModelindex!=-1&&ghoul2[i].mFileName[0]) in G2_LoadGhoul2Model() [all …]
|
H A D | tr_ghoul2.cpp | 517 if (!ghoul2.mBoneCache) in G2_GetModA() 570 if (!ghoul2.mBoneCache) in G2_WasBoneRendered() 706 if (ghoul2.mBoneCache) in G2_GetParentBoneMatrixLow() 1212 bListIndex = G2_Find_Bone(ghoul2.animModel, ghoul2.mBlist, skel->name); in G2_RagGetAnimMatrix() 1218 bListIndex = G2_Add_Bone(ghoul2.animModel, ghoul2.mBlist, skel->name); in G2_RagGetAnimMatrix() 1898 ghoul2.mBoneCache->mLastTouch=ghoul2.mBoneCache->mLastLastTouch; in G2_TransformGhoulBones() 1978 ghoul2.mBoneCache->mLastLastTouch=ghoul2.mBoneCache->mCurrentTouch; in G2_TransformGhoulBones() 1979 ghoul2.mBoneCache->mCurrentTouchRender=ghoul2.mBoneCache->mCurrentTouch; in G2_TransformGhoulBones() 2751 if (ghoul2.mFileName && ghoul2.mFileName[0]) in G2_GetBoltMatrixLow() 2807 if (ghoul2[i].mModelindex != -1 && ghoul2[i].mValid) in RootMatrix() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/rd-vanilla/ |
H A D | G2_API.cpp | 732 if (ghoul2[0].mFileName && ghoul2[0].mFileName[0]) in G2API_CleanGhoul2Models() 854 G2_Init_Bone_List(ghoul2[model].mBlist, ghoul2[model].aHeader->numBones); in G2API_InitGhoul2Model() 909 if (ghoul2.size()>0) in G2API_SetSurfaceOnOff() 911 ghlInfo = &ghoul2[0]; in G2API_SetSurfaceOnOff() 1594 assert(ghoul2.size()); in G2API_AbsurdSmoothing() 1682 assert(ghoul2.size()); in G2_GetRagBoneConveniently() 2128 if (ghoul2.size()) in G2API_HaveWeGhoul2Models() 2147 if (&ghoul2) in G2API_SetGhoul2ModelIndexes() 2159 ghoul2[i].mSkin = skinList[ghoul2[i].mCustomSkin]; in G2API_SetGhoul2ModelIndexes() 2637 if (ghoul2.size()>0) in G2API_SetNewOrigin() [all …]
|
H A D | G2_surfaces.cpp | 349 assert(ghoul2[modelIndex].currentModel && ghoul2[modelIndex].animModel); in G2_SetRootSurface() 371 ghoul2[modelIndex].mSurfaceRoot = surf; in G2_SetRootSurface() 387 ghoul2[modelIndex].mSlist, in G2_SetRootSurface() 389 ghoul2[modelIndex].mBlist); in G2_SetRootSurface() 400 …G2_RemoveRedundantBolts(ghoul2[modelIndex].mBltlist, ghoul2[modelIndex].mSlist, activeSurfaces, ac… in G2_SetRootSurface() 403 for (int i=0; i<ghoul2.size(); i++) in G2_SetRootSurface() 406 if (ghoul2[i].mModelBoltLink != -1) in G2_SetRootSurface() 415 CGhoul2Info_v *g2i = &ghoul2; in G2_SetRootSurface() 529 if (ghoul2->mSlist[i].surface == -1) in G2_AddSurface() 536 ghoul2->mSlist[i].genLod = lod; in G2_AddSurface() [all …]
|
H A D | G2_bones.cpp | 1335 CGhoul2Info &ghoul2, in G2_Set_Bone_Rag() argument 1364 CGhoul2Info &ghoul2, in G2_Set_Bone_Angles_Rag() argument 2274 assert(ghoul2.mFileName[0]); in G2_RagDollSetup() 2437 assert(ghoul2.mFileName[0]); in G2_RagDoll() 2622 assert(ghoul2.mFileName[0]); in G2_RagDollCurrentPosition() 2635 char *debugBoneName = G2_Get_Bone_Name(&ghoul2, ghoul2.mBlist, bone.boneNumber); in G2_RagDollCurrentPosition() 3393 assert(ghoul2.animModel); in G2_RagGetPelvisLumbarOffsets() 3394 int boneIndex = G2_Find_Bone(ghoul2.animModel, ghoul2.mBlist, "pelvis"); in G2_RagGetPelvisLumbarOffsets() 3397 G2_RagGetWorldAnimMatrix(ghoul2, ghoul2.mBlist[boneIndex], params, final); in G2_RagGetPelvisLumbarOffsets() 3409 int bolt = G2_Add_Bolt(&ghoul2, ghoul2.mBltlist, ghoul2.mSlist, "pelvis"); in G2_RagGetPelvisLumbarOffsets() [all …]
|
H A D | G2_misc.cpp | 376 assert(ghoul2.currentModel); in G2_DecideTraceLod() 582 CGhoul2Info &g=ghoul2[i]; in G2_TransformModel() 1525 if (!ghoul2[i].mValid) in G2_TraceModels() 1546 if ( ghoul2[i].mSkin > 0 && ghoul2[i].mSkin < tr.numSkins ) in G2_TraceModels() 1700 if (!ghoul2.size()) in G2_SaveGhoul2Models() 1800 ghoul2.resize(newSize); in G2_LoadGhoul2Model() 1817 ghoul2[i].mModelindex=-1; in G2_LoadGhoul2Model() 1818 ghoul2[i].mFileName[0]=0; in G2_LoadGhoul2Model() 1819 ghoul2[i].mValid=false; in G2_LoadGhoul2Model() 1825 if (ghoul2[i].mModelindex!=-1&&ghoul2[i].mFileName[0]) in G2_LoadGhoul2Model() [all …]
|
H A D | tr_ghoul2.cpp | 1364 bListIndex = G2_Find_Bone(ghoul2.animModel, ghoul2.mBlist, skel->name); in G2_RagGetAnimMatrix() 1370 bListIndex = G2_Add_Bone(ghoul2.animModel, ghoul2.mBlist, skel->name); in G2_RagGetAnimMatrix() 2050 ghoul2.mBoneCache->mLastTouch=ghoul2.mBoneCache->mLastLastTouch; in G2_TransformGhoulBones() 2130 ghoul2.mBoneCache->mLastLastTouch=ghoul2.mBoneCache->mCurrentTouch; in G2_TransformGhoulBones() 3114 if (ghoul2.mFileName && ghoul2.mFileName[0]) in G2_GetBoltMatrixLow() 3170 if (ghoul2[i].mModelindex != -1 && ghoul2[i].mValid) in RootMatrix() 3178 G2_GetBoltMatrixLow(ghoul2[i],ghoul2[i].mNewOrigin,scale,bolt); in RootMatrix() 3230 CGhoul2Info_v &ghoul2 = *((CGhoul2Info_v *)ent->e.ghoul2); in R_AddGhoulSurfaces() local 3293 if (ghoul2[i].mValid&&!(ghoul2[i].mFlags & GHOUL2_NOMODEL)&&!(ghoul2[i].mFlags & GHOUL2_NORENDER)) in R_AddGhoulSurfaces() 3315 else if ( ghoul2[i].mSkin > 0 && ghoul2[i].mSkin < tr.numSkins ) in R_AddGhoulSurfaces() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/ghoul2/ |
H A D | g2_local.h | 217 int G2_Get_Bone_Index(CGhoul2Info *ghoul2, const char *boneName); 245 void G2_LoadGhoul2Model(CGhoul2Info_v &ghoul2, char *buffer); 266 qboolean G2API_IsGhoul2InfovValid (CGhoul2Info_v& ghoul2); 291 void G2API_AnimateG2Models(CGhoul2Info_v &ghoul2, float speedVar); 305 qboolean G2API_HaveWeGhoul2Models(CGhoul2Info_v &ghoul2); 320 char *G2API_GetGLAName(CGhoul2Info_v &ghoul2, int modelIndex); 331 void G2API_LoadGhoul2Models(CGhoul2Info_v &ghoul2, char *buffer); 332 void G2API_LoadSaveCodeDestructGhoul2Info(CGhoul2Info_v &ghoul2); 346 void G2API_ResetRagDoll(CGhoul2Info_v &ghoul2); 374 void G2API_ClearSkinGore ( CGhoul2Info_v &ghoul2 ); [all …]
|
/dports/games/openjk/OpenJK-07675e2/code/game/ |
H A D | g_client.cpp | 897 if ( !self || !self->ghoul2.size() ) in G_StandardHumanoid() 901 if ( self->playerModel < 0 || self->playerModel >= self->ghoul2.size() ) in G_StandardHumanoid() 1153 gi.G2API_SetSurfaceOnOff( &ent->ghoul2[ent->playerModel], token, 0 ); in G_SetG2PlayerModelInfo() 1159 gi.G2API_SetSurfaceOnOff( &ent->ghoul2[ent->playerModel], "l_arm_key", 0 ); in G_SetG2PlayerModelInfo() 1278 ent->headBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "*head"); in G_SetG2PlayerModelInfo() 1303 ent->gutBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "*mouth"); in G_SetG2PlayerModelInfo() 1804 if ( ent->playerModel >= 0 && ent->ghoul2.size() ) in G_RemovePlayerModel() 1806 gi.G2API_RemoveGhoul2Model( ent->ghoul2, ent->playerModel ); in G_RemovePlayerModel() 1813 if ( ent->ghoul2.size() ) in G_RemoveWeaponModels() 1817 gi.G2API_RemoveGhoul2Model( ent->ghoul2, ent->weaponModel[0] ); in G_RemoveWeaponModels() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codeJK2/game/ |
H A D | g_client.cpp | 884 gi.G2API_SetSurfaceOnOff( &ent->ghoul2[ent->playerModel], token, 0 ); in G_SetG2PlayerModelInfo() 890 gi.G2API_SetSurfaceOnOff( &ent->ghoul2[ent->playerModel], "l_arm_key", 0 ); in G_SetG2PlayerModelInfo() 917 ent->crotchBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "pelvis"); in G_SetG2PlayerModelInfo() 920 ent->handLBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "*l_hand"); in G_SetG2PlayerModelInfo() 972 ent->headBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "*head"); in G_SetG2PlayerModelInfo() 995 ent->torsoBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "torso"); in G_SetG2PlayerModelInfo() 996 ent->crotchBolt = gi.G2API_AddBolt(&ent->ghoul2[ent->playerModel], "hips"); in G_SetG2PlayerModelInfo() 1403 gi.G2API_RemoveGhoul2Model( ent->ghoul2, ent->playerModel ); in G_DriveATST() 1444 gi.G2API_RemoveGhoul2Model( ent->ghoul2, ent->playerModel ); in G_DriveATST() 1449 gi.G2API_RemoveGhoul2Model( ent->ghoul2, ent->weaponModel ); in G_DriveATST() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/rd-common/ |
H A D | tr_public.h | 157 void (*G2API_AbsurdSmoothing) ( CGhoul2Info_v &ghoul2, qboolean status ); 178 char * (*G2API_GetGLAName) ( CGhoul2Info_v &ghoul2, int modelIndex ); 187 int (*G2API_Ghoul2Size) ( CGhoul2Info_v &ghoul2 ); 190 qboolean (*G2API_HaveWeGhoul2Models) ( CGhoul2Info_v &ghoul2 ); 193 qboolean (*G2API_IsGhoul2InfovValid) ( CGhoul2Info_v& ghoul2 ); 197 void (*G2API_LoadGhoul2Models) ( CGhoul2Info_v &ghoul2, char *buffer ); 198 void (*G2API_LoadSaveCodeDestructGhoul2Info) ( CGhoul2Info_v &ghoul2 ); 204 qboolean (*G2API_RagForceSolve) ( CGhoul2Info_v &ghoul2, qboolean force ); 212 void (*G2API_ResetRagDoll) ( CGhoul2Info_v &ghoul2 ); 239 int (*G2API_GetNumGoreMarks) ( CGhoul2Info_v& ghoul2, int modelIndex ); [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/game/ |
H A D | bg_g2_utils.c | 46 boltIndex = trap->G2API_AddBolt(ghoul2, 0, "jaw_bone"); in BG_AttachToRancor() 48 boltIndex = trap->G2API_AddBolt(ghoul2, 0, "jaw_bone"); in BG_AttachToRancor() 54 boltIndex = trap->G2API_AddBolt(ghoul2, 0, "*r_hand"); in BG_AttachToRancor() 56 boltIndex = trap->G2API_AddBolt(ghoul2, 0, "*r_hand"); in BG_AttachToRancor() 61 …trap->G2API_GetBoltMatrix( ghoul2, 0, boltIndex, &boltMatrix, rancAngles, rancOrigin, time, modelL… in BG_AttachToRancor() 63 …trap->G2API_GetBoltMatrix( ghoul2, 0, boltIndex, &boltMatrix, rancAngles, rancOrigin, time, modelL… in BG_AttachToRancor() 113 qboolean BG_GetRootSurfNameWithVariant( void *ghoul2, const char *rootSurfName, char *returnSurfNam… in BG_GetRootSurfNameWithVariant() argument 116 if ( !ghoul2 || !trap->G2API_GetSurfaceRenderStatus( ghoul2, 0, rootSurfName ) ) in BG_GetRootSurfNameWithVariant() 118 if ( !ghoul2 || !trap->G2API_GetSurfaceRenderStatus( ghoul2, 0, rootSurfName ) ) in BG_GetRootSurfNameWithVariant() 131 if ( !trap->G2API_GetSurfaceRenderStatus( ghoul2, 0, returnSurfName ) ) in BG_GetRootSurfNameWithVariant() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/client/ |
H A D | cl_uiapi.cpp | 256 if ( !ghoul2 ) { in CL_G2API_SetGhoul2ModelIndexes() 264 if ( !ghoul2 ) { in CL_G2API_HaveWeGhoul2Models() 272 if ( !ghoul2 ) { in CL_G2API_GetBoltMatrix() 280 if ( !ghoul2 ) { in CL_G2API_GetBoltMatrix_NoReconstruct() 320 void* ghoul2, in CL_G2API_CollisionDetect() argument 354 void* ghoul2, in CL_G2API_CollisionDetectCache() argument 398 void *ghoul2, in CL_G2API_SetBoneAngles() argument 429 void *ghoul2, in CL_G2API_SetBoneAnim() argument 458 void *ghoul2, in CL_G2API_GetBoneAnim() argument 488 void *ghoul2, in CL_G2API_GetBoneFrame() argument [all …]
|
H A D | cl_cgameapi.cpp | 481 if ( !ghoul2 ) return; in CL_G2API_SetGhoul2ModelIndexes() 522 if ( !ghoul2 ) return; in CL_G2API_CollisionDetect() 527 if ( !ghoul2 ) return; in CL_G2API_CollisionDetectCache() 564 if ( !ghoul2 ) in CL_G2API_GetGLAName() 644 if ( !ghoul2 ) return -1; in CL_G2API_AddBolt() 655 if ( !ghoul2 ) return; in CL_G2API_SetBoltInfo() 695 if ( !ghoul2 ) return; in CL_G2API_AbsurdSmoothing() 701 if ( !ghoul2 ) return; in CL_G2API_SetRagDoll() 732 if ( !ghoul2 ) return; in CL_G2API_AnimateG2Models() 794 if ( !ghoul2 ) return; in CL_G2API_AttachInstanceToEntNum() [all …]
|
/dports/games/openjk/OpenJK-07675e2/code/rd-vanilla/ |
H A D | G2_bones.cpp | 1224 CGhoul2Info &ghoul2, in G2_Set_Bone_Rag() argument 1253 CGhoul2Info &ghoul2, in G2_Set_Bone_Angles_Rag() argument 2250 assert(ghoul2.mFileName[0]); in G2_RagDollSetup() 2416 assert(ghoul2.mFileName[0]); in G2_RagDoll() 2614 char *debugBoneName = G2_Get_Bone_Name(&ghoul2, ghoul2.mBlist, bone.boneNumber); in G2_RagDollCurrentPosition() 3282 assert(ghoul2.animModel); in G2_RagGetPelvisLumbarOffsets() 3283 int boneIndex = G2_Find_Bone(&ghoul2, ghoul2.mBlist, "pelvis"); in G2_RagGetPelvisLumbarOffsets() 3286 G2_RagGetWorldAnimMatrix(ghoul2, ghoul2.mBlist[boneIndex], params, final); in G2_RagGetPelvisLumbarOffsets() 4417 CGhoul2Info &ghoul2, in G2_Set_Bone_Angles_IK() argument 4770 return G2_Add_Bone(ghoul2->animModel, ghoul2->mBlist, boneName); in G2_Get_Bone_Index() [all …]
|
H A D | G2_API.cpp | 101 for (i=0; i<ghoul2.size(); i++) in AnimTest() 762 ghoul2.~CGhoul2Info_v(); in G2API_CleanGhoul2Models() 793 if (model==ghoul2.size()) in G2API_InitGhoul2Model() 806 Q_strncpyz(ghoul2[model].mFileName, fileName, sizeof(ghoul2[model].mFileName)); in G2API_InitGhoul2Model() 815 G2_Init_Bone_List(ghoul2[model].mBlist, ghoul2[model].aHeader->numBones); in G2API_InitGhoul2Model() 821 ghoul2[model].mFlags = 0; in G2API_InitGhoul2Model() 1410 G2_SetRagDoll(ghoul2,parms); in G2API_SetRagDoll() 1450 if (ghoul2[model].mModel) in G2API_AnimateG2Models() 1470 assert(ghoul2.size()); in G2_GetRagBoneConveniently() 1588 assert(ghoul2.size()); in G2API_RagForceSolve() [all …]
|
H A D | tr_ghoul2.cpp | 1226 bListIndex = G2_Find_Bone(&ghoul2, ghoul2.mBlist, skel->name); in G2_RagGetAnimMatrix() 1850 ghoul2.mBoneCache=new CBoneCache(ghoul2.currentModel,ghoul2.aHeader); in G2_TransformGhoulBones() 1852 ghoul2.mBoneCache->mod=ghoul2.currentModel; in G2_TransformGhoulBones() 1853 ghoul2.mBoneCache->header=ghoul2.aHeader; in G2_TransformGhoulBones() 1863 ghoul2.mBoneCache->mLastTouch=ghoul2.mBoneCache->mLastLastTouch; in G2_TransformGhoulBones() 2457 if (ghoul2[i].mModelindex == -1||!ghoul2[i].mValid) in G2_Sort_Models() 2478 if (ghoul2[i].mModelindex == -1||!ghoul2[i].mValid) in G2_Sort_Models() 2513 if (ghoul2[i].mModelindex != -1&&ghoul2[i].mValid) in RootMatrix() 2578 CGhoul2Info_v &ghoul2 = *ent->e.ghoul2; in R_AddGhoulSurfaces() local 2632 if (ghoul2[i].mValid&&!(ghoul2[i].mFlags & GHOUL2_NOMODEL)&&!(ghoul2[i].mFlags & GHOUL2_NORENDER)) in R_AddGhoulSurfaces() [all …]
|
H A D | G2_surfaces.cpp | 300 assert(modelIndex>=0&&modelIndex<ghoul2.size()); in G2_SetRootSurface() 301 assert(ghoul2[modelIndex].currentModel); in G2_SetRootSurface() 302 assert(ghoul2[modelIndex].currentModel->mdxm); in G2_SetRootSurface() 307 ghoul2[modelIndex].mSurfaceRoot = surf; in G2_SetRootSurface() 318 lod = G2_DecideTraceLod(*ghoul2, lod); in G2_AddSurface() 322 for (i=0; i<ghoul2->mSlist.size(); i++) in G2_AddSurface() 325 if (ghoul2->mSlist[i].surface == -1) in G2_AddSurface() 330 if (i==ghoul2->mSlist.size()) in G2_AddSurface() 332 ghoul2->mSlist.push_back(surfaceInfo_t()); in G2_AddSurface() 336 ghoul2->mSlist[i].genBarycentricI = BarycentricI; in G2_AddSurface() [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/ui/ |
H A D | ui_syscalls.c | 353 Q_syscall( UI_G2_SETMODELS, ghoul2, modelList, skinList); in trap_G2_SetGhoul2ModelIndexes() 355 qboolean trap_G2_HaveWeGhoul2Models(void *ghoul2) { in trap_G2_HaveWeGhoul2Models() argument 356 return (qboolean)(Q_syscall(UI_G2_HAVEWEGHOULMODELS, ghoul2)); in trap_G2_HaveWeGhoul2Models() 395 Q_syscall(UI_G2_GETGLANAME, ghoul2, modelIndex, fillBuf); in trap_G2API_GetGLAName() 413 return Q_syscall(UI_G2_ADDBOLT, ghoul2, modelIndex, boneName); in trap_G2API_AddBolt() 416 Q_syscall(UI_G2_SETBOLTON, ghoul2, modelIndex, boltInfo); in trap_G2API_SetBoltInfo() 422 return Q_syscall(UI_G2_SETSURFACEONOFF, ghoul2, surfaceName, flags); in trap_G2API_SetSurfaceOnOff() 425 return Q_syscall(UI_G2_SETNEWORIGIN, ghoul2, boltIndex); in trap_G2API_SetNewOrigin() 434 Q_syscall(UI_G2_SETRAGDOLL, ghoul2, params); in trap_G2API_SetRagDoll() 437 Q_syscall(UI_G2_ANIMATEG2MODELS, ghoul2, time, params); in trap_G2API_AnimateG2Models() [all …]
|
H A D | ui_public.h | 340 void (*G2_SetGhoul2ModelIndexes) ( void *ghoul2, qhandle_t *modelList, qhandle_t *skinList ); 341 qboolean (*G2_HaveWeGhoul2Models) ( void *ghoul2 ); 353 void (*G2API_GetGLAName) ( void *ghoul2, int modelIndex, char *fillBuf ); 359 int (*G2API_AddBolt) ( void *ghoul2, int modelIndex, const char *boneName ); 360 void (*G2API_SetBoltInfo) ( void *ghoul2, int modelIndex, int boltInfo ); 362 qboolean (*G2API_SetSurfaceOnOff) ( void *ghoul2, const char *surfaceName, const int flags ); 363 qboolean (*G2API_SetNewOrigin) ( void *ghoul2, const int boltIndex ); 366 void (*G2API_SetRagDoll) ( void *ghoul2, sharedRagDollParams_t *params ); 367 void (*G2API_AnimateG2Models) ( void *ghoul2, int time, sharedRagDollUpdateParams_t *params ); 369 qboolean (*G2API_IKMove) ( void *ghoul2, int time, sharedIKMoveParams_t *params ); [all …]
|
/dports/games/openjk/OpenJK-07675e2/codemp/cgame/ |
H A D | cg_syscalls.c | 528 Q_syscall( CG_G2_SETMODELS, ghoul2, modelList, skinList); in trap_G2_SetGhoul2ModelIndexes() 530 qboolean trap_G2_HaveWeGhoul2Models(void *ghoul2) { in trap_G2_HaveWeGhoul2Models() argument 531 return (qboolean)(Q_syscall(CG_G2_HAVEWEGHOULMODELS, ghoul2)); in trap_G2_HaveWeGhoul2Models() 570 Q_syscall(CG_G2_GETGLANAME, ghoul2, modelIndex, fillBuf); in trap_G2API_GetGLAName() 609 Q_syscall(CG_G2_SETBOLTON, ghoul2, modelIndex, boltInfo); in trap_G2API_SetBoltInfo() 618 return Q_syscall(CG_G2_SETNEWORIGIN, ghoul2, boltIndex); in trap_G2API_SetNewOrigin() 633 Q_syscall(CG_G2_ABSURDSMOOTHING, ghoul2, status); in trap_G2API_AbsurdSmoothing() 636 Q_syscall(CG_G2_SETRAGDOLL, ghoul2, params); in trap_G2API_SetRagDoll() 639 Q_syscall(CG_G2_ANIMATEG2MODELS, ghoul2, time, params); in trap_G2API_AnimateG2Models() 657 return Q_syscall(CG_G2_RAGFORCESOLVE, ghoul2, force); in trap_G2API_RagForceSolve() [all …]
|
/dports/games/openjk/OpenJK-07675e2/code/ghoul2/ |
H A D | G2.h | 49 qboolean G2_SetRootSurface( CGhoul2Info_v &ghoul2, const int modelIndex,const char *surfaceName); 83 int G2_Get_Bone_Index(CGhoul2Info *ghoul2, const char *boneName, qboolean bAddIfNotFound); 117 void G2_SaveGhoul2Models(CGhoul2Info_v &ghoul2); 118 void G2_LoadGhoul2Model(CGhoul2Info_v &ghoul2, char *buffer); 175 qboolean G2API_HaveWeGhoul2Models(CGhoul2Info_v &ghoul2); 186 void G2API_CleanGhoul2Models(CGhoul2Info_v &ghoul2); 205 void G2API_SaveGhoul2Models(CGhoul2Info_v &ghoul2); 206 void G2API_LoadGhoul2Models(CGhoul2Info_v &ghoul2, char *buffer); 207 void G2API_LoadSaveCodeDestructGhoul2Info(CGhoul2Info_v &ghoul2); 222 void G2API_AddSkinGore(CGhoul2Info_v &ghoul2,SSkinGoreData &gore); [all …]
|