Permalink
Browse files

Play idle crouch anim while sliding

  • Loading branch information...
DolceTriade committed Dec 20, 2015
1 parent 8a22d80 commit 8dbd2355a1241f93878dd56efd9c03437cdce46f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/shared/bg_pmove.cpp
@@ -3337,10 +3337,11 @@ static void PM_Footsteps()
return;
}

// if not trying to move
if ( !pm->cmd.forwardmove && !pm->cmd.rightmove )
// if not trying to move or sliding
if ( pm->ps->stats[ STAT_STATE ] & SS_SLIDING ||
( !pm->cmd.forwardmove && !pm->cmd.rightmove ) )
{
if ( pm->xyspeed < 5 )
if ( pm->xyspeed < 5 || pm->ps->stats[ STAT_STATE ] & SS_SLIDING )
{
pm->ps->bobCycle = 0; // start at beginning of cycle again

0 comments on commit 8dbd235

Please sign in to comment.