Add GetPlayerResourceEntity to SDKTools; deprecate old, broken TF2-specific impl (bug 5491, r=asherkin).
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
#include "gamerulesnatives.h"
|
||||
#include <ISDKTools.h>
|
||||
#include "clientnatives.h"
|
||||
#include "teamnatives.h"
|
||||
/**
|
||||
* @file extension.cpp
|
||||
* @brief Implements SDK Tools extension code.
|
||||
@@ -279,6 +280,12 @@ void SDKTools::SDK_OnAllLoaded()
|
||||
InitializeValveGlobals();
|
||||
}
|
||||
|
||||
void SDKTools::OnCoreMapStart(edict_t *pEdictList, int edictCount, int clientMax)
|
||||
{
|
||||
InitTeamNatives();
|
||||
GetResourceEntity();
|
||||
}
|
||||
|
||||
bool SDKTools::QueryRunning(char *error, size_t maxlength)
|
||||
{
|
||||
SM_CHECK_IFACE(BINTOOLS, g_pBinTools);
|
||||
|
||||
Reference in New Issue
Block a user