port name patch from s1x
This commit is contained in:
parent
18e4113462
commit
3936710e3b
@ -43,6 +43,8 @@ private:
|
||||
{
|
||||
// Note: on SP the max value is already 1000
|
||||
utils::hook(0x55411F, &dvar_register_com_max_fps, HOOK_CALL).install()->quick();
|
||||
|
||||
utils::hook(0x5C9980, &live_get_local_client_name_stub, HOOK_JUMP).install()->quick();
|
||||
}
|
||||
|
||||
void patch_dedi() const
|
||||
@ -72,6 +74,11 @@ private:
|
||||
return game::native::Dvar_RegisterInt(dvarName, value, min, 1000,
|
||||
game::native::dvar_flags::DVAR_ARCHIVE, description);
|
||||
}
|
||||
|
||||
static const char* live_get_local_client_name_stub()
|
||||
{
|
||||
return game::native::Dvar_FindVar("name")->current.string;
|
||||
}
|
||||
};
|
||||
|
||||
REGISTER_MODULE(patches)
|
||||
|
Loading…
Reference in New Issue
Block a user