Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

How to edit CVars with this base #95

Closed
JimmyBassy opened this issue Apr 30, 2019 · 2 comments
Closed

How to edit CVars with this base #95

JimmyBassy opened this issue Apr 30, 2019 · 2 comments

Comments

@JimmyBassy
Copy link

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
Copy link

pauloabreu commented Oct 15, 2019

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
Copy link
Author

Thanks dude!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants