Skip to content

Commit

Permalink
Send rotate commands to server if no preview
Browse files Browse the repository at this point in the history
  • Loading branch information
drzel committed Sep 14, 2024
1 parent da5c514 commit db33eea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions csqc/main.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion ssqc/commands.qc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db33eea

Please sign in to comment.