Guest User

Untitled

a guest
Dec 11th, 2019
370
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local a=false; --lynx related
  2. local b={}
  3.  
  4. local aimware_ref={
  5. aimware=gui.Reference("MENU"),
  6. miscGeneral=gui.Reference("SETTINGS","Miscellaneous")
  7. }
  8.  
  9. local location_x,location_y=200,245;
  10. local title_text="Aimbot History"
  11. local lynx_verify='lynx_'..title_text:lower():gsub(" ","_")..'_'
  12. local h;
  13. local i;
  14. local j={}
  15. local k={}
  16. local l={}
  17. local hitboxes={
  18. "Head",
  19. "Chest",
  20. "Stomach",
  21. "Hand",
  22. "Arm",
  23. "Leg",
  24. "Leg",
  25. "Neck"
  26. }
  27.  
  28. hitboxes[0]="-"
  29.  
  30. local list_id=0;
  31. local font=draw.CreateFont("smallest pixel-7",11,100)
  32. local all_list_logs={}
  33. local table_list_sizes={
  34. table_size=7,
  35. size_x=300,
  36. size_y=40}
  37. local mouse_x,mouse_y,dragging_list,u,v;
  38.  
  39. local function make_checkbox(x,y,gui_groupbox,...)
  40.  
  41. b[#b+1]={lynx_verify..x,_G['gui'][y](gui_groupbox,lynx_verify..x,...)}
  42. end;
  43.  
  44. local function get_value_intable(x)
  45.  
  46. for B=1,#b do
  47.  
  48. local C=b[B]
  49.  
  50. if C[1]==lynx_verify..x then
  51.  
  52. return C[2]:GetValue()
  53. end
  54.  
  55. end
  56.  
  57. end;
  58.  
  59. local function set_value_intable(x,E)
  60.  
  61. for B=1,#b do
  62.  
  63. local C=b[B]
  64.  
  65. if C[1]==lynx_verify..x then
  66.  
  67. return C[2]:SetValue(E)
  68. end
  69.  
  70. end
  71.  
  72. end;
  73.  
  74. local function clear_logs()
  75.  
  76. list_id=0;
  77. all_list_logs={}
  78. end;
  79.  
  80. local val_of_330=330;
  81. local show_controller=gui.Checkbox(aimware_ref.miscGeneral,"aimbot_history","[bruh] "..title_text,false)
  82. local gui_window_controller=gui.Window(lynx_verify.."tabs","[bruh] "..title_text,200,200,location_x,location_y)
  83. local gui_groupbox=gui.Groupbox(gui_window_controller,"Settings",13,13,location_x-25,location_y-105)
  84.  
  85. make_checkbox("enable","Checkbox",gui_groupbox,"Show Aimbot History",true)
  86. make_checkbox("gradient","Checkbox",gui_groupbox,"Show Topbar Gradient",true)
  87. make_checkbox("drag","Checkbox",gui_groupbox,"Draggable",true)
  88.  
  89. gui.Button(gui_groupbox,"Clear History",function()
  90.  
  91. clear_logs()
  92. end)
  93.  
  94. local function tablesize_MAYBE(local_player_angle_z,local_player_angle_y,M,N)
  95.  
  96. return mouse_x>=local_player_angle_z and mouse_x<=M and mouse_y>=local_player_angle_y and mouse_y<=N
  97. end;
  98.  
  99. local function drag_through()
  100.  
  101. if input.IsButtonDown(1) then
  102.  
  103. mouse_x,mouse_y=input.GetMousePos()
  104.  
  105. if dragging_list then
  106.  
  107. table_list_sizes.size_x=mouse_x-u;table_list_sizes.size_y=mouse_y-v
  108. end;
  109.  
  110. if tablesize_MAYBE(table_list_sizes.size_x,table_list_sizes.size_y,table_list_sizes.size_x+val_of_330,table_list_sizes.size_y+20) then
  111.  
  112. dragging_list=true;
  113. u=mouse_x-table_list_sizes.size_x;v=mouse_y-table_list_sizes.size_y
  114. end
  115.  
  116. else
  117.  
  118. dragging_list=false
  119. end
  120.  
  121. end;
  122.  
  123. local function P(Q,local_player_angle_z,local_player_angle_y,text)
  124.  
  125. if text then
  126.  
  127. local local_player_angle_y=local_player_angle_y+4;
  128. local local_angle_plus10=local_player_angle_z+10;
  129. local T=local_player_angle_y+15+Q*16;
  130. local rainbow_r,rainbow_b,rainbow_g=0,0,0;
  131.  
  132. if text.hit==1 then
  133.  
  134. rainbow_r,rainbow_b,rainbow_g=94,230,75
  135. elseif text.hit==0 then
  136.  
  137. rainbow_r,rainbow_b,rainbow_g=245,127,23
  138. else
  139.  
  140. rainbow_r,rainbow_b,rainbow_g=118,171,255
  141. end;
  142.  
  143. draw.Color(rainbow_r,rainbow_b,rainbow_g,255)
  144. draw.FilledRect(local_player_angle_z,T,local_player_angle_z+2,local_player_angle_y+15)
  145. draw.SetFont(font)
  146. draw.Color(255,255,255,255)
  147. draw.Text(local_angle_plus10-3,T+1,text.id)
  148. draw.Text(local_angle_plus10+33,T+1,text.player)
  149. draw.Color(0,255,0,255)
  150. draw.Text(local_angle_plus10+116,T+1,text.dmg)
  151. draw.Color(255,255,255,255)
  152. draw.Text(local_angle_plus10+153,T+1,text.box)
  153. draw.Text(local_angle_plus10+209,T+1,text.bt)
  154. draw.Color(209,228,34,255)
  155. draw.Text(local_angle_plus10+271,T+1,text.rs)
  156.  
  157. return Q+1
  158. end
  159.  
  160. end;
  161.  
  162. callbacks.Register("Draw","CA1E30C3431",function()
  163.  
  164. gui_window_controller:SetActive(show_controller:GetValue() and aimware_ref.aimware:IsActive())
  165.  
  166. --[[ if not a then
  167.  
  168. a=true;
  169. lynx.load("99",b) -- errors due to no lynx.load
  170. end;]]
  171.  
  172. mouse_x,mouse_y=input.GetMousePos()
  173.  
  174. if not get_value_intable('enable') then
  175.  
  176. return
  177. end;
  178.  
  179. local local_player_angle_z,local_player_angle_y,X=table_list_sizes.size_x,table_list_sizes.size_y,0;
  180. local size_of_table=table_list_sizes.table_size;
  181. local Z=27+16*(#all_list_logs>size_of_table and size_of_table or#all_list_logs)
  182. local rainbow_r=math.floor(math.sin(globals.RealTime()*2)*127+128)
  183. local rainbow_b=math.floor(math.sin(globals.RealTime()*2+2)*127+128)
  184. local rainbow_g=math.floor(math.sin(globals.RealTime()*2+4)*127+128)
  185.  
  186. draw.Color(22,20,26,100)
  187. draw.FilledRect(local_player_angle_z,local_player_angle_y,local_player_angle_z+val_of_330,local_player_angle_y+Z)
  188. draw.Color(16,22,29,160)
  189. draw.FilledRect(local_player_angle_z,local_player_angle_y,local_player_angle_z+val_of_330,local_player_angle_y+15)
  190.  
  191. if get_value_intable('gradient') then
  192.  
  193. draw.Color(rainbow_r,rainbow_b,rainbow_g,160)
  194. draw.FilledRect(local_player_angle_z,local_player_angle_y,local_player_angle_z+val_of_330,local_player_angle_y+2)
  195. end;
  196. -- table top row creation
  197. draw.Color(255,255,255,255)
  198. draw.SetFont(font)
  199. draw.Text(local_player_angle_z+7,local_player_angle_y+3,"ID")
  200. draw.Text(local_player_angle_z+8+35,local_player_angle_y+3,"PLAYER")
  201. draw.Text(local_player_angle_z+7+114,local_player_angle_y+3,"DMG")
  202. draw.Text(local_player_angle_z+10+153,local_player_angle_y+3,"HITBOX")
  203. draw.Text(local_player_angle_z+10+201,local_player_angle_y+3,"BACKTRACK")
  204. draw.Text(local_player_angle_z+10+271,local_player_angle_y+3,"REASON")
  205.  
  206. if get_value_intable('drag') then
  207.  
  208. drag_through()
  209. end;
  210.  
  211. for B=1,table_list_sizes.table_size,1 do
  212.  
  213. X=P(X,local_player_angle_z,local_player_angle_y,all_list_logs[B])
  214. end;
  215.  
  216. local _=0;
  217. local miss_reason="-"
  218. local a1=0;
  219. local a2=0;
  220.  
  221. if l[i]and h~=nil then
  222.  
  223. for B=table_list_sizes.table_size,2,-1 do
  224.  
  225. all_list_logs[B]=all_list_logs[B-1]
  226. end;
  227.  
  228. local a3=j[i]
  229. local user_of_attacked_MAYBE=a3.user:GetName()
  230. local backtrack_broken=1/globals.TickInterval()/5;
  231. local local_player=entities.GetLocalPlayer()
  232. local local_player_angle_z,local_player_angle_y,local_player_angle_z=local_player:GetProp("m_angEyeAngles")
  233. local redundant,redundant,entity=engine.TraceLine(local_player_angle_z,local_player_angle_y,local_player_angle_z,h.x,h.y,h.gui_groupbox,1174421515)
  234.  
  235. if entity~=nil and entity:GetIndex()==i:GetIndex()and not k[i] then
  236.  
  237. miss_reason="resolver"
  238. elseif k[i] then
  239.  
  240. else
  241.  
  242. miss_reason="spread"
  243. end;
  244.  
  245. h=nil;
  246. k[i]=false;
  247. l[i]=false;
  248. j[i]=nil;
  249. i=nil;
  250. list_id=list_id+1;
  251.  
  252. all_list_logs[1]={
  253. ["id"]=list_id,
  254. ["hit"]=_,
  255. ["player"]=string.sub(user_of_attacked_MAYBE,0,14),
  256. ["dmg"]=a1,
  257. ["bt"]=backtrack_broken,
  258. ["box"]=hitboxes[a2],["rs"]=miss_reason
  259. }
  260.  
  261. end
  262.  
  263. end)
  264.  
  265. callbacks.Register("FireGameEvent","C292FAC6791",function(aa)
  266.  
  267. local ab=aa:GetName()
  268. local ac=aa:GetInt("userid")
  269. local ad=entities.GetByUserID(ac)
  270. local local_player=entities.GetLocalPlayer()
  271. local ae=local_player:GetIndex()
  272. local af=client.GetPlayerIndexByUserID(ac)
  273.  
  274. if ab=="round_start"or(ab=='player_death'and(ad~=nil and af==ae)or i~=nil and ae==i:GetIndex()) then
  275.  
  276. i=nil
  277. end;
  278.  
  279. if ab=="round_start" then
  280.  
  281. clear_logs()
  282. end;
  283.  
  284. if ab=="bullet_impact" then
  285.  
  286. if ae==af and i~=nil then
  287.  
  288. h={
  289. x=aa:GetFloat('x'),
  290. y=aa:GetFloat('y'),
  291. gui_groupbox=aa:GetFloat('gui_groupbox')
  292. }
  293. l[i]=true;
  294. j[i]={
  295. user=ad,
  296. hitgroup=aa:GetInt('hitgroup'),
  297. health=aa:GetInt('health'),
  298. dmg_health=aa:GetInt('dmg_health')
  299. }
  300. end
  301.  
  302. elseif ab=="weapon_fire" then
  303.  
  304. if ae==af then
  305. h=nil
  306. end
  307.  
  308. elseif ab=="player_hurt" then
  309.  
  310. local ag=aa:GetInt("attacker")
  311. if client.GetPlayerIndexByUserID(ag)==ae and af~=ae then
  312.  
  313. if i~=nil then
  314.  
  315. k[i]=true;
  316.  
  317. j[i]={
  318. user=ad,
  319. hitgroup=aa:GetInt('hitgroup'),
  320. health=aa:GetInt('health'),
  321. dmg_health=aa:GetInt('dmg_health')
  322. }
  323. end
  324. end
  325. end
  326. end)
  327.  
  328. callbacks.Register('AimbotTarget',"CC207A4ED2C",function(entity)
  329. i=entity
  330. end)
RAW Paste Data