Added detection of Replay and SourceTV, and natives to query (bug 5124, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-10-20 21:39:57 -04:00
parent 5732e34f50
commit f3d19a860a
5 changed files with 141 additions and 1 deletions
+15 -1
View File
@@ -41,7 +41,7 @@
#include <IAdminSystem.h>
#define SMINTERFACE_PLAYERMANAGER_NAME "IPlayerManager"
#define SMINTERFACE_PLAYERMANAGER_VERSION 14
#define SMINTERFACE_PLAYERMANAGER_VERSION 15
struct edict_t;
class IPlayerInfo;
@@ -222,6 +222,20 @@ namespace SourceMod
virtual void MarkAsBeingKicked() =0;
virtual void SetLanguageId(unsigned int id) =0;
/**
* @brief Returns whether the player is the SourceTV bot.
*
* @return True if the SourceTV bot, false otherwise.
*/
virtual bool IsSourceTV() const =0;
/**
* @brief Returns whether the player is the Replay bot.
*
* @return True if the Replay bot, false otherwise.
*/
virtual bool IsReplay() const =0;
};
/**