Changing a convar externally?
Looked into this a bit, at a loss. Is this possible?
...
auto dwClientCMD = g_pMemory->FindPattern(Variable->Engine_DLL, "\x55\x8B\xEC\xA1\x00\x00\x00\x00\x81\xEC\x00\x00\x00\x00\x80\xB8", "xxxx????xx????xx");
...
void ClientCMD(const char* command)
{
auto vCommand = (LPVOID)VirtualAllocEx(g_pMemory->GetProcess(), NULL, strlen(command) + 1, MEM_RESERVE | MEM_COMMIT, PAGE_READWRITE);
WriteProcessMemory(g_pMemory->GetProcess(), vCommand, command, strlen(command), NULL);
auto hThread = CreateRemoteThread(g_pMemory->GetProcess(), NULL, NULL, (LPTHREAD_START_ROUTINE)dwClientCMD, vCommand, NULL, NULL);
WaitForSingleObject(hThread, INFINITE);
CloseHandle(hThread);
VirtualFreeEx(g_pMemory->GetProcess(), vCommand, strlen(command) + 1, MEM_RELEASE);
}
...
ClientCMD("say something");
ClientCMD("command value");
...