Remove Game_RunClientCommand() entirely, as it will be replaced by a game-mode equivalent.
This commit is contained in:
parent
466787b3ff
commit
142d69b66a
1 changed files with 17 additions and 1 deletions
|
@ -266,7 +266,14 @@ SV_RunClientCommand(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!Plugin_RunClientCommand()) {
|
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)));
|
setorigin(self, stov(argv(1)));
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
clientcommand(self, cmd);
|
clientcommand(self, cmd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue