Renamed 'dz_silent_aim' to 'dz_aimbot_silent_aim' 2

This commit is contained in:
Wizzard 2023-09-20 10:33:34 -04:00
parent 3aaf7c8346
commit 7239d610a8
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ DECL_CVAR(tracers);
DECL_CVAR(clmove); DECL_CVAR(clmove);
DECL_CVAR(watermark); DECL_CVAR(watermark);
DECL_CVAR(watermark_rainbow); DECL_CVAR(watermark_rainbow);
DECL_CVAR(silent_aim); DECL_CVAR(aimbot_silent_aim);
bool cvars_init(void) { bool cvars_init(void) {
REGISTER_CVAR(bhop, 1); REGISTER_CVAR(bhop, 1);
@ -28,7 +28,7 @@ bool cvars_init(void) {
REGISTER_CVAR(clmove, 0); REGISTER_CVAR(clmove, 0);
REGISTER_CVAR(watermark, 1); REGISTER_CVAR(watermark, 1);
REGISTER_CVAR(watermark_rainbow, 1); REGISTER_CVAR(watermark_rainbow, 1);
REGISTER_CVAR(silent_aim, 1); REGISTER_CVAR(aimbot_silent_aim, 1);
if (IsCS16()) { if (IsCS16()) {
REGISTER_CVAR(tracers, 0); REGISTER_CVAR(tracers, 0);
} else { } else {

View File

@ -98,7 +98,7 @@ void aimbot(usercmd_t* cmd) {
cmd->buttons &= ~IN_ATTACK; cmd->buttons &= ~IN_ATTACK;
} }
if (CVAR_ON(silent_aim)) { if (CVAR_ON(aimbot_silent_aim)) {
vec_copy(cmd->viewangles, engine_viewangles); vec_copy(cmd->viewangles, engine_viewangles);
} else { } else {
i_engine->SetViewAngles(engine_viewangles); i_engine->SetViewAngles(engine_viewangles);