Really fixed issues for today's TF2 engine update (bug 5450).
This commit is contained in:
parent
e4fd32609a
commit
4eafdc2a1e
@ -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)
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user