MCPcopy Create free account
hub / github.com/JACoders/OpenJK / PM_SetAnimFrame

Function PM_SetAnimFrame

code/game/bg_pmove.cpp:9888–9910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9886}
9887
9888void 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
9912int PM_SaberLockWinAnim( saberLockResult_t result, int breakType )
9913{

Callers 2

PM_SaberLockedFunction · 0.70
WP_SabersCheckLock2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected