Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /******************************** VARIABLES ********************************/
  3. var local = Entity.GetLocalPlayer();
  4. var dir = 0, cycle = false, spin = 0, lbystate = 0, defaultpitch;
  5. var screen = Render.GetScreenSize();
  6. var x = screen[0]/2, y = screen[1]/2;
  7.  
  8. /***************************** MISC. FUNCTIONS *****************************/
  9. function insideRegion(point, min, max) {
  10.     return point[0] >= min[0] && point[0] <= max[0] && point[1] >= min[1] && point[1] <= max[1];
  11. }
  12.  
  13. function overflow(num, min, max) {
  14.     var v = num > max ? min + (num - max - 1) : num < min ? max - (min - num -  1) : num
  15.     if (v > max || v < min) v = overflow(v, min, max);
  16.     return v;
  17. }
  18.  
  19. function getVel() {
  20.     var vel = Entity.GetProp(local, "CBasePlayer", "m_vecVelocity[0]");
  21.     return Math.sqrt(Math.pow(vel[0], 2) + Math.pow(vel[1], 2));
  22. }
  23.  
  24. /******************************** MENU CLASS *******************************/
  25. function Menu(x, y, width, height, visible, title) {
  26.     this.setPos(x, y);
  27.     this.width = width;
  28.     this.height = height;
  29.     this.visible = visible;
  30.     this.title = title;
  31.     this.font = undefined;
  32.  
  33.     this.elements = [];
  34.     this.dragStart = undefined;
  35. }
  36.  
  37. Menu.prototype.setPos = function(x, y) {
  38.     this.x = x, this.y = y;
  39. }
  40.  
  41. Menu.prototype.drag = function() {
  42.     var cursor = Input.GetCursorPosition();
  43.  
  44.     if (!this.dragStart) this.dragStart = [cursor[0]-this.x, cursor[1]-this.y];
  45.     this.setPos(cursor[0]-this.dragStart[0], cursor[1]-this.dragStart[1]);
  46. }
  47.  
  48. Menu.prototype.draw = function() {
  49.     if (!this.visible) return;
  50.  
  51.     this.font = Render.AddFont("Courier New", 12, 400);
  52.  
  53.     if (Global.IsKeyPressed(0x1) && (this.dragStart || insideRegion(Input.GetCursorPosition(), [this.x, this.y], [this.x+this.width, this.y+this.height]))) {
  54.         this.drag();
  55.     } else if (!Global.IsKeyPressed(0x1)) {
  56.         this.dragStart = undefined;
  57.     }
  58.  
  59.     var current = 1;
  60.  
  61.     for (var i in this.elements) {
  62.         if (!this.elements[i].visible) continue;
  63.  
  64.         Render.FilledRect(this.x, this.y + current * this.height, this.width, this.height, [0, 0, 0, 150]);
  65.         this.elements[i].draw(this.x, this.y + current * this.height);
  66.         current++;
  67.     }
  68.  
  69.     Render.FilledRect(this.x, this.y, this.width, this.height, [0, 0, 0, 150]);
  70.     Render.Rect(this.x, this.y, this.width, this.height, [255, 255, 255, 255]);
  71.     Render.Rect(this.x, this.y, this.width, current * this.height, [255, 255, 255, 255]);
  72.     Render.StringCustom(this.x+5, this.y+this.height/2-Render.TextSizeCustom("!", this.font)[1]/2, 0, this.title, [255, 255, 255, 255], this.font);
  73. }
  74.  
  75. /******************************* BUTTON CLASS ******************************/
  76. function Button(x, y, width, height, parent, visible, text, func, memory, color, hold) {
  77.     this.x = x;
  78.     this.y = y
  79.     this.width = width;
  80.     this.height = height;
  81.     this.parent = parent;
  82.     this.text = text;
  83.     this.func = func;
  84.     this.memory = memory;
  85.     this.color = color;
  86.     this.hold = hold;
  87.  
  88.     visible && parent.elements.push(this);
  89. }
  90.  
  91. Button.prototype.draw = function(x, y) {
  92.     if (!insideRegion(Input.GetCursorPosition(), [x+this.x, y+this.y], [x+this.x+this.width, y+this.y+this.height])) {
  93.         this.pressed = false;
  94.     } else if (Global.IsKeyPressed(0x1) != this.pressed) {
  95.         this.pressed = !this.pressed;
  96.         this.pressed && this.func(this, this.parent);
  97.     } else if (Global.IsKeyPressed(0x1) && this.hold) {
  98.         this.func(this, this.parent);
  99.     }
  100.  
  101.     Render.FilledRect(x+this.x, y+this.y, this.width, this.height, this.color ? this.color : [0, 0, 0, this.pressed ? 150 : 50]);
  102.     Render.Rect(x+this.x, y+this.y, this.width, this.height, [255, 255, 255, 255]);
  103.     this.text && Render.StringCustom(x+this.x+this.width/2, y+this.y+this.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, 1, this.text, [255, 255, 255, 255], this.parent.font);
  104. }
  105.  
  106. /****************************** CHECKBOX CLASS *****************************/
  107. function Checkbox(x, y, width, height, parent, visible, text, reference, func) {
  108.     this.x = x;
  109.     this.y = y
  110.     this.width = width;
  111.     this.height = height;
  112.     this.parent = parent;
  113.     this.visible = visible;
  114.     this.text = text;
  115.     this.reference = reference;
  116.     this.func = func;
  117.     this.attempt = 0;
  118.  
  119.     UI.AddCheckbox(reference); UI.SetEnabled(reference, false);
  120.     CONFIG && CONFIG[reference] != undefined && UI.SetValue(reference, CONFIG[reference]);
  121.     this.toggled = UI.GetValue(reference);
  122.     func(this, this.parent);
  123.  
  124.     this.button = new Button(x, y, width, height, this, false, undefined, function(o, p) {
  125.         p.attempt++;
  126.         p.toggled = !p.toggled;
  127.         UI.SetValue(p.reference, p.toggled);
  128.         p.func(p, p.parent);
  129.     });
  130.  
  131.     parent.elements.push(this);
  132. }
  133.  
  134. Checkbox.prototype.draw = function(x, y) {
  135.     this.button.draw(x, y);
  136.     Render.FilledRect(x+3+this.x, y+3+this.y, this.width-6, this.height-6, [255, 255, 255, this.toggled ? 255 : 0]);
  137.     this.text && Render.StringCustom(x+this.text[0], y+this.y+this.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, this.text[1], this.text[2], [255, 255, 255, 255], this.parent.font);
  138. }
  139.  
  140. /****************************** SELECTOR CLASS *****************************/
  141. function Selector(x, y, width, height, parent, visible, text, reference, func, memory) {
  142.     this.x = x;
  143.     this.y = y
  144.     this.width = width;
  145.     this.height = height;
  146.     this.parent = parent;
  147.     this.visible = visible;
  148.     this.text = text;
  149.     this.reference = reference;
  150.     this.func = func;
  151.     this.memory = memory;
  152.     this.attempt = 0;
  153.  
  154.     UI.AddDropdown(reference, memory.options); UI.SetEnabled(reference, false);
  155.     CONFIG && CONFIG[reference] != undefined && UI.SetValue(reference, CONFIG[reference]);
  156.     this.memory.selected = UI.GetValue(reference);
  157.     func(this, this.parent);
  158.  
  159.     this.back = new Button(x, y, height, height, this, false, "<", function(o, p) {
  160.         p.attempt++;
  161.         p.memory.selected = overflow(p.memory.selected-1, 0, p.memory.options.length-1);
  162.         UI.SetValue(p.reference, p.memory.selected);
  163.         p.func(p, p.parent);
  164.     });
  165.  
  166.     this.forward = new Button(x+height+width, y, height, height, this, false, ">", function(o, p) {
  167.         p.attempt++;
  168.         p.memory.selected = overflow(p.memory.selected+1, 0, p.memory.options.length-1);
  169.         UI.SetValue(p.reference, p.memory.selected);
  170.         p.func(p, p.parent);
  171.     });
  172.  
  173.     parent.elements.push(this);
  174. }
  175.  
  176. Selector.prototype.draw = function(x, y) {
  177.     this.font = this.parent.font;
  178.     this.back.draw(x+2, y);
  179.     this.forward.draw(x+1, y);
  180.     Render.Rect(x+this.x+this.height+2, y+this.y, this.width, this.height, [255, 255, 255, 255]);
  181.     Render.StringCustom(x+this.x+this.height+2+this.width/2, y+this.y+this.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, 1, this.memory.options[this.memory.selected], [255, 255, 255, 255], this.font);
  182.     this.text && Render.StringCustom(x+this.text[0], y+this.y+this.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, this.text[1], this.text[2], [255, 255, 255, 255], this.parent.font);
  183. }
  184.  
  185. /****************************** DROPDOWN CLASS *****************************/
  186. function Dropdown(width, parent, visible, text, reference, func, memory) {
  187.     this.width = width;
  188.     this.parent = parent;
  189.     this.visible = visible;
  190.     this.text = text;
  191.     this.reference = reference;
  192.     this.func = func;
  193.     this.memory = memory;
  194.     this.attempt = 0;
  195.  
  196.     UI.AddDropdown(reference, memory.options); UI.SetEnabled(reference, false);
  197.     CONFIG && CONFIG[reference] != undefined && UI.SetValue(reference, CONFIG[reference]);
  198.     this.memory.selected = UI.GetValue(reference);
  199.     func(this, this.parent);
  200.  
  201.     this.memory.open = false;
  202.  
  203.     this.button = new Button(parent.width-parent.height, 0, parent.height, parent.height, this, false, ">", function(o, p) {
  204.         p.open = !p.open;
  205.         o.text = p.open ? "-" : ">";
  206.     });
  207.  
  208.     this.memory.buttons = [];
  209.     for (var opt in this.memory.options) {
  210.         this.memory.buttons.push(new Button(parent.width, this.parent.height*opt, this.width, this.parent.height, this, false, this.memory.options[opt], function(o, p) {
  211.             p.attempt++;
  212.             p.memory.selected = p.memory.buttons.indexOf(o);
  213.             UI.SetValue(p.reference, p.memory.selected);
  214.             p.func(p, p.parent);
  215.         }, undefined, this.memory.selected == opt ? [0, 0, 0, 230] : undefined))
  216.     };
  217.  
  218.     parent.elements.push(this);
  219. }
  220.  
  221. Dropdown.prototype.draw = function(x, y) {
  222.     this.font = this.parent.font;
  223.     this.button.draw(x, y);
  224.     Render.Rect(x+this.parent.width-this.width-this.parent.height+1, y, this.width, this.parent.height, [255, 255, 255, 255]);
  225.     Render.StringCustom(x+this.parent.width-this.width/2-this.parent.height+1, y+this.parent.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, 1, this.memory.options[this.memory.selected], [255, 255, 255, 255], this.font);
  226.     this.text && Render.StringCustom(x+this.text[0], y+this.parent.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, this.text[1], this.text[2], [255, 255, 255, 255], this.parent.font);
  227.    
  228.     if (!this.open) return;
  229.  
  230.     for (b in this.memory.buttons) {
  231.         this.memory.buttons[b].color = b == this.memory.selected ? [0, 0, 0, 200] : undefined;
  232.         this.memory.buttons[b].draw(x, y);
  233.     }
  234. }
  235.  
  236. /****************************** SLIDER CLASS *******************************/
  237. function Slider(width, parent, visible, text, reference, func, memory) {
  238.     this.width = width;
  239.     this.parent = parent;
  240.     this.visible = visible;
  241.     this.text = text;
  242.     this.reference = reference;
  243.     this.func = func;
  244.     this.memory = memory;
  245.     this.attempt = 0;
  246.  
  247.     UI.AddSliderInt(reference, memory.min, memory.max); UI.SetEnabled(reference, false);
  248.     CONFIG && CONFIG[reference] != undefined && UI.SetValue(reference, CONFIG[reference]);
  249.     this.memory.val = UI.GetValue(reference);
  250.     func(this, this.parent);
  251.  
  252.     this.bar = new Button(parent.width-this.width+1, 0, this.width-1, parent.height, this, false, undefined, function(o, p) {
  253.         p.attempt++;
  254.         p.memory.val = Math.round(p.memory.min+(Input.GetCursorPosition()[0]-p.parent.x-o.x)/p.width*(Math.abs(p.memory.min)+Math.abs(p.memory.max)));
  255.         UI.SetValue(p.reference, p.memory.val);
  256.         func(p, p.parent);
  257.     }, undefined, [255, 255, 255, 0], true);
  258.  
  259.     parent.elements.push(this);
  260. }
  261.  
  262. Slider.prototype.draw = function(x, y) {
  263.     this.bar.draw(x, y);
  264.     Render.FilledRect(x+this.parent.width-this.width+1, y, ((this.memory.val+(this.memory.min < 0 ? this.memory.max : 0))/(Math.abs(this.memory.min)+Math.abs(this.memory.max)))*this.width, this.parent.height, [255, 255, 255, 25]);
  265.     Render.StringCustom(x+this.parent.width-this.width+this.width/2, y+this.parent.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, 1, this.memory.val+"", [255, 255, 255, 255], this.parent.font);
  266.     this.text && Render.StringCustom(x+this.text[0], y+this.parent.height/2-Render.TextSizeCustom("!", this.parent.font)[1]/2, this.text[1], this.text[2], [255, 255, 255, 255], this.parent.font);
  267. }
  268.  
  269. /******************************** FUNCTIONS ********************************/
  270. function onDraw() {
  271.     if (Entity.IsAlive(local) && options[UI.GetValue("menu type")].showArrows.toggled && options[UI.GetValue("menu type")].style.memory.selected != 2) {
  272.         var colors = [[255, 255, 255, 255], [255, 255, 255, 255], [255, 255, 255, 255]];
  273.         if (options[UI.GetValue("menu type")].style.memory.selected == 0) {
  274.             colors[dir] = [250, 161, 255, 255];
  275.         } else {
  276.             if (UI.IsHotkeyActive("Fake angles", "Inverter")) colors[0] = [250, 161, 255, 255];
  277.             else colors[2] = [250, 161, 255, 255];
  278.         }
  279.        
  280.         Render.String(x-50, y-20, 1, "<", colors[0], 4);
  281.         Render.String(x, y+30, 1, options[UI.GetValue("menu type")].style.memory.selected == 0 ? "v" : "", colors[1], 4);
  282.         Render.String(x+50, y-20, 1, ">", colors[2], 4);
  283.     }
  284.  
  285.     if (UI.IsHotkeyActive("Script Items", "left")) dir = 0;
  286.     else if (UI.IsHotkeyActive("Script Items", "back")) dir = 1;
  287.     else if (UI.IsHotkeyActive("Script Items", "right")) dir = 2;
  288.  
  289.     if (!UI.IsMenuOpen()) return;
  290.     var selected = UI.GetValue("menu type");
  291.  
  292.     options.forEach(function(group, index) {
  293.         for (var o in group) group[o].visible = selected == index && (group[o].memory != undefined ? group[o].memory.visiblecon != undefined ? group[o].memory.visiblecon : true : true);
  294.     })
  295.  
  296.     menu.draw();
  297. }
  298.  
  299. function aaSuper() {
  300.     var type = UI.GetValue("menu type");
  301.  
  302.     if (options[1].adjustPitch.toggled && type == 1) {
  303.         if (getVel() > options[1].adjustcon.memory.val) UI.SetValue("Extra", "Pitch", options[1].adjustedPitch.memory.selected);
  304.         else UI.SetValue("Extra", "Pitch", defaultpitch);
  305.     }
  306.  
  307.     if (Globals.Tickcount()%(type == 0 ? ~~(50/Math.pow(options[0].speed.memory.selected+1, 2)) : options[1].freq.memory.val) != 0) return;
  308.    
  309.     cycle = !cycle;
  310.  
  311.     var width = type == 0 ? ~~(15*(options[0].width.memory.selected+1)) : options[1].width.memory.val;
  312.     var randomize = type == 0 ? (+options[0].randomize.memory.selected*10 || 0) : options[1].randomize.memory.val;
  313.  
  314.     [function() {
  315.         var ang = 0;
  316.         if (dir == 0) ang = cycle ? -90 : width-90;
  317.         else if (dir == 1) ang = cycle ? width/2 : -(width/2);
  318.         else if (dir == 2) ang = cycle ? 90 : 90-width;
  319.  
  320.         UI.SetValue("Yaw offset", overflow(ang + (type == 1 ? options[1].rot.memory.val : 0), -180, 180));
  321.     },
  322.     function() {
  323.         spin += options[1].spin.memory.val;
  324.         if (options[1].spin.memory.val == 0 || type == 0) spin = 0;
  325.  
  326.         if (UI.IsHotkeyActive("Fake angles", "Inverter"))
  327.             UI.SetValue("Yaw offset", cycle ? overflow(180+spin+(type == 1 ? options[1].rot.memory.val : 0), 0, 180)-180 : overflow(180+spin+(type == 1 ? options[1].rot.memory.val : 0), 0, 180));
  328.         else
  329.             UI.SetValue("Yaw offset", cycle ? 180-overflow(180+spin+(type == 1 ? options[1].rot.memory.val : 0), 0, 180) : -overflow(180+spin+(type == 1 ? options[1].rot.memory.val : 0), 0, 180));
  330.     },
  331.     function() {
  332.         UI.SetValue("Yaw offset", (~~(Math.random() * 360)-180));
  333.     }][options[type].style.memory.selected]();
  334.  
  335.     UI.SetValue("Yaw offset", overflow(UI.GetValue("Yaw offset")+~~(Math.random() * randomize)-randomize, -180, 180));
  336.  
  337.     if (type != 1) return;
  338.  
  339.     if (options[1].offsetJitter.toggled && Globals.Tickcount()%options[1].jitternth.memory.val == 0) {
  340.         var ang = ~~(options[1].jitterwidth.memory.val/2); ang = cycle ? ang : -ang;
  341.         ang+=~~overflow((Math.random() * options[1].jitterrandomize.memory.val)-options[1].jitterrandomize.memory.val, -180, 180);
  342.  
  343.         UI.SetValue("Jitter offset", ang);
  344.     }
  345.  
  346.     if (options[1].lbyJitter.toggled && Globals.Tickcount()%options[1].lbynth.memory.val == 0) {
  347.         var exclude = options[1].lbyExclude.memory.selected;
  348.         lbystate = overflow(lbystate+1, 0, 2);
  349.         if (exclude != 0 && lbystate == exclude-1) lbystate = overflow(lbystate+1, 0, 2);
  350.  
  351.         UI.SetValue("LBY mode", lbystate);
  352.     }
  353. }
  354.  
  355. function playerHurt() {
  356.     if (options[UI.GetValue("menu type")].autoInvert.toggled && Entity.GetEntityFromUserID(Event.GetInt("userid")) == local) UI.ToggleHotkey("Fake angles", "Inverter");
  357. }
  358.  
  359. function exportSettings() {
  360.     var final = "{"
  361.  
  362.     options.forEach(function(group, index) {
  363.         for (var o in group) if (group[o].reference) final += "\""+group[o].reference+"\": "+UI.GetValue(group[o].reference)+", ";
  364.     })
  365.  
  366.     Cheat.Print("\n"+final.substring(0, final.length-2)+"}");
  367. }
  368.  
  369. /*********************************** UI ************************************/
  370. UI.AddDropdown("menu type", ["simplified", "advanced"]);
  371. UI.AddHotkey("left");
  372. UI.AddHotkey("back");
  373. UI.AddHotkey("right");
  374.  
  375. var menu = new Menu(200, 200, 400, 26, true, "rory jitter - v3");
  376.  
  377. var options = [{}, {}]
  378.  
  379. options[0].style = new Selector(menu.width-203, 0, 150, 26, menu, true, [3, 0, "jitter style"], "2TN", function(o) {
  380.     if (o.attempt == 0) return;
  381.     options[0].width.memory.visiblecon = options[0].style.memory.selected == 0;
  382. }, {selected: undefined, options: ["constrained", "opposites"]});
  383. options[0].width = new Selector(menu.width-203, 0, 150, 26, menu, true, [3, 0, "jitter width"], "M2w", function() {}, {selected: undefined, options: ["15", "30", "45", "60", "75", "90"], visiblecon: options[0].style.memory.selected == 0});
  384. options[0].speed = new Selector(menu.width-203, 0, 150, 26, menu, true, [3, 0, "jitter speed"], "Yae", function() {}, {selected: undefined, options: ["slow", "average", "fast", "hyper"]});
  385. options[0].randomize = new Selector(menu.width-203, 0, 150, 26, menu, true, [3, 0, "randomize factor"], "P78", function() {}, {selected: undefined, options: ["none", "10", "20", "30", "40", "50"]});
  386. options[0].autoInvert = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "invert when hurt"], "VSj", function() {});
  387. options[0].showArrows = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "show arrows"], "tGb", function() {});
  388.  
  389. options[1].style = new Dropdown(170, menu, true, [3, 0, "jitter style"], "Fp6", function(o) {
  390.     if (o.attempt == 0) return;
  391.     options[1].width.memory.visiblecon = o.memory.selected != 2;
  392.     options[1].randomize.memory.visiblecon = o.memory.selected != 2;
  393.     options[1].spin.memory.visiblecon = o.memory.selected == 1;
  394.     options[1].rot.memory.visiblecon = o.memory.selected != 2;
  395. }, {selected: 0, options: ["constrained", "opposites", "unconstrained"]});
  396. options[1].width = new Slider(196, menu, true, [3, 0, "jitter width"], "5jF", function() {}, {min: 0, max: 90, visiblecon: options[1].style.memory.selected != 2});
  397. options[1].randomize = new Slider(196, menu, true, [3, 0, "randomize factor"], "E3u", function() {}, {min: 0, max: 45, visiblecon: options[1].style.memory.selected != 2});
  398. options[1].spin = new Slider(196, menu, true, [3, 0, "spin speed"], "3xM", function() {}, {min: -30, max: 30, visiblecon: options[1].style.memory.selected == 1});
  399. options[1].rot = new Slider(196, menu, true, [3, 0, "yaw rotation"], "8xh", function() {}, {min: -180, max: 180, visiblecon: options[1].style.memory.selected != 2});
  400. options[1].freq = new Slider(196, menu, true, [3, 0, "cycle frequency"], "kK6", function() {}, {min: 1, max: 100});
  401. options[1].offsetJitter = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "jitter offset"], "XxD", function(o) {
  402.     if (o.attempt == 0) return;
  403.     options[1].jitterwidth.memory.visiblecon = o.toggled;
  404.     options[1].jitterrandomize.memory.visiblecon = o.toggled;
  405.     options[1].jitternth.memory.visiblecon = o.toggled;
  406. });
  407. options[1].jitterwidth = new Slider(196, menu, true, [3, 0, "jitter width"], "VM2", function() {}, {min: 0, max: 180, visiblecon: options[1].offsetJitter.toggled});
  408. options[1].jitterrandomize = new Slider(196, menu, true, [3, 0, "jitter randomize"], "2ya", function() {}, {min: 0, max: 45, visiblecon: options[1].offsetJitter.toggled});
  409. options[1].jitternth = new Slider(196, menu, true, [3, 0, "offset frequency"], "RG4", function() {}, {min: 1, max: 100, visiblecon: options[1].offsetJitter.toggled});
  410. options[1].lbyJitter = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "lby jitter"], "EB3", function(o) {
  411.     if (o.attempt == 0) return;
  412.     options[1].lbyExclude.memory.visiblecon = o.toggled;
  413.     options[1].lbynth.memory.visiblecon = o.toggled;
  414. });
  415. options[1].lbyExclude = new Dropdown(170, menu, true, [3, 0, "lby exclude"], "G8C", function() {}, {selected:0, options: ["none", "normal", "opposite", "sway"], visiblecon: options[1].lbyJitter.toggled});
  416. options[1].lbynth = new Slider(196, menu, true, [3, 0, "lby jitter frequency"], "ke2", function() {}, {min: 1, max: 100, visiblecon: options[1].lbyJitter.toggled});
  417. options[1].adjustPitch = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "adjust pitch"], "xN8", function(o) {
  418.     if (o.attempt == 0) return;
  419.     options[1].adjustcon.memory.visiblecon = o.toggled;
  420.     options[1].adjustedPitch.memory.visiblecon = o.toggled;
  421. });
  422. options[1].adjustcon = new Slider(196, menu, true, [3, 0, "velocity condition"], "au2", function() {}, {min: 5, max: 240, visiblecon: options[1].adjustPitch.toggled});
  423. options[1].adjustedPitch = new Dropdown(170, menu, true, [3, 0, "adjusted pitch"], "9bf", function() {}, {selected: 0, options: ["pitch disabled", "down", "emotion", "zero", "up", "fake up", "fake down"], visiblecon: options[1].adjustPitch.toggled});
  424. options[1].autoInvert = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "invert when hurt"], "z5T", function(o) {});
  425. options[1].showArrows = new Checkbox(0, 0, 26, 26, menu, true, [30, 0, "show arrows"], "8Hx", function(o) {});
  426. options[1].export = new Button(0, 0, menu.width, menu.height, menu, true, "Export Settings", exportSettings);
  427.  
  428. defaultpitch = UI.GetValue("Extra", "Pitch");
  429.  
  430. Cheat.RegisterCallback("Draw", "onDraw");
  431. Cheat.RegisterCallback("CreateMove", "aaSuper");
  432. Cheat.RegisterCallback("player_hurt", "playerHurt");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement