Cvars: Add get|set_pcvar_bounds natives

This commit is contained in:
Arkshine
2015-01-23 16:45:28 +01:00
parent a05d0df50e
commit 8ebb7be36d
4 changed files with 143 additions and 34 deletions

View File

@ -17,6 +17,12 @@
class CDetour;
enum CvarBounds
{
CvarBound_Upper = 0,
CvarBound_Lower
};
struct Forward
{
enum fwdstate
@ -102,7 +108,8 @@ class CvarManager
int flags = 0, const char* helpText = "",
bool hasMin = false, float min = 0,
bool hasMax = false, float max = 0);
cvar_t* FindCvar(const char* name);
CvarInfo* FindCvar(const char* name);
CvarInfo* FindCvar(size_t index);
bool CacheLookup(const char* name, CvarInfo** info);