Cycle script for cl_hudmapzoom

the_x5the_x5 the Xzianthian Join Date: 2004-03-02 Member: 27041Members, Constellation
edited March 2007 in Scripting Discussion
<!--QuoteBegin-changelog for v3.2+--><div class='quotetop'>QUOTE(changelog for v3.2)</div><div class='quotemain'><!--QuoteEBegin-->o Added cl_hudmapzoom
- cvar that controls the zoom level of the in-hud minimap.
- Value 0: No minimap is shown
- Value 1: Default view
- Value 2: Zoom in X2
- Value 3: Zoom in X3 ( current 3.1 view )<!--QuoteEnd--></div><!--QuoteEEnd-->

Well in Day of Defeat there is the ability to hit the 'n' key to toggle the zoom level of the minimap. Thinking of something similar for NS I forget how to cycle it, I know it uses aliases...

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->alias graph "mapzoom"
alias mapzoom1 "cl_hudmapzoom 0; alias mapzoom mapzoom2"
alias mapzoom2 "cl_hudmapzoom 1; alias mapzoom mapzoom3"
alias mapzoom3 "cl_hudmapzoom 2; alias mapzoom mapzoom4"
alias mapzoom4 "cl_hudmapzoom 3; alias mapzoom mapzoom1"
bind "x" "mapzoom"<!--c2--></div><!--ec2-->

Is that right? <img src="style_emoticons/<#EMO_DIR#>/confused-fix.gif" style="vertical-align:middle" emoid="???" border="0" alt="confused-fix.gif" />

Comments

  • Joe2Joe2 Join Date: 2004-09-03 Member: 31268Members
    edited March 2007
    Try this:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->alias mapzoom1 "cl_hudmapzoom 0; alias mapzoom mapzoom2"
    alias mapzoom2 "cl_hudmapzoom 1; alias mapzoom mapzoom3"
    alias mapzoom3 "cl_hudmapzoom 2; alias mapzoom mapzoom4"
    alias mapzoom4 "cl_hudmapzoom 3; alias mapzoom mapzoom1"
    mapzoom2

    bind "x" "mapzoom"<!--c2--></div><!--ec2-->
Sign In or Register to comment.