Mister_Stefan

N-Yaw LUA (LWv4)

Apr 9th, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.46 KB | None | 0 0
  1. local cpfont = render.create_font("Verdana", 15, 4, true, true, false)
  2. local cpfont2 = render.create_font("Verdana", 12, 2, true, false, false)
  3. local sw, sh = engine.get_screen_width(), engine.get_screen_height()
  4. menu.add_check_box("ENABLE NIGGAYAW")
  5. menu.add_check_box("NIGGAYAW INDICATORS")
  6. menu.add_check_box("NIGGAYAW WATERMARK")
  7. menu.add_color_picker("NIGGAYAW COLOUR MARK")
  8. local ffi = require "ffi"
  9.  
  10. ffi.cdef[[
  11.     typedef int(__fastcall* clantag_t)(const char*, const char*);
  12. ]]
  13. local fn_change_clantag = utils.find_signature("engine.dll", "53 56 57 8B DA 8B F9 FF 15")
  14. local set_clantag = ffi.cast("clantag_t", fn_change_clantag)
  15.  
  16. function round(num, numDecimalPlaces)
  17.     local mult = 10^(numDecimalPlaces or 0)
  18.     return math.floor(num * mult + 0.5) / mult
  19. end
  20.  
  21. local animation = {
  22.     "    n",
  23.     "    ni",
  24.     "    nig",
  25.     "    nigg",
  26.     "    nigga",
  27.     "    niggay",
  28.     "    niggaya",
  29.     "    niggayaw",
  30.     "   niggayaw",
  31.     "  niggayaw",
  32.     " niggayaw",
  33.     "niggayaw",
  34.     "iggayaw",
  35.     "ggayaw",
  36.     "gayaw",
  37.     "ayaw",
  38.     "yaw",
  39.     "aw",
  40.     "w",
  41.     "",
  42.     "",
  43.     "",
  44. }
  45.  
  46. local old_time = 0
  47.  
  48. local anglesforp = {
  49.     2,
  50.     -2,
  51.     4,
  52.     -4,
  53.     6,
  54.     -6,
  55.     8,
  56.     -8,
  57.     10,
  58.     -10,
  59. }
  60.  
  61. client.add_callback("on_paint", function()
  62.     local curtime = math.floor(globals.get_curtime()*2)
  63.     if old_time ~= curtime then
  64.         set_clantag(animation[curtime % #animation+1], animation[curtime % #animation+1])
  65.     end
  66.     old_time = curtime
  67.     if not menu.get_bool("ENABLE NIGGAYAW") then return end
  68.     if globals.get_tickcount() % 20 < 1 then
  69.         menu.set_int("anti_aim.yaw_offset", anglesforp[math.random(#anglesforp)])
  70.         menu.set_int("anti_aim.desync_range", 100)
  71.         menu.set_int("anti_aim.lby_type", 3)
  72.     end
  73.     if globals.get_tickcount() % 20 >= 17 then
  74.         menu.set_int("anti_aim.yaw_offset", 0)
  75.         menu.set_int("anti_aim.lby_type", 1)
  76.     end
  77.     menu.set_int("anti_aim.desync_range", -globals.get_tickcount() % 70)
  78.     menu.set_int("anti_aim.target_yaw", 0)
  79.     if menu.get_bool("NIGGAYAW INDICATORS") then
  80.         ballchunks = 1
  81.         render.draw_text(cpfont, sw/2-render.get_text_width(cpfont, "niggayaw")/2, sh/2+28, color.new(255, 255, 255), "niggayaw")
  82.         render.draw_text(cpfont, sw/2-render.get_text_width(cpfont, "drip amount - 100%")/2, sh/2+42, color.new(255, 255, 255, 255), "drip amount - 100%")
  83.         if menu.get_key_bind_state("rage.double_tap_key") then
  84.             render.draw_text(cpfont, sw/2-render.get_text_width(cpfont, "DT")/2, sh/2+42+(14*ballchunks), color.new(0, 255, 10, 255), "DT")
  85.             ballchunks = ballchunks + 1
  86.         end
  87.         if menu.get_key_bind_state("rage.force_damage_key") then
  88.             render.draw_text(cpfont, sw/2-render.get_text_width(cpfont, "DMG OVERRIDE")/2, sh/2+42+(14*ballchunks), color.new(255, 255, 255, 255), "DMG OVERRIDE")
  89.             ballchunks = ballchunks + 1
  90.         end
  91.     end
  92.     if menu.get_bool("NIGGAYAW WATERMARK") then
  93.         textstringwatersex = string.format("niggayaw | %s | %sms", globals.get_username(), globals.get_ping())
  94.         render.draw_rect_filled(8, 10, render.get_text_width(cpfont2, textstringwatersex)+8, 16, color.new(0, 0, 0, 150))
  95.         render.draw_rect_filled(8, 9, render.get_text_width(cpfont2, textstringwatersex)+8, 2, menu.get_color("NIGGAYAW COLOUR MARK"))
  96.         render.draw_text(cpfont2, 12, 12, color.new(255, 255, 255), textstringwatersex)
  97.     end
  98. end)
Add Comment
Please, Sign In to add comment