12
13
demo = [ stopdemo; start $arg1 0 0 ]; complete demo . dmo
14
edit = [ start $arg1 1 0 ]; mapcomplete edit
15
campaign = [ start $arg1 2 0 ]; mapcomplete campaign
16
deathmatch = [ start $arg1 3 0 ]; mapcomplete deathmatch; dm = [ deathmatch $arg1 ]; mapcomplete dm
17
teamdm = [ start $arg1 3 2 ]; mapcomplete teamdm; tdm = [ teamdm $arg1 ]; mapcomplete tdm
18
capture = [ start $arg1 4 0]; mapcomplete capture; ctf = [ capture $arg1 ]; mapcomplete ctf
19
defend = [ start $arg1 5 0 ]; mapcomplete defend; dtf = [ defend $arg1 ]; mapcomplete dtf
20
bomber = [ start $arg1 6 0 ]; mapcomplete bomber; bb = [ bomber $arg1 ]; mapcomplete bb
21
timetrial = [ start $arg1 7 0 ]; mapcomplete timetrial; trial = [ timetrial $arg1 ]; mapcomplete trial
22
instagib = [ start $arg1 3 (<< 1 2) ]; mapcomplete instagib; insta = [ instagib $arg1 ]; mapcomplete insta
23
medieval = [ start $arg1 3 (<< 1 3) ]; mapcomplete medieval
24
ballistic = [ start $arg1 3 (<< 1 4) ]; mapcomplete ballistic
25
duel = [ start $arg1 3 (<< 1 5) ]; mapcomplete duel
26
survivor = [ start $arg1 3 (<< 1 6) ]; mapcomplete survivor; lms = [ survivor $arg1 ]; mapcomplete lms
27
arena = [ start $arg1 3 (<< 1 7) ]; mapcomplete arena
15
edit = [ start $arg1 $modeidxediting 0 ]; mapcomplete edit
16
campaign = [ start $arg1 $modeidxcampaign 0 ]; mapcomplete campaign
17
deathmatch = [ start $arg1 $modeidxdeathmatch 0 ]; mapcomplete deathmatch; dm = [ deathmatch $arg1 ]; mapcomplete dm
18
teamdm = [ start $arg1 $modeidxdeathmatch $mutsbitteam ]; mapcomplete teamdm; tdm = [ teamdm $arg1 ]; mapcomplete tdm
19
multidm = [ start $arg1 $modeidxdeathmatch $mutsbitmulti ]; mapcomplete teamdm; mdm = [ multidm $arg1 ]; mapcomplete mdm
20
coopdm = [ start $arg1 $modeidxdeathmatch $mutsbitcoop ]; mapcomplete teamdm; cdm = [ coopdm $arg1 ]; mapcomplete cdm
21
capture = [ start $arg1 $modeidxcapture 0]; mapcomplete capture; ctf = [ capture $arg1 ]; mapcomplete ctf
22
defend = [ start $arg1 $modeidxdefend 0 ]; mapcomplete defend; dtf = [ defend $arg1 ]; mapcomplete dtf
23
bomber = [ start $arg1 $modeidxbomber 0 ]; mapcomplete bomber; bb = [ bomber $arg1 ]; mapcomplete bb
24
timetrial = [ start $arg1 $modeidxtrial 0 ]; mapcomplete timetrial; trial = [ timetrial $arg1 ]; mapcomplete trial
25
instagib = [ start $arg1 $modeidxdeathmatch $mutsbitinstagib ]; mapcomplete instagib; insta = [ instagib $arg1 ]; mapcomplete insta
26
medieval = [ start $arg1 $modeidxdeathmatch $mutsbitmedieval ]; mapcomplete medieval
27
ballistic = [ start $arg1 $modeidxdeathmatch $mutsbitballistic ]; mapcomplete ballistic
28
duel = [ start $arg1 $modeidxdeathmatch $mutsbitduel ]; mapcomplete duel
29
survivor = [ start $arg1 $modeidxdeathmatch $mutsbitsurvivor ]; mapcomplete survivor; lms = [ survivor $arg1 ]; mapcomplete lms
30
arena = [ start $arg1 $modeidxdeathmatch $mutsbitarena ]; mapcomplete arena
29
32
delta_game_0 = [ if (iszooming) [ setzoom $arg1 ] [ weapon -1 $arg1 ] ]
30
33
delta_spec_0 = [ followdelta $arg1 ]
123
126
bind TAB [ showscores ]
125
saytextcommand = [inputcommand (if (>= $numargs 1) [result $arg1] [result ""]) [say $commandbuffer] "textures/chat" 0 "s"]
126
sayteamcommand = [inputcommand (if (>= $numargs 1) [result $arg1] [result ""]) [sayteam $commandbuffer] (getteamicon) (getteamcolour) 0 "s"]
128
saytextcommand = [inputcommand $arg1 [say $commandbuffer] "textures/chat" 0 "s"]
129
sayteamcommand = [inputcommand $arg1 [sayteam $commandbuffer] (getteamicon) (getteamcolour) 0 "s"]
128
131
bind T [ saytextcommand ]
129
132
bind RETURN [ saytextcommand ]
135
138
bind KP_PLUS [ mastervol (min (+ $mastervol 5) 255) ]
136
139
bind KP_DIVIDE [ togglesound ]
138
bind PAUSE [ if (= $gamepaused 1) [ gamepaused 0 ] [ gamepaused 1 ] ]
141
bind PAUSE [ gamepaused (! $gamepaused) ]
139
142
bind PAGEDOWN [ conskip (- 0 $consize) ]
140
143
bind PAGEUP [ conskip $consize ]
157
160
bind COMMA [ showgui loadout ]
158
161
bind PERIOD [ showgui team ]
159
162
bind F9 [ thirdpersonswitch ]
160
bind F10 [ if (= $grabinput 1) [ grabinput 0 ] [ grabinput 1 ] ]
163
bind F10 [ grabinput (! $grabinput) ]
161
164
bind F11 [ toggleconsole ]
162
165
bind F12 [ screenshot ]
167
170
editbind F5 [ fullbright 0; patchlight]
168
171
editbind F6 [ fullbright 0; calclight -1 ]
169
172
editbind F7 [ fullbright 0; calclight 1 ]
170
editbindvar F8 [ savemap ]
173
editbind F8 [ savemap ]
171
174
editbind F9 [ changeoutline 1 ]
173
176
bind 0 [ weapon 0 ]
190
193
editbind 7 [ domodifier 17 ]
191
194
editbind 8 [ domodifier 18 ]
192
195
editbind 9 [ domodifier 19 ]
193
editbind C [ domodifier 9 ]
197
editbind K [ domodifier 9 ]
195
199
editbindvar 0 allfaces
196
editbindvar K blankgeom
197
200
editbindvar M showmat
198
201
editbindvar O outline
222
225
gridbindswitch = 0
224
if (= $gridbindswitch 3) [ showpastegrid 0; showcursorgrid 0; showselgrid 0; gridbindswitch = 0 ] [
225
if (= $gridbindswitch 2) [ showpastegrid 0; showcursorgrid 0; showselgrid 1; gridbindswitch = 3 ] [
226
if (= $gridbindswitch 1) [ showpastegrid 0; showcursorgrid 1; showselgrid 0; gridbindswitch = 2 ] [
227
if (= $gridbindswitch 0) [ showpastegrid 1; showcursorgrid 0; showselgrid 0; gridbindswitch = 1 ]
227
case $gridbindswitch 3 [
228
showpastegrid 0; showcursorgrid 0; showselgrid 0; gridbindswitch = 0
230
showpastegrid 0; showcursorgrid 0; showselgrid 1; gridbindswitch = 3
232
showpastegrid 0; showcursorgrid 1; showselgrid 0; gridbindswitch = 2
234
showpastegrid 1; showcursorgrid 0; showselgrid 0; gridbindswitch = 1
231
236
]; setcomplete togglegrid 1
232
238
editbind TAB [ togglegrid ]
234
240
editbind SPACE [ cancelsel ]
246
252
editbind U [ editcut ]
247
253
editbind Z [ undo; passthroughsel 0 ]
248
254
editbind I [ redo ]
249
editbind H [ if $hmapedit [ editface 1 -1 ] [ hmapedit 1 ]; blendpaintmode 0 ]
255
editbind H [ hmapedit (! $hmapedit) ; blendpaintmode 0 ]
251
257
editbind BACKSPACE [ editdel ]
253
259
editbind G [ domodifier 1 ] // domodifier 1 -> executes delta_edit_1
254
260
editbind F [ domodifier 2 ] // etc...
255
261
editbind Q [ domodifier 3 ]
256
editbind R [ domodifier 4 ]
262
editbind R [ domodifier 4 ]
257
263
editbind Y [ domodifier 6 ]
258
264
editbind J [ gettex ]
259
265
editbind COMMA [ domodifier 10; onrelease entautoview ]
306
312
entcomplete newent
307
313
entcomplete entfind
310
enttypelength = (listlen $enttypelist)
311
next = (mod (+ (indexof $enttypelist (enttype)) $arg1) $enttypelength)
312
if (< $next 0) [ next = (+ $next $enttypelength) ]
313
do [entset @(listsplice (entget) (at $enttypelist $next) 0 1)]
316
enttypelength = (listlen $enttypelist)
317
next = (mod (+ (indexof $enttypelist (enttype)) $arg1) $enttypelength)
318
if (< $next 0) [ next = (+ $next $enttypelength) ]
319
do [entset @(listsplice (entget) (at $enttypelist $next) 0 1)]
329
335
exec "compass.cfg"
331
337
// people have complained /fov was removed
332
fov = [ if (= (isthirdperson) 1) [ thirdpersonfov $arg1 ] [ firstpersonfov $arg1 ] ]; setcomplete fov 1
338
fov = [[@(? (isthirdperson) third first)personfov] $arg1]; setcomplete fov 1
333
339
coop = [ edit $arg1 ]; setcomplete coop 1
334
340
texturecull = [ compactvslots 1 ]; setcomplete texturecull 1
336
setinfo $arg1 (if (>= $numargs 2) [result $arg2] [result -1]) -1
337
]; setcomplete name 1
341
name = [setinfo $arg1 (? (> $numargs 1) $arg2 -1) -1]; setcomplete name 1
338
342
colour = [ setinfo (getname) $arg1 -1 ]; setcomplete colour 1
343
setmaster = [ setpriv $arg1 ]; setcomplete setmaster 1
340
345
oldshowhud = 0; oldshowconsole = 0
341
oldscreenshot = [ if (= $arg1 1) [ oldshowhud = $showhud; oldshowconsole = $showconsole; showhud 0; showconsole 0 ] [ showhud $oldshowhud; showconsole $oldshowconsole ] ]
348
oldshowhud = $showhud; oldshowconsole = $showconsole; showhud 0; showconsole 0
349
] [showhud $oldshowhud; showconsole $oldshowconsole]
342
351
takescreenshot = [ oldscreenshot 1; sleep 1 [ screenshot "screenshot"; oldscreenshot 0 ] ]; setcomplete takescreenshot 1
344
353
// sauer rotation aliases