View difference between Paste ID: Fq2YZxQW and 3QfGqB25
SHOW: | | - or go back to the newest paste.
1
bind mouse2 [ 
2
  secondary
3-
  curweapon = ( getweap ( weapselect ) )
3+
  if ( = ( weapselect ) 7 ) [ doit = 1 ]
4-
  if ( ( = $zoomlevel 0 ) && ( = ( concatword "$" $curweapon "zooms" ) 1 ) ) [ showhud 0 ]
4+
  onrelease [ doit = 0; sleep 50 [ showhud 1 ] ]
5-
  onrelease [ showhud 1 ]
5+
]
6-
]
6+
hidezoom = [
7
  if ( = $doit 1 ) [ 
8
    if ( = $zoomlevel 0 ) [ showhud 0 ] [ showhud 1 ]
9
  ] [ ]
10
  sleep 50 [ hidezoom ]
11
]
12
hidezoom