This commit is contained in:
parent
fa5105d783
commit
0d2eeed5cb
2 changed files with 26 additions and 0 deletions
|
@ -75,6 +75,18 @@ static PlayerMetrics s_playerMetrics=
|
|||
} };
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CPlayerModeBalloon::enter()
|
||||
{
|
||||
CPlayerModeBase::enter();
|
||||
m_timer=0;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
@ -84,6 +96,11 @@ static PlayerMetrics s_playerMetrics=
|
|||
void CPlayerModeBalloon::think()
|
||||
{
|
||||
CPlayerModeBase::think();
|
||||
if(++m_timer>BALLOON_TIMEOUT)
|
||||
{
|
||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_POP);
|
||||
m_player->setMode(PLAYER_MODE_FULLUNARMED);
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue