Sample : autoexec_talou.cfg
// this file gets executed if you start the game
//I need to know which profile is loaded
echo "talou's profile"
//define a default nickname
name "ZinK|talou"
//direction and strafe movings
//I use a french keyboard layout
//so rather use WASD keys for US keylayouts
bind Z forward
bind Q left
bind S backward
bind D right
//important trick : the snipe zoom
alias "zoom" [
if (= $arg1 1) [
if (= $sensitivity $scopesens) [] [
alias oldsens $sensitivity
sensitivity $scopesens
setscope 1
]
] [
sensitivity $oldsens
setscope 0
]
]
//I prefer to zoom with A key,
//that is near the direction keys for me
//(it's Q key for US layout)
bind "A" [ zoom 1; onrelease [ zoom 0 ] ]
//already a default keybinding to choose a weapon
bind "B" [showmenu weapons]
//some chat shortcuts to quickly send messages
bind "C" [say hi campers:)]
bind "G" [say great game ! Visit http://zink.timot.net/]
bind "J" [say sry mate]
bind "K" [say :)]
bind "L" [say lol]
bind "M" [say need backup]
bind "N" [say nope mate]
bind "Y" [say yeah]
//universal small zoom
bind "W" [fov 90; sensitivity 40; hudgun 0; onrelease [fov 120; sensitivity 70; hudgun 1]]
//recovering my nickname
bind "F1" [name ZinK|talou]
//switching from team
bind "F2" [name {CLA}talou;team CLA]
bind "F3" [name {RVSF}talou;team RVSF]
//mastershortcuts
bind "F4" [saycommand /setmaster 1 secretword]
bind "F5" [showmenu master]
bind "F6" [connect 91.121.40.139]
//demo recording
bind "F7" [saycommand /record demo]
bind "F8" [stop]
//quick exit the game
bind "F9" [quit]
//quick refresh
bind "F10" [updatefrommaster]
//usefull access to a longer console
bind "F11" [toggleconsole ; onrelease [ toggleconsole ]]
//already default binding : take a photo
bind "F12" [screenshot]
//quick send a nade
alias "quicknadethrow" [
alias prevweapon (curweapon)
if (> (magcontent 6) 0) [
grenades
attack
] []
onrelease [ sleep 1 [ weapon $prevweapon ] ]
]
bind "LCTRL" [quicknadethrow]
//mouse bindings (most of them are default ones)
//usefull when mousescroll has been reset
bind "MOUSE1" [attack]
//I prefer to jump with right click than with spacebar
bind "MOUSE2" [ jump ]
//call the sword
bind "MOUSE3" [weapon]
//scroll change context depending on the mode (edit or game)
bind "MOUSE4" [ universaldelta 1 ]
bind "MOUSE5" [ universaldelta -1 ]
alias "universaldelta" [
if $editing [ alias s "edit" ] [ alias s "game" ]
concatword delta _ $s _ $modifier
s
]
alias "delta_edit_1" [ if $flrceil [ vdelta $arg1 ] [ vdelta (- 0 $arg1) ] ]
alias "delta_edit_0" [ editheight $flrceil $arg1 ]
alias "delta_edit_3" [ edittex (+ $flrceil 1) $arg1 ]
alias "delta_edit_2" [ edittex $flrceil $arg1 ]
alias "delta_edit_5" [ entproperty 0 $arg1 ]
alias "delta_edit_4" [ equalize $flrceil ]
alias "delta_game_0" [ if (= $arg1 1) [ shiftweapon 1 ] [ shiftweapon -1 ] ]
//default mouse sensitivity
sensitivity 70
gamma 150
//no music, please !
musicvol 0
//perso gib settings
gibspeed 5
gibnum 50
gibttl 5000
//default weapon : the snipe
item 4
//default team
team CLA
//default skin
skin 1
//switch profile
bind "P" [exec config/autoexec_romi.cfg]