From 74167a25cda6860c25b66c00be0d8802c8f1d92d Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Thu, 11 Jun 2009 11:59:56 +0000 Subject: [PATCH] grenadiers better cubescript git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4496 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/scripts.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/scripts.cfg b/config/scripts.cfg index ade5e687..64756a15 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -58,10 +58,12 @@ alias resetbinds [ exec config/resetbinds.cfg; echo " 3All binds have been reset // "changeteam" command. alias changeteam [ - if (= (curteam) 1) [ team CLA ] [ team RVSF ] - if (= (curteam) 0) [ echo "You are now on team 3CLA" ] [ echo "You are now on team 1RVSF" ] + if (= (curteam) 1) [ team CLA; alias tmp_oldteam 1 ] [ team RVSF; alias tmp_oldteam 0 ] + if (= (curteam) 0) [ if (= $tmp_oldteam 0) [ echo "You stayed on team 3CLA" ] [ echo "You switched to team 3CLA" ] ] + if (= (curteam) 1) [ if (= $tmp_oldteam 1) [ echo "You stayed on team 1RVSF" ] [ echo "You switched to team 1RVSF" ] ] ] + // Mode/map-setting aliases. alias votemap [ mode $arg1; map $arg2 ]