kwilcz/Antario

How to edit CVars with this base

Closed this issue · 2 comments

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!

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

Thanks dude!