HelpChanging a convar externally?

Posts 1–9 of 9 · Page 1 of 1
Changing a convar externally?
Looked into this a bit, at a loss. Is this possible?
im probably just retarded but whats a convar ?
Quote Originally Posted by ImWhacky View Post
im probably just retarded but whats a convar ?
console variable, f.e. mat_wireframe

you can do walls, soundesp, novisrecoil and so on
Pretty sure you can find memory addresses for individual variables like sv_cheats, etc. in Cheat Engine if you search for 0 if the variable is 0, 1 if it's 1 and repeat until you have a few static addresses. But this will get you untrusted in Valve servers since they check cheat variables unless you spoof them which I do not know if you can do externally.
Quote Originally Posted by 4773n0x View Post
Pretty sure you can find memory addresses for individual variables like sv_cheats, etc. in Cheat Engine if you search for 0 if the variable is 0, 1 if it's 1 and repeat until you have a few static addresses. But this will get you untrusted in Valve servers since they check cheat variables unless you spoof them which I do not know if you can do externally.
didn't rwby force convars externally here? just ask him
I was primarily looking to force the "say" convar, I think it's possible but idk yet
Quote Originally Posted by tweedash View Post
I was primarily looking to force the "say" convar, I think it's possible but idk yet
You can force convars, im assuming you mean things like fov etc, I did do it externally. I will assume you know the basis of creating cheats so ill keep it quite simple for you.

Basically, all I did was grab cheat engine and throw my csgo into insecure and offline with bots and say for instance i wanna change field of view. I used the convar viewmodel_fov and set the value to 56 and then went to cheat engine and searched for a float and put in the value of 56 and scanned then i changed the value to 62 scanned then again to 66 then again to 68 till i had about two addresses then guessed which one was the correct one not the best way to do it, but thats how i did it in one of my external cheats.

Regarding the say convar, i will assume you want to create like a chat spam or something of that sorts. I imagine it can be done anything internal can be done external. Someone like @WasserEsser can probably give you a better explanation on how to access say externally and use it for the needs that you want.
ClientCMD:
Code:
...
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);
}
Usage:
Code:
...
ClientCMD("say something");
ClientCMD("command value");
...
It may crash your csgo if you place it at a loop without any sleep. Arround 100+ ms, seems fine, no crash.
ps: Sorry for not explaining, fast writing, 6am, sleep, cyz, i explain when i wake up.
// Solved and Closed.
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us