mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-07 10:03:29 +08:00
Update Interfaces.cpp
This commit is contained in:
parent
5a47bc0469
commit
8f08134625
@ -225,3 +225,24 @@ void SetValueUnrestricted(const char* cvar, float value)
|
|||||||
SetFloatUnrestricted(cvar, value);
|
SetFloatUnrestricted(cvar, value);
|
||||||
SetIntUnrestricted(cvar, (int)value);
|
SetIntUnrestricted(cvar, (int)value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NET_SetConVar(const char* name, const char* value)
|
||||||
|
{
|
||||||
|
//__asm pushad
|
||||||
|
|
||||||
|
static void* pvSetConVar = NULL;
|
||||||
|
|
||||||
|
if (!pvSetConVar)
|
||||||
|
pvSetConVar = (void*)FindPatternV2(XorStr("engine.dll"), XorStr("8D 4C 24 1C E8 ? ? ? ? 56"));
|
||||||
|
|
||||||
|
if (pvSetConVar)
|
||||||
|
Invoke_NET_SetConVar(pvSetConVar, name, value);
|
||||||
|
|
||||||
|
//__asm popad
|
||||||
|
}
|
||||||
|
|
||||||
|
void SetName(const char* pszName)
|
||||||
|
{
|
||||||
|
static void* pvSetConVar = NULL;
|
||||||
|
NET_SetConVar(XorStr("name"), pszName);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user