This commit is contained in:
Paul 2001-03-29 21:30:34 +00:00
parent 95a497d5d3
commit 25861a7148
3 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,7 @@
---------------------------------------------------------------------- */
void CHelmetPickup::collect(class CPlayer *_player)
{
_player->giveDivingHelmet();
CBasePickup::collect(_player);
}

View File

@ -240,6 +240,7 @@ m_animFrame=0;
m_glassesFlag=0;
m_squeakyBootsTimer=0;
m_invinvibilityRingTimer=0;
m_divingHelmet=false;
}
/*----------------------------------------------------------------------

View File

@ -244,10 +244,12 @@ public:
void giveGlasses() {m_glassesFlag=true;}
void giveSqueakyBoots() {m_squeakyBootsTimer=SQUEAKY_BOOTS_TIME;}
void giveInvinvibilityRing() {m_invinvibilityRingTimer=INVINCIBILITY_RING_TIME;}
void giveDivingHelmet() {m_divingHelmet=true;}
private:
int m_glassesFlag;
int m_squeakyBootsTimer;
int m_invinvibilityRingTimer;
int m_divingHelmet;
// Platforms
public: