From c181dfa28d48213888b50e7bd1214db7e1ea25e1 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 20 Dec 2010 21:22:55 +0100 Subject: [PATCH] add a togglezoom command --- defaultXonotic.cfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2