Help - Search - Members - Calendar
Full Version: Cycle script for cl_hudmapzoom
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
the_x5
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
Joe2
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"
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.