From: Samual Date: Sun, 10 Apr 2011 20:45:29 +0000 (-0400) Subject: Add config for balance switching on endmatch (also for notifications of current balance) X-Git-Tag: xonotic-v0.5.0~307^2~3^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=dcccdfb22a39ce9a413242844fcb3170e6a6f82b;p=xonotic%2Fxonotic-data.pk3dir.git Add config for balance switching on endmatch (also for notifications of current balance) --- diff --git a/annoy_balance.cfg b/annoy_balance.cfg new file mode 100644 index 000000000..184eb4e72 --- /dev/null +++ b/annoy_balance.cfg @@ -0,0 +1,21 @@ +// TEMPORARY CONFIG FOR BALANCE TESTING PURPOSES + +// ANNOY people with the BALANCE +alias annoy "sv_cmd adminmsg 0 \"${* q}\" 70" + // show message for 70 sec, clear previous one +alias annoy_s "annoy $*; echo SERVER^7: $*" + // annoy_s goes to rcon2irc (this echo fakes a chat message's output) +alias printbalance "annoy NOTE: Current balance is ^1$curbalance" + // refresh the balance status bar (call this every 60 sec) +alias printbalance_s "annoy_s NOTE: Next match will run ^1$curbalance" + // announce the balance for next match +alias switchbalance_samual "exec balanceXonotic.cfg; set curbalance fruit; printbalance_s" +alias switchbalance_fruit "exec balanceSamual.cfg; set curbalance samual; printbalance_s" +alias switchbalance "switchbalance_$curbalance" + // toggle between the balances +alias sv_hook_gameend "switchbalance" + // do this at the end of each match +set curbalance fruit +alias annoybalance "printbalance; defer 60 annoybalance" +annoybalance + // our timer \ No newline at end of file