hit rolls in autoplay

accumulate calories in autoplay
This commit is contained in:
Chris Danford
2005-04-25 02:17:30 +00:00
parent 812bd73f7f
commit 6d3f1d7e2b
+16 -2
View File
@@ -410,7 +410,21 @@ void Player::Update( float fDeltaTime )
if( m_pPlayerState->m_PlayerController != PC_HUMAN ) if( m_pPlayerState->m_PlayerController != PC_HUMAN )
{ {
// TODO: Make the CPU miss sometimes. // TODO: Make the CPU miss sometimes.
switch( tn.subType )
{
case TapNote::hold_head_hold:
bIsHoldingButton = true; bIsHoldingButton = true;
break;
case TapNote::hold_head_roll:
if( tn.HoldResult.fLife < 0.5f )
{
RageTimer now;
Step( iTrack, now, false );
}
break;
default:
ASSERT(0);
}
} }
else else
{ {
@@ -769,8 +783,8 @@ void Player::HandleStep( int col, const RageTimer &tm, bool bHeld )
{ {
case 0: case 0:
// autoplay is on, or this is a computer player // autoplay is on, or this is a computer player
fCals = 0; iNumTracksHeld = 1;
break; // fall through
default: default:
{ {
float fCalsFor100Lbs = SCALE( iNumTracksHeld, 1, 2, 0.029f, 0.193f ); float fCalsFor100Lbs = SCALE( iNumTracksHeld, 1, 2, 0.029f, 0.193f );