Advertisement
Mister_Stefan

gswaterOT4

Jul 1st, 2021
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UI.AddSubTab(["Visuals", "SUBTAB_MGR"], "Skeet Watermark");
  2. UI.AddColorPicker(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Color 'tap'");
  3. UI.SetColor(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Color 'tap'"], [255, 255, 255, 255])
  4. UI.AddCheckbox(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Rainbow 'tap'");
  5.  
  6. UI.AddMultiDropdown(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Watermark", [ "Custom Text", "Fps", "Ping", "Kdr", "Time","Map name", "Tickrate", "Velocity", "Duck amount", "Enemies", "Server ip", "Forum username", "Time + seconds" ], -1);
  7.  
  8. UI.AddTextbox(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Custom text");
  9.  
  10. UI.AddCheckbox(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Watermark rainbow header");
  11. UI.AddSliderFloat(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark"], "Watermark Rainbow Speed", 0.01, 1.0);
  12.  
  13. UI.SetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Watermark Rainbow Speed"], 0.10)
  14. UI.SetEnabled(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Watermark Rainbow Speed"], 0);
  15.  
  16. var current_map;
  17.  
  18. function HSVtoRGB(h, s, v)
  19. {
  20.     var r, g, b, i, f, p, q, t;
  21.  
  22.     i = Math.floor(h * 6);
  23.     f = h * 6 - i;
  24.     p = v * (1 - s);
  25.     q = v * (1 - f * s);
  26.     t = v * (1 - (1 - f) * s);
  27.  
  28.     switch (i % 6)
  29.     {
  30.         case 0: r = v, g = t, b = p; break;
  31.         case 1: r = q, g = v, b = p; break;
  32.         case 2: r = p, g = v, b = t; break;
  33.         case 3: r = p, g = q, b = v; break;
  34.         case 4: r = t, g = p, b = v; break;
  35.         case 5: r = v, g = p, b = q; break;
  36.     }
  37.  
  38.     return { r: Math.round(r * 255), g: Math.round(g * 255), b: Math.round(b * 255) };
  39. }
  40.  
  41. var get = {
  42.     state(state) {
  43.         return UI.GetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", state]);
  44.     },
  45.     string(string) {
  46.         return UI.GetString(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", string]);
  47.     }
  48. }
  49.  
  50. function getVelocity(index)
  51. {
  52.     players = Entity.GetPlayers();
  53.     for (i=0; i < players.length; i++);
  54.     {
  55.         var velocity = Entity.GetProp( index, "CBasePlayer", "m_vecVelocity[0]" );
  56.         var speed = Math.sqrt( velocity[0] * velocity[0] + velocity[1] * velocity[1] );
  57.     }
  58.    
  59.     return speed;
  60. }
  61.  
  62. function watermark() {
  63.     var settings = UI.GetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Watermark"]);
  64.  
  65.     const ping = Math.floor(Global.Latency() * 1000 / 1.5);
  66.     var colors = HSVtoRGB(Global.Realtime() * UI.GetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Watermark Rainbow Speed"]), 1, 1);
  67.     current_map = World.GetMapName();
  68.  
  69.     var screensize = Render.GetScreenSize();
  70.     var today = new Date();
  71.     var hours1 = today.getHours();
  72.     var minutes1 = today.getMinutes();
  73.     var seconds1 = today.getSeconds();
  74.     var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours()+ ":";
  75.     var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + "" : today.getMinutes();
  76.     var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds();
  77.  
  78.     var rate = 1 / Globals.Tickrate()
  79.     var tickrate = Math.floor(rate)
  80.  
  81.     const server = World.GetServerString();
  82.     const usernamea = Cheat.GetUsername();
  83.  
  84.     localEnt = Entity.GetLocalPlayer();
  85.  
  86.     const fps = Math.floor( 1 / Global.Frametime() );
  87.  
  88.     var tickrate = Global.Tickrate()
  89.     var ip = World.GetServerString();
  90.  
  91.     var velocity = Math.round(getVelocity(localEnt));
  92.     var velstr = velocity.toString();
  93.  
  94.     color4 = UI.GetColor(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Color 'tap'"])
  95.  
  96.     var get_kills = Entity.GetProp(localEnt, "CPlayerResource", "m_iKills");
  97.     var get_deaths = Entity.GetProp(localEnt, "CPlayerResource", "m_iDeaths");
  98.     var get_kd = get_kills/get_deaths
  99.     if (Entity.GetProp(localEnt, "CPlayerResource", "m_iDeaths") != 0) {
  100.         var unfixed = Entity.GetProp(localEnt, "CPlayerResource", "m_iKills") / Entity.GetProp(localEnt, "CPlayerResource", "m_iDeaths");
  101.         var get_kd = unfixed.toFixed(2)
  102.     }
  103.     else {
  104.         get_kd = get_kills
  105.     }
  106.  
  107.     duckAmount = Entity.GetProp(localEnt, "CBasePlayer", "m_flDuckAmount");
  108.     duckAmountStr =Math.abs(duckAmount.toString()).toFixed(1);
  109.     if (Math.abs(duckAmount.toString()).length > 4) duckAmountStr = Math.abs(duckAmount.toString()).toFixed(1);
  110.  
  111.     enemies = Entity.GetEnemies();
  112.     enemyCount = enemies.length;
  113.     enemyCountStr = enemyCount.toString();
  114.  
  115.     var one = "one"
  116.     var tap = "tap"
  117.  
  118.     var text = (one+"    ");
  119.     var text1 = ("  "+tap);
  120.  
  121.     if (settings & (1 << 0))
  122.     {
  123.          text  += (" | " +get.string("Custom text"));
  124.     }
  125.  
  126.     if (settings & (1 << 11))
  127.     {
  128.          text  += (" | " +usernamea);
  129.     }
  130.  
  131.     if (settings & (1 << 1))
  132.     {
  133.          text  += ( " | "+fps+ " fps");
  134.     }
  135.  
  136.     if (settings & (1 << 2))
  137.     {
  138.          text  += (" | " +ping+"ms ");
  139.     }
  140.  
  141.     if (settings & (1 << 5))
  142.     {
  143.          text  += (" | " +current_map+"");
  144.     }
  145.  
  146.     if (settings & (1 << 6))
  147.     {
  148.          text  += (" | delay: " +tickrate+" ");
  149.     }
  150.  
  151.     if (settings & (1 << 7))
  152.     {
  153.          text  += (" | speed: " +velstr+"");
  154.     }
  155.  
  156.     if (settings & (1 << 10))
  157.     {
  158.          text  += (" | server ip: " +server+"");
  159.     }
  160.  
  161.     if (settings & (1 << 8))
  162.     {
  163.          text  += (" | duck amount: " +duckAmountStr+"");
  164.     }
  165.  
  166.     if (settings & (1 << 9))
  167.     {
  168.          text  += (" | enemies: " +enemyCountStr+"");
  169.     }
  170.  
  171.     if (settings & (1 << 3))
  172.     {
  173.          text  += (" | "+get_kd+ " kdr ");
  174.     }
  175.  
  176.     if (settings & (1 << 4))
  177.     {
  178.          text  += ( "| "+hours + minutes);
  179.     }
  180.  
  181.     if (settings & (1 << 12))
  182.     {
  183.          text  += ( "| "+ hours + minutes + ":" + seconds);
  184.     }
  185.  
  186.     var font = Render.AddFont( "Verdana", 10, 100);
  187.  
  188.     var h = 18;
  189.     var w = Render.TextSize(text, font)[0] + 8;
  190.     var w1 = Render.TextSize(text1, font)[0] + 8;
  191.     var x = Global.GetScreenSize()[0] - 2;
  192.     var y = 12;
  193.     x = x - w - 10;
  194.  
  195.     Render.FilledRect(x - 6, y - 6, w + 13, h + 14, [0, 0, 0, 255]);
  196.     Render.FilledRect(x - 5, y - 5, w + 11, h + 12, [34, 34, 34, 255]);
  197.     Render.FilledRect(x + 1, y, w, h + 1, [0, 0, 0, 255]);
  198.     Render.Rect(x - 1, y - 1, w + 3, h + 3, [56, 56, 56, 255]);
  199.     Render.Rect(x - 5, y - 5, w + 11, h + 12, [56, 56, 56, 255]);
  200.  
  201.     Render.GradientRect(x + 2, y + 2, (w / 2)-1, 1, 1, [ 59, 175, 222, 255], [202, 70, 205, 255]);
  202.     Render.GradientRect(x + 1 + (w / 2), y + 2, (w / 2)-2, 1, 1, [202, 70, 205, 255], [201, 227, 58, 255]);
  203.     Render.GradientRect(x + 2, y + 3, (w / 2)-1, 1, 1, [ 59, 175, 222, 130], [202, 70, 205, 130]);
  204.     Render.GradientRect(x + 1 + (w / 2), y + 3, (w / 2)-2, 1, 1, [202, 70, 205, 130], [201, 227, 58, 130]);
  205.  
  206.     Render.String( x + 4, y + 5, 0, text, [0,0,0,180], font);
  207.     Render.String( x + 4, y + 4, 0, text, [255,255,255,255], font);
  208.  
  209.     Render.String( x + 16, y + 5, 0, text1, [0,0,0,180], font);
  210.  
  211.     if (UI.GetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Rainbow 'tap'"]) == 1)
  212.     {
  213.         Render.String( x + 14, y + 4, 0, text1, [colors.r, colors.g, colors.b, 255], font);
  214.     } else  {
  215.         Render.String( x + 14, y + 4, 0, text1, [color4[0], color4[1], color4[2], 255], font);
  216.     }
  217.  
  218.     if (UI.GetValue(["Visuals", "SUBTAB_MGR", "Skeet Watermark", "SHEET_MGR", "Skeet Watermark", "Watermark rainbow header"]) == 1)
  219.     {
  220.         Render.GradientRect(x + 2, y + 2, (w / 2)-1, 1, 1, [colors.g, colors.b, colors.r, 255], [colors.r, colors.g, colors.b, 255]);
  221.         Render.GradientRect(x + 1 + (w / 2), y + 2, (w / 2)-2, 1, 1, [colors.r, colors.g, colors.b, 255], [colors.b, colors.r, colors.g, 255]);
  222.         Render.GradientRect(x + 2, y + 3, (w / 2)-1, 1, 1, [colors.g, colors.b, colors.r, 130], [colors.r, colors.g, colors.b, 130]);
  223.         Render.GradientRect(x + 1 + (w / 2), y + 3, (w / 2)-2, 1, 1, [colors.r, colors.g, colors.b, 130], [colors.b, colors.r, colors.g, 130]);
  224.     }
  225.  
  226.  
  227. }
  228. Cheat.RegisterCallback( "Draw", "watermark")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement