Remove Game_RunClientCommand() entirely, as it will be replaced by a game-mode equivalent.

This commit is contained in:
Marco Cawthorne 2022-12-22 16:54:11 -08:00
parent 466787b3ff
commit 142d69b66a
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -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);
}