From ebe30c091aaad92fee94d023379fce4f22997af1 Mon Sep 17 00:00:00 2001 From: 8dcc <8dcc.git@gmail.com> Date: Wed, 26 Jul 2023 22:02:01 +0200 Subject: [PATCH] Add cv_crosshair cvar --- src/cvars.c | 2 ++ src/include/cvars.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/cvars.c b/src/cvars.c index e8853e1..07eea48 100644 --- a/src/cvars.c +++ b/src/cvars.c @@ -7,6 +7,7 @@ DECL_CVAR(bhop); DECL_CVAR(autostrafe); DECL_CVAR(esp); DECL_CVAR(chams); +DECL_CVAR(crosshair); DECL_CVAR(clmove); bool cvars_init(void) { @@ -14,6 +15,7 @@ bool cvars_init(void) { cv_autostrafe = REGISTER_CVAR("autostrafe", "0"); cv_esp = REGISTER_CVAR("esp", "3"); cv_chams = REGISTER_CVAR("chams", "1"); + cv_crosshair = REGISTER_CVAR("crosshair", "0"); cv_clmove = REGISTER_CVAR("clmove", "0"); return true; diff --git a/src/include/cvars.h b/src/include/cvars.h index 5dd267a..d9a3329 100644 --- a/src/include/cvars.h +++ b/src/include/cvars.h @@ -33,6 +33,7 @@ DECL_CVAR_EXTERN(bhop); DECL_CVAR_EXTERN(autostrafe); DECL_CVAR_EXTERN(esp); DECL_CVAR_EXTERN(chams); +DECL_CVAR_EXTERN(crosshair); DECL_CVAR_EXTERN(clmove); /*----------------------------------------------------------------------------*/