This commit is contained in:
Paul 2001-07-10 19:56:51 +00:00
parent 15d4c2caba
commit f819091911
4 changed files with 5 additions and 0 deletions

View File

@ -815,6 +815,7 @@ if(PadGetDown(0)&PAD_TRIANGLE)
// Trying to converate?
if(m_allowConversation==false&&
m_currentPlayerModeClass->canConverse()&&
getPadInputDown()&PI_UP)
{
m_allowConversation=true;

View File

@ -41,6 +41,7 @@ public:
virtual void think();
virtual void renderModeUi();
virtual int canDoLookAround();
virtual int canConverse() {return m_blowerState==BLOWER_STATE__EMPTY||m_blowerState==BLOWER_STATE__FULL;}
virtual const struct PlayerMetrics *getPlayerMetrics();

View File

@ -40,6 +40,7 @@ public:
virtual void enter();
virtual void think();
virtual void renderModeUi();
virtual int canConverse() {return m_firingState==FIRING_STATE__NONE;}
virtual int setState(int _state);

View File

@ -94,6 +94,7 @@ public:
virtual void springPlayerUp(int _springHeight) {;}
virtual void setFloating() {;}
void inSoakUpState();
virtual int canConverse() {return true;}
virtual int setState(int _state) {return 0;}
virtual int getState() {return STATE_IDLE;} // ARSE.. states need to go back in CPlayer! (pkg)
@ -102,6 +103,7 @@ public:
int getPadInputHeld();
int getPadInputDown();
virtual ATTACK_STATE getAttackState() {return ATTACK_STATE__NONE;}