From bec7af20297ece365c5175f83fadf4f17f78a6b5 Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Fri, 29 Sep 2017 01:28:20 +0300 Subject: [PATCH] Remove cleansuit scientist ability to heal player (#12) --- dlls/gearbox/cleansuit_scientist.cpp | 6 ++++++ dlls/scientist.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/gearbox/cleansuit_scientist.cpp b/dlls/gearbox/cleansuit_scientist.cpp index cee02ea1..fe8b2ef8 100644 --- a/dlls/gearbox/cleansuit_scientist.cpp +++ b/dlls/gearbox/cleansuit_scientist.cpp @@ -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 //========================================================= diff --git a/dlls/scientist.h b/dlls/scientist.h index 9415e078..c04f45c5 100644 --- a/dlls/scientist.h +++ b/dlls/scientist.h @@ -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 \ No newline at end of file +#endif // SCIENTIST_H