mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-02-04 17:50:45 +03:00
Fix: it was not implementation of the virtual function IsNetClient for method CBot
This commit is contained in:
parent
7caa82b054
commit
2132203504
@ -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;
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user