Guest User

instruct

a guest
Mar 6th, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.26 KB | None | 0 0
  1. /*********************************
  2.  ************Dvar Menu************
  3.  ***********By Label**************
  4.  **********V 1.0******************
  5.  *********************************/
  6.  
  7.  /*
  8.  
  9.  
  10.  Syntax - Follow this to add Dvar functions.
  11.  
  12.  Find on the onNoobSpawned() and Add all the function under
  13.  \* Dvars *\ then to add names to the menu follow this.
  14.  
  15.  funcDvars(curs, dvar, max, inc, inc2)
  16.  
  17.  curs = next number.
  18.  
  19.  dvar = your dvar.
  20.  
  21.  max = Maximum the value can go to.
  22.  
  23.  inc = how much to increase value on each scroll.
  24.  
  25.  in2 = how much the bar will move each scroll.
  26.  
  27.  Add all option name in level.vars["text"] = strTok located in the onNoobConnect()
  28.  Seperate each option by a comma " , " to dignify a new option name. The option names
  29.  also go in order with the funcDvars...
  30.  
  31.  **** You may have to do some simple math to figure out the right values for each of them to
  32.  **** fit the scroller perfect. The scroller length is 200, so figuring out the increments should
  33.  **** not be to hard. Also you do not need to change the shader size as you add more options, the
  34.  **** shader will grow to the size need to fit all options.
  35.  
  36.  Soon Updates
  37.  
  38.  - Will add saving function for each dvar.
  39.  - Will add auto calcuation for increments.
  40.  
  41.  */
Advertisement
Add Comment
Please, Sign In to add comment