1 // ==================================================================
2 // aliases.cfg: Set up for voting and general game mode configuration
3 // Scripted by: Samual, Naryl, atheros
4 // Last updated: Saturday, February 11th - 11/2/2012
5 // ==================================================================
7 // These are advanced settings you can use to manage voting and such:
8 // Check to see if the server config was made specifically for this aliases file...
9 // if not, just act "normal". (allow all votes, execution of endmatch, and have public settings)
11 alias check_aev_${_allow_extra_votes} "set _allow_extra_votes 1"; check_aev_${_allow_extra_votes} // Allow extra votes (like mutators, private matches, etc) to be added
12 alias check_di_${_done_initializing} "set _done_initializing 1"; check_di_${_done_initializing} // used in server.cfg to allow selection of a game mode without
13 alias check_svt_${_server_type} "set _server_type public"; check_svt_${_server_type} // switch between tourney (strict gameplay settings with special votes), pickup (tourney but less strict), public (totally non-strict)
15 // if _allow_extra_votes is set, then votes for game modes and mutators and other options for the server will be added.
16 alias add_extra_vote_1 "addvote $*"
17 alias add_extra_vote_0 ""
18 alias add_extra_vote "add_extra_vote_${_allow_extra_votes} $*"
20 // if public, add public gametype votes
21 //alias add_public_vote_tourney ""
22 //alias add_public_vote_pickup ""
23 //alias add_public_vote_public "add_extra_vote $*"
24 //alias add_public_vote "add_public_vote_${_server_type} $*"
26 alias do_endmatch_1 "endmatch"
27 alias do_endmatch_0 "echo NOTE: Still initializing, not ending match"
28 alias do_endmatch "do_endmatch_${_done_initializing}"
30 alias do_restart_1 "restart"
31 alias do_restart_0 "echo NOTE: Still initializing, not restarting match"
32 alias do_restart "do_restart_${_done_initializing}"
34 alias default_settings "g_powerups 1; _nomutators; g_pickup_respawntime_weapon 10; g_weapon_stay 0; sv_autoscreenshot 0; g_chat_nospectators 0; g_tourney 0; timelimit_override -1; g_shootfromeye 0; g_shootfromcenter 0"
35 alias tourney_settings "default_settings; fraglimit_override 0; timelimit_overtimes 2; g_tourney 1; nobots; teamplay_mode 2; sv_autoscreenshot 1"
36 alias pickup_settings "default_settings; fraglimit_override 0; timelimit_overtimes 2; g_warmup 1; nobots; teamplay_mode 2; sv_autoscreenshot 1"
37 alias public_settings "default_settings; fraglimit_override -1; timelimit_overtimes 0; g_warmup 0; enablebots; teamplay_mode 4;"
39 add_extra_vote "tourney_settings pickup_settings public_settings"
41 // Information used for pickup bot if your server is added to that (see #xonotic.pickup on irc.quakenet.org)
42 set _pickup_gamemodes "duel dm ft tdm ctf ca assault ka nb dom kh rune arena lms ons"
43 set _pickup_options ""
45 // =========================
46 // Specific gametype options
47 // =========================
48 alias tourney-duel "gametype dm; g_powerups 0; timelimit_override 15"
49 alias tourney-dm "gametype dm"
50 alias tourney-ft "gametype freezetag"
51 alias tourney-tdm "gametype tdm; g_pickup_respawntime_weapon 15"
52 alias tourney-ctf "gametype ctf; g_pickup_respawntime_weapon 5"
53 alias tourney-ca "gametype ca; teamplay_mode 1"
54 alias tourney-assault "gametype as; g_weapon_stay 1"
55 alias tourney-ka "gametype keepaway"
56 alias tourney-nb "gametype nexball"
57 alias tourney-dom "gametype dom"
58 alias tourney-kh "gametype kh"
59 alias tourney-arena "gametype arena"
60 alias tourney-lms "gametype lms"
61 alias tourney-ons "gametype onslaught"
63 alias pickup-duel "gametype dm; g_powerups 0; timelimit_override 10"
64 alias pickup-dm "gametype dm"
65 alias pickup-ft "gametype freezetag"
66 alias pickup-tdm "gametype tdm;"
67 alias pickup-ctf "gametype ctf;"
68 alias pickup-ca "gametype ca; teamplay_mode 1"
69 alias pickup-assault "gametype as; g_weapon_stay 1"
70 alias pickup-ka "gametype keepaway"
71 alias pickup-nb "gametype nexball"
72 alias pickup-dom "gametype dom"
73 alias pickup-kh "gametype kh"
74 alias pickup-arena "gametype arena"
75 alias pickup-lms "gametype lms"
76 alias pickup-ons "gametype onslaught"
78 alias public-duel "gametype dm; g_powerups 0; timelimit_override 10"
79 alias public-dm "gametype dm"
80 alias public-ft "gametype freezetag"
81 alias public-tdm "gametype tdm"
82 alias public-ctf "gametype ctf"
83 alias public-ca "gametype ca; teamplay_mode 1"
84 alias public-assault "gametype as"
85 alias public-ka "gametype keepaway"
86 alias public-nb "gametype nexball"
87 alias public-dom "gametype dom"
88 alias public-kh "gametype kh"
89 alias public-arena "gametype arena"
90 alias public-lms "gametype lms"
91 alias public-ons "gametype onslaught"
94 // ===========================
95 // Public aliases and settings
96 // ===========================
97 alias dm "${_server_type}_settings; ${_server_type}-dm; do_endmatch"
98 alias freezetag "${_server_type}_settings; ${_server_type}-ft; do_endmatch"
99 alias tdm "${_server_type}_settings; ${_server_type}-tdm; do_endmatch"
100 alias ctf "${_server_type}_settings; ${_server_type}-ctf; do_endmatch"
101 alias ca "${_server_type}_settings; ${_server_type}-ca; do_endmatch"
102 alias assault "${_server_type}_settings; ${_server_type}-as; do_endmatch"
103 alias keepaway "${_server_type}_settings; ${_server_type}-ka; do_endmatch"
104 alias nexball "${_server_type}_settings; ${_server_type}-nb; do_endmatch"
105 alias domination "${_server_type}_settings; ${_server_type}-dom; do_endmatch"
106 alias keyhunt "${_server_type}_settings; ${_server_type}-kh; do_endmatch"
107 alias arena "${_server_type}_settings; ${_server_type}-arena; do_endmatch"
108 alias lms "${_server_type}_settings; ${_server_type}-lms; do_endmatch"
109 alias onslaught "${_server_type}_settings; ${_server_type}-ons; do_endmatch"
112 alias dom "domination"
115 alias ons "onslaught"
119 add_extra_vote "as dm tdm ctf ca freezetag assault keepaway ka nexball nb kh keyhunt dom domination rune arena lms ons onslaught"
122 // ===========================
123 // Pickup aliases and settings
124 // ===========================
125 alias duel "${_server_type}_settings; ${_server_type}-duel; g_maxplayers 2; do_endmatch"
126 alias 1v1 "duel"; alias dm1v1 "duel"; alias 1v1dm "duel"; alias 1on1 "duel"; alias dm1on1 "duel"; alias 1on1dm "duel"
127 add_extra_vote "duel 1v1 dm1v1 1v1dm 1on1 dm1on1 1on1dm"
129 alias add_alias_2v2_variant "alias ${1}2v2 \"2v2${1}\"; alias ${1}2on2 \"2v2${1}\"; alias 2on2${1} \"2v2${1}\""
130 alias add_alias_2v2 "alias 2v2${1} \"${_server_type}_settings; ${_server_type}-${1}; g_maxplayers 4; do_endmatch\"; add_alias_2v2_variant ${1}; add_extra_vote \"2v2${1} 2on2${1} ${1}2v2 ${1}2on2\""
132 alias add_alias_3v3_variant "alias ${1}3v3 \"3v3${1}\"; alias ${1}3on3 \"3v3${1}\"; alias 3on3${1} \"3v3${1}\""
133 alias add_alias_3v3 "alias 3v3${1} \"${_server_type}_settings; ${_server_type}-${1}; g_maxplayers 6; do_endmatch\"; add_alias_3v3_variant ${1}; add_extra_vote \"3v3${1} 3on3${1} ${1}3v3 ${1}3on3\""
135 alias add_alias_4v4_variant "alias ${1}4v4 \"4v4${1}\"; alias ${1}4on4 \"4v4${1}\"; alias 4on4${1} \"4v4${1}\""
136 alias add_alias_4v4 "alias 4v4${1} \"${_server_type}_settings; ${_server_type}-${1}; g_maxplayers 8; do_endmatch\"; add_alias_4v4_variant ${1}; add_extra_vote \"4v4${1} 4on4${1} ${1}4v4 ${1}4on4\""
138 alias add_alias_5v5_variant "alias ${1}5v5 \"5v5${1}\"; alias ${1}5on5 \"5v5${1}\"; alias 5on5${1} \"5v5${1}\""
139 alias add_alias_5v5 "alias 5v5${1} \"${_server_type}_settings; ${_server_type}-${1}; g_maxplayers 10; do_endmatch\"; add_alias_5v5_variant ${1}; add_extra_vote \"5v5${1} 5on5${1} ${1}5v5 ${1}5on5\""
141 alias add_alias_6v6_variant "alias ${1}6v6 \"6v6${1}\"; alias ${1}6on6 \"6v6${1}\"; alias 6on6${1} \"6v6${1}\""
142 alias add_alias_6v6 "alias 6v6${1} \"${_server_type}_settings; ${_server_type}-${1}; g_maxplayers 12; do_endmatch\"; add_alias_6v6_variant ${1}; add_extra_vote \"6v6${1} 6on6${1} ${1}6v6 ${1}6on6\""
145 alias add_alias_NvN "add_alias_2v2 $1; add_alias_3v3 $1; add_alias_4v4 $1; add_alias_5v5 $1; add_alias_6v6 $1"
150 //add_alias_NvN assault
161 alias _jetpack "toggle g_jetpack; g_grappling_hook 0; g_start_weapon_hook -1"
162 alias _hook "toggle g_grappling_hook; toggle g_start_weapon_hook \"0\" \"-1\"; g_jetpack 0"
163 alias _weaponarena "toggle g_weaponarena \"most\" \"0\"; g_minstagib 0"
164 alias _minstagib "toggle g_minstagib; g_weaponarena 0"
165 alias _infammo "toggle g_use_ammunition"
166 alias _pinata "toggle g_pinata"
167 alias _midair "toggle g_midair"
168 alias _dodging "toggle g_dodging"
170 alias jetpack "_jetpack; do_restart"
171 alias hook "_hook; do_restart"
172 alias grapplinghook "hook"
173 alias weaponarena "_weaponarena; do_restart"
174 alias hookarena "_weaponarena; _hook; do_restart"
175 alias jetpackarena "_weaponarena; _jetpack; do_restart"
176 alias minstagib "_minstagib; _infammo; do_restart"
177 alias minstahook "_minstagib; _infammo; _hook; do_restart"
178 alias minstajetpack "_minstagib; _infammo; _jetpack; do_restart"
179 alias infammo "_infammo; do_restart"
180 alias pinata "_pinata; do_restart"
181 alias midair "_midair; do_restart"
182 alias dodging "_dodging; do_restart"
184 alias _nomutators "g_weaponarena 0; g_minstagib 0; g_use_ammunition 1; g_grappling_hook 0; g_start_weapon_hook -1; g_jetpack 0; g_pinata 0; g_midair 0; g_dodging 0"
185 alias nomutators "_nomutators; do_restart"
187 add_extra_vote "jetpack hook grapplinghook weaponarena hookarena jetpackarena minstagib minstahook minstajetpack infammo pinata midair dodging nomutators"
189 alias warmup "toggle g_warmup; do_restart"
190 alias enablebots "minplayers 4"
191 alias nobots "minplayers 0; bot_number 0"
193 add_extra_vote "enablebots nobots warmup"
195 // fullbright skins/model stuff
196 set _fullbright_model "models/player/megaerebus.iqm"
197 alias sv_fbskin_model_megaerebus "_fullbright_model \"models/player/megaerebus.iqm\""
198 alias sv_fbskin_model_erebus "_fullbright_model \"models/player/erebus.iqm\""
200 alias sv_fbskin_unique "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors \"\""
201 alias sv_fbskin_green "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 51"
202 alias sv_fbskin_red "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 68"
203 alias sv_fbskin_orange "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 238"
204 alias sv_fbskin_rainbow "sv_defaultcharacter 1; sv_defaultplayermodel ${_fullbright_model}; sv_defaultplayerskin 1; sv_defaultplayercolors 95"
206 add_extra_vote "sv_fbskin_model_megaerebus sv_fbskin_model_erebus sv_fbskin_unique sv_fbskin_green sv_fbskin_orange sv_fbskin_red sv_fbskin_rainbow sv_fbskin_off"
208 add_extra_vote "teamplay_mode g_maxplayers timelimit g_shootfromeye g_shootfromcenter"