SHARE
TWEET

Untitled

a guest Feb 18th, 2020 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var screen_size = Global.GetScreenSize();
  2. var isLeftActive = UI.IsHotkeyActive( "Misc", "JAVASCRIPT", "Script items", "Left Hotkey" );
  3. var isRightActive = UI.IsHotkeyActive( "Misc", "JAVASCRIPT", "Script items", "Right Hotkey" ); ///// rozjebane
  4. var isBackActive = UI.IsHotkeyActive( "Misc", "JAVASCRIPT", "Script items", "Back Hotkey" );
  5. var isInverted;
  6. var drawLeft = 0;
  7. var drawRight = 0;
  8. var drawBack = 1;
  9. var swayOpposite = 1;
  10. //DT vars
  11. var indicator = true;
  12. var iExploitID = 0;
  13. var bDoubleTapped = false;
  14. var bShouldRecharge = false;
  15. var ForceCharge = false;
  16. var iLastShotTime = 0;
  17. runTime = Global.Curtime();
  18. var secondsElapsed = 0;
  19. waiting = indicator ? 0 : 1;
  20. //ui
  21. UI.AddColorPicker("Dsync Color");
  22. UI.AddColorPicker("Double tap Onkey Color");
  23. UI.AddColorPicker("Minimum damage Onkey Color");
  24. UI.AddColorPicker("Hide shots Onkey Color");
  25. UI.AddColorPicker("Anim Color");
  26. UI.AddColorPicker("Hitbox override Onkey Color");
  27. UI.AddColorPicker("Selected arrow color");
  28. UI.AddHotkey( "Left Hotkey" );
  29. UI.AddHotkey( "Back Hotkey" );
  30. UI.AddHotkey( "Right Hotkey" );
  31. UI.AddCheckbox("DT");
  32. UI.AddDropdown("DT Mode", ["DT", "Passive"]);
  33. UI.SetValue( "Rage", "GENERAL", "Exploits", "Doubletap", 1 );
  34.  
  35. //strzaly
  36. LPx = [(screen_size[0] /2) - 50, (screen_size[1] /2) + 10];
  37. LPy = [(screen_size[0] /2) - 50, (screen_size[1] /2) - 10];
  38. LPz = [(screen_size[0] /2) - 70, (screen_size[1] /2)];
  39. RPx = [(screen_size[0] /2) + 50, (screen_size[1] /2) + 10];
  40. RPy = [(screen_size[0] /2) + 50, (screen_size[1] /2) - 10];
  41. RPz = [(screen_size[0] /2) + 70, (screen_size[1] /2)];
  42. LPxx = [(screen_size[0] /2) - 49, (screen_size[1] /2) + 12];
  43. LPyy = [(screen_size[0] /2) - 49, (screen_size[1] /2) - 12];
  44. LPzz = [(screen_size[0] /2) - 73, (screen_size[1] /2)];
  45. RPxx = [(screen_size[0] /2) + 49, (screen_size[1] /2) + 12];
  46. RPyy = [(screen_size[0] /2) + 49, (screen_size[1] /2) - 12];
  47. RPzz = [(screen_size[0] /2) + 73, (screen_size[1] /2)];
  48. BPx = [(screen_size[0] /2) + 10, (screen_size[1] /2) + 50];
  49. BPy = [(screen_size[0] /2) - 10, (screen_size[1] /2) + 50];
  50. BPz = [(screen_size[0] /2), (screen_size[1] /2) + 70];
  51. BPxx = [(screen_size[0] /2) + 12, (screen_size[1] /2) + 49];
  52. BPyy = [(screen_size[0] /2) - 12, (screen_size[1] /2) + 49];
  53. BPzz = [(screen_size[0] /2), (screen_size[1] /2) + 73];
  54.    
  55. function drawString()
  56. {
  57.     textcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Dsync Color");
  58.     dtcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Double tap Onkey Color");
  59.     dmgcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Minimum damage Onkey Color");
  60.     hidecp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hide shots Onkey Color");
  61.     animcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Anim Color");
  62.     hitcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hitbox override Onkey Color");
  63.     selectedcp = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Selected arrow color");
  64.     selected_red = selectedcp[0];
  65.     selected_green = selectedcp[1];
  66.     selected_blue = selectedcp[2];
  67.     selected_alpha = selectedcp[3];
  68.     text_red = textcp[0];
  69.     text_green = textcp[1];
  70.     text_blue = textcp[2];
  71.     text_alpha = textcp[3];
  72.     hide_red = hidecp[0];
  73.     hide_green = hidecp[1];
  74.     hide_blue = hidecp[2];
  75.     hide_alpha = hidecp[3];
  76.     hit_red = hitcp[0];
  77.     hit_green = hitcp[1];
  78.     hit_blue = hitcp[2];
  79.     hit_alpha = hitcp[3];
  80.     dt_red = dtcp[0];
  81.     dt_green = dtcp[1];
  82.     dt_blue = dtcp[2];
  83.     dt_alpha = dtcp[3];
  84.     dmg_red = dmgcp[0];
  85.     dmg_green = dmgcp[1];
  86.     dmg_blue = dmgcp[2];
  87.     dmg_alpha = dmgcp[3];
  88.     anim_red = animcp[0];
  89.     anim_green = animcp[1];
  90.     anim_blue = animcp[2];
  91.     anim_alpha = animcp[3];
  92.     const alpha = Math.sin(Math.abs(-Math.PI + (Globals.Curtime() * (1 / .75)) % (Math.PI * 2))) * 255;
  93.     const alphaa = Math.sin(Math.abs(-Math.PI + (Globals.Curtime() * (1 / 2)) % (Math.PI * 2))) * 255;
  94.     isHideshots = UI.IsHotkeyActive("Rage", "Exploits", "Hide shots");
  95.     isFakeduck = UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck");
  96.     isDoubletap = UI.IsHotkeyActive("Rage", "Exploits", "Doubletap");
  97.     isInverted = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter" );
  98.     isDmgActive = UI.IsHotkeyActive("Rage", "GENERAL", "Accuracy", "Minimum damage (on key)");
  99.     isHitboxOverride = UI.IsHotkeyActive("Rage", "General config", "Hitbox override");
  100.     swayOpposite = UI.GetValue("Anti-Aim", "Fake angles", "LBY mode");
  101.     var difference = Math.abs( Local.GetRealYaw( ) - Local.GetFakeYaw( ) );
  102.     localplayer_index = Entity.GetLocalPlayer( );
  103.     localplayer_alive = Entity.IsAlive( localplayer_index );
  104.    
  105.     if (localplayer_alive == true){
  106.     //Shadows
  107.     Render.Polygon([LPxx, LPzz, LPyy], [0, 0, 0, 60] );
  108.     Render.Polygon([RPyy, RPzz, RPxx], [0, 0, 0, 60] );
  109.     Render.Polygon([BPyy, BPxx, BPzz], [0, 0, 0, 60] );
  110.     //Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +101, 1, "FAKE", [ 0, 0, 0, 255 ], 3 );
  111.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +111, 1, isInverted ? "LEFT" : "RIGHT", [ 0, 0, 0, 255 ], 3 );
  112.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +121, 1, isDoubletap ? "DT" : "DT", isDoubletap ? [ 0, 0, 0, 255 ] : [ 0, 0, 0, 255 ], 3 );
  113.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +131, 1, isDmgActive ? "DMG" : "WALL", isDmgActive ? [ 0, 0, 0, 255 ] : [ 0, 0, 0, 255 ], 3 );
  114.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +141, 1, isHideshots ? "HIDE" : "ANIM", isHideshots ? [ 0, 0, 0, 255 ] : [ 0, 0, 0, 255 ], 3 );
  115.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +151, 1, isHitboxOverride ? "HITBOX" : "", isHitboxOverride ? [ 0, 0, 0, 255 ] : [ 0, 0, 0, 255 ],3 );
  116.     Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +161, 1, isFakeduck ? "DUCK" : "", isFakeduck ? [ 0, 0, 0, 255 ] : [ 0, 0, 0, 0 ], 3 );
  117.    
  118.         if (swayOpposite == 0)
  119.             Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +101, 1, "NORM", [ 0, 0, 0, 255 ],3 );
  120.         else if (swayOpposite == 1)
  121.             Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +101, 1, "OPPOSITE", [ 0, 0, 0, 255 ],3 );
  122.         else if (swayOpposite == 2)
  123.             Render.String(screen_size[0] /2 + 1, screen_size[1] /2 +101, 1, "SWAY", [ 0, 0, 0, 255 ],3 );
  124.        
  125.     //indi
  126.     //Render.String(screen_size[0] /2, screen_size[1] /2 +100, 1, "FAKE", [ difference * 255 / 58, 255 - ( difference * 255 / 58 ), 0 , 255], 3 );
  127.     Render.String(screen_size[0] /2, screen_size[1] /2 +110, 1, isInverted ? "LEFT" : "RIGHT", [ 255, 255, 255, 255 ], 3 );
  128.     Render.String(screen_size[0] /2, screen_size[1] /2 +120, 1, isDoubletap ? "DT" : "DT", isDoubletap ? [ dt_red, dt_green, dt_blue, dt_alpha ] : [ 255, 0, 0, 255 ], 3 );
  129.     Render.String(screen_size[0] /2, screen_size[1] /2 +130, 1, isDmgActive ? "DMG" : "WALL", isDmgActive ? [ dmg_red, dmg_green, dmg_blue, dmg_alpha ] : [ dmg_red, dmg_green, dmg_blue, dmg_alpha ], 3 );
  130.     Render.String(screen_size[0] /2, screen_size[1] /2 +140, 1, isHideshots ? "HIDE" : "ANIM", isHideshots ? [ hide_red, hide_green, hide_blue, hide_alpha ] : [ 255, 153, 0, alpha ], 3 );
  131.     Render.String(screen_size[0] /2, screen_size[1] /2 +150, 1, isHitboxOverride ? "HITBOX" : "", isHitboxOverride ? [ hit_red, hit_green, hit_blue, hit_alpha ] : [ 0, 0, 0, 0 ],3 );
  132.     Render.String(screen_size[0] /2, screen_size[1] /2 +160, 1, isFakeduck ? "DUCK" : "", isFakeduck ? [ 255, 255, 255, 255 ] : [ 0, 0, 0, 0 ], 3 );
  133.        
  134.         if (swayOpposite == 0)
  135.             Render.String(screen_size[0] /2, screen_size[1] /2 +100, 1, "NORM", [ text_red, text_green, text_blue, text_alpha ],3 );
  136.         else if (swayOpposite == 1)
  137.             Render.String(screen_size[0] /2, screen_size[1] /2 +100, 1, "OPPOSITE", [ text_red, text_green, text_blue, text_alpha ],3 );
  138.         else if (swayOpposite == 2)
  139.             Render.String(screen_size[0] /2, screen_size[1] /2 +100, 1, "SWAY", [ text_red, text_green, text_blue, text_alpha ],3 );
  140.    
  141.     if(drawLeft)
  142.     {
  143.         Render.Polygon([LPx, LPz, LPy], [selected_red,selected_blue,selected_green,alpha] );
  144.     }
  145.     else if(drawRight)
  146.     {    
  147.         Render.Polygon([RPy, RPz, RPx], [selected_red,selected_blue,selected_green,alpha] );
  148.     }
  149.     else if(drawBack)
  150.     {
  151.         Render.Polygon([BPy, BPx, BPz], [selected_red,selected_blue,selected_green,alpha] );
  152.     }
  153. }}
  154.  
  155. function onCreateMove()
  156. {
  157.     isLeftActive = UI.IsHotkeyActive( "Misc", "JAVASCRIPT", "Script items", "Left Hotkey" );
  158.     isRightActive = UI.IsHotkeyActive( "Misc", "JAVASCRIPT", "Script items", "Right Hotkey" );
  159.     isBackActive = UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Back Hotkey" );
  160.  
  161.     if(isLeftActive)
  162.     {
  163.         drawLeft = 1;
  164.         drawBack = 0;
  165.         drawRight = 0;
  166.         UI.SetValue( "Anti-Aim", "Rage Anti-Aim", "Yaw offset", -90 );
  167.         UI.SetValue( "Anti-Aim", "Fake Angles", "Hide real angle", false);
  168.     }
  169.     else if(isRightActive)
  170.     {
  171.         drawLeft = 0;
  172.         drawBack = 0;
  173.         drawRight = 1;
  174.         UI.SetValue( "Anti-Aim", "Rage Anti-Aim", "Yaw offset", 90 );
  175.         UI.SetValue( "Anti-Aim", "Fake Angles", "Hide real angle", false);
  176.      
  177.     }
  178.         else if(isBackActive)
  179.     {
  180.         drawLeft = 0;
  181.         drawBack = 1;
  182.         drawRight = 0;
  183.         UI.SetValue( "Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0 );
  184.         UI.SetValue( "Anti-Aim", "Fake Angles", "Hide real angle", false);
  185.      
  186.     }
  187. }
  188.  
  189. function on_ragebot_fire()
  190. {
  191.     ragebot_target_exploit = Event.GetInt("exploit");
  192.     if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "DT"))
  193.     {
  194.         if (ragebot_target_exploit == 2)
  195.         {
  196.             UI.SetValue("Rage", "GENERAL", "Exploits", "Doubletap fast recovery", true);
  197.             indicator = false;
  198.         }
  199.         else
  200.         {
  201.             UI.SetValue("Rage", "GENERAL", "Exploits", "Doubletap fast recovery", false);
  202.             indicator = true;
  203.         }
  204.     }
  205. }
  206.  
  207. function event_rbot_fire( ) {
  208.     iExploitID = Event.GetInt( "exploit" );
  209.     if ( !UI.GetValue( "Misc", "JAVASCRIPT", "Script Items", "DT" ) )
  210.         return;
  211.  
  212.     if ( iExploitID == 2 ) {
  213.         iLastShotTime = Global.Tickcount( );
  214.         bDoubleTapped = true;
  215.         UI.ToggleHotkey( "Rage", "GENERAL", "Exploits", "Doubletap");
  216.         bShouldRecharge = true;
  217.         indicator = false;
  218.     }
  219.  
  220.     ForceCharge = bShouldRecharge ? true : false;
  221.  
  222.     if ( ForceCharge && Global.Tickcount( ) >= ( Global.TickInterval( ) * 10 + iLastShotTime ) ) {
  223.         UI.ToggleHotkey( "Rage", "GENERAL", "Exploits", "Doubletap");
  224.         indicator = true;
  225.     }
  226. }
  227.  
  228.  
  229. function check() {
  230.     if (waiting == 1) {
  231.         if (Global.Curtime() - runTime > .2) {
  232.             secondsElapsed += 1;
  233.             runTime = Global.Curtime();
  234.         }
  235.     }
  236. }
  237.  
  238. function modecheck()
  239. {
  240.   if(UI.GetValue("Misc", "JAVASCRIPT", "Script items", "DT Mode") == 0) { on_ragebot_fire(); }
  241.   if(UI.GetValue("Misc", "JAVASCRIPT", "Script items", "DT Mode") == 1) { event_rbot_fire(); }
  242. }
  243.  
  244. function Main()
  245. {
  246.     //  callbacks
  247.     Global.RegisterCallback("Draw", "drawString")
  248.     Global.RegisterCallback("CreateMove", "onCreateMove")
  249.     Global.RegisterCallback("ragebot_fire", "modecheck")
  250.     Global.RegisterCallback("Draw", "check")
  251. }
  252. Main();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top