This commit is contained in:
Charles 2001-07-16 14:19:10 +00:00
parent fd5ed94bae
commit 911c868e99
4 changed files with 40 additions and 21 deletions

View file

@ -187,7 +187,7 @@ void CNpcSeaSnakeEnemy::shutdown()
}
else
{
CLevel::setBossHealth( 0 );
CLevel::setBossHealth( -1 );
}
// delete snake segments
@ -1057,24 +1057,31 @@ void CNpcSeaSnakeEnemy::processShot( int _frames )
{
if ( !m_segmentCount )
{
m_drawRotation += 64 * _frames;
m_drawRotation &= 4095;
Pos.vy += m_speed * _frames;
if ( m_speed < 5 )
if ( m_collTimer <= 0 )
{
m_speed++;
m_drawRotation += 64 * _frames;
m_drawRotation &= 4095;
Pos.vy += m_speed * _frames;
if ( m_speed < 5 )
{
m_speed++;
}
m_state = NPC_GENERIC_HIT_DEATH_END;
DVECTOR offset = CLevel::getCameraPos();
if ( Pos.vy - offset.vy > VidGetScrH() )
{
setToShutdown();
CGameScene::setBossHasBeenKilled();
}
}
m_state = NPC_GENERIC_HIT_DEATH_END;
DVECTOR offset = CLevel::getCameraPos();
if ( Pos.vy - offset.vy > VidGetScrH() )
else
{
setToShutdown();
CGameScene::setBossHasBeenKilled();
m_controlFunc = NPC_CONTROL_MOVEMENT;
}
}
else