Advertisement
Guest User

Untitled

a guest
May 4th, 2011
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 113.80 KB | None | 0 0
  1. //Ares
  2. //Coded By Fisheater
  3. //March 6, 2011
  4.  
  5. //Credits to RabidToaster, Seth^, Nomical, ect.
  6.  
  7. if SERVER then return end
  8.  
  9. ///////////////
  10. //--ConVars--//
  11. ///////////////
  12.  
  13. //ESP
  14. CreateClientConVar( "Ares_ESP_Player", 0, true, false )
  15. CreateClientConVar( "Ares_ESP_Health", 0, true, false )
  16. CreateClientConVar( "Ares_ESP_ShowAll", 0, true, false )
  17. CreateClientConVar( "Ares_ESP_NPC", 0, true, false )
  18. CreateClientConVar( "Ares_ESP_MoneyPrinter", 0, true, false )
  19. CreateClientConVar( "Ares_ESP_Money", 0, true, false )
  20. CreateClientConVar( "Ares_ESP_Shipment", 0, true, false )
  21. CreateClientConVar( "Ares_ESP_Weapons", 0, true, false )
  22. --
  23. //MISC
  24. CreateClientConVar( "Ares_Misc_Bhop", 0, true, false )
  25. CreateClientConVar( "Ares_Misc_Keypad", 0, true, false )
  26. CreateClientConVar( "Ares_Misc_LogIPs", 0, true, false )
  27. CreateClientConVar( "Ares_Misc_ULXAntiGag", 0, true, false )
  28. --
  29. //TTT
  30. CreateClientConVar( "Ares_Traitor", 0, true, false )
  31. CreateClientConVar( "Ares_ESP_C4Detection", 1, true, false )
  32. --
  33. //SH
  34. CreateClientConVar( "Ares_SlowSpeedHack", 0.15, true, false )
  35. CreateClientConVar( "Ares_SH_CheatsOff", 1, true, false )
  36. CreateClientConVar( "Ares_SHSpeed", 7, true, false )
  37. CreateClientConVar( "Ares_HostFrameRate", 1, true, false )
  38. CreateClientConVar( "Ares_HostTimeScale", 0, true, false )
  39. --
  40. //AIM
  41. //CreateClientConVar( "Ares_AimBot_SmoothAim", 0, true, false )
  42. //CreateClientConVar( "Ares_AimBot_SmoothAimSpeed", 2, true, false )
  43. CreateClientConVar( "Ares_AimBot_Autoshoot", 0, true, false )
  44. CreateClientConVar( "Ares_AimBot_NoRecoil", 1, true, false )
  45. CreateClientConVar( "Ares_AimBot_NoSpread", 1, true, false )
  46. CreateClientConVar( "Ares_AimBot_IgnoreSteamFriends", 1, true, false )
  47. CreateClientConVar( "Ares_AimBot_IgnoreAdmins", 1, true, false )
  48. CreateClientConVar( "Ares_AimBot_FriendlyFire", 1, true, false )
  49. CreateClientConVar( "Ares_AimBot_IgnoreTraitorFriends", 1, true, false )
  50.  
  51. local AresHUDDraw = 0
  52.  
  53. local oC = table.Copy( concommand )
  54. local oT = table.Copy( timer )
  55. local oH = table.Copy( hook )
  56. local oCV = table.Copy( cvars )
  57. local oS = table.Copy( sql )
  58. local oSR = table.Copy( string )
  59. local oM = table.Copy( math )
  60. local oF = table.Copy( file )
  61. local oD = table.Copy( debug )
  62. local oHTTP = table.Copy( http )
  63. local oUM = table.Copy( usermessage )
  64.  
  65. ---------------------------------------------------------------------------------------------------------------------------------
  66.  
  67. //ESP
  68. hook.Add( "HUDPaint", "AresESPSettings", function()
  69.  
  70. if GetConVarNumber( "Ares_ESP_Player" ) >= 1 then
  71. for k, v in pairs( player.GetAll() ) do
  72. if ValidEntity( v ) then
  73. if v ~= LocalPlayer() then
  74. local PlyESPPos = ( v:EyePos() ):ToScreen()
  75. if v:Alive() and v:Team() ~= TEAM_SPECTATOR then
  76. draw.SimpleText( v:Nick(), "TabLarge", PlyESPPos.x, PlyESPPos.y, team.GetColor( v:Team() ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  77.  
  78. if v:IsAdmin() then
  79. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  80. draw.SimpleText( "-Admin-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 32, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  81. else
  82. draw.SimpleText( "-Admin-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  83. end
  84. end
  85.  
  86. if !v:IsAdmin() then
  87. if v:GetFriendStatus() == "friend" then
  88. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  89. draw.SimpleText( "-Friend-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 32, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  90. else
  91. draw.SimpleText( "-Friend-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  92. end
  93. end
  94. end
  95.  
  96. local colorhp
  97.  
  98. if GetConVarNumber( "Ares_ESP_Health" ) >= 1 then
  99. if v ~= LocalPlayer() then
  100.  
  101. local hp = ( v:Health() ) / 2
  102. local PlyESPPos = ( v:EyePos() ):ToScreen()
  103.  
  104. if v:Health() >= 75 then
  105. colorhp = Color( 0, 255, 0, 255 )
  106. elseif v:Health() >= 35 and v:Health() < 75 then
  107. colorhp = Color( 255, 255, 0, 255 )
  108. elseif v:Health() < 35 then
  109. colorhp = Color( 255, 0, 0, 255 )
  110. end
  111. if v:Team() ~= TEAM_SPECTATOR and v:Alive() and v:Health() > 0 then
  112. draw.RoundedBox( 4, PlyESPPos.x - 23, PlyESPPos.y + 22, hp, 5, colorhp )
  113. end
  114. end
  115. end
  116.  
  117. else
  118.  
  119. if GetConVarNumber( "Ares_ESP_ShowAll" ) >= 1 then
  120. draw.SimpleText( "-Dead-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  121. draw.SimpleText( v:Nick(), "TabLarge", PlyESPPos.x, PlyESPPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  122. end
  123. end
  124. end
  125. end
  126. end
  127. end
  128.  
  129. if GetConVarNumber( "Ares_ESP_NPC" ) >= 1 then
  130. for k, v in pairs( ents.GetAll() ) do
  131. if ValidEntity( v ) then
  132. if v:IsNPC() then
  133. local NpcESPPos = ( v:EyePos() ):ToScreen()
  134. draw.SimpleText( v:GetClass(), "TabLarge", NpcESPPos.x, NpcESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  135. end
  136. end
  137. end
  138. end
  139.  
  140. //MoneyPrinterESP
  141. if GetConVarNumber( "Ares_ESP_MoneyPrinter" ) >= 1 then
  142. for k, v in pairs( ents.GetAll() ) do
  143. if ValidEntity( v ) then
  144. if v:GetClass() == "money_printer" or v:GetClass() == "reg_money_printer" or v:GetClass() == "platinum_printer" or v:GetClass() == "golden_printer" or v:GetClass() == "zz_money_printer" or v:GetClass() == "money_printer_commercial" or v:GetClass() == "money_printer_industrial" then
  145. MoneyPrinterPos = v:EyePos():ToScreen()
  146. draw.SimpleText( v:GetClass(), "TabLarge", MoneyPrinterPos.x, MoneyPrinterPos.y, Color( 255, 150, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  147. end
  148. end
  149. end
  150. end
  151.  
  152. if GetConVarNumber( "Ares_ESP_Money" ) >= 1 then
  153. for k, v in pairs( ents.GetAll() ) do
  154. if ValidEntity( v ) then
  155. if v:GetClass() == "spawned_money" then
  156. MoneyPos = v:EyePos():ToScreen()
  157. draw.SimpleText( "Money: $" .. v.dt.amount, "TabLarge", MoneyPos.x, MoneyPos.y, Color( 0, 255, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  158. end
  159. end
  160. end
  161. end
  162.  
  163. //ShipmentESP
  164.  
  165. if GetConVarNumber( "Ares_ESP_Shipment" ) >= 1 then
  166. for k, v in pairs( ents.GetAll() ) do
  167. if ValidEntity( v ) then
  168. if v:GetClass() == "spawned_shipment" && v:GetMoveType() != 0 then
  169. ShipmentPos = v:EyePos():ToScreen()
  170.  
  171. local content = v.dt.contents
  172. local contents = CustomShipments[content]
  173. contents = contents.name
  174.  
  175. draw.SimpleText( "Shipment: " .. contents, "TabLarge", ShipmentPos.x, ShipmentPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  176. draw.SimpleText( "Count: " .. v.dt.count, "TabLarge", ShipmentPos.x, ShipmentPos.y + 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  177. end
  178. end
  179. end
  180. end
  181.  
  182. //Weapons
  183.  
  184. if GetConVarNumber( "Ares_ESP_Weapons" ) >= 1 then
  185.  
  186. for k, v in pairs( ents.GetAll() ) do
  187. if ValidEntity( v ) then
  188. if v:IsWeapon() && v:GetMoveType() != 0 then
  189. if string.sub( v:GetClass(), 1, 7 ) == "weapon_" then
  190.  
  191. WeaponPos = v:EyePos():ToScreen()
  192.  
  193. draw.SimpleText( v:GetClass(), "TabLarge", WeaponPos.x, WeaponPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  194. end
  195. end
  196. end
  197. end
  198. end
  199. end )
  200.  
  201. ---------------------------------------------------------------------------------------------------------------------------------
  202.  
  203. //[TH]Core
  204. //Coded by Fisheater
  205.  
  206. timer.Simple( 3, function()
  207. if ( gmod.GetGamemode().Name ) == "Trouble in Terrorist Town" then
  208.  
  209. local Traitors = {}
  210. local TWeapons = { "weapon_ttt_knife", "weapon_ttt_c4" }
  211. local TWeapons2 = { "weapon_ttt_push", "weapon_ttt_phammer" }
  212. local TWeapons3 = { "weapon_ttt_sipistol", "weapon_ttt_flaregun" }
  213. local TWeapons4 = { "(Disguise)", "weapon_ttt_radio" }
  214. local UsedWeapons = {}
  215. local MapWeapons = {}
  216.  
  217. local function IsATraitor( ply )
  218. for k, v in pairs( Traitors ) do
  219. if v == ply then
  220. return true
  221. else
  222. return false
  223. end
  224. end
  225. end
  226.  
  227. local Stopper = 0
  228.  
  229. timer.Create( tostring( math.random( 1, 1000 ) ), 0.8, 0, function()
  230.  
  231. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  232. if !IsATraitor( ply ) then
  233. for k, v in pairs( ents.FindByClass( "player" ) ) do
  234. if ValidEntity( v ) then
  235. if (!v:IsDetective()) then
  236. if v:Team() ~= TEAM_SPECTATOR then
  237.  
  238. for wepk, wepv in pairs( TWeapons || TWeapons2 || Tweapons3 || TWeapons4 ) do
  239. for entk, entv in pairs( ents.FindByClass( wepv ) ) do
  240. if ValidEntity( entv ) then
  241. cookie.Set( entv, 100 - wepk )
  242. if !table.HasValue( UsedWeapons, cookie.GetNumber( entv ) ) then
  243. if !table.HasValue( MapWeapons, cookie.GetNumber( entv ) ) then
  244. local EntPos = ( entv:GetPos() - Vector( 0, 0, 35 ) )
  245.  
  246. if entv:GetClass() == wepv then
  247.  
  248. if v:GetPos():Distance( EntPos ) > 1 then
  249. if !table.HasValue( MapWeapons, cookie.GetNumber( entv ) ) then
  250. table.insert( MapWeapons, cookie.GetNumber( entv ) )
  251. end
  252. end
  253.  
  254. if v:GetPos():Distance( EntPos ) <= 1 then
  255. table.insert( Traitors, v )
  256.  
  257. if Stopper == 0 then
  258.  
  259. chat.AddText(
  260. Color(153,153,152,255), "[Ares] ",
  261. Color(255,0,0,255), v:Nick(),
  262. Color(255,0,0,255), " has the traitor weapon: ",
  263. Color(255,0,0,255), entv:GetClass() )
  264.  
  265. Stopper = Stopper + 1
  266.  
  267. timer.Simple( 1.5, function()
  268. Stopper = 0
  269. end )
  270. end
  271.  
  272. if !table.HasValue( UsedWeapons, cookie.GetNumber( entv ) ) then
  273. table.insert( UsedWeapons, cookie.GetNumber( entv ) )
  274. end
  275. end
  276. end
  277. end
  278. end
  279. end
  280. end
  281. end
  282. end
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end )
  289.  
  290. hook.Add( "HUDPaint", "DrawESPTraitor", function()
  291. if GetConVarNumber( "Ares_Traitor" ) >=1 then
  292. for k, v in pairs( Traitors ) do
  293. if ValidEntity( v ) then
  294. if v:Team() ~= TEAM_SPECTATOR then
  295. if v ~= LocalPlayer() then
  296. if ( !v:IsDetective() ) then
  297. local PlyESPPos = ( v:GetPos() + Vector( 0, 0, 65 ) ):ToScreen()
  298. draw.SimpleText( "-Traitor-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  299. end
  300. end
  301. end
  302. end
  303. end
  304. end
  305. end )
  306.  
  307. hook.Add( "TTTPrepareRound", "ResetItAll42", function()
  308. timer.Simple( 2, function()
  309. for k, v in pairs( Traitors ) do
  310. table.remove( Traitors, k )
  311. Traitors = {}
  312. end
  313. for k, v in pairs( UsedWeapons ) do
  314. table.remove( UsedWeapons, k )
  315. UsedWeapons = {}
  316. end
  317. for k, v in pairs( MapWeapons ) do
  318. table.remove( MapWeapons, k )
  319. MapWeapons = {}
  320. end
  321. end )
  322. end )
  323. end
  324. end )
  325.  
  326. ---------------------------------------------------------------------------------------------------------------------------------
  327.  
  328. local function AresMaterial()
  329.  
  330. local Texture = {
  331. ["$basetexture"] = "models/debug/debugwhite",
  332. ["$model"] = 1,
  333. ["$translucent"] = 1,
  334. ["$alpha"] = 1,
  335. ["$nocull"] = 1,
  336. ["$ignorez"] = 1
  337. }
  338.  
  339. local material = CreateMaterial( "Ares_Solid", "VertexLitGeneric", Texture )
  340.  
  341. return material
  342.  
  343. end
  344.  
  345. CreateClientConVar( "Ares_ESP_Chams", 1, true, false )
  346.  
  347. local function AresChams()
  348. local Div = ( 1 / 255 )
  349. if GetConVarNumber( "Ares_ESP_Chams" ) >= 1 then
  350. for k, v in pairs( player.GetAll() ) do
  351. if ValidEntity( v ) and v:Health() > 0 || v:Alive() and v:Team() != TEAM_SPECTATOR then
  352. cam.Start3D( EyePos(), EyeAngles() )
  353. local TCol2 = team.GetColor( v:Team() )
  354. local m = AresMaterial()
  355. render.SuppressEngineLighting( true )
  356. render.SetColorModulation( ( TCol2.r * Div ), ( TCol2.g * Div ), ( TCol2.b * Div ) )
  357. SetMaterialOverride( m )
  358. v:DrawModel()
  359. render.SuppressEngineLighting( false )
  360. render.SetColorModulation( 1, 1, 1 )
  361. SetMaterialOverride()
  362. v:DrawModel()
  363. cam.End3D()
  364. end
  365. end
  366. end
  367. end
  368. hook.Add( "RenderScreenspaceEffects", "AresChams", AresChams )
  369.  
  370. ------------------------------------------------------------------------
  371.  
  372. //Not Made By Me
  373. //Credits to Jinto and blackops7799
  374.  
  375. local convar = CreateClientConVar( "Ares_ESP_L4DGlow", "1", true )
  376. local teamcolors = CreateClientConVar( "Ares_ESP_L4D_TeamColors", "1", true )
  377. local passes = CreateClientConVar( "Ares_ESP_L4D_Passes", "3", true )
  378.  
  379. local MaterialBlurX = Material( "pp/blurx" )
  380. local MaterialBlurY = Material( "pp/blury" )
  381. local MaterialWhite = CreateMaterial( "WhiteMaterial", "VertexLitGeneric", {
  382. ["$basetexture"] = "color/white",
  383. ["$vertexalpha"] = "1",
  384. ["$model"] = "1",
  385. } )
  386. local MaterialComposite = CreateMaterial( "CompositeMaterial", "UnlitGeneric", {
  387. ["$basetexture"] = "_rt_FullFrameFB",
  388. ["$additive"] = "1",
  389. } )
  390.  
  391. // we need two render targets, if you don't want to create them yourself, you can
  392. local RT1 = render.GetBloomTex0()
  393. local RT2 = render.GetBloomTex1()
  394.  
  395. /*------------------------------------
  396. RenderGlow()
  397. ------------------------------------*/
  398. local function RenderGlow( entity )
  399.  
  400. // tell the stencil buffer we're going to write a value of one wherever the model
  401. // is rendered
  402. render.SetStencilEnable( true )
  403. render.SetStencilFailOperation( STENCILOPERATION_KEEP )
  404. render.SetStencilZFailOperation( STENCILOPERATION_REPLACE )
  405. render.SetStencilPassOperation( STENCILOPERATION_REPLACE )
  406. render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_ALWAYS )
  407. render.SetStencilWriteMask( 1 )
  408. render.SetStencilReferenceValue( 1 )
  409.  
  410. // this uses a small hack to render ignoring depth while not drawing color
  411. // i couldn't find a function in the engine to disable writing to the color channels
  412. // i did find one for shaders though, but I don't feel like writing a shader for this.
  413. cam.IgnoreZ( true )
  414. render.SetBlend( 0 )
  415. SetMaterialOverride( MaterialWhite )
  416. entity:DrawModel()
  417. SetMaterialOverride()
  418. render.SetBlend( 1 )
  419. cam.IgnoreZ( false )
  420.  
  421. local w, h = ScrW(), ScrH()
  422.  
  423. // draw into the white texture
  424. local oldRT = render.GetRenderTarget()
  425.  
  426. render.SetRenderTarget( RT1 )
  427.  
  428. render.SetViewPort( 0, 0, RT1:GetActualWidth(), RT1:GetActualHeight() )
  429.  
  430. cam.IgnoreZ( true )
  431.  
  432. render.SuppressEngineLighting( true )
  433.  
  434. if teamcolors:GetBool() and entity:IsPlayer() then
  435.  
  436. local color = team.GetColor( entity:Team() )
  437. render.SetColorModulation( color.r/255, color.g/255, color.b/255 )
  438.  
  439. elseif entity:IsPlayer() then
  440.  
  441. local scale = math.Clamp( entity:Health() / 100, 0, 1 )
  442. local r,g,b = (255 - scale * 255), (55 + scale * 200), (50)
  443. render.SetColorModulation( r/255, g/255, b/255 )
  444.  
  445. else
  446.  
  447. render.SetColorModulation( 1, 165/255, 0 )
  448.  
  449. end
  450.  
  451. SetMaterialOverride( MaterialWhite )
  452. entity:DrawModel()
  453. SetMaterialOverride()
  454.  
  455. render.SetColorModulation( 1, 1, 1 )
  456. render.SuppressEngineLighting( false )
  457.  
  458. cam.IgnoreZ( false )
  459.  
  460. render.SetViewPort( 0, 0, w, h )
  461. render.SetRenderTarget( oldRT )
  462.  
  463. // don't need this for the next pass
  464. render.SetStencilEnable( false )
  465.  
  466. end
  467.  
  468. /*------------------------------------
  469. RenderScene()
  470. ------------------------------------*/
  471. hook.Add( "RenderScene", "ResetGlow", function( Origin, Angles )
  472.  
  473. local oldRT = render.GetRenderTarget()
  474. render.SetRenderTarget( RT1 )
  475. render.Clear( 0, 0, 0, 255, true )
  476. render.SetRenderTarget( oldRT )
  477.  
  478. end )
  479.  
  480. /*------------------------------------
  481. RenderScreenspaceEffects()
  482. ------------------------------------*/
  483. hook.Add( "RenderScreenspaceEffects", "CompositeGlow", function()
  484.  
  485. MaterialBlurX:SetMaterialTexture( "$basetexture", RT1 )
  486. MaterialBlurY:SetMaterialTexture( "$basetexture", RT2 )
  487. MaterialBlurX:SetMaterialFloat( "$size", 2 )
  488. MaterialBlurY:SetMaterialFloat( "$size", 2 )
  489.  
  490. local oldRT = render.GetRenderTarget()
  491.  
  492. for i = 1, passes:GetFloat() do
  493.  
  494. // blur horizontally
  495. render.SetRenderTarget( RT2 )
  496. render.SetMaterial( MaterialBlurX )
  497. render.DrawScreenQuad()
  498.  
  499. // blur vertically
  500. render.SetRenderTarget( RT1 )
  501. render.SetMaterial( MaterialBlurY )
  502. render.DrawScreenQuad()
  503.  
  504. end
  505.  
  506. render.SetRenderTarget( oldRT )
  507.  
  508. // tell the stencil buffer we're only going to draw
  509. // where the player models are not.
  510. render.SetStencilEnable( true )
  511. render.SetStencilReferenceValue( 0 )
  512. render.SetStencilTestMask( 1 )
  513. render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_EQUAL )
  514. render.SetStencilPassOperation( STENCILOPERATION_ZERO )
  515.  
  516. // composite the scene
  517. MaterialComposite:SetMaterialTexture( "$basetexture", RT1 )
  518. render.SetMaterial( MaterialComposite )
  519. render.DrawScreenQuad()
  520.  
  521. // don't need this anymore
  522. render.SetStencilEnable( false )
  523.  
  524. end )
  525.  
  526. local playerheldweap = nil
  527.  
  528. hook.Add( "PostPlayerDraw", "RenderEntityGlow", function( ply )
  529.  
  530. if !convar:GetBool() then return end
  531.  
  532. if( ScrW() == ScrH() ) then return end
  533.  
  534. // prevent recursion
  535. if( OUTLINING_ENTITY ) then return end
  536. OUTLINING_ENTITY = true
  537.  
  538. RenderGlow( ply )
  539.  
  540. playerheldweap = ply:GetActiveWeapon()
  541.  
  542. if IsValid( playerheldweap ) then
  543. RenderGlow( playerheldweap )
  544. end
  545.  
  546. // prevents recursion time
  547. OUTLINING_ENTITY = false
  548.  
  549. end )
  550.  
  551. -------------------------------------------------------------------------
  552.  
  553. concommand.Add( "+Ares_PropKill", function()
  554. propkill1 = 1
  555. end )
  556.  
  557. concommand.Add( "-Ares_PropKill", function()
  558. propkill1 = 0
  559. end )
  560.  
  561. function ReCalc55( cmd )
  562. if propkill1 == 1 then
  563. orA.p = math.Clamp(orA.p + ( cmd:GetMouseY() * 0.022 ), -89, 89 )
  564. orA.y = math.NormalizeAngle( orA.y + (cmd:GetMouseX() * 0.022 * -1) )
  565. orA.r = 0
  566.  
  567. local Forward = ((Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):GetNormal():Angle() + (cmd:GetViewAngles() - orA)):Forward() * Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):Length())
  568. cmd:SetForwardMove( Forward.x )
  569. cmd:SetSideMove( Forward.y )
  570. end
  571. end
  572. hook.Add( "CreateMove", "StoredAngleRecalc2131", ReCalc55 )
  573.  
  574. function Calctest22(ply, pos, angles, fov)
  575. if propkill1 == 1 then
  576. local view = {}
  577. view.origin = pos
  578. if GetViewEntity() == LocalPlayer() and propkill1 == 1 then
  579. view.angles = orA
  580. end
  581. view.fov = fov
  582. return view
  583. end
  584. end
  585. hook.Add( "CalcView", "CalcViewTest108", Calctest22 )
  586.  
  587. ----------------------------------------
  588.  
  589. //IP Logger
  590.  
  591. if not file.Exists( "ares_ips.txt" ) then file.Write( "ares_ips.txt", "" ) end
  592. local tblDB2 = {}
  593. local function SaveDB()
  594. local s = ""
  595. for k, v in pairs( tblDB2 ) do
  596. s = s .. k .."'s IP Address is: " ..v.. " \n"
  597. end
  598.  
  599. file.Write( "ares_ips.txt", s )
  600. end
  601. local function LoadNHIP()
  602. local tbl2 = string.Explode( "\n", file.Read( "ares_ips.txt" ) )
  603. tblDB2 = {}
  604. for k,v in pairs( tbl2 ) do
  605. local sep2 = string.Explode( "'s IP Address is: ", v )
  606. if sep2 and table.getn( sep2 ) == 2 then
  607. tblDB2[sep2[1]] = sep2[2]
  608. end
  609. end
  610. end
  611. LoadNHIP()
  612.  
  613. local function PlayerConnect( name, ip )
  614. if GetConVarNumber( "Ares_Misc_LogIPs" ) >= 1 then
  615. tblDB2[ string.gsub( name, "'s IP Address is: ", "" ) ] = ip
  616. print( "[Ares] " .. name .. "'s IP Address is: " .. ip )
  617. SaveDB()
  618. chat.AddText(
  619. Color( 255, 0, 0 ), "[Ares] ",
  620. Color( 0, 0, 0 ), "Player ",
  621. Color( 0, 0, 0 ), "IP: ",
  622. Color( 0, 0, 0 ), tostring( name .. "'s IP Address is: " .. ip .. "." ) )
  623. end
  624. end
  625.  
  626. hook.Add( "PlayerConnect", "PlayerConnect1255", PlayerConnect )
  627.  
  628. concommand.Add( "Ares_Print_IPs", function()
  629. if file.Exists( "ares_ips.txt" ) then
  630. print( file.Read( "ares_ips.txt" ) )
  631. end
  632. end )
  633.  
  634. concommand.Add( "Ares_Clear_IPs", function()
  635. if file.Exists( "ares_ips.txt" ) then
  636. file.Delete( "ares_ips.txt" )
  637. end
  638. end )
  639.  
  640. -----------------
  641.  
  642. //Credits to RabidToaster
  643.  
  644. local function PlyPos( ply )
  645. local min, max = ply:OBBMins()
  646. local max = ply:OBBMaxs()
  647.  
  648. local Spots = { Vector( min.x, min.y, min.z ), Vector( min.x, min.y, max.z ), Vector( min.x, max.y, min.z ), Vector( min.x, max.y, max.z ), Vector( max.x, min.y, min.z ),
  649. Vector( max.x, min.y, max.z ), Vector( max.x, max.y, min.z ), Vector( max.x, max.y, max.z ) }
  650.  
  651. local minX = ScrW() * 2
  652. local minY = ScrH() * 2
  653. local maxX = 0
  654. local maxY = 0
  655.  
  656. for k, v in pairs( Spots ) do
  657. local ToScreen = ply:LocalToWorld( v ):ToScreen()
  658. minX = math.min( minX, ToScreen.x )
  659. minY = math.min( minY, ToScreen.y )
  660. maxX = math.max( maxX, ToScreen.x )
  661. maxY = math.max( maxY, ToScreen.y )
  662. end
  663. return minX, minY, maxX, maxY
  664. end
  665.  
  666. CreateClientConVar( "Ares_ESP_BoundingBox", 1, true, false )
  667.  
  668. hook.Add( "HUDPaint", "BoundingBoxTest", function()
  669. if GetConVarNumber( "Ares_ESP_BoundingBox" ) >= 1 then
  670. for k, v in pairs( player.GetAll() ) do
  671. if v:Health() > 0 && v:Team() != TEAM_SPECTATOR then
  672. if v != LocalPlayer() then
  673.  
  674. local x1, y1, x2, y2 = PlyPos(v)
  675. local xy = { x1, y1, x2, y2 }
  676.  
  677. local x1, y1, x2, y2 = unpack( xy )
  678.  
  679. surface.SetDrawColor( team.GetColor( v:Team() ) )
  680.  
  681. surface.DrawLine( x1, y1, math.min( x1 + 1510, x2 ), y1 )
  682. surface.DrawLine( x1, y1, x1, math.min( y1 + 1510, y2 ) )
  683. surface.DrawLine( x2, y1, math.max( x2 - 1510, x1 ), y1 )
  684. surface.DrawLine( x2, y1, x2, math.min( y1 + 1510, y2 ) )
  685. surface.DrawLine( x1, y2, math.min( x1 + 1510, x2 ), y2 )
  686. surface.DrawLine( x1, y2, x1, math.max( y2 - 1510, y1 ) )
  687. surface.DrawLine( x2, y2, math.max( x2 - 1510, x1 ), y2 )
  688. surface.DrawLine( x2, y2, x2, math.max( y2 - 1510, y1 ) )
  689. end
  690. end
  691. end
  692. end
  693. end )
  694.  
  695. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  696. //[Ares] AimBot
  697. //March 8th, 2011
  698.  
  699. //NoJello
  700. require( 'jell' )
  701.  
  702. function WeaponVector( value, typ )
  703. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  704. local s = ( -value )
  705.  
  706. if ( typ == true ) then
  707. s = ( -value )
  708. elseif ( typ == false ) then
  709. s = ( value )
  710. else
  711. s = ( value )
  712. end
  713. return Vector( s, s, s )
  714. end
  715. end
  716.  
  717. local currentseed, cmd2, seed = currentseed || 0, 0, 0
  718. local w, vecCone, valCone = "", Vector( 0, 0, 0 ), Vector( 0, 0, 0 )
  719.  
  720. local CustomCones = {}
  721. CustomCones.Weapons = {}
  722. CustomCones.Weapons[ "weapon_pistol" ] = WeaponVector( 0.0100, true ) // HL2 Pistol
  723. CustomCones.Weapons[ "weapon_smg1" ] = WeaponVector( 0.04362, true ) // HL2 SMG1
  724. CustomCones.Weapons[ "weapon_ar2" ] = WeaponVector( 0.02618, true ) // HL2 AR2
  725. CustomCones.Weapons[ "weapon_shotgun" ] = WeaponVector( 0.08716, true ) // HL2 SHOTGUN
  726.  
  727. local NormalCones = { [ "weapon_cs_base" ] = true }
  728.  
  729. function GetCone( wep )
  730. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  731. local c = wep.Cone
  732.  
  733. if ( !c && ( type( wep.Primary ) == "table" ) && ( type( wep.Primary.Cone ) == "number" ) ) then c = wep.Primary.Cone end
  734. if ( !c ) then c = 0 end
  735. if ( type( wep.Base ) == "string" && NormalCones[ wep.Base ] ) then return c end
  736. if ( ( wep:GetClass() == "ose_turretcontroller" ) ) then return 0 end
  737. return c || 0
  738. end
  739. end
  740.  
  741. function DoAresNoJello( ucmd, angle )
  742. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  743. local ply = LocalPlayer()
  744.  
  745. cmd2, seed = AresGetPredictionJello( ucmd )
  746. if ( cmd2 != 0 ) then currentseed = seed end
  747.  
  748. local w = ply:GetActiveWeapon(); vecCone = Vector( 0, 0, 0 )
  749. if ( w && w:IsValid() && ( type( w.Initialize ) == "function" ) ) then
  750. valCone = GetCone( w )
  751.  
  752. if ( type( valCone ) == "number" ) then
  753. vecCone = Vector( -valCone, -valCone, -valCone )
  754.  
  755. elseif ( type( valCone ) == "Vector" ) then
  756. vecCone = valCone * -1
  757.  
  758. end
  759. else
  760. if ( w:IsValid() ) then
  761. local class = w:GetClass()
  762. if ( CustomCones.Weapons[ class ] ) then
  763. vecCone = CustomCones.Weapons[ class ]
  764. end
  765. end
  766. end
  767. return NoJelloSpread( currentseed || 0, ( angle || ply:GetAimVector():Angle() ):Forward(), vecCone ):Angle()
  768. end
  769. end
  770.  
  771. local angles = Angle( 0, 0, 0 )
  772.  
  773. function GetView()
  774. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  775. local ply = LocalPlayer()
  776. if ( !ValidEntity( ply ) ) then return end
  777. angles = ply:EyeAngles()
  778. end
  779. end
  780. hook.Add( "OnToggled", "GetViewAngles32", GetView )
  781.  
  782. -----
  783.  
  784. local AresAim = 0
  785.  
  786. concommand.Add( "+Ares_Aim", function()
  787. AresAim = 1
  788. end )
  789.  
  790. concommand.Add( "-Ares_Aim", function()
  791. AresAim = 0
  792. end )
  793.  
  794. local function IsVisible( ent )
  795. local tracer = {}
  796. tracer.start = LocalPlayer():GetShootPos()
  797. tracer.endpos = ent:GetBonePosition( ent:LookupBone( "ValveBiped.Bip01_Head1" ) )
  798. tracer.filter = { LocalPlayer(), ent }
  799. tracer.mask = MASK_SHOT
  800. local trace = util.TraceLine( tracer )
  801. if trace.Fraction >= 1 then return true else return false end
  802. end
  803.  
  804. local function AresExceptions( ent )
  805. if( !ValidEntity( ent ) || !ent:IsPlayer() || LocalPlayer() == ent ) then return false end
  806. if( ent:GetMoveType() == 0 ) then return false end
  807. if( ent:Team() == TEAM_SPECTATOR ) then return false end
  808. if( !ent:Alive() ) then return false end
  809. if GetConVarNumber( "Ares_AimBot_IgnoreAdmins" ) == 1 then if ent:IsAdmin() then return false end end
  810. if( ent:Health() <= 0 ) then return false end
  811. if( ent:InVehicle() ) then return false end
  812. if( ent:Team() == LocalPlayer():Team() && GetConVarNumber( "Ares_Aimbot_FriendlyFire" ) != 1 ) then return false end
  813. if( GetConVarNumber( "Ares_AimBot_IgnoreSteamFriends" ) == 1 && ent:GetFriendStatus() == "friend" ) then return false end
  814. if GetConVarNumber( "Ares_AimBot_IgnoreTraitorFriends" ) == 1 then if ( gmod.GetGamemode().Name ) == "Trouble in Terrorist Town" then if ent:GetTraitor() then return false end end end
  815. return true
  816. end
  817.  
  818. --
  819.  
  820. local SetViewAngles = _R["CUserCmd"].SetViewAngles
  821.  
  822. local function AresAimBot24( ucmd )
  823.  
  824. if AresAim == 1 then
  825.  
  826. local BonePos
  827. local TarAng
  828. local AresTar = nil
  829. local angles3
  830. local crosshair
  831.  
  832. AresTargetTable2 = { NULL, 0 }
  833.  
  834. for k, v in ipairs( player.GetAll() ) do
  835.  
  836. if AresExceptions( v ) && IsVisible( v ) then
  837.  
  838. local crosshair = ( v:GetPos() - LocalPlayer():GetPos() ):Normalize()
  839. crosshair = crosshair - LocalPlayer():GetAimVector()
  840. crosshair = crosshair:Length()
  841.  
  842. crosshair = math.abs( crosshair )
  843. if ( crosshair < AresTargetTable2[2] ) or ( AresTargetTable2[1] == NULL ) then
  844. AresTargetTable2 = { v, crosshair }
  845. AresTar = AresTargetTable2[1]
  846. end
  847. end
  848. end
  849.  
  850. if AresTar != nil then
  851. if AresTar:GetBonePosition( AresTar:LookupBone( "ValveBiped.Bip01_Head1" ) ) then
  852.  
  853. BonePos = AresTar:GetBonePosition( AresTar:LookupBone( "ValveBiped.Bip01_Head1" ) )
  854.  
  855. BonePos = BonePos + AresTar:GetVelocity() / 50 - LocalPlayer():GetVelocity() / 50
  856.  
  857. TarAng = ( BonePos - LocalPlayer():GetShootPos() ):Angle()
  858.  
  859. TarAng.p = math.NormalizeAngle( TarAng.p )
  860. TarAng.y = math.NormalizeAngle( TarAng.y )
  861. TarAng.r = 0
  862.  
  863. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  864. angles3 = DoAresNoJello( ucmd, Angle( TarAng.p, TarAng.y, 0 ) )
  865. else
  866. angles3 = Angle( TarAng.p, TarAng.y, 0 )
  867. end
  868.  
  869. SetViewAngles( ucmd, angles3 )
  870. end
  871. end
  872. end
  873. end
  874. hook.Add( "CreateMove", "AresNoJelloCreateMove42", AresAimBot24 )
  875.  
  876. ---
  877. //Credits to Nismo/Nomical
  878.  
  879. CreateClientConVar( "Ares_Aimbot_AutoShoot", 0, true, false )
  880.  
  881. local ShootFire = false
  882.  
  883. hook.Add( "Think", "AresThinkHook", function()
  884. if GetConVarNumber( "Ares_AimBot_AutoShoot" ) >= 1 then
  885. if AresAim == 1 && AresTargetTable2[1] != NULL then
  886.  
  887. if ShootFire then
  888. RunConsoleCommand( "-attack" )
  889. ShootFire = false
  890. elseif !ShootFire then
  891. RunConsoleCommand( "+attack" )
  892. ShootFire = true
  893. end
  894.  
  895. elseif AresAim == 0 or AresTargetTable2[1] == NULL then
  896. if ShootFire then
  897. RunConsoleCommand( "-attack" )
  898. ShootFire = false
  899. end
  900. end
  901. end
  902.  
  903. //NoRecoil
  904. if GetConVarNumber( "Ares_AimBot_NoRecoil" ) >= 1 then
  905. if LocalPlayer():GetActiveWeapon().Primary then
  906. LocalPlayer():GetActiveWeapon().Primary.Recoil = 0
  907. end
  908. end
  909.  
  910. //Propkill Throw
  911. if LocalPlayer():GetCurrentCommand():KeyDown( IN_SPEED ) and propkill1 == 1 then
  912. LocalPlayer():SetEyeAngles( Angle ( orA.p , orA.y , orA.r ) )
  913. propkill1 = 0
  914. end
  915.  
  916. //Propkill Angles
  917. orA = LocalPlayer():EyeAngles() - Angle( 0 , 180 , 0 )
  918. Test = LocalPlayer():EyeAngles()
  919.  
  920. //KeyPad
  921. if GetConVarNumber( "Ares_Misc_Keypad" ) >= 1 then
  922. --------Setup----------
  923. for _, p in pairs( player.GetAll() ) do
  924. local tr = p:GetEyeTraceNoCursor()
  925. if ( ( tr.StartPos - tr.HitPos ):Length() < 32 ) then
  926. local e = tr.Entity
  927. if ( e:IsValid() ) then
  928. if ( e:GetClass() == "sent_keypad" || e:GetClass() == "sent_keypad_adv" || e:GetClass() == "sent_keypad_wire") then
  929. if ( e:GetNetworkedBool("Hacked") != true ) then
  930. //////////////////////
  931. ////////Non Secure
  932. ////////////////////
  933. if ( e:GetNetworkedBool("keypad_secure") == false ) then
  934. if ( e:GetNWBool( "keypad_access" ) && e:GetNWBool( "keypad_showaccess" ) ) then
  935. e.Password = e:GetNWInt( "keypad_num" )
  936. end
  937. /////////////////////////////
  938. ////////Secure Keypads
  939. ////////////////////////////
  940. else
  941. local pos = e:WorldToLocal(tr.HitPos)
  942. --------Code-----------
  943. local CurNum = e:GetNetworkedInt("keypad_num")
  944. local access = e:GetNetworkedBool("keypad_access")
  945. if( e.Num == nil) then e.Num = 0 end
  946. /////////////////////////////
  947. //////Success!
  948. ////////////////////////////
  949. if(access == true && CurNum != 0) then
  950. e:SetNetworkedBool("Hacked", true)
  951. e.Password = e.Num
  952. end
  953. /////////////////////////////
  954. //////Success!
  955. ////////////////////////////
  956. if(CurNum == 0 && e.Num != 0) then
  957. e.Num = 0
  958. end
  959. /////////////////////
  960. ///////One
  961. ///////////////////////////
  962. if( CurNum != 0 && CurNum > e.Num ) then
  963. if(pos.y > -2.1948 && pos.y < -0.9932 && pos.z < -0.0075 && pos.z > -1.2929) then
  964. e.Num = tonumber(e.Num.."1")
  965. print(e.Num)
  966. //////////////////////////
  967. /////Two
  968. //////////////////////////
  969. elseif(pos.y > -0.5865 && pos.y < 0.6369 && pos.z < -0.0039 && pos.z > -1.2509) then
  970. e.Num = tonumber(e.Num.."2")
  971. print(e.Num)
  972. //////////////////////////
  973. /////Three
  974. //////////////////////////
  975. elseif(pos.y > 1.0185 && pos.y < 2.2451 && pos.z < -0.0205 && pos.z > -1.2954) then
  976. e.Num = tonumber(e.Num.."3")
  977. print(e.Num)
  978. //////////////////////////
  979. /////Four
  980. //////////////////////////
  981. elseif(pos.y > -2.1992 && pos.y < -0.9697 && pos.z < -1.6083 && pos.z > -2.8945) then
  982. e.Num = tonumber(e.Num.."4")
  983. print(e.Num)
  984. //////////////////////////
  985. /////Five
  986. //////////////////////////
  987. elseif(pos.y > -0.5893 && pos.y < 0.6437 && pos.z < -1.6010 && pos.z > -2.8989) then
  988. e.Num = tonumber(e.Num.."5")
  989. print(e.Num)
  990. //////////////////////////
  991. /////Six
  992. //////////////////////////
  993. elseif(pos.y > 1.0065 && pos.y < 2.2297 && pos.z < -1.6031 && pos.z > -2.8992) then
  994. e.Num = tonumber(e.Num.."6")
  995. print(e.Num)
  996. //////////////////////////
  997. /////Seven
  998. //////////////////////////
  999. elseif(pos.y > -2.1958 && pos.y < -0.9575 && pos.z < -3.3015 && pos.z > -4.5483) then
  1000. e.Num = tonumber(e.Num.."7")
  1001. print(e.Num)
  1002. //////////////////////////
  1003. /////Eight
  1004. //////////////////////////
  1005. elseif(pos.y > -0.5899 && pos.y < 0.6464 && pos.z < -3.3108 && pos.z > -4.5422) then
  1006. e.Num = tonumber(e.Num.."8")
  1007. print(e.Num)
  1008. //////////////////////////
  1009. /////Nine
  1010. //////////////////////////
  1011. elseif(pos.y > 1.0023 && pos.y < 2.2230 && pos.z < -3.3003 && pos.z > -4.5493) then
  1012. e.Num = tonumber(e.Num.."9")
  1013. print(e.Num)
  1014. ------------------------
  1015. end
  1016. end
  1017. end
  1018. end
  1019. end
  1020. end
  1021. end
  1022. end
  1023. end
  1024.  
  1025. //BHOP and ULX Gag
  1026. if GetConVarNumber( "Ares_Misc_Bhop" ) >= 1 then
  1027. if input.IsKeyDown( KEY_SPACE ) then
  1028. if LocalPlayer():IsOnGround() then
  1029. RunConsoleCommand( "+jump" )
  1030. timer.Create( "Bhop", 0.01, 0, function() RunConsoleCommand( "-jump" ) end )
  1031. end
  1032. end
  1033. end
  1034. if GetConVarNumber( "Ares_Misc_ULXAntiGag" ) >= 1 then
  1035. if( ulx && ulx.gagUser ) then
  1036. ulx.gagUser( false )
  1037. end
  1038. end
  1039. end )
  1040.  
  1041. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1042.  
  1043. local SpeedType
  1044. local CheatsOn = "Off"
  1045. local CheatColor = Color( 255, 0, 0, 255 )
  1046.  
  1047. require( 'ares_core' )
  1048. require( 'ares_fvar' )
  1049.  
  1050. concommand.Add( "+Ares_Nikes", function()
  1051. if GetConVarNumber( "Ares_HostFrameRate" ) >= 1 then
  1052. if GetConVarNumber( "Ares_HostTimeScale" ) <= 0 then
  1053. SpeedType = "host_framerate"
  1054. end
  1055. end
  1056. if GetConVarNumber( "Ares_HostFrameRate" ) >= 1 then
  1057. if GetConVarNumber( "Ares_HostTimeScale" ) >= 1 then
  1058. SpeedType = "host_framerate"
  1059. end
  1060. end
  1061. if GetConVarNumber( "Ares_HostFrameRate" ) <= 0 then
  1062. if GetConVarNumber( "Ares_HostTimeScale" ) >= 1 then
  1063. SpeedType = "host_timescale"
  1064. end
  1065. end
  1066. if GetConVarNumber( "Ares_HostFrameRate" ) <= 0 then
  1067. if GetConVarNumber( "Ares_HostTimeScale" ) <= 0 then
  1068. SpeedType = "host_framerate"
  1069. end
  1070. end
  1071. Ar.SetTCVar( "sv_cheats", "1" )
  1072. //CheatsOn = "On"
  1073. //CheatColor = Color( 0, 255, 0, 255 )
  1074. Ar.SetTCVar( SpeedType, tostring( GetConVarNumber( "Ares_SHSpeed" ) ) )
  1075. end )
  1076.  
  1077. concommand.Add( "-Ares_Nikes", function()
  1078. Ar.SetTCVar( "host_framerate", "0" )
  1079. Ar.SetTCVar( "host_timescale", "1" )
  1080. if GetConVarNumber( "Ares_SH_CheatsOff" ) >= 1 then
  1081. Ar.SetTCVar( "sv_cheats", "0" )
  1082. //CheatsOn = "Off"
  1083. //CheatColor = Color( 255, 0, 0, 255 )
  1084. end
  1085. end )
  1086.  
  1087. concommand.Add( "+Ares_SlowNikes", function()
  1088. Ar.SetTCVar( "sv_cheats", "1" )
  1089. //CheatsOn = "On"
  1090. //CheatColor = Color( 0, 255, 0, 255 )
  1091. Ar.SetTCVar( "host_timescale", tostring( GetConVarNumber( "Ares_SlowSpeedHack" ) ) )
  1092. end )
  1093.  
  1094. concommand.Add( "-Ares_SlowNikes", function()
  1095. Ar.SetTCVar( "host_timescale", "1" )
  1096. if GetConVarNumber( "Ares_SH_CheatsOff" ) >= 1 then
  1097. Ar.SetTCVar( "sv_cheats", "0" )
  1098. //CheatsOn = "Off"
  1099. //CheatColor = Color( 255, 0, 0, 255 )
  1100. end
  1101. end )
  1102.  
  1103. concommand.Add( "Ares_ForceImpulse", function()
  1104. Ar.SetTCVar( "impulse", "101" )
  1105. end )
  1106.  
  1107. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  1108.  
  1109. //Ares Derma
  1110. concommand.Add( "Ares_Menu_ESP", function()
  1111.  
  1112. local DermaPanel = vgui.Create( "DFrame" )
  1113. DermaPanel:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  1114. DermaPanel:SetSize( 380, 320 )
  1115. DermaPanel:SetTitle( "Ares ESP" )
  1116. DermaPanel:SetVisible( true )
  1117. DermaPanel:SetDraggable( true )
  1118. DermaPanel:ShowCloseButton( true )
  1119. DermaPanel:MakePopup()
  1120.  
  1121. local TDESP = vgui.Create( "DImage", DermaPanel )
  1122. TDESP:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  1123. TDESP:SetPos( 6, 25 )
  1124. TDESP:SetSize( 368, 320 )
  1125.  
  1126. ------------------
  1127.  
  1128. local SomeCollapsibleCategory = vgui.Create( "DCollapsibleCategory", DermaPanel )
  1129. SomeCollapsibleCategory:SetPos( 9, 32 )
  1130. SomeCollapsibleCategory:SetSize( 362, 267 )
  1131. SomeCollapsibleCategory:SetExpanded( true )
  1132. SomeCollapsibleCategory:SetLabel( "Default ESP Settings" )
  1133.  
  1134. CategoryList = vgui.Create( "DPanelList" )
  1135. CategoryList:SetAutoSize( true )
  1136. CategoryList:SetSpacing( 5 )
  1137. CategoryList:EnableHorizontal( false )
  1138. CategoryList:EnableVerticalScrollbar( true )
  1139.  
  1140. SomeCollapsibleCategory:SetContents( CategoryList )
  1141.  
  1142. local CategoryContentOne = vgui.Create( "DCheckBoxLabel" )
  1143. CategoryContentOne:SetText( "Player ESP" )
  1144. CategoryContentOne:SetConVar( "Ares_ESP_Player" )
  1145. CategoryContentOne:SizeToContents()
  1146. CategoryList:AddItem( CategoryContentOne )
  1147.  
  1148. local CategoryContentTwo = vgui.Create( "DCheckBoxLabel" )
  1149. CategoryContentTwo:SetText( "NPC ESP" )
  1150. CategoryContentTwo:SetConVar( "Ares_ESP_NPC" )
  1151. CategoryContentTwo:SizeToContents()
  1152. CategoryList:AddItem( CategoryContentTwo )
  1153.  
  1154. local CategoryContent3 = vgui.Create( "DCheckBoxLabel" )
  1155. CategoryContent3:SetText( "Player Health" )
  1156. CategoryContent3:SetConVar( "Ares_ESP_Health" )
  1157. CategoryContent3:SizeToContents()
  1158. CategoryList:AddItem( CategoryContent3 )
  1159.  
  1160. local CategoryContent4 = vgui.Create( "DCheckBoxLabel" )
  1161. CategoryContent4:SetText( "Show Alive + Dead" )
  1162. CategoryContent4:SetConVar( "Ares_ESP_ShowAll" )
  1163. CategoryContent4:SizeToContents()
  1164. CategoryList:AddItem( CategoryContent4 )
  1165.  
  1166. local CategoryContent7 = vgui.Create( "DCheckBoxLabel" )
  1167. CategoryContent7:SetText( "L4D Glow" )
  1168. CategoryContent7:SetConVar( "Ares_ESP_L4DGlow" )
  1169. CategoryContent7:SizeToContents()
  1170. CategoryList:AddItem( CategoryContent7 )
  1171.  
  1172. local CategoryContent8 = vgui.Create( "DCheckBoxLabel" )
  1173. CategoryContent8:SetText( "Player Chams" )
  1174. CategoryContent8:SetConVar( "Ares_ESP_Chams" )
  1175. CategoryContent8:SizeToContents()
  1176. CategoryList:AddItem( CategoryContent8 )
  1177.  
  1178. local CategoryContent9 = vgui.Create( "DCheckBoxLabel" )
  1179. CategoryContent9:SetText( "2D Bounding Box" )
  1180. CategoryContent9:SetConVar( "Ares_ESP_BoundingBox" )
  1181. CategoryContent9:SizeToContents()
  1182. CategoryList:AddItem( CategoryContent9 )
  1183.  
  1184. local CategoryContent5 = vgui.Create( "DCheckBoxLabel" )
  1185. CategoryContent5:SetText( "[TTT]Traitor Detection" )
  1186. CategoryContent5:SetConVar( "Ares_Traitor" )
  1187. CategoryContent5:SizeToContents()
  1188. CategoryList:AddItem( CategoryContent5 )
  1189.  
  1190. local CategoryContent6 = vgui.Create( "DCheckBoxLabel" )
  1191. CategoryContent6:SetText( "[TTT]C4 Detection" )
  1192. CategoryContent6:SetConVar( "Ares_ESP_C4Detection" )
  1193. CategoryContent6:SizeToContents()
  1194. CategoryList:AddItem( CategoryContent6 )
  1195.  
  1196. local CategoryContent5 = vgui.Create( "DCheckBoxLabel" )
  1197. CategoryContent5:SetText( "Money + Value" )
  1198. CategoryContent5:SetConVar( "Ares_ESP_Money" )
  1199. CategoryContent5:SizeToContents()
  1200. CategoryList2:AddItem( CategoryContent5 )
  1201.  
  1202. local CategoryContent51 = vgui.Create( "DCheckBoxLabel" )
  1203. CategoryContent51:SetText( "Money Printer" )
  1204. CategoryContent51:SetConVar( "Ares_ESP_MoneyPrinter" )
  1205. CategoryContent51:SizeToContents()
  1206. CategoryList2:AddItem( CategoryContent51 )
  1207.  
  1208. local CategoryContent512 = vgui.Create( "DCheckBoxLabel" )
  1209. CategoryContent512:SetText( "Shipment" )
  1210. CategoryContent512:SetConVar( "Ares_ESP_Shipment" )
  1211. CategoryContent512:SizeToContents()
  1212. CategoryList2:AddItem( CategoryContent512 )
  1213.  
  1214. end )
  1215.  
  1216. concommand.Add( "Ares_Menu_Misc", function()
  1217.  
  1218. local DermaPanel2 = vgui.Create( "DFrame" )
  1219. DermaPanel2:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  1220. DermaPanel2:SetSize( 380, 267 )
  1221. DermaPanel2:SetTitle( "Ares Misc." )
  1222. DermaPanel2:SetVisible( true )
  1223. DermaPanel2:SetDraggable( true )
  1224. DermaPanel2:ShowCloseButton( true )
  1225. DermaPanel2:MakePopup()
  1226.  
  1227. local TDMISC = vgui.Create( "DImage", DermaPanel2 )
  1228. TDMISC:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  1229. TDMISC:SetPos( 6, 25 )
  1230. TDMISC:SetSize( 368, 238 )
  1231.  
  1232. ------------------
  1233.  
  1234. local SomeCollapsibleCategoryM1 = vgui.Create( "DCollapsibleCategory", DermaPanel2 )
  1235. SomeCollapsibleCategoryM1:SetPos( 9, 32 )
  1236. SomeCollapsibleCategoryM1:SetSize( 362, 267 )
  1237. SomeCollapsibleCategoryM1:SetExpanded( true )
  1238. SomeCollapsibleCategoryM1:SetLabel( "Misc. Settings" )
  1239.  
  1240. CategoryListM1 = vgui.Create( "DPanelList" )
  1241. CategoryListM1:SetAutoSize( true )
  1242. CategoryListM1:SetSpacing( 5 )
  1243. CategoryListM1:EnableHorizontal( false )
  1244. CategoryListM1:EnableVerticalScrollbar( true )
  1245.  
  1246. SomeCollapsibleCategoryM1:SetContents( CategoryListM1 )
  1247.  
  1248. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1249. CategoryContentM1:SetText( "Bunny Hop" )
  1250. CategoryContentM1:SetConVar( "Ares_Misc_Bhop" )
  1251. CategoryContentM1:SizeToContents()
  1252. CategoryListM1:AddItem( CategoryContentM1 )
  1253.  
  1254. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1255. CategoryContentM1:SetText( "ULX Anti-Gag" )
  1256. CategoryContentM1:SetConVar( "Ares_Misc_UlxAntiGag" )
  1257. CategoryContentM1:SizeToContents()
  1258. CategoryListM1:AddItem( CategoryContentM1 )
  1259.  
  1260. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1261. CategoryContentM1:SetText( "Keypad 1.4 Hack" )
  1262. CategoryContentM1:SetConVar( "Ares_Misc_Keypad" )
  1263. CategoryContentM1:SizeToContents()
  1264. CategoryListM1:AddItem( CategoryContentM1 )
  1265.  
  1266. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1267. CategoryContentM1:SetText( "IP Logger + Displayer" )
  1268. CategoryContentM1:SetConVar( "Ares_Misc_LogIPs" )
  1269. CategoryContentM1:SizeToContents()
  1270. CategoryListM1:AddItem( CategoryContentM1 )
  1271.  
  1272. ----
  1273.  
  1274. --Nikes
  1275. local NikesSpeed = vgui.Create( "DNumSlider", DermaPanel2 )
  1276. NikesSpeed:SetText( "SH Speed" )
  1277. NikesSpeed:SetPos( 9.9, 215 )
  1278. NikesSpeed:SetMinMax( 1, 10 )
  1279. NikesSpeed:SetWide( 125 )
  1280. NikesSpeed:SetMouseInputEnabled( true )
  1281. NikesSpeed:SetValue( math.Round( GetConVarNumber( "Ares_SHSpeed" ) ) )
  1282. NikesSpeed:SetConVar( "Ares_SHSpeed" )
  1283.  
  1284. local PCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  1285. PCheckBoxL:SetPos( 27.9, 128 )
  1286. PCheckBoxL:SetText( "-SpeedHack-" )
  1287. PCheckBoxL:SetTextColor( Color( 255, 0, 0, 255 ) )
  1288. PCheckBoxL:SizeToContents()
  1289.  
  1290. --HostFrameRate
  1291. local HOSTCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  1292. HOSTCheckBox:SetPos( 9.9, 143 )
  1293. HOSTCheckBox:SetConVar( "Ares_HostFrameRate" )
  1294.  
  1295. local HOSTCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  1296. HOSTCheckBoxL:SetPos( 27.9, 143 )
  1297. HOSTCheckBoxL:SetText( "HostFrameRate" )
  1298. HOSTCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  1299. HOSTCheckBoxL:SizeToContents()
  1300.  
  1301. --HostTimeScale
  1302. local HOSTCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  1303. HOSTCheckBox:SetPos( 9.9, 164 )
  1304. HOSTCheckBox:SetConVar( "Ares_HostTimeScale" )
  1305.  
  1306. local HOSTCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  1307. HOSTCheckBoxL:SetPos( 27.9, 164 )
  1308. HOSTCheckBoxL:SetText( "HostTimeScale" )
  1309. HOSTCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  1310. HOSTCheckBoxL:SizeToContents()
  1311.  
  1312. --SpeedHack Cheats Off
  1313. local SHCOCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  1314. SHCOCheckBox:SetPos( 9.9, 185 )
  1315. SHCOCheckBox:SetConVar( "Ares_SH_CheatsOff" )
  1316.  
  1317. local SHCOCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  1318. SHCOCheckBoxL:SetPos( 27.9, 185 )
  1319. SHCOCheckBoxL:SetText( "SH Cheats to 0" )
  1320. SHCOCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  1321. SHCOCheckBoxL:SizeToContents()
  1322.  
  1323. end )
  1324.  
  1325. -------------------------------------------------------------------------------------------------------
  1326. -------------------------------------------------------------------------------------------------------
  1327.  
  1328. concommand.Add( "Ares_Menu_AimBot", function()
  1329.  
  1330. local DermaPanel3 = vgui.Create( "DFrame" )
  1331. DermaPanel3:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  1332. DermaPanel3:SetSize( 380, 267 )
  1333. DermaPanel3:SetTitle( "Ares Aimbot" )
  1334. DermaPanel3:SetVisible( true )
  1335. DermaPanel3:SetDraggable( true )
  1336. DermaPanel3:ShowCloseButton( true )
  1337. DermaPanel3:MakePopup()
  1338.  
  1339. local TDAIM = vgui.Create( "DImage", DermaPanel3 )
  1340. TDAIM:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  1341. TDAIM:SetPos( 6, 25 )
  1342. TDAIM:SetSize( 368, 238 )
  1343.  
  1344. ------------------
  1345.  
  1346. local SomeCollapsibleCategoryM1 = vgui.Create( "DCollapsibleCategory", DermaPanel3 )
  1347. SomeCollapsibleCategoryM1:SetPos( 9, 32 )
  1348. SomeCollapsibleCategoryM1:SetSize( 362, 267 )
  1349. SomeCollapsibleCategoryM1:SetExpanded( true )
  1350. SomeCollapsibleCategoryM1:SetLabel( "AimBot Settings" )
  1351.  
  1352. CategoryListM1 = vgui.Create( "DPanelList" )
  1353. CategoryListM1:SetAutoSize( true )
  1354. CategoryListM1:SetSpacing( 5 )
  1355. CategoryListM1:EnableHorizontal( false )
  1356. CategoryListM1:EnableVerticalScrollbar( true )
  1357.  
  1358. SomeCollapsibleCategoryM1:SetContents( CategoryListM1 )
  1359.  
  1360. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1361. CategoryContentM1:SetText( "No-Recoil" )
  1362. CategoryContentM1:SetConVar( "Ares_AimBot_NoRecoil" )
  1363. CategoryContentM1:SizeToContents()
  1364. CategoryListM1:AddItem( CategoryContentM1 )
  1365.  
  1366. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1367. CategoryContentM1:SetText( "No-Spread" )
  1368. CategoryContentM1:SetConVar( "Ares_AimBot_Nospread" )
  1369. CategoryContentM1:SizeToContents()
  1370. CategoryListM1:AddItem( CategoryContentM1 )
  1371.  
  1372. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1373. CategoryContentM1:SetText( "Ignore Steam Friends" )
  1374. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreSteamFriends" )
  1375. CategoryContentM1:SizeToContents()
  1376. CategoryListM1:AddItem( CategoryContentM1 )
  1377.  
  1378. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1379. CategoryContentM1:SetText( "Ignore Admins" )
  1380. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreAdmins" )
  1381. CategoryContentM1:SizeToContents()
  1382. CategoryListM1:AddItem( CategoryContentM1 )
  1383.  
  1384. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1385. CategoryContentM1:SetText( "Ignore Traitor Friends" )
  1386. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreTraitorFriends" )
  1387. CategoryContentM1:SizeToContents()
  1388. CategoryListM1:AddItem( CategoryContentM1 )
  1389.  
  1390. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1391. CategoryContentM1:SetText( "AutoShoot" )
  1392. CategoryContentM1:SetConVar( "Ares_Aimbot_AutoShoot" )
  1393. CategoryContentM1:SizeToContents()
  1394. CategoryListM1:AddItem( CategoryContentM1 )
  1395.  
  1396. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  1397. CategoryContentM1:SetText( "Friendly Fire" )
  1398. CategoryContentM1:SetConVar( "Ares_AimBot_FriendlyFire" )
  1399. CategoryContentM1:SizeToContents()
  1400. CategoryListM1:AddItem( CategoryContentM1 )
  1401.  
  1402. end )
  1403.  
  1404. ------------------------------------------------------------
  1405.  
  1406. local function CursorPos( x, y, w, h )
  1407. local cpx, cpy = gui.MousePos()
  1408.  
  1409. if ( cpx > x ) and ( cpx < x + w ) and ( cpy > y ) and ( cpy < y + h ) then
  1410. return true
  1411. end
  1412. return false
  1413. end
  1414.  
  1415. local Stopper = 0
  1416.  
  1417. --[[
  1418. local MyFPS = ""
  1419.  
  1420. timer.Create( "MyFPS1", 1, 0, function()
  1421. MyFPS = math.Round( 1 / FrameTime() )
  1422. end )
  1423.  
  1424. local Slogan = "Boom. Headshot."
  1425. local Slogan1 = { "It's Over... Again...", "Boom. Headshot.", "White Flags Up... Bitches.", "50 Bullets... 50 Players..." }
  1426.  
  1427. timer.Create( "Slogans1", 10, 0, function()
  1428. for i = 1, 4 do
  1429. i = math.random( i )
  1430. Slogan = Slogan1[i]
  1431. end
  1432. end )
  1433. ]]--
  1434. local function AresMenu()
  1435. if( LocalPlayer():GetActiveWeapon() == "Camera" ) then return end
  1436. if AresHUDDraw == 0 then return end
  1437.  
  1438. surface.SetTexture( up )
  1439. surface.SetDrawColor( Color( 0, 0, 0, 250 / 2 ) )
  1440. surface.DrawTexturedRect( 0, 0, ScrW(), 25 )
  1441.  
  1442. draw.RoundedBox( 2, ScrW() - 1265, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  1443. draw.SimpleText( "Ares AimBot", "Default", ScrW() - 1257, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1444.  
  1445. if CursorPos( ScrW() - 1265, 2.5, 75, 17 ) then
  1446. draw.RoundedBox( 0, ScrW() - 1265, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  1447. if input.IsMouseDown( MOUSE_LEFT ) then
  1448. RunConsoleCommand( "Ares_Menu_AimBot" )
  1449. local MouseX=ScrW()/2
  1450. local MouseY=ScrH()/2
  1451. gui.SetMousePos(MouseX,MouseY)
  1452. draw.RoundedBox( 0, ScrW() - 1265, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  1453. end
  1454. end
  1455.  
  1456. -----
  1457.  
  1458. draw.RoundedBox( 2, ScrW() - 1150, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  1459. draw.SimpleText( "Ares ESP", "Default", ScrW() - 1135, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1460.  
  1461. if CursorPos( ScrW() - 1150, 2.5, 75, 17 ) then
  1462. draw.RoundedBox( 0, ScrW() - 1150, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  1463. if input.IsMouseDown( MOUSE_LEFT ) then
  1464. RunConsoleCommand( "Ares_Menu_ESP" )
  1465. local MouseX=ScrW()/2
  1466. local MouseY=ScrH()/2
  1467. gui.SetMousePos(MouseX,MouseY)
  1468. draw.RoundedBox( 0, ScrW() - 1150, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  1469. end
  1470. end
  1471.  
  1472. --
  1473.  
  1474. draw.RoundedBox( 2, ScrW() - 1035, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  1475. draw.SimpleText( "Ares Misc.", "Default", ScrW() - 1020, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1476.  
  1477. if CursorPos( ScrW() - 1035, 2.5, 75, 17 ) then
  1478. draw.RoundedBox( 0, ScrW() - 1035, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  1479. if input.IsMouseDown( MOUSE_LEFT ) then
  1480. RunConsoleCommand( "Ares_Menu_Misc" )
  1481. local MouseX=ScrW()/2
  1482. local MouseY=ScrH()/2
  1483. gui.SetMousePos(MouseX,MouseY)
  1484. draw.RoundedBox( 0, ScrW() - 1035, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  1485. end
  1486. end
  1487.  
  1488. ----
  1489.  
  1490. surface.CreateFont( "Trebuchet24", 40, 1000, true, false, "AresDefault2" )
  1491.  
  1492. //draw.SimpleText( "FPS: " .. MyFPS, "TabLarge", ScrW() - 297, 12, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1493.  
  1494. //draw.SimpleText( tostring( os.date( "| Date: %B %d, 20%y | Time: %I:%M:%S %p" ) ), "TabLarge", ScrW() - 247, 12, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1495.  
  1496. ----
  1497. //draw.SimpleText( "| Current Map: " .. game.GetMap() .. " |", "TabLarge", ScrW() - 920, 5, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1498.  
  1499. draw.SimpleText( "Ares", "AresDefault2", ScrW() - 700, 12, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1500.  
  1501. //draw.SimpleText( Slogan, "TabLarge", ScrW() - 630, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1502.  
  1503. //draw.SimpleText( "| GMod Name: " .. LocalPlayer():Nick() .. " |", "TabLarge", ScrW() - 480, 5, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1504.  
  1505. //draw.SimpleText( "| Cheats: ", "TabLarge", ScrW() - 480, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1506. //draw.SimpleText( CheatsOn, "TabLarge", ScrW() - 480 + 55, 18, CheatColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1507. //draw.SimpleText( "|", "TabLarge", ScrW() - 480 + 73, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  1508.  
  1509. end
  1510. hook.Add( "HUDPaint", "AresMenu1", AresMenu )
  1511.  
  1512. concommand.Add( "+Ares_Pointer", function()
  1513. gui.EnableScreenClicker( true )
  1514. AresHUDDraw = 1
  1515. end )
  1516.  
  1517. concommand.Add( "-Ares_Pointer", function()
  1518. gui.EnableScreenClicker( false )
  1519. AresHUDDraw = 0
  1520. end )
  1521.  
  1522. /* Anti-detection */
  1523. function file.Exists( fn, ad )
  1524. if( !fn ) then return end
  1525. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1526. return
  1527. end
  1528. return oF.Exists( fn, ad )
  1529. end
  1530.  
  1531. function file.Read( fn, ad )
  1532. if( !fn ) then return end
  1533. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1534. return
  1535. end
  1536. return oF.Read( fn, ad )
  1537. end
  1538.  
  1539. function file.Size( fn )
  1540. if( !fn ) then return end
  1541. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1542. return -1
  1543. end
  1544. return oF.Size( fn )
  1545. end
  1546.  
  1547. function file.Time( fn )
  1548. if( !fn ) then return end
  1549. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1550. return 0
  1551. end
  1552. return oF.Time( fn )
  1553. end
  1554.  
  1555. function file.Find( fn )
  1556. local tab = oF.Find( fn )
  1557. for k, v in pairs( tab ) do
  1558. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1559. table.remove( tab, k )
  1560. end
  1561. end
  1562. return tab
  1563. end
  1564.  
  1565. function file.FindInLua( fn )
  1566. local tab = oF.FindInLua( fn )
  1567. for k, v in pairs( tab ) do
  1568. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  1569. table.remove( tab, k )
  1570. end
  1571. end
  1572. return tab
  1573. end
  1574.  
  1575. ----------------------
  1576.  
  1577. --CVar Spoofer--
  1578. //Credits to SethHackv2
  1579.  
  1580. local oCVGI = _R.ConVar.GetInt
  1581. local oCVGB = _R.ConVar.GetBool
  1582. local oGCVN = GetConVarNumber
  1583. local oGCVS = GetConVarString
  1584.  
  1585. function GetConVarNumber( cvar )
  1586. if( cvar == "sv_cheats" ) then return 0 end
  1587. if( cvar == "host_timescale" ) then return 1 end
  1588. if( cvar == "host_framerate" ) then return 0 end
  1589. if( cvar == "sv_allow_voice_from_file" ) then return 0 end
  1590. if( cvar == "r_drawothermodels" ) then return 1 end
  1591. return oGCVN( cvar )
  1592. end
  1593.  
  1594. function GetConVarString( cvar )
  1595. if( cvar == "sv_cheats" ) then return "0" end
  1596. if( cvar == "host_timescale" ) then return "1" end
  1597. if( cvar == "host_framerate" ) then return "0" end
  1598. if( cvar == "sv_allow_voice_from_file" ) then return "0" end
  1599. if( cvar == "r_drawothermodels" ) then return "1" end
  1600. return oGCVS( cvar )
  1601. end
  1602.  
  1603. function _R.ConVar.GetInt( cvar )
  1604. if( cvar:GetName() == "sv_cheats" ) then return 0 end
  1605. if( cvar:GetName() == "host_timescale" ) then return 1 end
  1606. if( cvar:GetName() == "host_framerate" ) then return 0 end
  1607. if( cvar:GetName() == "sv_allow_voice_from_file" ) then return 0 end
  1608. if( cvar:GetName() == "r_drawothermodels" ) then return 1 end
  1609. return oCVGI( cvar )
  1610. end
  1611.  
  1612. function _R.ConVar.GetBool( cvar )
  1613. if( cvar:GetName() == "sv_cheats" ) then return false end
  1614. if( cvar:GetName() == "host_timescale" ) then return true end
  1615. if( cvar:GetName() == "host_framerate" ) then return false end
  1616. if( cvar:GetName() == "sv_allow_voice_from_file" ) then return false end
  1617. if( cvar:GetName() == "r_drawothermodels" ) then return true end
  1618. return oCVGB( cvar )
  1619. end
  1620.  
  1621. function file.Read( fn, ad )
  1622. if( !fn ) then return end
  1623. if( oSR.find( fn, "gmod_op.lua" ) || oSR.find( fn, "jell.dll" ) || oSR.find( fn, "ares_core.dll" ) || oSR.find( fn, "ares_fvar.dll" ) || oSR.find( fn, "clua.dll" ) ) then
  1624. return
  1625. end
  1626. return oF.Read( fn, ad )
  1627. end
  1628.  
  1629. ----
  1630.  
  1631. local GrenadeType
  1632.  
  1633. hook.Add( "HUDPaint", "C4UpdateAres2", function()
  1634. for k1, v1 in pairs( ents.GetAll() ) do
  1635. if ValidEntity( v1 ) then
  1636. if v1:GetClass() == "ttt_confgrenade_proj" or v1:GetClass() == "ttt_firegrenade_proj" or v1:GetClass() == "ttt_smokegrenade_proj" then
  1637.  
  1638. local GrenadePos = ( v1:EyePos() ):ToScreen()
  1639.  
  1640. if v1:GetClass() == "ttt_confgrenade_proj" then
  1641. GrenadeType = "Discombob"
  1642. elseif v1:GetClass() == "ttt_firegrenade_proj" then
  1643. GrenadeType = "Incendiary"
  1644. elseif v1:GetClass() == "ttt_smokegrenade_proj" then
  1645. GrenadeType = "Smoke"
  1646. end
  1647.  
  1648. draw.SimpleText( GrenadeType .. " | " .. string.FormattedTime( math.max( 0, v1:GetExplodeTime() - CurTime() ), "%02i:%02i" ), "ChatFont", GrenadePos.x, GrenadePos.y, Color( 255, 150, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1649. end
  1650. end
  1651. end
  1652.  
  1653. -----------
  1654.  
  1655. for k, v in pairs( ents.FindByClass( "ttt_c4" ) ) do
  1656. if ValidEntity( v ) then
  1657.  
  1658. if GetConVarNumber( "Ares_ESP_C4Detection" ) >= 1 then
  1659.  
  1660. local C4ESPPos = ( v:EyePos() ):ToScreen()
  1661.  
  1662. if !v:GetArmed() then
  1663. draw.SimpleText( "C4", "TabLarge", C4ESPPos.x, C4ESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1664. end
  1665.  
  1666. if v:GetArmed() then
  1667. draw.SimpleText( "C4 | TIME LEFT: " .. string.FormattedTime( math.max( 0, v:GetExplodeTime() - CurTime() ), "%02i:%02i" ), "TabLarge", C4ESPPos.x, C4ESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1668. end
  1669. end
  1670.  
  1671. if v:GetPos():Distance( LocalPlayer():GetPos() ) < 256 then
  1672. draw.SimpleTextOutlined( "C4 | DISARM ZONE", "TraitorState", ScrW() / 2 - 115, ScrH()/2 + 300, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 255, 255, 255, 255 ) )
  1673. end
  1674.  
  1675. if v:GetPos():Distance( LocalPlayer():GetPos() ) < 1000 and v:GetArmed() then
  1676. draw.SimpleTextOutlined( "*WARNING* C4 ARMED | IN BLAST ZONE", "TraitorState", ScrW() / 2 - 235, ScrH()/2 + 335, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 255, 255, 255, 255 ) )
  1677. end
  1678. end
  1679. end
  1680. end )//Ares
  1681. //Coded By Fisheater
  1682. //March 6, 2011
  1683.  
  1684. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1685.  
  1686. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1687.  
  1688. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1689.  
  1690. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1691.  
  1692. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1693.  
  1694. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1695.  
  1696. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1697.  
  1698. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1699.  
  1700. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1701.  
  1702. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1703.  
  1704. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1705.  
  1706. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1707.  
  1708. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1709.  
  1710. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1711.  
  1712. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1713.  
  1714. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1715.  
  1716. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1717.  
  1718. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1719.  
  1720. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1721.  
  1722. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1723.  
  1724. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1725.  
  1726. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1727.  
  1728. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1729.  
  1730. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1731.  
  1732. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1733.  
  1734. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1735.  
  1736. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1737.  
  1738. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1739.  
  1740. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1741.  
  1742. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1743.  
  1744. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1745.  
  1746. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1747.  
  1748. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1749.  
  1750. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1751.  
  1752. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1753.  
  1754. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1755.  
  1756. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1757.  
  1758. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1759.  
  1760. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1761.  
  1762. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1763.  
  1764. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1765.  
  1766. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1767.  
  1768. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1769.  
  1770. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1771.  
  1772. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1773.  
  1774. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1775.  
  1776. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1777.  
  1778. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1779.  
  1780. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1781.  
  1782. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1783.  
  1784. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1785.  
  1786. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1787.  
  1788. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1789.  
  1790. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1791.  
  1792. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1793.  
  1794. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1795.  
  1796. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1797.  
  1798. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1799.  
  1800. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1801.  
  1802. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1803.  
  1804. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1805.  
  1806. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1807.  
  1808. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1809.  
  1810. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1811.  
  1812. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1813.  
  1814. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1815.  
  1816. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1817.  
  1818. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1819.  
  1820. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1821.  
  1822. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1823.  
  1824. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1825.  
  1826. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1827.  
  1828. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1829.  
  1830. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1831.  
  1832. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1833.  
  1834. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1835.  
  1836. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1837.  
  1838. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1839.  
  1840. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1841.  
  1842. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1843.  
  1844. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1845.  
  1846. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1847.  
  1848. //CONGRATULATIONS ON WASTING YOUR LIFE TO FIND THE SOURCE CODE OF THIS HACK
  1849.  
  1850.  
  1851. if SERVER then return end
  1852.  
  1853. ///////////////
  1854. //--ConVars--//
  1855. ///////////////
  1856.  
  1857. //ESP
  1858. CreateClientConVar( "Ares_ESP_Player", 0, true, false )
  1859. CreateClientConVar( "Ares_ESP_Health", 0, true, false )
  1860. CreateClientConVar( "Ares_ESP_ShowAll", 0, true, false )
  1861. CreateClientConVar( "Ares_ESP_NPC", 0, true, false )
  1862. CreateClientConVar( "Ares_ESP_MoneyPrinter", 0, true, false )
  1863. CreateClientConVar( "Ares_ESP_Money", 0, true, false )
  1864. CreateClientConVar( "Ares_ESP_Shipment", 0, true, false )
  1865. CreateClientConVar( "Ares_ESP_Weapons", 0, true, false )
  1866. --
  1867. //MISC
  1868. CreateClientConVar( "Ares_Misc_Bhop", 0, true, false )
  1869. CreateClientConVar( "Ares_Misc_Keypad", 0, true, false )
  1870. CreateClientConVar( "Ares_Misc_LogIPs", 0, true, false )
  1871. CreateClientConVar( "Ares_Misc_ULXAntiGag", 0, true, false )
  1872. --
  1873. //TTT
  1874. CreateClientConVar( "Ares_Traitor", 0, true, false )
  1875. CreateClientConVar( "Ares_ESP_C4Detection", 1, true, false )
  1876. --
  1877. //SH
  1878. CreateClientConVar( "Ares_SlowSpeedHack", 0.15, true, false )
  1879. CreateClientConVar( "Ares_SH_CheatsOff", 1, true, false )
  1880. CreateClientConVar( "Ares_SHSpeed", 7, true, false )
  1881. CreateClientConVar( "Ares_HostFrameRate", 1, true, false )
  1882. CreateClientConVar( "Ares_HostTimeScale", 0, true, false )
  1883. --
  1884. //AIM
  1885. //CreateClientConVar( "Ares_AimBot_SmoothAim", 0, true, false )
  1886. //CreateClientConVar( "Ares_AimBot_SmoothAimSpeed", 2, true, false )
  1887. CreateClientConVar( "Ares_AimBot_Autoshoot", 0, true, false )
  1888. CreateClientConVar( "Ares_AimBot_NoRecoil", 1, true, false )
  1889. CreateClientConVar( "Ares_AimBot_NoSpread", 1, true, false )
  1890. CreateClientConVar( "Ares_AimBot_IgnoreSteamFriends", 1, true, false )
  1891. CreateClientConVar( "Ares_AimBot_IgnoreAdmins", 1, true, false )
  1892. CreateClientConVar( "Ares_AimBot_FriendlyFire", 1, true, false )
  1893. CreateClientConVar( "Ares_AimBot_IgnoreTraitorFriends", 1, true, false )
  1894.  
  1895. local AresHUDDraw = 0
  1896.  
  1897. local oC = table.Copy( concommand )
  1898. local oT = table.Copy( timer )
  1899. local oH = table.Copy( hook )
  1900. local oCV = table.Copy( cvars )
  1901. local oS = table.Copy( sql )
  1902. local oSR = table.Copy( string )
  1903. local oM = table.Copy( math )
  1904. local oF = table.Copy( file )
  1905. local oD = table.Copy( debug )
  1906. local oHTTP = table.Copy( http )
  1907. local oUM = table.Copy( usermessage )
  1908.  
  1909. ---------------------------------------------------------------------------------------------------------------------------------
  1910.  
  1911. //ESP
  1912. hook.Add( "HUDPaint", "AresESPSettings", function()
  1913.  
  1914. if GetConVarNumber( "Ares_ESP_Player" ) >= 1 then
  1915. for k, v in pairs( player.GetAll() ) do
  1916. if ValidEntity( v ) then
  1917. if v ~= LocalPlayer() then
  1918. local PlyESPPos = ( v:EyePos() ):ToScreen()
  1919. if v:Alive() and v:Team() ~= TEAM_SPECTATOR then
  1920. draw.SimpleText( v:Nick(), "TabLarge", PlyESPPos.x, PlyESPPos.y, team.GetColor( v:Team() ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1921.  
  1922. if v:IsAdmin() then
  1923. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  1924. draw.SimpleText( "-Admin-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 32, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1925. else
  1926. draw.SimpleText( "-Admin-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1927. end
  1928. end
  1929.  
  1930. if !v:IsAdmin() then
  1931. if v:GetFriendStatus() == "friend" then
  1932. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  1933. draw.SimpleText( "-Friend-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 32, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1934. else
  1935. draw.SimpleText( "-Friend-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1936. end
  1937. end
  1938. end
  1939.  
  1940. local colorhp
  1941.  
  1942. if GetConVarNumber( "Ares_ESP_Health" ) >= 1 then
  1943. if v ~= LocalPlayer() then
  1944.  
  1945. local hp = ( v:Health() ) / 2
  1946. local PlyESPPos = ( v:EyePos() ):ToScreen()
  1947.  
  1948. if v:Health() >= 75 then
  1949. colorhp = Color( 0, 255, 0, 255 )
  1950. elseif v:Health() >= 35 and v:Health() < 75 then
  1951. colorhp = Color( 255, 255, 0, 255 )
  1952. elseif v:Health() < 35 then
  1953. colorhp = Color( 255, 0, 0, 255 )
  1954. end
  1955. if v:Team() ~= TEAM_SPECTATOR and v:Alive() and v:Health() > 0 then
  1956. draw.RoundedBox( 4, PlyESPPos.x - 23, PlyESPPos.y + 22, hp, 5, colorhp )
  1957. end
  1958. end
  1959. end
  1960.  
  1961. else
  1962.  
  1963. if GetConVarNumber( "Ares_ESP_ShowAll" ) >= 1 then
  1964. draw.SimpleText( "-Dead-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1965. draw.SimpleText( v:Nick(), "TabLarge", PlyESPPos.x, PlyESPPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1966. end
  1967. end
  1968. end
  1969. end
  1970. end
  1971. end
  1972.  
  1973. if GetConVarNumber( "Ares_ESP_NPC" ) >= 1 then
  1974. for k, v in pairs( ents.GetAll() ) do
  1975. if ValidEntity( v ) then
  1976. if v:IsNPC() then
  1977. local NpcESPPos = ( v:EyePos() ):ToScreen()
  1978. draw.SimpleText( v:GetClass(), "TabLarge", NpcESPPos.x, NpcESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1979. end
  1980. end
  1981. end
  1982. end
  1983.  
  1984. //MoneyPrinterESP
  1985. if GetConVarNumber( "Ares_ESP_MoneyPrinter" ) >= 1 then
  1986. for k, v in pairs( ents.GetAll() ) do
  1987. if ValidEntity( v ) then
  1988. if v:GetClass() == "money_printer" or v:GetClass() == "reg_money_printer" or v:GetClass() == "platinum_printer" or v:GetClass() == "golden_printer" or v:GetClass() == "zz_money_printer" or v:GetClass() == "money_printer_commercial" or v:GetClass() == "money_printer_industrial" then
  1989. MoneyPrinterPos = v:EyePos():ToScreen()
  1990. draw.SimpleText( v:GetClass(), "TabLarge", MoneyPrinterPos.x, MoneyPrinterPos.y, Color( 255, 150, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  1991. end
  1992. end
  1993. end
  1994. end
  1995.  
  1996. if GetConVarNumber( "Ares_ESP_Money" ) >= 1 then
  1997. for k, v in pairs( ents.GetAll() ) do
  1998. if ValidEntity( v ) then
  1999. if v:GetClass() == "spawned_money" then
  2000. MoneyPos = v:EyePos():ToScreen()
  2001. draw.SimpleText( "Money: $" .. v.dt.amount, "TabLarge", MoneyPos.x, MoneyPos.y, Color( 0, 255, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  2002. end
  2003. end
  2004. end
  2005. end
  2006.  
  2007. //ShipmentESP
  2008.  
  2009. if GetConVarNumber( "Ares_ESP_Shipment" ) >= 1 then
  2010. for k, v in pairs( ents.GetAll() ) do
  2011. if ValidEntity( v ) then
  2012. if v:GetClass() == "spawned_shipment" && v:GetMoveType() != 0 then
  2013. ShipmentPos = v:EyePos():ToScreen()
  2014.  
  2015. local content = v.dt.contents
  2016. local contents = CustomShipments[content]
  2017. contents = contents.name
  2018.  
  2019. draw.SimpleText( "Shipment: " .. contents, "TabLarge", ShipmentPos.x, ShipmentPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  2020. draw.SimpleText( "Count: " .. v.dt.count, "TabLarge", ShipmentPos.x, ShipmentPos.y + 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  2021. end
  2022. end
  2023. end
  2024. end
  2025.  
  2026. //Weapons
  2027.  
  2028. if GetConVarNumber( "Ares_ESP_Weapons" ) >= 1 then
  2029.  
  2030. for k, v in pairs( ents.GetAll() ) do
  2031. if ValidEntity( v ) then
  2032. if v:IsWeapon() && v:GetMoveType() != 0 then
  2033. if string.sub( v:GetClass(), 1, 7 ) == "weapon_" then
  2034.  
  2035. WeaponPos = v:EyePos():ToScreen()
  2036.  
  2037. draw.SimpleText( v:GetClass(), "TabLarge", WeaponPos.x, WeaponPos.y, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  2038. end
  2039. end
  2040. end
  2041. end
  2042. end
  2043. end )
  2044.  
  2045. ---------------------------------------------------------------------------------------------------------------------------------
  2046.  
  2047. //[TH]Core
  2048. //Coded by Fisheater
  2049.  
  2050. timer.Simple( 3, function()
  2051. if ( gmod.GetGamemode().Name ) == "Trouble in Terrorist Town" then
  2052.  
  2053. local Traitors = {}
  2054. local TWeapons = { "weapon_ttt_knife", "weapon_ttt_c4" }
  2055. local TWeapons2 = { "weapon_ttt_push", "weapon_ttt_phammer" }
  2056. local TWeapons3 = { "weapon_ttt_sipistol", "weapon_ttt_flaregun" }
  2057. local TWeapons4 = { "(Disguise)", "weapon_ttt_radio" }
  2058. local UsedWeapons = {}
  2059. local MapWeapons = {}
  2060.  
  2061. local function IsATraitor( ply )
  2062. for k, v in pairs( Traitors ) do
  2063. if v == ply then
  2064. return true
  2065. else
  2066. return false
  2067. end
  2068. end
  2069. end
  2070.  
  2071. local Stopper = 0
  2072.  
  2073. timer.Create( tostring( math.random( 1, 1000 ) ), 0.8, 0, function()
  2074.  
  2075. if GetConVarNumber( "Ares_Traitor" ) >= 1 then
  2076. if !IsATraitor( ply ) then
  2077. for k, v in pairs( ents.FindByClass( "player" ) ) do
  2078. if ValidEntity( v ) then
  2079. if (!v:IsDetective()) then
  2080. if v:Team() ~= TEAM_SPECTATOR then
  2081.  
  2082. for wepk, wepv in pairs( TWeapons || TWeapons2 || Tweapons3 || TWeapons4 ) do
  2083. for entk, entv in pairs( ents.FindByClass( wepv ) ) do
  2084. if ValidEntity( entv ) then
  2085. cookie.Set( entv, 100 - wepk )
  2086. if !table.HasValue( UsedWeapons, cookie.GetNumber( entv ) ) then
  2087. if !table.HasValue( MapWeapons, cookie.GetNumber( entv ) ) then
  2088. local EntPos = ( entv:GetPos() - Vector( 0, 0, 35 ) )
  2089.  
  2090. if entv:GetClass() == wepv then
  2091.  
  2092. if v:GetPos():Distance( EntPos ) > 1 then
  2093. if !table.HasValue( MapWeapons, cookie.GetNumber( entv ) ) then
  2094. table.insert( MapWeapons, cookie.GetNumber( entv ) )
  2095. end
  2096. end
  2097.  
  2098. if v:GetPos():Distance( EntPos ) <= 1 then
  2099. table.insert( Traitors, v )
  2100.  
  2101. if Stopper == 0 then
  2102.  
  2103. chat.AddText(
  2104. Color(153,153,152,255), "[Ares] ",
  2105. Color(255,0,0,255), v:Nick(),
  2106. Color(255,0,0,255), " has the traitor weapon: ",
  2107. Color(255,0,0,255), entv:GetClass() )
  2108.  
  2109. Stopper = Stopper + 1
  2110.  
  2111. timer.Simple( 1.5, function()
  2112. Stopper = 0
  2113. end )
  2114. end
  2115.  
  2116. if !table.HasValue( UsedWeapons, cookie.GetNumber( entv ) ) then
  2117. table.insert( UsedWeapons, cookie.GetNumber( entv ) )
  2118. end
  2119. end
  2120. end
  2121. end
  2122. end
  2123. end
  2124. end
  2125. end
  2126. end
  2127. end
  2128. end
  2129. end
  2130. end
  2131. end
  2132. end )
  2133.  
  2134. hook.Add( "HUDPaint", "DrawESPTraitor", function()
  2135. if GetConVarNumber( "Ares_Traitor" ) >=1 then
  2136. for k, v in pairs( Traitors ) do
  2137. if ValidEntity( v ) then
  2138. if v:Team() ~= TEAM_SPECTATOR then
  2139. if v ~= LocalPlayer() then
  2140. if ( !v:IsDetective() ) then
  2141. local PlyESPPos = ( v:GetPos() + Vector( 0, 0, 65 ) ):ToScreen()
  2142. draw.SimpleText( "-Traitor-", "TabLarge", PlyESPPos.x, PlyESPPos.y - 13, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  2143. end
  2144. end
  2145. end
  2146. end
  2147. end
  2148. end
  2149. end )
  2150.  
  2151. hook.Add( "TTTPrepareRound", "ResetItAll42", function()
  2152. timer.Simple( 2, function()
  2153. for k, v in pairs( Traitors ) do
  2154. table.remove( Traitors, k )
  2155. Traitors = {}
  2156. end
  2157. for k, v in pairs( UsedWeapons ) do
  2158. table.remove( UsedWeapons, k )
  2159. UsedWeapons = {}
  2160. end
  2161. for k, v in pairs( MapWeapons ) do
  2162. table.remove( MapWeapons, k )
  2163. MapWeapons = {}
  2164. end
  2165. end )
  2166. end )
  2167. end
  2168. end )
  2169.  
  2170. ---------------------------------------------------------------------------------------------------------------------------------
  2171.  
  2172. local function AresMaterial()
  2173.  
  2174. local Texture = {
  2175. ["$basetexture"] = "models/debug/debugwhite",
  2176. ["$model"] = 1,
  2177. ["$translucent"] = 1,
  2178. ["$alpha"] = 1,
  2179. ["$nocull"] = 1,
  2180. ["$ignorez"] = 1
  2181. }
  2182.  
  2183. local material = CreateMaterial( "Ares_Solid", "VertexLitGeneric", Texture )
  2184.  
  2185. return material
  2186.  
  2187. end
  2188.  
  2189. CreateClientConVar( "Ares_ESP_Chams", 1, true, false )
  2190.  
  2191. local function AresChams()
  2192. local Div = ( 1 / 255 )
  2193. if GetConVarNumber( "Ares_ESP_Chams" ) >= 1 then
  2194. for k, v in pairs( player.GetAll() ) do
  2195. if ValidEntity( v ) and v:Health() > 0 || v:Alive() and v:Team() != TEAM_SPECTATOR then
  2196. cam.Start3D( EyePos(), EyeAngles() )
  2197. local TCol2 = team.GetColor( v:Team() )
  2198. local m = AresMaterial()
  2199. render.SuppressEngineLighting( true )
  2200. render.SetColorModulation( ( TCol2.r * Div ), ( TCol2.g * Div ), ( TCol2.b * Div ) )
  2201. SetMaterialOverride( m )
  2202. v:DrawModel()
  2203. render.SuppressEngineLighting( false )
  2204. render.SetColorModulation( 1, 1, 1 )
  2205. SetMaterialOverride()
  2206. v:DrawModel()
  2207. cam.End3D()
  2208. end
  2209. end
  2210. end
  2211. end
  2212. hook.Add( "RenderScreenspaceEffects", "AresChams", AresChams )
  2213.  
  2214. ------------------------------------------------------------------------
  2215.  
  2216. //Not Made By Me
  2217. //Credits to Jinto and blackops7799
  2218.  
  2219. local convar = CreateClientConVar( "Ares_ESP_L4DGlow", "1", true )
  2220. local teamcolors = CreateClientConVar( "Ares_ESP_L4D_TeamColors", "1", true )
  2221. local passes = CreateClientConVar( "Ares_ESP_L4D_Passes", "3", true )
  2222.  
  2223. local MaterialBlurX = Material( "pp/blurx" )
  2224. local MaterialBlurY = Material( "pp/blury" )
  2225. local MaterialWhite = CreateMaterial( "WhiteMaterial", "VertexLitGeneric", {
  2226. ["$basetexture"] = "color/white",
  2227. ["$vertexalpha"] = "1",
  2228. ["$model"] = "1",
  2229. } )
  2230. local MaterialComposite = CreateMaterial( "CompositeMaterial", "UnlitGeneric", {
  2231. ["$basetexture"] = "_rt_FullFrameFB",
  2232. ["$additive"] = "1",
  2233. } )
  2234.  
  2235. // we need two render targets, if you don't want to create them yourself, you can
  2236. local RT1 = render.GetBloomTex0()
  2237. local RT2 = render.GetBloomTex1()
  2238.  
  2239. /*------------------------------------
  2240. RenderGlow()
  2241. ------------------------------------*/
  2242. local function RenderGlow( entity )
  2243.  
  2244. // tell the stencil buffer we're going to write a value of one wherever the model
  2245. // is rendered
  2246. render.SetStencilEnable( true )
  2247. render.SetStencilFailOperation( STENCILOPERATION_KEEP )
  2248. render.SetStencilZFailOperation( STENCILOPERATION_REPLACE )
  2249. render.SetStencilPassOperation( STENCILOPERATION_REPLACE )
  2250. render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_ALWAYS )
  2251. render.SetStencilWriteMask( 1 )
  2252. render.SetStencilReferenceValue( 1 )
  2253.  
  2254. // this uses a small hack to render ignoring depth while not drawing color
  2255. // i couldn't find a function in the engine to disable writing to the color channels
  2256. // i did find one for shaders though, but I don't feel like writing a shader for this.
  2257. cam.IgnoreZ( true )
  2258. render.SetBlend( 0 )
  2259. SetMaterialOverride( MaterialWhite )
  2260. entity:DrawModel()
  2261. SetMaterialOverride()
  2262. render.SetBlend( 1 )
  2263. cam.IgnoreZ( false )
  2264.  
  2265. local w, h = ScrW(), ScrH()
  2266.  
  2267. // draw into the white texture
  2268. local oldRT = render.GetRenderTarget()
  2269.  
  2270. render.SetRenderTarget( RT1 )
  2271.  
  2272. render.SetViewPort( 0, 0, RT1:GetActualWidth(), RT1:GetActualHeight() )
  2273.  
  2274. cam.IgnoreZ( true )
  2275.  
  2276. render.SuppressEngineLighting( true )
  2277.  
  2278. if teamcolors:GetBool() and entity:IsPlayer() then
  2279.  
  2280. local color = team.GetColor( entity:Team() )
  2281. render.SetColorModulation( color.r/255, color.g/255, color.b/255 )
  2282.  
  2283. elseif entity:IsPlayer() then
  2284.  
  2285. local scale = math.Clamp( entity:Health() / 100, 0, 1 )
  2286. local r,g,b = (255 - scale * 255), (55 + scale * 200), (50)
  2287. render.SetColorModulation( r/255, g/255, b/255 )
  2288.  
  2289. else
  2290.  
  2291. render.SetColorModulation( 1, 165/255, 0 )
  2292.  
  2293. end
  2294.  
  2295. SetMaterialOverride( MaterialWhite )
  2296. entity:DrawModel()
  2297. SetMaterialOverride()
  2298.  
  2299. render.SetColorModulation( 1, 1, 1 )
  2300. render.SuppressEngineLighting( false )
  2301.  
  2302. cam.IgnoreZ( false )
  2303.  
  2304. render.SetViewPort( 0, 0, w, h )
  2305. render.SetRenderTarget( oldRT )
  2306.  
  2307. // don't need this for the next pass
  2308. render.SetStencilEnable( false )
  2309.  
  2310. end
  2311.  
  2312. /*------------------------------------
  2313. RenderScene()
  2314. ------------------------------------*/
  2315. hook.Add( "RenderScene", "ResetGlow", function( Origin, Angles )
  2316.  
  2317. local oldRT = render.GetRenderTarget()
  2318. render.SetRenderTarget( RT1 )
  2319. render.Clear( 0, 0, 0, 255, true )
  2320. render.SetRenderTarget( oldRT )
  2321.  
  2322. end )
  2323.  
  2324. /*------------------------------------
  2325. RenderScreenspaceEffects()
  2326. ------------------------------------*/
  2327. hook.Add( "RenderScreenspaceEffects", "CompositeGlow", function()
  2328.  
  2329. MaterialBlurX:SetMaterialTexture( "$basetexture", RT1 )
  2330. MaterialBlurY:SetMaterialTexture( "$basetexture", RT2 )
  2331. MaterialBlurX:SetMaterialFloat( "$size", 2 )
  2332. MaterialBlurY:SetMaterialFloat( "$size", 2 )
  2333.  
  2334. local oldRT = render.GetRenderTarget()
  2335.  
  2336. for i = 1, passes:GetFloat() do
  2337.  
  2338. // blur horizontally
  2339. render.SetRenderTarget( RT2 )
  2340. render.SetMaterial( MaterialBlurX )
  2341. render.DrawScreenQuad()
  2342.  
  2343. // blur vertically
  2344. render.SetRenderTarget( RT1 )
  2345. render.SetMaterial( MaterialBlurY )
  2346. render.DrawScreenQuad()
  2347.  
  2348. end
  2349.  
  2350. render.SetRenderTarget( oldRT )
  2351.  
  2352. // tell the stencil buffer we're only going to draw
  2353. // where the player models are not.
  2354. render.SetStencilEnable( true )
  2355. render.SetStencilReferenceValue( 0 )
  2356. render.SetStencilTestMask( 1 )
  2357. render.SetStencilCompareFunction( STENCILCOMPARISONFUNCTION_EQUAL )
  2358. render.SetStencilPassOperation( STENCILOPERATION_ZERO )
  2359.  
  2360. // composite the scene
  2361. MaterialComposite:SetMaterialTexture( "$basetexture", RT1 )
  2362. render.SetMaterial( MaterialComposite )
  2363. render.DrawScreenQuad()
  2364.  
  2365. // don't need this anymore
  2366. render.SetStencilEnable( false )
  2367.  
  2368. end )
  2369.  
  2370. local playerheldweap = nil
  2371.  
  2372. hook.Add( "PostPlayerDraw", "RenderEntityGlow", function( ply )
  2373.  
  2374. if !convar:GetBool() then return end
  2375.  
  2376. if( ScrW() == ScrH() ) then return end
  2377.  
  2378. // prevent recursion
  2379. if( OUTLINING_ENTITY ) then return end
  2380. OUTLINING_ENTITY = true
  2381.  
  2382. RenderGlow( ply )
  2383.  
  2384. playerheldweap = ply:GetActiveWeapon()
  2385.  
  2386. if IsValid( playerheldweap ) then
  2387. RenderGlow( playerheldweap )
  2388. end
  2389.  
  2390. // prevents recursion time
  2391. OUTLINING_ENTITY = false
  2392.  
  2393. end )
  2394.  
  2395. -------------------------------------------------------------------------
  2396.  
  2397. concommand.Add( "+Ares_PropKill", function()
  2398. propkill1 = 1
  2399. end )
  2400.  
  2401. concommand.Add( "-Ares_PropKill", function()
  2402. propkill1 = 0
  2403. end )
  2404.  
  2405. function ReCalc55( cmd )
  2406. if propkill1 == 1 then
  2407. orA.p = math.Clamp(orA.p + ( cmd:GetMouseY() * 0.022 ), -89, 89 )
  2408. orA.y = math.NormalizeAngle( orA.y + (cmd:GetMouseX() * 0.022 * -1) )
  2409. orA.r = 0
  2410.  
  2411. local Forward = ((Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):GetNormal():Angle() + (cmd:GetViewAngles() - orA)):Forward() * Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):Length())
  2412. cmd:SetForwardMove( Forward.x )
  2413. cmd:SetSideMove( Forward.y )
  2414. end
  2415. end
  2416. hook.Add( "CreateMove", "StoredAngleRecalc2131", ReCalc55 )
  2417.  
  2418. function Calctest22(ply, pos, angles, fov)
  2419. if propkill1 == 1 then
  2420. local view = {}
  2421. view.origin = pos
  2422. if GetViewEntity() == LocalPlayer() and propkill1 == 1 then
  2423. view.angles = orA
  2424. end
  2425. view.fov = fov
  2426. return view
  2427. end
  2428. end
  2429. hook.Add( "CalcView", "CalcViewTest108", Calctest22 )
  2430.  
  2431. ----------------------------------------
  2432.  
  2433. //IP Logger
  2434.  
  2435. if not file.Exists( "ares_ips.txt" ) then file.Write( "ares_ips.txt", "" ) end
  2436. local tblDB2 = {}
  2437. local function SaveDB()
  2438. local s = ""
  2439. for k, v in pairs( tblDB2 ) do
  2440. s = s .. k .."'s IP Address is: " ..v.. " \n"
  2441. end
  2442.  
  2443. file.Write( "ares_ips.txt", s )
  2444. end
  2445. local function LoadNHIP()
  2446. local tbl2 = string.Explode( "\n", file.Read( "ares_ips.txt" ) )
  2447. tblDB2 = {}
  2448. for k,v in pairs( tbl2 ) do
  2449. local sep2 = string.Explode( "'s IP Address is: ", v )
  2450. if sep2 and table.getn( sep2 ) == 2 then
  2451. tblDB2[sep2[1]] = sep2[2]
  2452. end
  2453. end
  2454. end
  2455. LoadNHIP()
  2456.  
  2457. local function PlayerConnect( name, ip )
  2458. if GetConVarNumber( "Ares_Misc_LogIPs" ) >= 1 then
  2459. tblDB2[ string.gsub( name, "'s IP Address is: ", "" ) ] = ip
  2460. print( "[Ares] " .. name .. "'s IP Address is: " .. ip )
  2461. SaveDB()
  2462. chat.AddText(
  2463. Color( 255, 0, 0 ), "[Ares] ",
  2464. Color( 0, 0, 0 ), "Player ",
  2465. Color( 0, 0, 0 ), "IP: ",
  2466. Color( 0, 0, 0 ), tostring( name .. "'s IP Address is: " .. ip .. "." ) )
  2467. end
  2468. end
  2469.  
  2470. hook.Add( "PlayerConnect", "PlayerConnect1255", PlayerConnect )
  2471.  
  2472. concommand.Add( "Ares_Print_IPs", function()
  2473. if file.Exists( "ares_ips.txt" ) then
  2474. print( file.Read( "ares_ips.txt" ) )
  2475. end
  2476. end )
  2477.  
  2478. concommand.Add( "Ares_Clear_IPs", function()
  2479. if file.Exists( "ares_ips.txt" ) then
  2480. file.Delete( "ares_ips.txt" )
  2481. end
  2482. end )
  2483.  
  2484. -----------------
  2485.  
  2486. //Credits to RabidToaster
  2487.  
  2488. local function PlyPos( ply )
  2489. local min, max = ply:OBBMins()
  2490. local max = ply:OBBMaxs()
  2491.  
  2492. local Spots = { Vector( min.x, min.y, min.z ), Vector( min.x, min.y, max.z ), Vector( min.x, max.y, min.z ), Vector( min.x, max.y, max.z ), Vector( max.x, min.y, min.z ),
  2493. Vector( max.x, min.y, max.z ), Vector( max.x, max.y, min.z ), Vector( max.x, max.y, max.z ) }
  2494.  
  2495. local minX = ScrW() * 2
  2496. local minY = ScrH() * 2
  2497. local maxX = 0
  2498. local maxY = 0
  2499.  
  2500. for k, v in pairs( Spots ) do
  2501. local ToScreen = ply:LocalToWorld( v ):ToScreen()
  2502. minX = math.min( minX, ToScreen.x )
  2503. minY = math.min( minY, ToScreen.y )
  2504. maxX = math.max( maxX, ToScreen.x )
  2505. maxY = math.max( maxY, ToScreen.y )
  2506. end
  2507. return minX, minY, maxX, maxY
  2508. end
  2509.  
  2510. CreateClientConVar( "Ares_ESP_BoundingBox", 1, true, false )
  2511.  
  2512. hook.Add( "HUDPaint", "BoundingBoxTest", function()
  2513. if GetConVarNumber( "Ares_ESP_BoundingBox" ) >= 1 then
  2514. for k, v in pairs( player.GetAll() ) do
  2515. if v:Health() > 0 && v:Team() != TEAM_SPECTATOR then
  2516. if v != LocalPlayer() then
  2517.  
  2518. local x1, y1, x2, y2 = PlyPos(v)
  2519. local xy = { x1, y1, x2, y2 }
  2520.  
  2521. local x1, y1, x2, y2 = unpack( xy )
  2522.  
  2523. surface.SetDrawColor( team.GetColor( v:Team() ) )
  2524.  
  2525. surface.DrawLine( x1, y1, math.min( x1 + 1510, x2 ), y1 )
  2526. surface.DrawLine( x1, y1, x1, math.min( y1 + 1510, y2 ) )
  2527. surface.DrawLine( x2, y1, math.max( x2 - 1510, x1 ), y1 )
  2528. surface.DrawLine( x2, y1, x2, math.min( y1 + 1510, y2 ) )
  2529. surface.DrawLine( x1, y2, math.min( x1 + 1510, x2 ), y2 )
  2530. surface.DrawLine( x1, y2, x1, math.max( y2 - 1510, y1 ) )
  2531. surface.DrawLine( x2, y2, math.max( x2 - 1510, x1 ), y2 )
  2532. surface.DrawLine( x2, y2, x2, math.max( y2 - 1510, y1 ) )
  2533. end
  2534. end
  2535. end
  2536. end
  2537. end )
  2538.  
  2539. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  2540. //[Ares] AimBot
  2541. //March 8th, 2011
  2542.  
  2543. //NoJello
  2544. require( 'jell' )
  2545.  
  2546. function WeaponVector( value, typ )
  2547. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  2548. local s = ( -value )
  2549.  
  2550. if ( typ == true ) then
  2551. s = ( -value )
  2552. elseif ( typ == false ) then
  2553. s = ( value )
  2554. else
  2555. s = ( value )
  2556. end
  2557. return Vector( s, s, s )
  2558. end
  2559. end
  2560.  
  2561. local currentseed, cmd2, seed = currentseed || 0, 0, 0
  2562. local w, vecCone, valCone = "", Vector( 0, 0, 0 ), Vector( 0, 0, 0 )
  2563.  
  2564. local CustomCones = {}
  2565. CustomCones.Weapons = {}
  2566. CustomCones.Weapons[ "weapon_pistol" ] = WeaponVector( 0.0100, true ) // HL2 Pistol
  2567. CustomCones.Weapons[ "weapon_smg1" ] = WeaponVector( 0.04362, true ) // HL2 SMG1
  2568. CustomCones.Weapons[ "weapon_ar2" ] = WeaponVector( 0.02618, true ) // HL2 AR2
  2569. CustomCones.Weapons[ "weapon_shotgun" ] = WeaponVector( 0.08716, true ) // HL2 SHOTGUN
  2570.  
  2571. local NormalCones = { [ "weapon_cs_base" ] = true }
  2572.  
  2573. function GetCone( wep )
  2574. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  2575. local c = wep.Cone
  2576.  
  2577. if ( !c && ( type( wep.Primary ) == "table" ) && ( type( wep.Primary.Cone ) == "number" ) ) then c = wep.Primary.Cone end
  2578. if ( !c ) then c = 0 end
  2579. if ( type( wep.Base ) == "string" && NormalCones[ wep.Base ] ) then return c end
  2580. if ( ( wep:GetClass() == "ose_turretcontroller" ) ) then return 0 end
  2581. return c || 0
  2582. end
  2583. end
  2584.  
  2585. function DoAresNoJello( ucmd, angle )
  2586. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  2587. local ply = LocalPlayer()
  2588.  
  2589. cmd2, seed = AresGetPredictionJello( ucmd )
  2590. if ( cmd2 != 0 ) then currentseed = seed end
  2591.  
  2592. local w = ply:GetActiveWeapon(); vecCone = Vector( 0, 0, 0 )
  2593. if ( w && w:IsValid() && ( type( w.Initialize ) == "function" ) ) then
  2594. valCone = GetCone( w )
  2595.  
  2596. if ( type( valCone ) == "number" ) then
  2597. vecCone = Vector( -valCone, -valCone, -valCone )
  2598.  
  2599. elseif ( type( valCone ) == "Vector" ) then
  2600. vecCone = valCone * -1
  2601.  
  2602. end
  2603. else
  2604. if ( w:IsValid() ) then
  2605. local class = w:GetClass()
  2606. if ( CustomCones.Weapons[ class ] ) then
  2607. vecCone = CustomCones.Weapons[ class ]
  2608. end
  2609. end
  2610. end
  2611. return NoJelloSpread( currentseed || 0, ( angle || ply:GetAimVector():Angle() ):Forward(), vecCone ):Angle()
  2612. end
  2613. end
  2614.  
  2615. local angles = Angle( 0, 0, 0 )
  2616.  
  2617. function GetView()
  2618. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  2619. local ply = LocalPlayer()
  2620. if ( !ValidEntity( ply ) ) then return end
  2621. angles = ply:EyeAngles()
  2622. end
  2623. end
  2624. hook.Add( "OnToggled", "GetViewAngles32", GetView )
  2625.  
  2626. -----
  2627.  
  2628. local AresAim = 0
  2629.  
  2630. concommand.Add( "+Ares_Aim", function()
  2631. AresAim = 1
  2632. end )
  2633.  
  2634. concommand.Add( "-Ares_Aim", function()
  2635. AresAim = 0
  2636. end )
  2637.  
  2638. local function IsVisible( ent )
  2639. local tracer = {}
  2640. tracer.start = LocalPlayer():GetShootPos()
  2641. tracer.endpos = ent:GetBonePosition( ent:LookupBone( "ValveBiped.Bip01_Head1" ) )
  2642. tracer.filter = { LocalPlayer(), ent }
  2643. tracer.mask = MASK_SHOT
  2644. local trace = util.TraceLine( tracer )
  2645. if trace.Fraction >= 1 then return true else return false end
  2646. end
  2647.  
  2648. local function AresExceptions( ent )
  2649. if( !ValidEntity( ent ) || !ent:IsPlayer() || LocalPlayer() == ent ) then return false end
  2650. if( ent:GetMoveType() == 0 ) then return false end
  2651. if( ent:Team() == TEAM_SPECTATOR ) then return false end
  2652. if( !ent:Alive() ) then return false end
  2653. if GetConVarNumber( "Ares_AimBot_IgnoreAdmins" ) == 1 then if ent:IsAdmin() then return false end end
  2654. if( ent:Health() <= 0 ) then return false end
  2655. if( ent:InVehicle() ) then return false end
  2656. if( ent:Team() == LocalPlayer():Team() && GetConVarNumber( "Ares_Aimbot_FriendlyFire" ) != 1 ) then return false end
  2657. if( GetConVarNumber( "Ares_AimBot_IgnoreSteamFriends" ) == 1 && ent:GetFriendStatus() == "friend" ) then return false end
  2658. if GetConVarNumber( "Ares_AimBot_IgnoreTraitorFriends" ) == 1 then if ( gmod.GetGamemode().Name ) == "Trouble in Terrorist Town" then if ent:GetTraitor() then return false end end end
  2659. return true
  2660. end
  2661.  
  2662. --
  2663.  
  2664. local SetViewAngles = _R["CUserCmd"].SetViewAngles
  2665.  
  2666. local function AresAimBot24( ucmd )
  2667.  
  2668. if AresAim == 1 then
  2669.  
  2670. local BonePos
  2671. local TarAng
  2672. local AresTar = nil
  2673. local angles3
  2674. local crosshair
  2675.  
  2676. AresTargetTable2 = { NULL, 0 }
  2677.  
  2678. for k, v in ipairs( player.GetAll() ) do
  2679.  
  2680. if AresExceptions( v ) && IsVisible( v ) then
  2681.  
  2682. local crosshair = ( v:GetPos() - LocalPlayer():GetPos() ):Normalize()
  2683. crosshair = crosshair - LocalPlayer():GetAimVector()
  2684. crosshair = crosshair:Length()
  2685.  
  2686. crosshair = math.abs( crosshair )
  2687. if ( crosshair < AresTargetTable2[2] ) or ( AresTargetTable2[1] == NULL ) then
  2688. AresTargetTable2 = { v, crosshair }
  2689. AresTar = AresTargetTable2[1]
  2690. end
  2691. end
  2692. end
  2693.  
  2694. if AresTar != nil then
  2695. if AresTar:GetBonePosition( AresTar:LookupBone( "ValveBiped.Bip01_Head1" ) ) then
  2696.  
  2697. BonePos = AresTar:GetBonePosition( AresTar:LookupBone( "ValveBiped.Bip01_Head1" ) )
  2698.  
  2699. BonePos = BonePos + AresTar:GetVelocity() / 50 - LocalPlayer():GetVelocity() / 50
  2700.  
  2701. TarAng = ( BonePos - LocalPlayer():GetShootPos() ):Angle()
  2702.  
  2703. TarAng.p = math.NormalizeAngle( TarAng.p )
  2704. TarAng.y = math.NormalizeAngle( TarAng.y )
  2705. TarAng.r = 0
  2706.  
  2707. if GetConVarNumber( "Ares_AimBot_NoSpread" ) >= 1 then
  2708. angles3 = DoAresNoJello( ucmd, Angle( TarAng.p, TarAng.y, 0 ) )
  2709. else
  2710. angles3 = Angle( TarAng.p, TarAng.y, 0 )
  2711. end
  2712.  
  2713. SetViewAngles( ucmd, angles3 )
  2714. end
  2715. end
  2716. end
  2717. end
  2718. hook.Add( "CreateMove", "AresNoJelloCreateMove42", AresAimBot24 )
  2719.  
  2720. ----
  2721.  
  2722. //NoRecoil
  2723. if GetConVarNumber( "Ares_AimBot_NoRecoil" ) >= 1 then
  2724. if LocalPlayer():GetActiveWeapon().Primary then
  2725. LocalPlayer():GetActiveWeapon().Primary.Recoil = 0
  2726. end
  2727. end
  2728.  
  2729. //Propkill Throw
  2730. if LocalPlayer():GetCurrentCommand():KeyDown( IN_SPEED ) and propkill1 == 1 then
  2731. LocalPlayer():SetEyeAngles( Angle ( orA.p , orA.y , orA.r ) )
  2732. propkill1 = 0
  2733. end
  2734.  
  2735. //Propkill Angles
  2736. orA = LocalPlayer():EyeAngles() - Angle( 0 , 180 , 0 )
  2737. Test = LocalPlayer():EyeAngles()
  2738.  
  2739. //KeyPad
  2740. if GetConVarNumber( "Ares_Misc_Keypad" ) >= 1 then
  2741. --------Setup----------
  2742. for _, p in pairs( player.GetAll() ) do
  2743. local tr = p:GetEyeTraceNoCursor()
  2744. if ( ( tr.StartPos - tr.HitPos ):Length() < 32 ) then
  2745. local e = tr.Entity
  2746. if ( e:IsValid() ) then
  2747. if ( e:GetClass() == "sent_keypad" || e:GetClass() == "sent_keypad_adv" || e:GetClass() == "sent_keypad_wire") then
  2748. if ( e:GetNetworkedBool("Hacked") != true ) then
  2749. //////////////////////
  2750. ////////Non Secure
  2751. ////////////////////
  2752. if ( e:GetNetworkedBool("keypad_secure") == false ) then
  2753. if ( e:GetNWBool( "keypad_access" ) && e:GetNWBool( "keypad_showaccess" ) ) then
  2754. e.Password = e:GetNWInt( "keypad_num" )
  2755. end
  2756. /////////////////////////////
  2757. ////////Secure Keypads
  2758. ////////////////////////////
  2759. else
  2760. local pos = e:WorldToLocal(tr.HitPos)
  2761. --------Code-----------
  2762. local CurNum = e:GetNetworkedInt("keypad_num")
  2763. local access = e:GetNetworkedBool("keypad_access")
  2764. if( e.Num == nil) then e.Num = 0 end
  2765. /////////////////////////////
  2766. //////Success!
  2767. ////////////////////////////
  2768. if(access == true && CurNum != 0) then
  2769. e:SetNetworkedBool("Hacked", true)
  2770. e.Password = e.Num
  2771. end
  2772. /////////////////////////////
  2773. //////Success!
  2774. ////////////////////////////
  2775. if(CurNum == 0 && e.Num != 0) then
  2776. e.Num = 0
  2777. end
  2778. /////////////////////
  2779. ///////One
  2780. ///////////////////////////
  2781. if( CurNum != 0 && CurNum > e.Num ) then
  2782. if(pos.y > -2.1948 && pos.y < -0.9932 && pos.z < -0.0075 && pos.z > -1.2929) then
  2783. e.Num = tonumber(e.Num.."1")
  2784. print(e.Num)
  2785. //////////////////////////
  2786. /////Two
  2787. //////////////////////////
  2788. elseif(pos.y > -0.5865 && pos.y < 0.6369 && pos.z < -0.0039 && pos.z > -1.2509) then
  2789. e.Num = tonumber(e.Num.."2")
  2790. print(e.Num)
  2791. //////////////////////////
  2792. /////Three
  2793. //////////////////////////
  2794. elseif(pos.y > 1.0185 && pos.y < 2.2451 && pos.z < -0.0205 && pos.z > -1.2954) then
  2795. e.Num = tonumber(e.Num.."3")
  2796. print(e.Num)
  2797. //////////////////////////
  2798. /////Four
  2799. //////////////////////////
  2800. elseif(pos.y > -2.1992 && pos.y < -0.9697 && pos.z < -1.6083 && pos.z > -2.8945) then
  2801. e.Num = tonumber(e.Num.."4")
  2802. print(e.Num)
  2803. //////////////////////////
  2804. /////Five
  2805. //////////////////////////
  2806. elseif(pos.y > -0.5893 && pos.y < 0.6437 && pos.z < -1.6010 && pos.z > -2.8989) then
  2807. e.Num = tonumber(e.Num.."5")
  2808. print(e.Num)
  2809. //////////////////////////
  2810. /////Six
  2811. //////////////////////////
  2812. elseif(pos.y > 1.0065 && pos.y < 2.2297 && pos.z < -1.6031 && pos.z > -2.8992) then
  2813. e.Num = tonumber(e.Num.."6")
  2814. print(e.Num)
  2815. //////////////////////////
  2816. /////Seven
  2817. //////////////////////////
  2818. elseif(pos.y > -2.1958 && pos.y < -0.9575 && pos.z < -3.3015 && pos.z > -4.5483) then
  2819. e.Num = tonumber(e.Num.."7")
  2820. print(e.Num)
  2821. //////////////////////////
  2822. /////Eight
  2823. //////////////////////////
  2824. elseif(pos.y > -0.5899 && pos.y < 0.6464 && pos.z < -3.3108 && pos.z > -4.5422) then
  2825. e.Num = tonumber(e.Num.."8")
  2826. print(e.Num)
  2827. //////////////////////////
  2828. /////Nine
  2829. //////////////////////////
  2830. elseif(pos.y > 1.0023 && pos.y < 2.2230 && pos.z < -3.3003 && pos.z > -4.5493) then
  2831. e.Num = tonumber(e.Num.."9")
  2832. print(e.Num)
  2833. ------------------------
  2834. end
  2835. end
  2836. end
  2837. end
  2838. end
  2839. end
  2840. end
  2841. end
  2842. end
  2843.  
  2844. //BHOP and ULX Gag
  2845. if GetConVarNumber( "Ares_Misc_Bhop" ) >= 1 then
  2846. if input.IsKeyDown( KEY_SPACE ) then
  2847. if LocalPlayer():IsOnGround() then
  2848. RunConsoleCommand( "+jump" )
  2849. timer.Create( "Bhop", 0.01, 0, function() RunConsoleCommand( "-jump" ) end )
  2850. end
  2851. end
  2852. end
  2853. if GetConVarNumber( "Ares_Misc_ULXAntiGag" ) >= 1 then
  2854. if( ulx && ulx.gagUser ) then
  2855. ulx.gagUser( false )
  2856. end
  2857. end
  2858. end )
  2859.  
  2860. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  2861.  
  2862. local SpeedType
  2863. local CheatsOn = "Off"
  2864. local CheatColor = Color( 255, 0, 0, 255 )
  2865.  
  2866. require( 'ares_core' )
  2867. require( 'ares_fvar' )
  2868.  
  2869. concommand.Add( "+Ares_Nikes", function()
  2870. if GetConVarNumber( "Ares_HostFrameRate" ) >= 1 then
  2871. if GetConVarNumber( "Ares_HostTimeScale" ) <= 0 then
  2872. SpeedType = "host_framerate"
  2873. end
  2874. end
  2875. if GetConVarNumber( "Ares_HostFrameRate" ) >= 1 then
  2876. if GetConVarNumber( "Ares_HostTimeScale" ) >= 1 then
  2877. SpeedType = "host_framerate"
  2878. end
  2879. end
  2880. if GetConVarNumber( "Ares_HostFrameRate" ) <= 0 then
  2881. if GetConVarNumber( "Ares_HostTimeScale" ) >= 1 then
  2882. SpeedType = "host_timescale"
  2883. end
  2884. end
  2885. if GetConVarNumber( "Ares_HostFrameRate" ) <= 0 then
  2886. if GetConVarNumber( "Ares_HostTimeScale" ) <= 0 then
  2887. SpeedType = "host_framerate"
  2888. end
  2889. end
  2890. Ar.SetTCVar( "sv_cheats", "1" )
  2891. //CheatsOn = "On"
  2892. //CheatColor = Color( 0, 255, 0, 255 )
  2893. Ar.SetTCVar( SpeedType, tostring( GetConVarNumber( "Ares_SHSpeed" ) ) )
  2894. end )
  2895.  
  2896. concommand.Add( "-Ares_Nikes", function()
  2897. Ar.SetTCVar( "host_framerate", "0" )
  2898. Ar.SetTCVar( "host_timescale", "1" )
  2899. if GetConVarNumber( "Ares_SH_CheatsOff" ) >= 1 then
  2900. Ar.SetTCVar( "sv_cheats", "0" )
  2901. //CheatsOn = "Off"
  2902. //CheatColor = Color( 255, 0, 0, 255 )
  2903. end
  2904. end )
  2905.  
  2906. concommand.Add( "+Ares_SlowNikes", function()
  2907. Ar.SetTCVar( "sv_cheats", "1" )
  2908. //CheatsOn = "On"
  2909. //CheatColor = Color( 0, 255, 0, 255 )
  2910. Ar.SetTCVar( "host_timescale", tostring( GetConVarNumber( "Ares_SlowSpeedHack" ) ) )
  2911. end )
  2912.  
  2913. concommand.Add( "-Ares_SlowNikes", function()
  2914. Ar.SetTCVar( "host_timescale", "1" )
  2915. if GetConVarNumber( "Ares_SH_CheatsOff" ) >= 1 then
  2916. Ar.SetTCVar( "sv_cheats", "0" )
  2917. //CheatsOn = "Off"
  2918. //CheatColor = Color( 255, 0, 0, 255 )
  2919. end
  2920. end )
  2921.  
  2922. concommand.Add( "Ares_ForceImpulse", function()
  2923. Ar.SetTCVar( "impulse", "101" )
  2924. end )
  2925.  
  2926. ----------------------------------------------------------------------------------------------------------------------------------------------------------------
  2927.  
  2928. //Ares Derma
  2929. concommand.Add( "Ares_Menu_ESP", function()
  2930.  
  2931. local DermaPanel = vgui.Create( "DFrame" )
  2932. DermaPanel:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  2933. DermaPanel:SetSize( 380, 320 )
  2934. DermaPanel:SetTitle( "Ares ESP" )
  2935. DermaPanel:SetVisible( true )
  2936. DermaPanel:SetDraggable( true )
  2937. DermaPanel:ShowCloseButton( true )
  2938. DermaPanel:MakePopup()
  2939.  
  2940. local TDESP = vgui.Create( "DImage", DermaPanel )
  2941. TDESP:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  2942. TDESP:SetPos( 6, 25 )
  2943. TDESP:SetSize( 368, 320 )
  2944.  
  2945. ------------------
  2946.  
  2947. local SomeCollapsibleCategory = vgui.Create( "DCollapsibleCategory", DermaPanel )
  2948. SomeCollapsibleCategory:SetPos( 9, 32 )
  2949. SomeCollapsibleCategory:SetSize( 362, 267 )
  2950. SomeCollapsibleCategory:SetExpanded( true )
  2951. SomeCollapsibleCategory:SetLabel( "Default ESP Settings" )
  2952.  
  2953. CategoryList = vgui.Create( "DPanelList" )
  2954. CategoryList:SetAutoSize( true )
  2955. CategoryList:SetSpacing( 5 )
  2956. CategoryList:EnableHorizontal( false )
  2957. CategoryList:EnableVerticalScrollbar( true )
  2958.  
  2959. SomeCollapsibleCategory:SetContents( CategoryList )
  2960.  
  2961. local CategoryContentOne = vgui.Create( "DCheckBoxLabel" )
  2962. CategoryContentOne:SetText( "Player ESP" )
  2963. CategoryContentOne:SetConVar( "Ares_ESP_Player" )
  2964. CategoryContentOne:SizeToContents()
  2965. CategoryList:AddItem( CategoryContentOne )
  2966.  
  2967. local CategoryContentTwo = vgui.Create( "DCheckBoxLabel" )
  2968. CategoryContentTwo:SetText( "NPC ESP" )
  2969. CategoryContentTwo:SetConVar( "Ares_ESP_NPC" )
  2970. CategoryContentTwo:SizeToContents()
  2971. CategoryList:AddItem( CategoryContentTwo )
  2972.  
  2973. local CategoryContent3 = vgui.Create( "DCheckBoxLabel" )
  2974. CategoryContent3:SetText( "Player Health" )
  2975. CategoryContent3:SetConVar( "Ares_ESP_Health" )
  2976. CategoryContent3:SizeToContents()
  2977. CategoryList:AddItem( CategoryContent3 )
  2978.  
  2979. local CategoryContent4 = vgui.Create( "DCheckBoxLabel" )
  2980. CategoryContent4:SetText( "Show Alive + Dead" )
  2981. CategoryContent4:SetConVar( "Ares_ESP_ShowAll" )
  2982. CategoryContent4:SizeToContents()
  2983. CategoryList:AddItem( CategoryContent4 )
  2984.  
  2985. local CategoryContent7 = vgui.Create( "DCheckBoxLabel" )
  2986. CategoryContent7:SetText( "L4D Glow" )
  2987. CategoryContent7:SetConVar( "Ares_ESP_L4DGlow" )
  2988. CategoryContent7:SizeToContents()
  2989. CategoryList:AddItem( CategoryContent7 )
  2990.  
  2991. local CategoryContent8 = vgui.Create( "DCheckBoxLabel" )
  2992. CategoryContent8:SetText( "Player Chams" )
  2993. CategoryContent8:SetConVar( "Ares_ESP_Chams" )
  2994. CategoryContent8:SizeToContents()
  2995. CategoryList:AddItem( CategoryContent8 )
  2996.  
  2997. local CategoryContent9 = vgui.Create( "DCheckBoxLabel" )
  2998. CategoryContent9:SetText( "2D Bounding Box" )
  2999. CategoryContent9:SetConVar( "Ares_ESP_BoundingBox" )
  3000. CategoryContent9:SizeToContents()
  3001. CategoryList:AddItem( CategoryContent9 )
  3002.  
  3003. local CategoryContent5 = vgui.Create( "DCheckBoxLabel" )
  3004. CategoryContent5:SetText( "[TTT]Traitor Detection" )
  3005. CategoryContent5:SetConVar( "Ares_Traitor" )
  3006. CategoryContent5:SizeToContents()
  3007. CategoryList:AddItem( CategoryContent5 )
  3008.  
  3009. local CategoryContent6 = vgui.Create( "DCheckBoxLabel" )
  3010. CategoryContent6:SetText( "[TTT]C4 Detection" )
  3011. CategoryContent6:SetConVar( "Ares_ESP_C4Detection" )
  3012. CategoryContent6:SizeToContents()
  3013. CategoryList:AddItem( CategoryContent6 )
  3014.  
  3015. local CategoryContent5 = vgui.Create( "DCheckBoxLabel" )
  3016. CategoryContent5:SetText( "Money + Value" )
  3017. CategoryContent5:SetConVar( "Ares_ESP_Money" )
  3018. CategoryContent5:SizeToContents()
  3019. CategoryList2:AddItem( CategoryContent5 )
  3020.  
  3021. local CategoryContent51 = vgui.Create( "DCheckBoxLabel" )
  3022. CategoryContent51:SetText( "Money Printer" )
  3023. CategoryContent51:SetConVar( "Ares_ESP_MoneyPrinter" )
  3024. CategoryContent51:SizeToContents()
  3025. CategoryList2:AddItem( CategoryContent51 )
  3026.  
  3027. local CategoryContent512 = vgui.Create( "DCheckBoxLabel" )
  3028. CategoryContent512:SetText( "Shipment" )
  3029. CategoryContent512:SetConVar( "Ares_ESP_Shipment" )
  3030. CategoryContent512:SizeToContents()
  3031. CategoryList2:AddItem( CategoryContent512 )
  3032.  
  3033. end )
  3034.  
  3035. concommand.Add( "Ares_Menu_Misc", function()
  3036.  
  3037. local DermaPanel2 = vgui.Create( "DFrame" )
  3038. DermaPanel2:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  3039. DermaPanel2:SetSize( 380, 267 )
  3040. DermaPanel2:SetTitle( "Ares Misc." )
  3041. DermaPanel2:SetVisible( true )
  3042. DermaPanel2:SetDraggable( true )
  3043. DermaPanel2:ShowCloseButton( true )
  3044. DermaPanel2:MakePopup()
  3045.  
  3046. local TDMISC = vgui.Create( "DImage", DermaPanel2 )
  3047. TDMISC:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  3048. TDMISC:SetPos( 6, 25 )
  3049. TDMISC:SetSize( 368, 238 )
  3050.  
  3051. ------------------
  3052.  
  3053. local SomeCollapsibleCategoryM1 = vgui.Create( "DCollapsibleCategory", DermaPanel2 )
  3054. SomeCollapsibleCategoryM1:SetPos( 9, 32 )
  3055. SomeCollapsibleCategoryM1:SetSize( 362, 267 )
  3056. SomeCollapsibleCategoryM1:SetExpanded( true )
  3057. SomeCollapsibleCategoryM1:SetLabel( "Misc. Settings" )
  3058.  
  3059. CategoryListM1 = vgui.Create( "DPanelList" )
  3060. CategoryListM1:SetAutoSize( true )
  3061. CategoryListM1:SetSpacing( 5 )
  3062. CategoryListM1:EnableHorizontal( false )
  3063. CategoryListM1:EnableVerticalScrollbar( true )
  3064.  
  3065. SomeCollapsibleCategoryM1:SetContents( CategoryListM1 )
  3066.  
  3067. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3068. CategoryContentM1:SetText( "Bunny Hop" )
  3069. CategoryContentM1:SetConVar( "Ares_Misc_Bhop" )
  3070. CategoryContentM1:SizeToContents()
  3071. CategoryListM1:AddItem( CategoryContentM1 )
  3072.  
  3073. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3074. CategoryContentM1:SetText( "ULX Anti-Gag" )
  3075. CategoryContentM1:SetConVar( "Ares_Misc_UlxAntiGag" )
  3076. CategoryContentM1:SizeToContents()
  3077. CategoryListM1:AddItem( CategoryContentM1 )
  3078.  
  3079. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3080. CategoryContentM1:SetText( "Keypad 1.4 Hack" )
  3081. CategoryContentM1:SetConVar( "Ares_Misc_Keypad" )
  3082. CategoryContentM1:SizeToContents()
  3083. CategoryListM1:AddItem( CategoryContentM1 )
  3084.  
  3085. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3086. CategoryContentM1:SetText( "IP Logger + Displayer" )
  3087. CategoryContentM1:SetConVar( "Ares_Misc_LogIPs" )
  3088. CategoryContentM1:SizeToContents()
  3089. CategoryListM1:AddItem( CategoryContentM1 )
  3090.  
  3091. ----
  3092.  
  3093. --Nikes
  3094. local NikesSpeed = vgui.Create( "DNumSlider", DermaPanel2 )
  3095. NikesSpeed:SetText( "SH Speed" )
  3096. NikesSpeed:SetPos( 9.9, 215 )
  3097. NikesSpeed:SetMinMax( 1, 10 )
  3098. NikesSpeed:SetWide( 125 )
  3099. NikesSpeed:SetMouseInputEnabled( true )
  3100. NikesSpeed:SetValue( math.Round( GetConVarNumber( "Ares_SHSpeed" ) ) )
  3101. NikesSpeed:SetConVar( "Ares_SHSpeed" )
  3102.  
  3103. local PCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  3104. PCheckBoxL:SetPos( 27.9, 128 )
  3105. PCheckBoxL:SetText( "-SpeedHack-" )
  3106. PCheckBoxL:SetTextColor( Color( 255, 0, 0, 255 ) )
  3107. PCheckBoxL:SizeToContents()
  3108.  
  3109. --HostFrameRate
  3110. local HOSTCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  3111. HOSTCheckBox:SetPos( 9.9, 143 )
  3112. HOSTCheckBox:SetConVar( "Ares_HostFrameRate" )
  3113.  
  3114. local HOSTCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  3115. HOSTCheckBoxL:SetPos( 27.9, 143 )
  3116. HOSTCheckBoxL:SetText( "HostFrameRate" )
  3117. HOSTCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  3118. HOSTCheckBoxL:SizeToContents()
  3119.  
  3120. --HostTimeScale
  3121. local HOSTCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  3122. HOSTCheckBox:SetPos( 9.9, 164 )
  3123. HOSTCheckBox:SetConVar( "Ares_HostTimeScale" )
  3124.  
  3125. local HOSTCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  3126. HOSTCheckBoxL:SetPos( 27.9, 164 )
  3127. HOSTCheckBoxL:SetText( "HostTimeScale" )
  3128. HOSTCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  3129. HOSTCheckBoxL:SizeToContents()
  3130.  
  3131. --SpeedHack Cheats Off
  3132. local SHCOCheckBox = vgui.Create( "DCheckBox", DermaPanel2 )
  3133. SHCOCheckBox:SetPos( 9.9, 185 )
  3134. SHCOCheckBox:SetConVar( "Ares_SH_CheatsOff" )
  3135.  
  3136. local SHCOCheckBoxL = vgui.Create( "DLabel", DermaPanel2 )
  3137. SHCOCheckBoxL:SetPos( 27.9, 185 )
  3138. SHCOCheckBoxL:SetText( "SH Cheats to 0" )
  3139. SHCOCheckBoxL:SetTextColor( Color( 255, 150, 0, 255 ) )
  3140. SHCOCheckBoxL:SizeToContents()
  3141.  
  3142. end )
  3143.  
  3144. -------------------------------------------------------------------------------------------------------
  3145. -------------------------------------------------------------------------------------------------------
  3146.  
  3147. concommand.Add( "Ares_Menu_AimBot", function()
  3148.  
  3149. local DermaPanel3 = vgui.Create( "DFrame" )
  3150. DermaPanel3:SetPos( ScrW() / 2 - 185, ScrH() / 2 - 133 )
  3151. DermaPanel3:SetSize( 380, 267 )
  3152. DermaPanel3:SetTitle( "Ares Aimbot" )
  3153. DermaPanel3:SetVisible( true )
  3154. DermaPanel3:SetDraggable( true )
  3155. DermaPanel3:ShowCloseButton( true )
  3156. DermaPanel3:MakePopup()
  3157.  
  3158. local TDAIM = vgui.Create( "DImage", DermaPanel3 )
  3159. TDAIM:SetMaterial( Material( "Ares/AresBG.vtf" ) )
  3160. TDAIM:SetPos( 6, 25 )
  3161. TDAIM:SetSize( 368, 238 )
  3162.  
  3163. ------------------
  3164.  
  3165. local SomeCollapsibleCategoryM1 = vgui.Create( "DCollapsibleCategory", DermaPanel3 )
  3166. SomeCollapsibleCategoryM1:SetPos( 9, 32 )
  3167. SomeCollapsibleCategoryM1:SetSize( 362, 267 )
  3168. SomeCollapsibleCategoryM1:SetExpanded( true )
  3169. SomeCollapsibleCategoryM1:SetLabel( "AimBot Settings" )
  3170.  
  3171. CategoryListM1 = vgui.Create( "DPanelList" )
  3172. CategoryListM1:SetAutoSize( true )
  3173. CategoryListM1:SetSpacing( 5 )
  3174. CategoryListM1:EnableHorizontal( false )
  3175. CategoryListM1:EnableVerticalScrollbar( true )
  3176.  
  3177. SomeCollapsibleCategoryM1:SetContents( CategoryListM1 )
  3178.  
  3179. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3180. CategoryContentM1:SetText( "No-Recoil" )
  3181. CategoryContentM1:SetConVar( "Ares_AimBot_NoRecoil" )
  3182. CategoryContentM1:SizeToContents()
  3183. CategoryListM1:AddItem( CategoryContentM1 )
  3184.  
  3185. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3186. CategoryContentM1:SetText( "No-Spread" )
  3187. CategoryContentM1:SetConVar( "Ares_AimBot_Nospread" )
  3188. CategoryContentM1:SizeToContents()
  3189. CategoryListM1:AddItem( CategoryContentM1 )
  3190.  
  3191. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3192. CategoryContentM1:SetText( "Ignore Steam Friends" )
  3193. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreSteamFriends" )
  3194. CategoryContentM1:SizeToContents()
  3195. CategoryListM1:AddItem( CategoryContentM1 )
  3196.  
  3197. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3198. CategoryContentM1:SetText( "Ignore Admins" )
  3199. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreAdmins" )
  3200. CategoryContentM1:SizeToContents()
  3201. CategoryListM1:AddItem( CategoryContentM1 )
  3202.  
  3203. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3204. CategoryContentM1:SetText( "Ignore Traitor Friends" )
  3205. CategoryContentM1:SetConVar( "Ares_AimBot_IgnoreTraitorFriends" )
  3206. CategoryContentM1:SizeToContents()
  3207. CategoryListM1:AddItem( CategoryContentM1 )
  3208. --[[
  3209. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3210. CategoryContentM1:SetText( "AutoShoot" )
  3211. CategoryContentM1:SetConVar( "Ares_Aimbot_AutoShoot" )
  3212. CategoryContentM1:SizeToContents()
  3213. CategoryListM1:AddItem( CategoryContentM1 )
  3214. ]]--
  3215.  
  3216. local CategoryContentM1 = vgui.Create( "DCheckBoxLabel" )
  3217. CategoryContentM1:SetText( "Friendly Fire" )
  3218. CategoryContentM1:SetConVar( "Ares_AimBot_FriendlyFire" )
  3219. CategoryContentM1:SizeToContents()
  3220. CategoryListM1:AddItem( CategoryContentM1 )
  3221.  
  3222. end )
  3223.  
  3224. ------------------------------------------------------------
  3225.  
  3226. local function CursorPos( x, y, w, h )
  3227. local cpx, cpy = gui.MousePos()
  3228.  
  3229. if ( cpx > x ) and ( cpx < x + w ) and ( cpy > y ) and ( cpy < y + h ) then
  3230. return true
  3231. end
  3232. return false
  3233. end
  3234.  
  3235. local Stopper = 0
  3236.  
  3237. --[[
  3238. local MyFPS = ""
  3239.  
  3240. timer.Create( "MyFPS1", 1, 0, function()
  3241. MyFPS = math.Round( 1 / FrameTime() )
  3242. end )
  3243.  
  3244. local Slogan = "Boom. Headshot."
  3245. local Slogan1 = { "It's Over... Again...", "Boom. Headshot.", "White Flags Up... Bitches.", "50 Bullets... 50 Players..." }
  3246.  
  3247. timer.Create( "Slogans1", 10, 0, function()
  3248. for i = 1, 4 do
  3249. i = math.random( i )
  3250. Slogan = Slogan1[i]
  3251. end
  3252. end )
  3253. ]]--
  3254. local function AresMenu()
  3255. if( LocalPlayer():GetActiveWeapon() == "Camera" ) then return end
  3256. if AresHUDDraw == 0 then return end
  3257.  
  3258. surface.SetTexture( up )
  3259. surface.SetDrawColor( Color( 0, 0, 0, 250 / 2 ) )
  3260. surface.DrawTexturedRect( 0, 0, ScrW(), 25 )
  3261.  
  3262. draw.RoundedBox( 2, ScrW() - 1265, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  3263. draw.SimpleText( "Ares AimBot", "Default", ScrW() - 1257, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3264.  
  3265. if CursorPos( ScrW() - 1265, 2.5, 75, 17 ) then
  3266. draw.RoundedBox( 0, ScrW() - 1265, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  3267. if input.IsMouseDown( MOUSE_LEFT ) then
  3268. RunConsoleCommand( "Ares_Menu_AimBot" )
  3269. local MouseX=ScrW()/2
  3270. local MouseY=ScrH()/2
  3271. gui.SetMousePos(MouseX,MouseY)
  3272. draw.RoundedBox( 0, ScrW() - 1265, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  3273. end
  3274. end
  3275.  
  3276. -----
  3277.  
  3278. draw.RoundedBox( 2, ScrW() - 1150, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  3279. draw.SimpleText( "Ares ESP", "Default", ScrW() - 1135, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3280.  
  3281. if CursorPos( ScrW() - 1150, 2.5, 75, 17 ) then
  3282. draw.RoundedBox( 0, ScrW() - 1150, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  3283. if input.IsMouseDown( MOUSE_LEFT ) then
  3284. RunConsoleCommand( "Ares_Menu_ESP" )
  3285. local MouseX=ScrW()/2
  3286. local MouseY=ScrH()/2
  3287. gui.SetMousePos(MouseX,MouseY)
  3288. draw.RoundedBox( 0, ScrW() - 1150, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  3289. end
  3290. end
  3291.  
  3292. --
  3293.  
  3294. draw.RoundedBox( 2, ScrW() - 1035, 2.5, 75, 17, Color( 255, 0, 0, 180 ) )
  3295. draw.SimpleText( "Ares Misc.", "Default", ScrW() - 1020, 10, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3296.  
  3297. if CursorPos( ScrW() - 1035, 2.5, 75, 17 ) then
  3298. draw.RoundedBox( 0, ScrW() - 1035, 2.5, 75, 17, Color( 255, 255, 255, 60 ) )
  3299. if input.IsMouseDown( MOUSE_LEFT ) then
  3300. RunConsoleCommand( "Ares_Menu_Misc" )
  3301. local MouseX=ScrW()/2
  3302. local MouseY=ScrH()/2
  3303. gui.SetMousePos(MouseX,MouseY)
  3304. draw.RoundedBox( 0, ScrW() - 1035, 2.5, 75, 17, Color( 0, 55, 195, 60 ) )
  3305. end
  3306. end
  3307.  
  3308. ----
  3309.  
  3310. surface.CreateFont( "Trebuchet24", 40, 1000, true, false, "AresDefault2" )
  3311.  
  3312. //draw.SimpleText( "FPS: " .. MyFPS, "TabLarge", ScrW() - 297, 12, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3313.  
  3314. //draw.SimpleText( tostring( os.date( "| Date: %B %d, 20%y | Time: %I:%M:%S %p" ) ), "TabLarge", ScrW() - 247, 12, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3315.  
  3316. ----
  3317. //draw.SimpleText( "| Current Map: " .. game.GetMap() .. " |", "TabLarge", ScrW() - 920, 5, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3318.  
  3319. draw.SimpleText( "Ares", "AresDefault2", ScrW() - 700, 12, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3320.  
  3321. //draw.SimpleText( Slogan, "TabLarge", ScrW() - 630, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3322.  
  3323. //draw.SimpleText( "| GMod Name: " .. LocalPlayer():Nick() .. " |", "TabLarge", ScrW() - 480, 5, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3324.  
  3325. //draw.SimpleText( "| Cheats: ", "TabLarge", ScrW() - 480, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3326. //draw.SimpleText( CheatsOn, "TabLarge", ScrW() - 480 + 55, 18, CheatColor, TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3327. //draw.SimpleText( "|", "TabLarge", ScrW() - 480 + 73, 18, Color( 51, 204, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER )
  3328.  
  3329. end
  3330. hook.Add( "HUDPaint", "AresMenu1", AresMenu )
  3331.  
  3332. concommand.Add( "+Ares_Pointer", function()
  3333. gui.EnableScreenClicker( true )
  3334. AresHUDDraw = 1
  3335. end )
  3336.  
  3337. concommand.Add( "-Ares_Pointer", function()
  3338. gui.EnableScreenClicker( false )
  3339. AresHUDDraw = 0
  3340. end )
  3341.  
  3342. /* Anti-detection */
  3343. function file.Exists( fn, ad )
  3344. if( !fn ) then return end
  3345. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3346. return
  3347. end
  3348. return oF.Exists( fn, ad )
  3349. end
  3350.  
  3351. function file.Read( fn, ad )
  3352. if( !fn ) then return end
  3353. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3354. return
  3355. end
  3356. return oF.Read( fn, ad )
  3357. end
  3358.  
  3359. function file.Size( fn )
  3360. if( !fn ) then return end
  3361. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3362. return -1
  3363. end
  3364. return oF.Size( fn )
  3365. end
  3366.  
  3367. function file.Time( fn )
  3368. if( !fn ) then return end
  3369. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3370. return 0
  3371. end
  3372. return oF.Time( fn )
  3373. end
  3374.  
  3375. function file.Find( fn )
  3376. local tab = oF.Find( fn )
  3377. for k, v in pairs( tab ) do
  3378. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3379. table.remove( tab, k )
  3380. end
  3381. end
  3382. return tab
  3383. end
  3384.  
  3385. function file.FindInLua( fn )
  3386. local tab = oF.FindInLua( fn )
  3387. for k, v in pairs( tab ) do
  3388. if( oSR.find( fn, "Ares.lua" ) || oSR.find( fn, "ira.dll" ) ) then
  3389. table.remove( tab, k )
  3390. end
  3391. end
  3392. return tab
  3393. end
  3394.  
  3395. ----------------------
  3396.  
  3397. --CVar Spoofer--
  3398. //Credits to SethHackv2
  3399.  
  3400. local oCVGI = _R.ConVar.GetInt
  3401. local oCVGB = _R.ConVar.GetBool
  3402. local oGCVN = GetConVarNumber
  3403. local oGCVS = GetConVarString
  3404.  
  3405. function GetConVarNumber( cvar )
  3406. if( cvar == "sv_cheats" ) then return 0 end
  3407. if( cvar == "host_timescale" ) then return 1 end
  3408. if( cvar == "host_framerate" ) then return 0 end
  3409. if( cvar == "sv_allow_voice_from_file" ) then return 0 end
  3410. if( cvar == "r_drawothermodels" ) then return 1 end
  3411. return oGCVN( cvar )
  3412. end
  3413.  
  3414. function GetConVarString( cvar )
  3415. if( cvar == "sv_cheats" ) then return "0" end
  3416. if( cvar == "host_timescale" ) then return "1" end
  3417. if( cvar == "host_framerate" ) then return "0" end
  3418. if( cvar == "sv_allow_voice_from_file" ) then return "0" end
  3419. if( cvar == "r_drawothermodels" ) then return "1" end
  3420. return oGCVS( cvar )
  3421. end
  3422.  
  3423. function _R.ConVar.GetInt( cvar )
  3424. if( cvar:GetName() == "sv_cheats" ) then return 0 end
  3425. if( cvar:GetName() == "host_timescale" ) then return 1 end
  3426. if( cvar:GetName() == "host_framerate" ) then return 0 end
  3427. if( cvar:GetName() == "sv_allow_voice_from_file" ) then return 0 end
  3428. if( cvar:GetName() == "r_drawothermodels" ) then return 1 end
  3429. return oCVGI( cvar )
  3430. end
  3431.  
  3432. function _R.ConVar.GetBool( cvar )
  3433. if( cvar:GetName() == "sv_cheats" ) then return false end
  3434. if( cvar:GetName() == "host_timescale" ) then return true end
  3435. if( cvar:GetName() == "host_framerate" ) then return false end
  3436. if( cvar:GetName() == "sv_allow_voice_from_file" ) then return false end
  3437. if( cvar:GetName() == "r_drawothermodels" ) then return true end
  3438. return oCVGB( cvar )
  3439. end
  3440.  
  3441. function file.Read( fn, ad )
  3442. if( !fn ) then return end
  3443. if( oSR.find( fn, "gmod_op.lua" ) || oSR.find( fn, "jell.dll" ) || oSR.find( fn, "ares_core.dll" ) || oSR.find( fn, "ares_fvar.dll" ) || oSR.find( fn, "clua.dll" ) ) then
  3444. return
  3445. end
  3446. return oF.Read( fn, ad )
  3447. end
  3448.  
  3449. ----
  3450.  
  3451. local GrenadeType
  3452.  
  3453. hook.Add( "HUDPaint", "C4UpdateAres2", function()
  3454. for k1, v1 in pairs( ents.GetAll() ) do
  3455. if ValidEntity( v1 ) then
  3456. if v1:GetClass() == "ttt_confgrenade_proj" or v1:GetClass() == "ttt_firegrenade_proj" or v1:GetClass() == "ttt_smokegrenade_proj" then
  3457.  
  3458. local GrenadePos = ( v1:EyePos() ):ToScreen()
  3459.  
  3460. if v1:GetClass() == "ttt_confgrenade_proj" then
  3461. GrenadeType = "Discombob"
  3462. elseif v1:GetClass() == "ttt_firegrenade_proj" then
  3463. GrenadeType = "Incendiary"
  3464. elseif v1:GetClass() == "ttt_smokegrenade_proj" then
  3465. GrenadeType = "Smoke"
  3466. end
  3467.  
  3468. draw.SimpleText( GrenadeType .. " | " .. string.FormattedTime( math.max( 0, v1:GetExplodeTime() - CurTime() ), "%02i:%02i" ), "ChatFont", GrenadePos.x, GrenadePos.y, Color( 255, 150, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  3469. end
  3470. end
  3471. end
  3472.  
  3473. -----------
  3474.  
  3475. for k, v in pairs( ents.FindByClass( "ttt_c4" ) ) do
  3476. if ValidEntity( v ) then
  3477.  
  3478. if GetConVarNumber( "Ares_ESP_C4Detection" ) >= 1 then
  3479.  
  3480. local C4ESPPos = ( v:EyePos() ):ToScreen()
  3481.  
  3482. if !v:GetArmed() then
  3483. draw.SimpleText( "C4", "TabLarge", C4ESPPos.x, C4ESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  3484. end
  3485.  
  3486. if v:GetArmed() then
  3487. draw.SimpleText( "C4 | TIME LEFT: " .. string.FormattedTime( math.max( 0, v:GetExplodeTime() - CurTime() ), "%02i:%02i" ), "TabLarge", C4ESPPos.x, C4ESPPos.y - 22, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER )
  3488. end
  3489. end
  3490.  
  3491. if v:GetPos():Distance( LocalPlayer():GetPos() ) < 256 then
  3492. draw.SimpleTextOutlined( "C4 | DISARM ZONE", "TraitorState", ScrW() / 2 - 115, ScrH()/2 + 300, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 255, 255, 255, 255 ) )
  3493. end
  3494.  
  3495. if v:GetPos():Distance( LocalPlayer():GetPos() ) < 1000 and v:GetArmed() then
  3496. draw.SimpleTextOutlined( "*WARNING* C4 ARMED | IN BLAST ZONE", "TraitorState", ScrW() / 2 - 235, ScrH()/2 + 335, Color( 255, 0, 0, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 255, 255, 255, 255 ) )
  3497. end
  3498. end
  3499. end
  3500. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement