Cycle script for cl_hudmapzoom

the_x5the_x5 the Xzianthian Join Date: 2004-03-02 Member: 27041Members, Constellation Posts: 3,175
edited March 2007 in Scripting Discussion
QUOTE(changelog for v3.2)
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 )


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...

CODE
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"


Is that right? confused-fix.gif
Post edited by Unknown User on
Coined the qualitative attribute entropy in reference to game maps.
Do not eat the dark energy balls, please.
imageimageimage

Comments

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

    CODE
    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"
Sign In or Register to comment.