Remove cleansuit scientist ability to heal player (#12)

This commit is contained in:
Roman Chistokhodov 2017-09-29 01:28:20 +03:00 committed by Andrey Akhmichin
parent 0db87f8f31
commit bec7af2029
2 changed files with 8 additions and 2 deletions

View File

@ -33,6 +33,7 @@ class CCleansuitScientist : public CScientist
public:
void Spawn( void );
void Precache( void );
virtual BOOL CanHeal(void);
};
LINK_ENTITY_TO_CLASS(monster_cleansuit_scientist, CCleansuitScientist);
@ -94,6 +95,11 @@ void CCleansuitScientist::Precache(void)
CTalkMonster::Precache();
}
BOOL CCleansuitScientist::CanHeal()
{
return FALSE;
}
//=========================================================
// Dead Cleansuit Scientist PROP
//=========================================================

View File

@ -67,7 +67,7 @@ public:
float CoverRadius(void) { return 1200; } // Need more room for cover because scientists want to get far away!
BOOL DisregardEnemy(CBaseEntity *pEnemy) { return !pEnemy->IsAlive() || (gpGlobals->time - m_fearTime) > 15; }
BOOL CanHeal(void);
virtual BOOL CanHeal(void);
void Heal(void);
virtual void Scream(void);
@ -136,4 +136,4 @@ public:
float m_flResponseDelay;
};
#endif // SCIENTIST_H
#endif // SCIENTIST_H