Change cvar from 'cv_' to 'dz_'

This commit is contained in:
Wizzard
2023-09-19 10:45:57 -04:00
parent 02888c1158
commit f0485a3f36
8 changed files with 24 additions and 24 deletions

View File

@@ -42,7 +42,7 @@ static vec3_t get_closest_delta(vec3_t viewangles) {
/* These 2 vars are used to store the best target across iterations.
* NOTE: The default value of best_fov will be the aimbot fov */
float best_fov = cv_aimbot->value;
float best_fov = dz_aimbot->value;
vec3_t best_delta = { 0, 0, 0 };
for (int i = 1; i <= i_engine->GetMaxClients(); i++) {

View File

@@ -15,7 +15,7 @@ enum chams_settings {
visible_flags visible_mode;
bool chams(void* this_ptr) {
const int setting = cv_chams->value == 5.0f ? 7 : cv_chams->value;
const int setting = dz_chams->value == 5.0f ? 7 : dz_chams->value;
if (setting == DISABLED)
return false;

View File

@@ -5,7 +5,7 @@
#include "../include/cvars.h"
#include "../include/util.h"
/* For cv_esp */
/* For dz_esp */
enum esp_values {
ESP_OFF = 0,
ESP_BOX = 1,
@@ -98,7 +98,7 @@ static bool gl_draw2dbox(vec3_t o, int bh) {
}
void esp(void) {
const int setting = (int)cv_esp->value;
const int setting = (int)dz_esp->value;
if (setting == ESP_OFF)
return;

View File

@@ -14,7 +14,7 @@ void custom_crosshair(void) {
int my = game_info->m_height / 2;
/* The real length is sqrt(2 * (len^2)) */
const int len = cv_crosshair->value;
const int len = dz_crosshair->value;
const int gap = 1;
const float w = 1;
const rgb_t col = { 255, 255, 255 };

View File

@@ -82,7 +82,7 @@ void bhop(usercmd_t* cmd) {
/* Autostrafe if enabled. Check if we are in the air and holding space. */
if (is_jumping) {
switch ((int)cv_autostrafe->value) {
switch ((int)dz_autostrafe->value) {
case 1:
autostrafe_rage(cmd);
break;