r5569 - in trunk/data: . qcsrc/server
esteel at icculus.org
esteel at icculus.org
Fri Jan 16 07:14:47 EST 2009
Author: esteel
Date: 2009-01-16 07:14:41 -0500 (Fri, 16 Jan 2009)
New Revision: 5569
Modified:
trunk/data/defaultNexuiz.cfg
trunk/data/qcsrc/server/gamecommand.qc
Log:
added the tourney mods cointoss
Modified: trunk/data/defaultNexuiz.cfg
===================================================================
--- trunk/data/defaultNexuiz.cfg 2009-01-16 11:09:09 UTC (rev 5568)
+++ trunk/data/defaultNexuiz.cfg 2009-01-16 12:14:41 UTC (rev 5569)
@@ -46,6 +46,7 @@
alias lockteams "sv_cmd lockteams"
alias unlockteams "sv_cmd unlockteams"
alias nospectators "sv_cmd nospectators"
+alias cointoss "sv_cmd cointoss"
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
@@ -836,7 +837,7 @@
bind kp_minus "+userbind 18"
// these commands can be voted
-set sv_vote_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick"
+set sv_vote_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick cointoss"
set sv_vote_only_commands ""
set sv_vote_master_commands "" // maybe add kickban here (but then sv_vote_master 0)
set rcon_restricted_commands "restart fraglimit chmap gotomap endmatch reducematchtime extendmatchtime allready kick kickban \"sv_cmd bans\" \"sv_cmd unban\" status \"sv_cmd teamstatus\""
Modified: trunk/data/qcsrc/server/gamecommand.qc
===================================================================
--- trunk/data/qcsrc/server/gamecommand.qc 2009-01-16 11:09:09 UTC (rev 5568)
+++ trunk/data/qcsrc/server/gamecommand.qc 2009-01-16 12:14:41 UTC (rev 5569)
@@ -810,6 +810,16 @@
return;
}
+ if(argv(0) == "cointoss")
+ {
+ bprint("^3Throwing coin... Result: ");
+ if (random() > 0.5)
+ bprint("^1heads ^3!\n");
+ else
+ bprint("^1tails ^3!\n");
+ return;
+ }
+
print("Invalid command. For a list of supported commands, try sv_cmd help.\n");
}
More information about the nexuiz-commits
mailing list