1.1 --- a/core/PlayerManager.h Thu Feb 19 14:23:36 2009 +1300
1.2 +++ b/core/PlayerManager.h Thu Feb 19 19:19:44 2009 +1300
1.3 @@ -51,6 +51,16 @@
1.4
1.5 #define MIN_API_FOR_ADMINCALLS 7
1.6
1.7 +union serial_t
1.8 +{
1.9 + uint32_t value;
1.10 + struct
1.11 + {
1.12 + uint8_t index;
1.13 + uint32_t serial : 24;
1.14 + } bits;
1.15 +};
1.16 +
1.17 class CPlayer : public IGamePlayer
1.18 {
1.19 friend class PlayerManager;
1.20 @@ -74,6 +84,7 @@
1.21 int GetUserId();
1.22 bool RunAdminCacheChecks();
1.23 void NotifyPostAdminChecks();
1.24 + unsigned int GetSerial();
1.25 public:
1.26 void DoBasicAdminChecks();
1.27 bool IsInKickQueue();
1.28 @@ -107,6 +118,7 @@
1.29 unsigned int m_LangId;
1.30 int m_UserId;
1.31 bool m_bFakeClient;
1.32 + serial_t m_Serial;
1.33 };
1.34
1.35 class PlayerManager :
1.36 @@ -156,6 +168,7 @@
1.37 void RegisterCommandTargetProcessor(ICommandTargetProcessor *pHandler);
1.38 void UnregisterCommandTargetProcessor(ICommandTargetProcessor *pHandler);
1.39 void ProcessCommandTarget(cmd_target_info_t *info);
1.40 + int GetClientFromSerial(unsigned int serial);
1.41 public: // IConVarChangeListener
1.42 void OnConVarChanged(ConVar *pConVar, const char *oldValue, float flOldValue);
1.43 public: