about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMarius "Teelevision" Neugebauer <marius@teele.eu>2014-04-05 05:01:53 +0200
committerMarius "Teelevision" Neugebauer <marius@teele.eu>2014-04-05 05:01:53 +0200
commitcc9a34c4d38d553078c15d4498445faf5a9976d3 (patch)
tree8379cb4467f174e07b097cac15ed25198196e238 /src/game
parentad3a77fbe81d967caf6ebbade45c33d563fe7349 (diff)
downloadzcatch-cc9a34c4d38d553078c15d4498445faf5a9976d3.tar.gz
zcatch-cc9a34c4d38d553078c15d4498445faf5a9976d3.zip
added bot hint to status in the rcon
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamecontext.cpp5
-rw-r--r--src/game/server/gamecontext.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index 307d446a..4dab670e 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -1940,6 +1940,11 @@ bool CGameContext::IsClientPlayer(int ClientID)
 	return m_apPlayers[ClientID] && m_apPlayers[ClientID]->GetTeam() == TEAM_SPECTATORS ? false : true;
 }
 
+bool CGameContext::IsClientAimBot(int ClientID)
+{
+	return m_apPlayers[ClientID] && m_apPlayers[ClientID]->m_IsAimBot;
+}
+
 const char *CGameContext::GameType() { return m_pController && m_pController->m_pGameType ? m_pController->m_pGameType : ""; }
 const char *CGameContext::Version() { return GAME_VERSION; }
 const char *CGameContext::NetVersion() { return GAME_NETVERSION; }
diff --git a/src/game/server/gamecontext.h b/src/game/server/gamecontext.h
index eb73e019..987e1c71 100644
--- a/src/game/server/gamecontext.h
+++ b/src/game/server/gamecontext.h
@@ -202,6 +202,7 @@ public:
 		BOT_DETECTION_FAST_AIM=1,
 		BOT_DETECTION_FOLLOW=2,
 	};
+	virtual bool IsClientAimBot(int ClientID);
 };
 
 inline int CmaskAll() { return -1; }