// these default settings get executed whenever "config.cfg" is not available
// do not modify anything below, instead change settings in game, or add to autoexec.cfg

name "unnamed"     // change!
team "blah"

invmouse 0         // 1 for flightsim mode
sensitivity 30       
sensitivityscale 10     

fov 105

musicvol 150       // set higher if you want (max 255)
soundvol 150

minmillis 5        // minimum frametime

dynlight 16        // set 0 if it slows you down

gamma 100          // set to your liking, 100 = default

bind F6 showmip
bind F5 toggleocull

bind F8 "savegame quicksave"
bind F9 "loadgame quicksave"

// example WASD

bind W forward
bind A left
bind S backward
bind D right

hudgun 1

alias sp    [ mode -2; map $arg1 ]
alias dmsp  [ mode -1; map $arg1 ]
alias ffa   [ mode  0; map $arg1 ]
alias insta [ mode  4; map $arg1 ]


// 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 ] ]

bind Q [ domodifier 1 ]
bind Z [ domodifier 2 ]
bind X [ domodifier 3 ]

alias universaldelta [
  if $editing [ alias s "edit" ] [ alias s "game" ]
  concatword delta _ $s _ $modifier
  s
]

bind MOUSE4 [ universaldelta  1 ]
bind MOUSE5 [ universaldelta -1 ]

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) [ weapon 2 3 1 ] [ weapon 4 1 2 ] ]

alias zfov 120
alias delta_game_1 [
  alias zfov (+ $zfov (* $arg1 (div $zfov -5)))
  if (< $zfov 10)  [ alias zfov 10 ]
  if (> $zfov 120) [ alias zfov 120 ]
  fov $zfov
]

