Add files via upload

This commit is contained in:
0TheSpy 2022-11-14 15:15:24 +03:00 committed by GitHub
parent 0bfa2f6ce6
commit 30a99985c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 8 deletions

View File

@ -242,10 +242,8 @@ void NETSetConVar(const char* cvarname, const char* cvarvalue)
char name[1024]; char value[1024];
strcpy(name, cvarname);
strcpy(value, cvarvalue);
static void* pvSetConVar = (void*)FindPatternV2(("engine.dll"), ("8D 4C 24 1C E8 ? ? ? ? 56"));
strcpy(value, cvarvalue);
static void* pvSetConVar = (void*)FindPatternV2(("engine.dll"), ("8D 4C 24 1C E8 ? ? ? ? 56"));
printfdbg("NETSetConVar %s %s\n", cvarname, value);
if (pvSetConVar) {

View File

@ -3,7 +3,7 @@
#pragma once
//do not delete
#define DEBUG
//#define DEBUG
#ifdef DEBUG
#define printfdbg(data, ...) printf(XorStr(data), __VA_ARGS__)

View File

@ -1718,6 +1718,7 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
printfdbg("m_fnChangeCallbacks %x\n", (DWORD)&nameConvar->m_fnChangeCallbacks.m_Size);
//nameConvar->SetValue(MakeControlChars(g_Options.playername.value->mystring));
*g_Options.changing_name = 1;
NETSetConVar("name", MakeControlChars(g_Options.playername.value->mystring));
}

View File

@ -166,7 +166,7 @@ DWORD WINAPI HackThread(HMODULE hModule)
while (!GetModuleHandleA("serverbrowser.dll"))
Sleep(1000);
#ifdef CONSOLE
#ifdef DEBUG
AllocConsole();
FILE* f;
freopen_s(&f, "CONOUT$", "w", stdout);
@ -455,7 +455,7 @@ DWORD WINAPI HackThread(HMODULE hModule)
Sleep(1000);
#ifdef CONSOLE
#ifdef DEBUG
if (f) fclose(f);
FreeConsole();
#endif

View File

@ -181,7 +181,7 @@ void SetViewModelSequence(const CRecvProxyData* pDataConst, void* pStruct, void*
}
printfdbg("Sequence %s %d (%s)\n", (char*)pViewModel->GetSequenceActivity(m_nSequence), m_nSequence, szModel);
//printfdbg("Sequence %s %d (%s)\n", (char*)pViewModel->GetSequenceActivity(m_nSequence), m_nSequence, szModel);
pData->m_Value.m_Int = m_nSequence;
}