Okay so like a long, long time ago there was this problem about the cleansuit scientist derived monster class that was supposed to NOT heal the player at all (because the model itself had no needle, so if he healed you it will look like he punched your health up with his fist)
This was the code give in the tutorial (which didn't work)
class CCleanSuitScientist : public CScientist
{
public:
void Spawn(void);
void Precache(void);
BOOL CanHeal(void);
};
BOOL CCleanSuitScientist::CanHeal(void)
{
return FALSE;
}
I tried it myself for twenty years (an exaggeration) and true enough, it doesn't work. The cleansuit still heals you. So I came to the conclusion that the tutorial is wrong.
After centuries of searching for HL coding tuts, most of which are defunct planethalflife sites that no longer exist, my exhaustive 300-year trek led me back to TWHL, where there was a time machine that I never knew existed. I stepped in reluctantly.
Visions of past occurrences flashed before my eyes, and in one quick epiphany, I saw the answer laid out to me in plain fashion with extra emphasis.
class CCleanSuitScientist : public CScientist
{
public:
void Spawn(void);
void Precache(void);
virtual BOOL CanHeal(void);
};
BOOL CCleanSuitScientist::CanHeal(void)
{
return FALSE;
}
And
virtual BOOL CanHeal(void);
is to be placed into the parent CScientist class def as well.
Anyway this thread is just a bait to get someone to help me with
the other problems I have. Also if anyone wants to share with me their coded monsters I would greatly appreciate, and your name will be left in the source code as comments.