mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-27 14:08:00 +03:00
Allow immediately change name for proxy
This commit is contained in:
parent
3202d6d99c
commit
594721ccef
@ -164,6 +164,15 @@ LINK_HOOK_CLASS_CHAIN(bool, CBasePlayer, SetClientUserInfoName, (char *infobuffe
|
||||
bool EXT_FUNC CBasePlayer::__API_HOOK(SetClientUserInfoName)(char *infobuffer, char *szNewName)
|
||||
{
|
||||
int nClientIndex = entindex();
|
||||
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if (IsProxy())
|
||||
{
|
||||
SET_CLIENT_KEY_VALUE(nClientIndex, infobuffer, "name", szNewName);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (pev->deadflag != DEAD_NO)
|
||||
{
|
||||
m_bHasChangedName = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user