diff --git a/regamedll/extra/cssdk/game_shared/bot/bot.h b/regamedll/extra/cssdk/game_shared/bot/bot.h index a8d060c9..469f224a 100644 --- a/regamedll/extra/cssdk/game_shared/bot/bot.h +++ b/regamedll/extra/cssdk/game_shared/bot/bot.h @@ -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; diff --git a/regamedll/game_shared/bot/bot.h b/regamedll/game_shared/bot/bot.h index 4b66490c..4cbb6ba0 100644 --- a/regamedll/game_shared/bot/bot.h +++ b/regamedll/game_shared/bot/bot.h @@ -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; }