| 9886 | } |
| 9887 | |
| 9888 | void PM_SetAnimFrame( gentity_t *gent, int frame, qboolean torso, qboolean legs ) |
| 9889 | { |
| 9890 | if ( !gi.G2API_HaveWeGhoul2Models( gent->ghoul2 ) ) |
| 9891 | { |
| 9892 | return; |
| 9893 | } |
| 9894 | int actualTime = (cg.time?cg.time:level.time); |
| 9895 | if ( torso && gent->lowerLumbarBone != -1 )//gent->upperLumbarBone |
| 9896 | { |
| 9897 | gi.G2API_SetBoneAnimIndex(&gent->ghoul2[gent->playerModel], gent->lowerLumbarBone, //gent->upperLumbarBone |
| 9898 | frame, frame+1, BONE_ANIM_OVERRIDE_FREEZE|BONE_ANIM_BLEND, 1, actualTime, frame, 150 ); |
| 9899 | if ( gent->motionBone != -1 ) |
| 9900 | { |
| 9901 | gi.G2API_SetBoneAnimIndex(&gent->ghoul2[gent->playerModel], gent->motionBone, //gent->upperLumbarBone |
| 9902 | frame, frame+1, BONE_ANIM_OVERRIDE_FREEZE|BONE_ANIM_BLEND, 1, actualTime, frame, 150 ); |
| 9903 | } |
| 9904 | } |
| 9905 | if ( legs && gent->rootBone != -1 ) |
| 9906 | { |
| 9907 | gi.G2API_SetBoneAnimIndex(&gent->ghoul2[gent->playerModel], gent->rootBone, |
| 9908 | frame, frame+1, BONE_ANIM_OVERRIDE_FREEZE|BONE_ANIM_BLEND, 1, actualTime, frame, 150 ); |
| 9909 | } |
| 9910 | } |
| 9911 | |
| 9912 | int PM_SaberLockWinAnim( saberLockResult_t result, int breakType ) |
| 9913 | { |
no outgoing calls
no test coverage detected