From 7f60dfdb9d05786505682ee33036c492a9c0a192 Mon Sep 17 00:00:00 2001 From: esteel Date: Wed, 14 Jan 2009 13:39:14 +0000 Subject: [PATCH] renamed calltimeout/resumegame to timein/timeout. As its hardly used (so far ladder only) not worrying about compatibility git-svn-id: svn://svn.icculus.org/nexuiz/trunk@5524 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/defaultNexuiz.cfg | 4 ++-- data/qcsrc/server/clientcommands.qc | 12 ++++++------ data/qcsrc/server/defs.qh | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/data/defaultNexuiz.cfg b/data/defaultNexuiz.cfg index fd30deb60..64d9a6f0e 100644 --- a/data/defaultNexuiz.cfg +++ b/data/defaultNexuiz.cfg @@ -46,8 +46,8 @@ alias ready "cmd ready" alias lockteams "sv_cmd lockteams" alias unlockteams "sv_cmd unlockteams" alias nospectators "sv_cmd nospectators" -alias calltimeout "cmd calltimeout" //use this command to call a timeout -alias resumegame "cmd resumegame" //use this command if you don't need the remaining time of the timeout anymore +alias timeout "cmd timeout" //use this command to call a timeout +alias timein "cmd timein" //use this command to resume the game before timeout is finished alias bsp "ls maps/*.bsp" alias chmap "changelevel $*" diff --git a/data/qcsrc/server/clientcommands.qc b/data/qcsrc/server/clientcommands.qc index e89f6a750..fa53a97c8 100644 --- a/data/qcsrc/server/clientcommands.qc +++ b/data/qcsrc/server/clientcommands.qc @@ -245,7 +245,7 @@ void SV_ParseClientCommand(string s) { wordwrap_sprint(cmd, 1111); } else if(argv(0) == "suggestmap") { sprint(self, strcat(MapVote_Suggest(argv(1)), "\n")); - } else if(argv(0) == "calltimeout") { + } else if(argv(0) == "timeout") { if not(self.flags & FL_CLIENT) return; if(cvar("sv_timeout")) { @@ -253,16 +253,16 @@ void SV_ParseClientCommand(string s) { if(votecalled) sprint(self, "^7Error: you can not call a timeout while a vote is active!\n"); else - evaluateTimeoutCall(); + evaluateTimeout(); } else sprint(self, "^7Error: only players can call a timeout!\n"); } - } else if(argv(0) == "resumegame") { + } else if(argv(0) == "timein") { if not(self.flags & FL_CLIENT) return; if(cvar("sv_timeout")) { - evaluateResumeGame(); + evaluateTimein(); } } else if(argv(0) == "teamstatus") { Score_NicePrint(self); @@ -499,7 +499,7 @@ void restartAnnouncer_Think() { * * This function is called when a player issues the calltimeout command. */ -void evaluateTimeoutCall() { +void evaluateTimeout() { if (inWarmupStage && !g_warmup_allow_timeout) return sprint(self, "^7Error: You can not call a timeout in warmup-stage!\n"); if (time < game_starttime ) @@ -547,7 +547,7 @@ void evaluateTimeoutCall() { * * This function is called when a player issues the resumegame command. */ -void evaluateResumeGame() { +void evaluateTimein() { if (!timeoutStatus) return sprint(self, "^7Error: There is no active timeout which could be aborted!\n"); if (self != timeoutInitiator) diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index b1a136070..8a03c9edb 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -286,8 +286,8 @@ float orig_slowmo; // contains the value of cvar("slowmo") so that, after timeou .vector lastV_angle; //used when pausing the game in order to force the player to keep his old view angle fixed entity timeoutHandler; //responsible for centerprinting the timeout countdowns and playing sounds void timeoutHandler_Think(); -void evaluateTimeoutCall(); -void evaluateResumeGame(); +void evaluateTimeout(); +void evaluateTimein(); string getTimeoutText(float addOneSecond); .float spawnshieldtime; -- 2.39.2