This commit is contained in:
parent
d26f36461e
commit
293ce2cc9a
12 changed files with 140 additions and 73 deletions
|
@ -54,6 +54,34 @@ static PlayerMetrics s_playerMetrics=
|
|||
} };
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CPlayerModeBalloon::enter()
|
||||
{
|
||||
CPlayerModeBase::enter();
|
||||
m_ballonTimer=BALLOON_TIME;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
Params:
|
||||
Returns:
|
||||
---------------------------------------------------------------------- */
|
||||
void CPlayerModeBalloon::think()
|
||||
{
|
||||
CPlayerModeBase::think();
|
||||
if(--m_ballonTimer==0)
|
||||
{
|
||||
m_player->setMode(PLAYER_MODE_FULLUNARMED);
|
||||
PAUL_DBGMSG("*pop*");
|
||||
}
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
Function:
|
||||
Purpose:
|
||||
|
@ -65,6 +93,5 @@ const struct PlayerMetrics *CPlayerModeBalloon::getPlayerMetrics()
|
|||
return &s_playerMetrics;
|
||||
}
|
||||
|
||||
|
||||
/*===========================================================================
|
||||
end */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue