From db33eeaccc374da5213a96baf9407f29e6239f26 Mon Sep 17 00:00:00 2001 From: Sheldon Johnson Date: Sun, 15 Sep 2024 00:11:32 +1000 Subject: [PATCH] Send rotate commands to server if no preview --- csqc/main.qc | 4 ++++ ssqc/commands.qc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/csqc/main.qc b/csqc/main.qc index f7e590ff..e01d98d5 100644 --- a/csqc/main.qc +++ b/csqc/main.qc @@ -335,6 +335,8 @@ noref float(string cmd) CSQC_ConsoleCommand = { if (previewing_sentry) { sentry_preview.angles_y -= 15; sentry_preview_offset -= 15; + } else { + localcmd("cmd sentry rotate 15\n"); } break; } @@ -345,6 +347,8 @@ noref float(string cmd) CSQC_ConsoleCommand = { if (previewing_sentry) { sentry_preview.angles_y += 15; sentry_preview_offset += 15; + } else { + localcmd("cmd sentry rotate -15\n"); } break; } diff --git a/ssqc/commands.qc b/ssqc/commands.qc index e235dc4c..a5920c68 100644 --- a/ssqc/commands.qc +++ b/ssqc/commands.qc @@ -760,7 +760,7 @@ float (string arg1, string arg2, string arg3, string arg4) ParseCmds = { sprint(self, PRINT_HIGH, "Sentry detection issue!\n"); break; } - ent.angles_y += farg3; + ent.angles_y -= farg3; ent.waitmin = rint(ent.angles_y - 50); ent.waitmin = anglemod(ent.waitmin); ent.waitmax = rint(ent.angles_y + 50);