Browse Source

Remove cleansuit scientist ability to heal player (#12)

opforfixed
Roman Chistokhodov 7 years ago committed by Andrey Akhmichin
parent
commit
bec7af2029
  1. 6
      dlls/gearbox/cleansuit_scientist.cpp
  2. 4
      dlls/scientist.h

6
dlls/gearbox/cleansuit_scientist.cpp

@ -33,6 +33,7 @@ class CCleansuitScientist : public CScientist @@ -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) @@ -94,6 +95,11 @@ void CCleansuitScientist::Precache(void)
CTalkMonster::Precache();
}
BOOL CCleansuitScientist::CanHeal()
{
return FALSE;
}
//=========================================================
// Dead Cleansuit Scientist PROP
//=========================================================

4
dlls/scientist.h

@ -67,7 +67,7 @@ public: @@ -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: @@ -136,4 +136,4 @@ public:
float m_flResponseDelay;
};
#endif // SCIENTIST_H
#endif // SCIENTIST_H

Loading…
Cancel
Save