I just realized i am supposed to compile both cgame and game when I make a change......
so now here's my torso animation function so far
static void PM_TorsoAnimation( void ) {
if ( pm->ps->weaponstate == WEAPON_READY ) {
// Falling Downward
if ( pm->ps->velocity[2] < -10 ){
if ( pm->ps->weapon == WP_GAUNTLET ) PM_RunningTorsoAnim( TORSO_FALL2 );
else PM_RunningTorsoAnim( TORSO_FALL );
}
// Falling Upward
else if ( pm->ps->velocity[2] > 10 ){
if ( pm->ps->weapon == WP_GAUNTLET ) PM_RunningTorsoAnim( TORSO_JUMP2 );
else PM_RunningTorsoAnim( TORSO_JUMP );
}
// Running Forward
//if ( pm->ps->legsAnim && LEGS_RUN ) {
else if ( pm->cmd.forwardmove || pm->cmd.rightmove ) {
if ( pm->ps->weapon == WP_GAUNTLET ) PM_RunningTorsoAnim( TORSO_RUN2 );
else PM_RunningTorsoAnim( TORSO_RUN );
}
else
{
if ( pm->ps->weapon == WP_GAUNTLET ) {
PM_ContinueTorsoAnim( TORSO_STAND2 );
} else {
PM_ContinueTorsoAnim( TORSO_STAND );
}
}
return;
}
}
You see where i'm going with this right?