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
/* 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)))
#endif
{
return;
}
#else
/* Get the interface manually */
SourceHook::MemFuncInfo info = {true, -1, 0, 0};
#if SOURCE_ENGINE == SE_ORANGEBOXVALVE
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClientEx, info);
#else
SourceHook::GetFuncInfo(&IVEngineServer::CreateFakeClient, info);
#endif
vfunc = enginePatch->GetOrigFunc(info.vtbloffs, info.vtblindex);
if (!vfunc)

View File

@ -158,7 +158,7 @@
* 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"
@ -166,7 +166,7 @@
/* Offset into IVEngineServer::CreateFakeClient */
"sv"
{
"windows" "7"
"windows" "8"
}
}
@ -184,33 +184,7 @@
"#default"
{
"#supported"
{
"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"
}
}
// This is broken for now on css. Functionality is compiled in and we only have a unified ep2v/css build on 1.4.x.
}
/* EntityFactoryDictionary function */