This commit is contained in:
parent
98c55b14f4
commit
bfeef1bce5
4 changed files with 1 additions and 14 deletions
|
@ -112,6 +112,7 @@ DVECTOR CBalloonPickup::getSizeForPlacement()
|
||||||
void CBalloonPickup::collect(class CPlayer *_player)
|
void CBalloonPickup::collect(class CPlayer *_player)
|
||||||
{
|
{
|
||||||
_player->setMode(PLAYER_MODE_BALLOON);
|
_player->setMode(PLAYER_MODE_BALLOON);
|
||||||
|
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_INFLATE);
|
||||||
CBaseRespawningPickup::collect(_player);
|
CBaseRespawningPickup::collect(_player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,18 +72,6 @@ static PlayerMetrics s_playerMetrics=
|
||||||
} };
|
} };
|
||||||
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
|
||||||
Function:
|
|
||||||
Purpose:
|
|
||||||
Params:
|
|
||||||
Returns:
|
|
||||||
---------------------------------------------------------------------- */
|
|
||||||
void CPlayerModeBalloon::enter()
|
|
||||||
{
|
|
||||||
CPlayerModeBase::enter();
|
|
||||||
CSoundMediator::playSfx(CSoundMediator::SFX_BALLOON_INFLATE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*----------------------------------------------------------------------
|
/*----------------------------------------------------------------------
|
||||||
Function:
|
Function:
|
||||||
Purpose:
|
Purpose:
|
||||||
|
|
|
@ -37,7 +37,6 @@
|
||||||
class CPlayerModeBalloon : public CPlayerModeBase
|
class CPlayerModeBalloon : public CPlayerModeBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void enter();
|
|
||||||
virtual void think();
|
virtual void think();
|
||||||
virtual void render(DVECTOR *_pos);
|
virtual void render(DVECTOR *_pos);
|
||||||
|
|
||||||
|
|
|
@ -442,7 +442,6 @@ void CPlayerModeBase::playerHasHitGround()
|
||||||
setState(STATE_HITGROUND);
|
setState(STATE_HITGROUND);
|
||||||
m_player->takeDamage(DAMAGE__FALL);
|
m_player->takeDamage(DAMAGE__FALL);
|
||||||
m_moveVelocity.vx=0;
|
m_moveVelocity.vx=0;
|
||||||
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL);
|
|
||||||
}
|
}
|
||||||
else if(m_moveVelocity.vx)
|
else if(m_moveVelocity.vx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue