Really fixed issues for today's TF2 engine update (bug 5450).

This commit is contained in:
Nicholas Hastings 2012-08-24 01:38:01 -04:00
parent e4fd32609a
commit 4eafdc2a1e
2 changed files with 3 additions and 37 deletions

View File

@ -127,22 +127,14 @@ void GetIServer()
#if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11 #if defined METAMOD_PLAPI_VERSION || PLAPI_VERSION >= 11
/* Get the CreateFakeClient function pointer */ /* Get the CreateFakeClient function pointer */
#if SOURCE_ENGINE == SE_ORANGEBOXVALVE
if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClientEx)))
#else
if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient))) if (!(vfunc=SH_GET_ORIG_VFNPTR_ENTRY(engine, &IVEngineServer::CreateFakeClient)))
#endif
{ {
return; return;
} }
#else #else
/* Get the interface manually */ /* Get the interface manually */
SourceHook::MemFuncInfo info = {true, -1, 0, 0}; SourceHook::MemFuncInfo info = {true, -1, 0, 0};
#if SOURCE_ENGINE == SE_ORANGEBOXVALVE
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClientEx, info);
#else
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info); SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info);
#endif
vfunc = enginePatch->GetOrigFunc(info.vtbloffs, info.vtblindex); vfunc = enginePatch->GetOrigFunc(info.vtbloffs, info.vtblindex);
if (!vfunc) if (!vfunc)

View File

@ -158,7 +158,7 @@
* here. * here.
*/ */
"CreateFakeClient_Windows" "\x55\x8B\xEC\x8A\x2A\x2A\xA2\x2A\x2A\x2A\x2A\x8B\x2A\x8B" "CreateFakeClient_Windows" "\x55\x8B\xEC\x8B\x2A\x2A\x50\xB9\x2A\x2A\x2A\x2A\xE8"
} }
"Offsets" "Offsets"
@ -166,7 +166,7 @@
/* Offset into IVEngineServer::CreateFakeClient */ /* Offset into IVEngineServer::CreateFakeClient */
"sv" "sv"
{ {
"windows" "7" "windows" "8"
} }
} }
@ -184,33 +184,7 @@
"#default" "#default"
{ {
"#supported" // This is broken for now on css. Functionality is compiled in and we only have a unified ep2v/css build on 1.4.x.
{
"game" "cstrike"
}
"Keys"
{
"CreateFakeClient_Windows" "\x55\x8B\xEC\x8B\x2A\x2A\x8A\x2A\x2A\x51\xB9\x2A\x2A\x2A\x2A\xA2"
}
"Offsets"
{
"sv"
{
"windows" "11"
}
}
"Signatures"
{
"sv"
{
"library" "engine"
"linux" "@sv"
"mac" "@sv"
}
}
} }
/* EntityFactoryDictionary function */ /* EntityFactoryDictionary function */