Talou's autoexec.cfg for Assault Cube 0.93

// this file gets executed if you start the game
//Colored info
echo "0t1a2l3o4u5's 6p0r1o2f3i4l5e"
//My name
name "ZinK|talou"
//echo "00112233445566"
loadcrosshair default.png	// choose another crosshair,  see packages/misc/crosshairs/
skin 0			   // change your look
autoreload 1	   // reload the guns automatically
alias maxmusicvol 120 // set higher if you want (max 255)
musicvol 0
music ac.ogg
sensitivity 70
gamma 150
gibspeed 5 //don't bother me with gib animation...
gibnum 50
gibttl 5000
item 4 //snipe
lighterror 4 //set higher (for example 8) if you experience  slowdown
alias "talou" [exec config/autoexec.cfg] //reload everything
alias primary [ weapon (currentprimary) ]
alias secondary [ weapon 1 ]
alias melee [ weapon 0 ]
alias grenades [weapon 6 ]
alias timeremain [ echo time remaining: ($minutesremaining) minutes]
alias nokeymsg [echo "0No 1bind 2on 3this 4key5.6.7."]
newmenu myadmin
menuitem "2Admin menu"             [showmenu "server operator"]
menuitem "ZinK One"              "connect 91.121.20.139 password" //dont try this password, it's a fake
menuitem "ZinK Experimental"              "connect 213.251.185.48 password"
menuitem "3get admin status"           "saycommand /setadmin 1 password"
menuitem "0get master status"           "saycommand /setmaster 1 password"
// example WASD (in france Q is A and W is Z)
bind Z forward
bind Q left
bind S backward
bind D right
bind "UP" [forward]
bind "DOWN" [backward]
bind "RIGHT" [right]
bind "LEFT" [left]
bind "MOUSE1" [attack]
bind "MOUSE2" [ jump]
bind "MOUSE3" [weapon]
bind "MOUSE4" [ universaldelta  1 ]
bind "MOUSE5" [ universaldelta -1 ]
bind "TAB" [showscores]
bind "ESCAPE" [showmenu main]
bind "SPACE" [primary;jump;attack;jump]//quick bullet jump
bind "COMMA" [ if $editing [ equalize 0 ] [ nokeymsg ] ]
bind "PERIOD" [ if $editing [ equalize 2 ] [ nokeymsg ] ]
bind "SLASH" [saycommand /]
bind "0" [weapon 0 1 2]
bind "1" [primary]
bind "2" [secondary]
bind "3" [grenades]
bind "4" [melee]
bind "8" [vdelta -1]
bind "9" [vdelta 1]
bind "LEFTBRACKET" [ if $editing [ editheight 0 -1 ] [ nokeymsg ] ]
bind "RIGHTBRACKET" [ if $editing [ editheight 0 1 ] [ nokeymsg ] ]
bind "BACKQUOTE" [saycommand /]
bind "A" [ if $editing [ domodifier 1 ] [ altaction ] ]
bind "B" [showmenu weapons]
bind "C" [ if $editing [ copy ] [ say hi campers:) ] ]
bind "E" [edittoggle]
bind "F" [ if $editing [ solid 1 ] [fov 90; sensitivity 40; hudgun 0; onrelease [fov 120; sensitivity 70; hudgun 1]] ]
bind "G" [ if $editing [ solid 0 ] [ say 1great game ! 3Visit 2http://zink.timot.net/ ] ]
bind "H" [ if $editing [ heightfield 0 ] [ nokeymsg ] ]
bind "I" [ if $editing [ heightfield 2 ] [ nokeymsg ] ]
bind "J" [say %sorry 3mate]
bind "K" [ if $editing [ corner ] [ say 1:) ] ]
bind "L" [ if $editing [ newent light 16 ] [ say lol ] ]
bind "M" [timeremain] //usefull
bind "N" [say nope mate]
bind "O" [ if $editing [ editheight 2 -1 ] [ nokeymsg ] ]
bind "P" [ if $editing [ editheight 2 1 ] [ nokeymsg ] ]
bind "R" [reload]
bind "T" [saycommand]
bind "U" [ if $editing [ undo ] [ saycommand % ] ]
bind "V" [ if $editing [ paste ] [ nokeymsg ] ]
bind "W" [ if $editing [ domodifier 2 ] [ nokeymsg ] ]
bind "X" [ if $editing [ domodifier 3 ] [ nokeymsg ] ]
bind "Y" [say yeah]
bind "DELETE" [ if $editing [ edittex 0 -1 ] [ nokeymsg ] ]
bind "KP0" [weapon 4 1]
bind "KP4" [ if $editing [ edittex 3 -1 ] [ nokeymsg ] ]
bind "KP7" [ if $editing [ edittex 3 1 ] [ nokeymsg ] ]
bind "KP_MINUS" [conskip 1]
bind "KP_PLUS" [conskip -1000]
bind "INSERT" [ if $editing [ edittex 0 1 ] [ nokeymsg ] ]
bind "HOME" [ if $editing [ edittex 1 1 ] [ nokeymsg ] ]
bind "END" [ if $editing [ edittex 1 -1 ] [ nokeymsg ] ]
bind "PAGEUP" [ if $editing [ edittex 2 1 ] [ conskip -1000  ] ]
bind "PAGEDOWN" [ if $editing [ edittex 2 -1 ] [ conskip 1 ] ]
bind "F2" [nokeymsg]
bind "F3" [nokeymsg]
bind "F4" [showmenu myadmin]
bind "F5" [toggleocull]
bind "F6" [showmip 1; onrelease [ showmip 0 ] ]
bind "F7" [saycommand /record demo_]
bind "F8" [stop]
bind "F9" [quit]
bind "F10" [updatefrommaster;showmenu server]
bind "F11" [toggleconsole ; onrelease [ toggleconsole ]]
bind "F12" [screenshot]
bind "RCTRL" [jump]
bind "LCTRL" [jump]
bind "LALT" [ showmap 1; onrelease [ showmap 0 ] ]
//for alternative weapon binding (more economic) see the end of this file
alias altaction [
	concatword altaction_ (curweapon)
	s
]
alias quicknadethrow [
	alias prevweapon (curweapon)
	if (> (magcontent 6) 0) [
		grenades
		attack
	] []
	onrelease [ sleep 1 [ weapon $prevweapon ] ]
]
loop 7 [ concatword altaction_ $i; alias $s quicknadethrow ] // quick nade throw is default
alias altaction_4 [ zoom 1; onrelease [ zoom 0 ] ] // sniper
alias altaction_6 [ ] // grenade (none)
// NOTE: by default this zoom script just devides your sensitivity by 2 while you use the scope
// if you want to set your own value for it, go to the following line and
// replace (div $sensitivity 2) by your desired sensitivity value:
alias scopesens (div $sensitivity 2)
alias oldsens $sensitivity
alias zoom [
	if (= $arg1 1) [
		if (= $sensitivity $scopesens) [] [
			alias oldsens $sensitivity
			sensitivity $scopesens
			setscope  1
		]
    ] [
		sensitivity $oldsens
		setscope 0
	]
]
//bind MOUSE2 [ zoom 1; onrelease [ zoom 0 ] ]
// alternative zoom toggle
//alias ztoggle 0
//bind MOUSE2 [ alias ztoggle (= ztoggle 0); zoom $ztoggle ]
alias vote [ mode $arg1; map $arg2 ]
alias tdm   [ vote 0 $arg1 ]
alias ts    [ vote 4 $arg1 ]
alias ctf   [ vote 5 $arg1 ]
alias dm    [ vote 2 $arg1 ]
alias ffa   [ vote 2 $arg1 ]
alias lms   [ vote 3 $arg1 ]
alias pf    [ vote 6 $arg1 ]
alias lss   [ vote 9 $arg1 ]
alias insta [ vote 10 $arg1 ]
alias osok  [ vote 10 $arg1 ]
alias tosok [ vote 11 $arg1 ]
//- editing ---
// below is a fun new way of editing, with all using the mousewheel
// try it out :)
alias modifier 0
alias domodifier [ alias modifier $arg1; onrelease [ alias modifier 0 ] ]
alias universaldelta [
  if $editing [ alias s "edit" ] [ alias s "game" ]
  concatword delta _ $s _ $modifier
  s
]
alias delta_edit_0 [ editheight $flrceil $arg1 ]
alias delta_edit_1 [ if $flrceil [ vdelta $arg1 ] [ vdelta (- 0 $arg1) ] ]
alias delta_edit_2 [ edittex $flrceil $arg1 ]
alias delta_edit_3 [ edittex (+ $flrceil 1) $arg1 ]
alias delta_edit_4 [ equalize $flrceil ]
alias delta_edit_5 [ entproperty 0 $arg1 ]  // and the others
alias delta_game_0 [ if (= $arg1 1) [ shiftweapon 1 ] [ shiftweapon -1 ] ]
// alternative weapon switching, no more 1-2-3-4 /wheel cycling no finger ever leaving WASD
//uncomment lines (remove the //) below to activate
//alias delta_game_0 [ if (= $arg1 1) [ primary ] [ secondary ] ]
//bind lshift "grenades"
//bind lalt "melee"
alias start_intermission [
    // play once (1:40)
    musicvol $maxmusicvol
    fade 0
    sleep 10000 [ fade 1 ]
]

+