Update for Dota IServerGameClient changes.
This commit is contained in:
parent
655994cd09
commit
9badb14c3a
@ -60,7 +60,7 @@ List<ICommandTargetProcessor *> target_processors;
|
|||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
SH_DECL_HOOK5(IServerGameClients, ClientConnect, SH_NOATTRIB, 0, bool, CEntityIndex, const char *, const char *, char *, int);
|
SH_DECL_HOOK5(IServerGameClients, ClientConnect, SH_NOATTRIB, 0, bool, CEntityIndex, const char *, const char *, char *, int);
|
||||||
SH_DECL_HOOK2_void(IServerGameClients, ClientPutInServer, SH_NOATTRIB, 0, CEntityIndex, const char *);
|
SH_DECL_HOOK2_void(IServerGameClients, ClientPutInServer, SH_NOATTRIB, 0, CEntityIndex, const char *);
|
||||||
SH_DECL_HOOK1_void(IServerGameClients, ClientDisconnect, SH_NOATTRIB, 0, CEntityIndex);
|
SH_DECL_HOOK2_void(IServerGameClients, ClientDisconnect, SH_NOATTRIB, 0, CEntityIndex, int);
|
||||||
SH_DECL_HOOK2_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, CEntityIndex, const CCommand &);
|
SH_DECL_HOOK2_void(IServerGameClients, ClientCommand, SH_NOATTRIB, 0, CEntityIndex, const CCommand &);
|
||||||
SH_DECL_HOOK1_void(IServerGameClients, ClientSettingsChanged, SH_NOATTRIB, 0, CEntityIndex);
|
SH_DECL_HOOK1_void(IServerGameClients, ClientSettingsChanged, SH_NOATTRIB, 0, CEntityIndex);
|
||||||
#else
|
#else
|
||||||
@ -745,7 +745,7 @@ void PlayerManager::OnSourceModLevelEnd()
|
|||||||
if (m_Players[i].IsConnected())
|
if (m_Players[i].IsConnected())
|
||||||
{
|
{
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
OnClientDisconnect(m_Players[i].GetIndex());
|
OnClientDisconnect(m_Players[i].GetIndex(), 0);
|
||||||
#else
|
#else
|
||||||
OnClientDisconnect(m_Players[i].GetEdict());
|
OnClientDisconnect(m_Players[i].GetEdict());
|
||||||
#endif
|
#endif
|
||||||
@ -755,7 +755,7 @@ void PlayerManager::OnSourceModLevelEnd()
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
void PlayerManager::OnClientDisconnect(CEntityIndex index)
|
void PlayerManager::OnClientDisconnect(CEntityIndex index, int reason)
|
||||||
{
|
{
|
||||||
int client = index.Get();
|
int client = index.Get();
|
||||||
edict_t *pEntity = PEntityOfEntIndex(client);
|
edict_t *pEntity = PEntityOfEntIndex(client);
|
||||||
@ -801,7 +801,7 @@ void PlayerManager::OnClientDisconnect(edict_t *pEntity)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if SOURCE_ENGINE == SE_DOTA
|
#if SOURCE_ENGINE == SE_DOTA
|
||||||
void PlayerManager::OnClientDisconnect_Post(CEntityIndex index)
|
void PlayerManager::OnClientDisconnect_Post(CEntityIndex index, int reason)
|
||||||
{
|
{
|
||||||
int client = index.Get();
|
int client = index.Get();
|
||||||
edict_t *pEntity = PEntityOfEntIndex(client);
|
edict_t *pEntity = PEntityOfEntIndex(client);
|
||||||
|
@ -156,8 +156,8 @@ public:
|
|||||||
bool OnClientConnect(CEntityIndex index, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);
|
bool OnClientConnect(CEntityIndex index, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);
|
||||||
bool OnClientConnect_Post(CEntityIndex index, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);
|
bool OnClientConnect_Post(CEntityIndex index, const char *pszName, const char *pszAddress, char *reject, int maxrejectlen);
|
||||||
void OnClientPutInServer(CEntityIndex index, char const *playername);
|
void OnClientPutInServer(CEntityIndex index, char const *playername);
|
||||||
void OnClientDisconnect(CEntityIndex index);
|
void OnClientDisconnect(CEntityIndex index, int reason);
|
||||||
void OnClientDisconnect_Post(CEntityIndex index);
|
void OnClientDisconnect_Post(CEntityIndex index, int reason);
|
||||||
void OnClientCommand(CEntityIndex index, const CCommand &args);
|
void OnClientCommand(CEntityIndex index, const CCommand &args);
|
||||||
void OnClientSettingsChanged(CEntityIndex index);
|
void OnClientSettingsChanged(CEntityIndex index);
|
||||||
//void OnClientSettingsChanged_Pre(CEntityIndex client);
|
//void OnClientSettingsChanged_Pre(CEntityIndex client);
|
||||||
|
Loading…
Reference in New Issue
Block a user