Fixed SetUserInfo to work on bots

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402248
This commit is contained in:
Matt Woodrow 2008-06-09 07:18:49 +00:00
parent 22aa6561b5
commit 06c8f3a093

View File

@ -103,7 +103,11 @@ bool SDKTools::SDK_OnLoad(char *error, size_t maxlength, bool late)
playerhelpers->AddClientListener(&g_SdkTools);
g_CallHandle = handlesys->CreateType("ValveCall", this, 0, NULL, NULL, myself->GetIdentity(), NULL);
g_TraceHandle = handlesys->CreateType("TraceRay", this, 0, NULL, NULL, myself->GetIdentity(), NULL);
TypeAccess TraceAccess;
handlesys->InitAccessDefaults(&TraceAccess, NULL);
TraceAccess.access[HTypeAccess_Create] = true;
g_TraceHandle = handlesys->CreateType("TraceRay", this, 0, &TraceAccess, NULL, myself->GetIdentity(), NULL);
#if defined ORANGEBOX_BUILD
g_pCVar = icvar;