]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
add a togglezoom command
authorRudolf Polzer <divverent@alientrap.org>
Mon, 20 Dec 2010 20:22:55 +0000 (21:22 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 20 Dec 2010 20:22:55 +0000 (21:22 +0100)
defaultXonotic.cfg

index 57a4b7e8755fbef5ea7acf24b361d42f9df49a3a..4155fa94320be12356efb127081259b612310edf 100644 (file)
@@ -936,8 +936,6 @@ alias +fire2 +button3
 alias -fire2 -button3
 alias +attack2 +button3 // old alias from Nexuiz
 alias -attack2 -button3 // old alias name from Nexuiz
-alias +zoom +button4
-alias -zoom -button4
 alias +crouch +button5
 alias -crouch -button5
 alias weapnext "_weapnext_${cl_weaponpriority_useforcycling}"
@@ -951,6 +949,12 @@ alias _weapprev_1 "impulse 16"
 alias _weapprev_2 "impulse 12"
 alias weapbest "impulse 13"
 
+// experimental zoom toggle (can be in wrong state at start of a game, though)
+set _togglezoom +
+alias +zoom "set _togglezoom -; +button4"
+alias -zoom "set _togglezoom +; -button4"
+alias togglezoom "${_togglezoom}zoom"
+
 alias reload "impulse 20"
 
 // movement