From: Rudolf Polzer Date: Mon, 20 Dec 2010 20:22:55 +0000 (+0100) Subject: add a togglezoom command X-Git-Tag: xonotic-v0.1.0preview~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c181dfa28d48213888b50e7bd1214db7e1ea25e1;p=xonotic%2Fxonotic-data.pk3dir.git add a togglezoom command --- diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index 57a4b7e87..4155fa943 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -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