Fix: it was not implementation of the virtual function IsNetClient for method CBot

This commit is contained in:
s1lentq 2016-06-15 01:03:12 +07:00
parent 7caa82b054
commit 2132203504
2 changed files with 11 additions and 3 deletions

View File

@ -39,6 +39,7 @@ public:
// invoked when killed
virtual void Killed(entvars_t *pevAttacker, int iGib) = 0;
virtual BOOL IsNetClient() = 0;
virtual void Think() = 0;
virtual BOOL IsBot() = 0;
virtual Vector GetAutoaimVector(float flDelta) = 0;

View File

@ -85,6 +85,7 @@ public:
{
CBasePlayer::Killed(pevAttacker, iGib);
}
virtual void Think() {};
virtual BOOL IsBot() { return TRUE; }
virtual Vector GetAutoaimVector(float flDelta);
@ -238,10 +239,16 @@ public:
void PrintIfWatched(char *format,...) const;
void BotThink();
bool IsNetClient() const { return false; }
int Save(CSave &save) const;
int Restore(CRestore &restor) const;
#ifdef REGAMEDLL_FIXES
BOOL IsNetClient() { return FALSE; }
#else
// The ambiguous function because there is a virtual function in inherited classes.
bool IsNetClient() const { return false; }
int Save(CSave &save) const;
int Restore(CRestore &restore) const;
#endif
// return our personality profile
const BotProfile *GetProfile() const { return m_profile; }