kwilcz / Antario

Clean base/cheat made for CS:GO.
MIT License
131 stars 34 forks source link

How to edit CVars with this base #95

Closed JimmyBassy closed 5 years ago

JimmyBassy commented 5 years ago

I would like to know how can I edit Cvars with this base and if it's not possible what do I have to add to get a CVar editor/modifier. Btw very nice base I'm learning a lot with it! Thank you!

pauloabreu commented 5 years ago

1º You need add the ICVar class to your SDK folder

2º Capture the interface in interface.cpp g_pCvar = CaptureInterface<ICVar>("vstdlib.dll", "VEngineCvar007");

3º usage example: ConVar* sv_grenadepreview = g_pCvar->FindVar("cl_grenadepreview"); sv_grenadepreview->SetValue(1);

ICvar.zip

JimmyBassy commented 5 years ago

Thanks dude!