Advertisement
Dr_Coomer

Aimware.net CS2 v5.1 Skibidi Sigma Rizz ESP

May 2nd, 2024
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.73 KB | Source Code | 0 0
  1. local svgData = http.Get("https://upload.wikimedia.org/wikipedia/commons/e/e7/Greek_uc_sigma.svg");
  2.  
  3. local imgRGBA, imgWidth, imgHeight = common.RasterizeSVG(svgData);
  4.  
  5. local texture = draw.CreateTexture(imgRGBA, imgWidth, imgHeight);
  6.  
  7. local function DistanceFrom(vec1, vec2)
  8.     return math.sqrt((vec2.x - vec1.x) ^ 2 + (vec2.y - vec1.y) ^ 2)
  9. end
  10.  
  11. callbacks.Register("Draw", function()
  12.     local plocal = entities.GetLocalPlayer()
  13.     if not plocal then return end
  14.  
  15.     draw.SetTexture(texture);
  16.  
  17.     local players = entities.FindByClass("C_CSPlayerPawn")
  18.  
  19.     for i = 1, #players do
  20.         local player = players[i]
  21.         if player:GetName() == "C_CSGO_PreviewPlayer" then goto continue end
  22.         if player:GetIndex() == plocal:GetIndex() then goto continue end
  23.         if not player:IsAlive() then goto continue end
  24.         if player:GetTeamNumber() == plocal:GetTeamNumber() then goto continue end
  25.  
  26.         local playerAbs1 = player:GetAbsOrigin()
  27.         local playerAbs2 = player:GetAbsOrigin()
  28.  
  29.         local distance = DistanceFrom(plocal:GetAbsOrigin(), playerAbs2)
  30.  
  31.         playerAbs1.z = playerAbs1.z + 70
  32.  
  33.         local x1, y1 = client.WorldToScreen(playerAbs1)
  34.         local x2, y2 = client.WorldToScreen(playerAbs2)
  35.  
  36.         if x1 ~= nil and y1 ~= nil then
  37.             --draw.Color(255, 255, 255, 255)
  38.             --draw.FilledCircle(x1 - (15000/distance), y1, 5)
  39.             --draw.FilledCircle(x2 + (15000/distance), y2, 5)
  40.             --Got the math from here: https://www.unknowncheats.me/forum/c-and-c-/76713-esp-box-size-calculation.html
  41.             draw.FilledRect(x1 - (15000/distance), y1 - (900/distance), x2 + (15000/distance), y2 + (900/distance))
  42.         end
  43.  
  44.         ::continue::
  45.     end
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement