]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add an alias g_forced_team_matchsetup (untested)
authorRudolf Polzer <divverent@alientrap.org>
Mon, 5 Dec 2011 14:45:45 +0000 (15:45 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 5 Dec 2011 14:45:45 +0000 (15:45 +0100)
defaultXonotic.cfg

index 03a44696a632d8ee5879a7458018ed84e810f19a..7c66a31a64c71cf042afcc4da44506cb740f3c7a 100644 (file)
@@ -2083,6 +2083,11 @@ set g_forced_team_yellow "" "list of player IDs for yellow team"
 set g_forced_team_pink "" "list of player IDs for pink team"
 set g_forced_team_otherwise "default" "action if a non listed player joins (can be default for default action, spectate for forcing to spectate, or red, blue, yellow, pink)"
 
+// nice alias to set up a match
+// example: g_forced_team_matchsetup stormkeep "mzDo0nO2y3XpFPNbQAyeUucyaejZ9xpiXLYMGU2x3qM=" "BRLOGENSHFEGLE/+Mq3x2UGMYLXipx9ZjeaycuUeyAQ="
+// will set up a match on stormkeep where mzDo0nO2y3XpFPNbQAyeUucyaejZ9xpiXLYMGU2x3qM= and BRLOGENSHFEGLE/+Mq3x2UGMYLXipx9ZjeaycuUeyAQ= play against each other
+alias g_forced_team_matchsetup "map $1; settemp g_forced_team_red \"$2\"; settemp g_forced_team_blue \"$3\"; settemp g_forced_team_yellow \"$4\"; settemp g_forced_team_pink \"$5\"; settemp g_forced_team_otherwise spectate"
+
 // random charge stuff :P
 set g_weapon_charge_colormod_hdrmultiplier 4 "how much to multiply the colors by in the colormod vector"
 set g_weapon_charge_colormod_red_half 0