This commit is contained in:
Paul 2001-04-04 15:40:38 +00:00
parent 6c7ad5a2ef
commit 76393c2c65
5 changed files with 21 additions and 1 deletions

View File

@ -165,6 +165,7 @@ player_src := demoplay \
psbutt \
psduck \
psfall \
pshitgnd \
psidle \
psjump \
psrun

View File

@ -70,6 +70,7 @@ typedef enum
STATE_RUN,
STATE_FALL,
STATE_FALLFAR,
STATE_HITGROUND,
STATE_BUTTBOUNCE,
STATE_BUTTFALL,
STATE_BUTTLAND,

View File

@ -34,6 +34,10 @@
#include "player\psfall.h"
#endif
#ifndef __PLAYER__PSHITGND_H__
#include "player\pshitgnd.h"
#endif
#ifndef __PLAYER__PSIDLE_H__
#include "player\psidle.h"
#endif
@ -82,6 +86,7 @@ static CPlayerState *s_stateTable[]=
&s_stateWalk, // STATE_RUN
&s_stateFall, // STATE_FALL
&s_stateFallFar, // STATE_FALLFAR
&s_stateHitGround, // STATE_HITGROUND
NULL, // STATE_BUTTBOUNCE
NULL, // STATE_BUTTFALL
NULL, // STATE_BUTTLAND

View File

@ -42,6 +42,10 @@
#include "player\psfall.h"
#endif
#ifndef __PLAYER__PSHITGND_H__
#include "player\pshitgnd.h"
#endif
#ifndef __PLAYER__PSIDLE_H__
#include "player\psidle.h"
#endif
@ -90,6 +94,7 @@ static CPlayerState *s_stateTable[]=
&s_stateRun, // STATE_RUN
&s_stateFall, // STATE_FALL
&s_stateFallFar, // STATE_FALLFAR
&s_stateHitGround, // STATE_HITGROUND
&s_stateButtBounce, // STATE_BUTTBOUNCE
&s_stateButtBounceFall, // STATE_BUTTFALL
&s_stateButtBounceLand, // STATE_BUTTLAND
@ -409,7 +414,7 @@ void CPlayerModeBase::playerHasHitGround()
else if(m_currentState==STATE_FALLFAR)
{
// Landed from a painfully long fall
setState(STATE_GETUP);
setState(STATE_HITGROUND);
m_player->takeDamage(DAMAGE__FALL);
m_moveVelocity.vx=0;
CSoundMediator::playSfx(CSoundMediator::SFX_SPONGEBOB_LAND_AFTER_FALL);

View File

@ -803,6 +803,14 @@ SOURCE=..\..\..\source\player\psfall.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\player\pshitgnd.cpp
# End Source File
# Begin Source File
SOURCE=..\..\..\source\player\pshitgnd.h
# End Source File
# Begin Source File
SOURCE=..\..\..\source\player\psidle.cpp
# End Source File
# Begin Source File