1.1 --- a/extensions/sdktools/vglobals.cpp Wed Aug 22 21:50:01 2012 -0400
1.2 +++ b/extensions/sdktools/vglobals.cpp Thu Aug 23 07:47:44 2012 -0400
1.3 @@ -127,14 +127,22 @@
1.4
1.5 #if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
1.6 /* Get the CreateFakeClient function pointer */
1.7 +#if SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
1.8 + if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClientEx)))
1.9 +#else
1.10 if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient)))
1.11 +#endif
1.12 {
1.13 return;
1.14 }
1.15 #else
1.16 /* Get the interface manually */
1.17 SourceHook::MemFuncInfo info = {true, -1, 0, 0};
1.18 +#if SOURCE_ENGINE == SE_ORANGEBOXVALVE || SOURCE_ENGINE == SE_CSS
1.19 + SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClientEx, info);
1.20 +#else
1.21 SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info);
1.22 +#endif
1.23
1.24 vfunc = enginePatch->GetOrigFunc(info.vtbloffs, info.vtblindex);
1.25 if (!vfunc)