From 142d69b66acd3cabe6eae2fa9a88e0b28def1485 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Thu, 22 Dec 2022 16:54:11 -0800 Subject: [PATCH] Remove Game_RunClientCommand() entirely, as it will be replaced by a game-mode equivalent. --- src/server/entry.qc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/server/entry.qc b/src/server/entry.qc index bc030ff7..94720de6 100644 --- a/src/server/entry.qc +++ b/src/server/entry.qc @@ -266,7 +266,14 @@ SV_RunClientCommand(void) #endif if (!Plugin_RunClientCommand()) { - Game_RunClientCommand(); + /* TODO */ + } + + /* the last thing that happens, so that the game can intercept + input globals beforehand */ + if (self.classname == "player") { + player pl = (player)self; + pl.Physics_Run(); } } @@ -319,6 +326,15 @@ SV_ParseClientCommand(string cmd) setorigin(self, stov(argv(1))); } break; + case "timeleft": + string msg; + string timestring; + float timeleft; + timeleft = cvar("timelimit") - (time / 60); + timestring = Util_TimeToString(timeleft); + msg = sprintf("we have %s minutes remaining", timestring); + bprint(PRINT_CHAT, msg); + break; default: clientcommand(self, cmd); }