Advertisement
emmisary

Untitled

Jun 11th, 2012
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.11 KB | None | 0 0
  1. --[[
  2. // Project Cronus // Thanks to anyone who helped me with this // This is just a HvH Cheat, Not some DarkRP Shit // I take no credit for most of this code // Enjoy Cronus! //
  3.  
  4. Copy/pasted by tyleR: STEAM_0:0:40143824 || STEAM_0:0:48926883
  5. ]]--
  6.  
  7. --[[ Start of the cheat, localizing, requires, and other useless bullshit ]]--
  8.  
  9. if ( SERVER ) then return end -- We only want this to work clientside
  10.  
  11. local Cronus = {}
  12. local Version = 2.9 .. " Beta "
  13. local CreateClientConVar = CreateClientConVar;
  14. local x = ScrW() / 2 --Crosshair
  15. local y = ScrH() / 2 --Crosshair
  16. local gap = 0 --Crosshair Gap
  17. local length = 5 --Crosshair Length
  18. local spinbot = false
  19. local SpamMessage = "~sethhacked~" -- Set your Chat Spam message here
  20.  
  21.  
  22.  
  23. if( _G["Cronus"] ) then _G["Cronus"] = nil; end
  24.  
  25. require("cronus_cvar")
  26.  
  27.  
  28. // ConVars
  29. CreateClientConVar( "aim_removeaa", 1, true, false )
  30. CreateClientConVar( "aim_removerecoil", 1, true, false )
  31. CreateClientConVar( "aim_silent", 0, true, false )
  32. CreateClientConVar( "aim_removespread", 1, true, false )
  33. CreateClientConVar( "misc_crosshair", 1, true, false )
  34. CreateClientConVar( "misc_removelaser", 0, true, false )
  35. CreateClientConVar( "misc_removesky", 0, true, false )
  36. CreateClientConVar( "misc_cheats", 1, true, false )
  37. CreateClientConVar( "misc_chatspam", 0, true, false )
  38. CreateClientConVar( "misc_forceCVars", 1, true, false )
  39. CreateClientConVar( "esp_info", 1, true, false )
  40. CreateClientConVar( "esp_chams", 1, true, false )
  41. CreateClientConVar( "esp_box", 1, true, false )
  42. CreateClientConVar( "esp_worldwire", 0, true, false )
  43. CreateClientConVar( "Cronus_Speedhack_Speed", 0, true, false )
  44.  
  45. _G.Scrub = _R["CUserCmd"].SetViewAngles
  46. Cronus.EyeAngles = Angle(0,0,0)
  47. Cronus.StoredAngle = Angle(0,0,0)
  48. Cronus.AngleRestored = 0
  49. Cronus.Ang = Angle(0,0,0)
  50. Cronus["Locked"] = false;
  51. Cronus["Hooks"] = {};
  52. Cronus["Copy"] = {
  53. ["MsgN"] = MsgN,
  54. ["tostring"] = tostring,
  55. ["table"] = table,
  56. ["hook"] = hook,
  57. ["math"] = math,
  58. ["surface"] = surface,
  59. ["draw"] = draw,
  60. ["ScrW"] = ScrW,
  61. ["ScrH"] = ScrH,
  62. ["pairs"] = pairs,
  63. ["util"] = util,
  64. ["http"] = http,
  65. ["player"] = player,
  66. ["input"] = input,
  67. ["ValidEntity"] = ValidEntity,
  68. ["LocalPlayer"] = LocalPlayer,
  69. ["GetConVarNumber"] = GetConVarNumber,
  70. ["SetMaterialOverride"] = SetMaterialOverride,
  71. ["CreateMaterial"] = CreateMaterial,
  72. ["Vector"] = Vector,
  73. ["render"] = render,
  74. ["Material"] = Material,
  75. ["EyePos"] = EyePos,
  76. ["EyeAngles"] = EyeAngles,
  77. ["cam"] = cam,
  78. ["team"] = team,
  79. ["ents"] = ents,
  80. ["Color"] = Color,
  81. ["concommand"] = concommand,
  82. ["vgui"] = vgui,
  83. ["string"] = string,
  84. ["RealFrameTime"] = RealFrameTime,
  85. };
  86.  
  87. // Lets show them that the cheat is running?
  88. chat.AddText(
  89. Color(255,0,255,255), "[Cronus] ",
  90. Color(0,255,0,255), "Project ",
  91. Color(0,255,0,255), "Cronus ",
  92. Color(0,255,0,255), "Version " .. Version .. " Loaded" )
  93. surface.PlaySound("buttons/button19.wav")
  94.  
  95. // Set some stuff that shouldn't be optional
  96. function RunOnStart()
  97. if ( 1 + 1 == 2 ) then // Well, It works doesn't it?
  98. cvar2.SetValue("sv_allow_voice_from_file","1")
  99. end
  100. end
  101. hook.Add("Think","RunThisOnStart",RunOnStart)
  102.  
  103. // Aimbot
  104.  
  105. hook.Add( "Think", "No Recoil", function()
  106. if GetConVarNumber( "aim_removerecoil" ) >= 1 then
  107. if LocalPlayer():GetActiveWeapon().Primary then
  108. LocalPlayer():GetActiveWeapon().Primary.Recoil = 0
  109. end
  110. end
  111. end )
  112.  
  113. function Cronus:Hook( type, func )
  114. local Name = Cronus["Copy"]["tostring"]( Cronus["Copy"]["math"]["random"]( 1, 150 ) );
  115. Cronus["Copy"]["MsgN"]( "Adding Hook "..Name.." ["..type.."]" );
  116. Cronus["Copy"]["table"]["insert"]( Cronus["Hooks"], Name );
  117. return Cronus["Copy"]["hook"]["Add"]( type, Name, func );
  118. end
  119.  
  120.  
  121. local function HookCreateMove( u )
  122. Cronus:Aimbot( u );
  123. Cronus:Bhop( u );
  124. end
  125. Cronus:Hook( "CreateMove", HookCreateMove );
  126.  
  127. Cronus["ConVars"] = {
  128. ["aim_admins"] = CreateClientConVar( "aim_admins", 0, true );
  129. ["aim_auto"] = CreateClientConVar( "aim_auto", 1, true );
  130. ["aim_friendly"] = CreateClientConVar( "aim_friendly", 1, true );
  131. ["aim_offset"] = CreateClientConVar( "aim_offset", 0, true );
  132. ["aim_prediction"] = CreateClientConVar( "aim_prediction", 1, true );
  133. ["aim_steam"] = CreateClientConVar( "aim_steam", 0, true );
  134. }
  135.  
  136.  
  137.  
  138. local Aimspots = {
  139. "head",
  140. "forward",
  141. "eyes"
  142.  
  143. }
  144.  
  145. local function Aimspot( e )
  146. local Pos;
  147. for k, v in Cronus["Copy"]["pairs"]( Aimspots ) do
  148. if( e:GetAttachment( e:LookupAttachment( v ) ) ) then
  149. Pos = e:GetAttachment( e:LookupAttachment( v ) )["Pos"];
  150. end
  151. end
  152. return Pos;
  153. end
  154.  
  155. local function bIsVisible( e )
  156. local Trace = {};
  157. Trace.start = Cronus["Copy"]["LocalPlayer"]():GetShootPos();
  158. Trace.endpos = Aimspot( e );
  159. Trace.mask = MASK_SHOT|CONTENTS_HITBOX;
  160. Trace.filter = e, Cronus["Copy"]["LocalPlayer"]();
  161. local tr = Cronus["Copy"]["util"]["TraceLine"]( Trace );
  162. if( tr.Fraction == 1.0 ) then
  163. return true;
  164. end
  165. end
  166.  
  167. local function bIsValid( e )
  168. if( !Cronus["Copy"]["ValidEntity"]( e ) || e == Cronus["Copy"]["LocalPlayer"]() ) then return false; end
  169. if( !e:Alive() || !e:IsPlayer() || e:InVehicle() ) then return false; end
  170. if( Cronus["Copy"]["GetConVarNumber"]( "sbox_noclip" ) == 0 && e:GetMoveType() == MOVETYPE_NOCLIP ) then return false; end
  171. if( Cronus["ConVars"]["aim_friendly"]:GetInt() == 0 && e:Team() == Cronus["Copy"]["LocalPlayer"]():Team() ) then return false; end
  172. if( Cronus["ConVars"]["aim_steam"]:GetBool() && e:GetFriendStatus() == "friend" ) then return false; end
  173. if( Cronus["ConVars"]["aim_admins"]:GetInt() == 0 && e:IsAdmin() ) then return false; end
  174. if( e:GetMoveType() == MOVETYPE_OBSERVER || e:Team() == TEAM_SPECTATOR ) then return false; end
  175. return true;
  176. end
  177.  
  178. local function GetTargets()
  179. local Targets = { 0, 0 };
  180. for k, v in Cronus["Copy"]["pairs"]( Cronus["Copy"]["player"]["GetAll"]() ) do
  181. if( bIsVisible( v ) && bIsValid( v ) ) then
  182. local Diff = ( v:EyePos() - Cronus["Copy"]["LocalPlayer"]():EyePos() ):Normalize();
  183. Diff = Diff - Cronus["Copy"]["LocalPlayer"]():GetAimVector();
  184. Diff = Diff:Length();
  185. Diff = Cronus["Copy"]["math"]["abs"]( Diff );
  186. if( Diff < Targets[2] || Targets[1] == 0 ) then
  187. Targets = { v, Diff };
  188. end
  189. end
  190. end
  191. return( Targets[1] != 0 && Targets[1] != Cronus["Copy"]["LocalPlayer"]() ) && Targets[1] || nil;
  192. end
  193.  
  194. local function NormalizeAngles( Angl )
  195. Angl.p = Cronus["Copy"]["math"]["NormalizeAngle"]( Angl.p );
  196. Angl.y = Cronus["Copy"]["math"]["NormalizeAngle"]( Angl.y );
  197. Angl.r = 0;
  198. end
  199.  
  200. function Cronus:Prediction( e, Pos )
  201. if( Cronus["ConVars"]["aim_prediction"]:GetInt() == 1 ) then
  202. Pos = Pos + e:GetVelocity() / 50 + Cronus["Copy"]["LocalPlayer"]():GetVelocity() / 50;
  203. end
  204. if( Cronus["ConVars"]["aim_prediction"]:GetInt() == 2 ) then
  205. Pos = Pos + e:GetVelocity() * ( 1 / 66 ) - Cronus["Copy"]["LocalPlayer"]():GetVelocity() * ( 1 / 66 );
  206. end
  207. if( Cronus["ConVars"]["aim_prediction"]:GetInt() == 3 ) then
  208. Pos = Pos + e:GetVelocity() * Cronus["Copy"]["RealFrameTime"]() / 45 + Cronus["Copy"]["LocalPlayer"]():GetVelocity() * Cronus["Copy"]["RealFrameTime"]() / 45;
  209. end
  210. end
  211.  
  212. function Cronus:Aimbot( u )
  213. if( Cronus["Copy"]["input"]["IsKeyDown"]( KEY_F ) ) then
  214. local Target = GetTargets();
  215. if( !Target ) then return; end
  216. Cronus["Locked"] = true;
  217. local Aimspot = Aimspot( Target );
  218. Cronus:Prediction( Target, Aimspot );
  219. Aimspot = Aimspot + Cronus["Copy"]["Vector"]( 0, 0, Cronus["ConVars"]["aim_offset"]:GetFloat() );
  220. local Angl = ( Aimspot - Cronus["Copy"]["LocalPlayer"]():GetShootPos() ):Angle();
  221. NormalizeAngles( Angl );
  222. u:SetViewAngles( Angl );
  223. Cronus["Copy"]["LocalPlayer"]():GetActiveWeapon()["Recoil"] = 0;
  224. if( Cronus["ConVars"]["aim_auto"]:GetBool() ) then
  225. u:SetButtons( u:GetButtons() | IN_ATTACK );
  226. end
  227. end
  228. if( !Cronus["Copy"]["input"]["IsKeyDown"]( KEY_F ) ) then //Should have used an else.
  229. Cronus["Locked"] = false;
  230. end
  231. end
  232.  
  233. // Anti Aim
  234. hook.Add("CreateMove",1, function(cmd, u)
  235. local C = LocalPlayer()
  236. local v = cmd:GetViewAngles()
  237. if GetConVarNumber( "aim_removeaa" ) >= 1 then return end;
  238. cmd:SetViewAngles(Angle(181, v.y, -181))
  239. end)
  240.  
  241. // No spread... Yeah let's call it that.
  242. -- This is just a clientside nospread, It's just visual.
  243. local function NoSpread()
  244. if GetConVarNumber("aim_removespread") == 1 and LocalPlayer().GetActiveWeapon != nil then
  245. local wep = LocalPlayer():GetActiveWeapon()
  246. if ValidEntity(wep) then
  247. if wep.data then
  248. wep.data.Recoil = 0
  249. wep.data.Cone = 0
  250. wep.data.Spread = 0
  251. end
  252. if wep.Primary then
  253. wep.Primary.Recoil = 0
  254. wep.Primary.Cone = 0
  255. wep.Primary.Spread = 0
  256. end
  257. end
  258. end
  259. end
  260. hook.Add("Tick", "VisualNoSpread", NoSpread)
  261.  
  262.  
  263.  
  264. // Speedhack
  265. timer.Create("AddSpeed",2,1,function()
  266. concommand.Add("+Cronus_Speed" , function() cvar2.SetValue("sv_Cheats","1") cvar2.SetValue("Host_TimeScale",tostring(GetConVarNumber("Cronus_Speedhack_Speed"))) end)
  267. concommand.Add("-Cronus_Speed", function() cvar2.SetValue("Host_TimeScale","1") end)
  268. end)
  269.  
  270. // Bhop
  271. function Cronus:Bhop( u )
  272. if( u:KeyDown( IN_JUMP ) && Cronus["Copy"]["LocalPlayer"]():IsOnGround() == false && Cronus["Copy"]["LocalPlayer"]():GetMoveType() != MOVETYPE_OBSERVER && Cronus["Copy"]["LocalPlayer"]():Team() != TEAM_SPECTATOR ) then
  273. u:SetButtons( u:GetButtons() - IN_JUMP );
  274. end
  275. end
  276.  
  277. // Crosshair
  278. function Crosshair()
  279. if GetConVarNumber( "misc_crosshair" ) >= 1 then
  280. surface.SetDrawColor( 0, 255, 0, 200 )
  281. surface.DrawLine( x - length, y, x - gap, y )
  282. surface.DrawLine( x + length, y, x + gap, y )
  283. surface.DrawLine( x, y - length, x, y - gap )
  284. surface.DrawLine( x, y + length, x, y + gap )
  285. surface.DrawLine(ScrW() / 2 - 5 , ScrH() / 2, ScrW() / 2 + 5 , ScrH() / 2)
  286. surface.DrawLine(ScrW() / 2 , ScrH() / 2 + 5, ScrW() / 2 , ScrH() / 2 - 5)
  287.  
  288.  
  289.  
  290. end
  291. end
  292. hook.Add("HUDPaint","CustomCross",Crosshair)
  293.  
  294.  
  295. // ESP
  296. local function ESP()
  297. if( GetConVarNumber( 'esp_info' ) != 0 ) then
  298. for k, v in pairs( player.GetAll() ) do
  299. if( v:Alive() && v != LocalPlayer() ) then
  300. local Pos = ( v:GetPos() + Vector( 0, 0, 75 ) ):ToScreen();
  301. surface.SetDrawColor( team.GetColor( v:Team() ) )
  302. draw.SimpleText( v:Name(), 'TabLarge', Pos.x, Pos.y, team.GetColor( v:Team() ), TEXT_ALIGN_CENTER );
  303. draw.SimpleText( "HP: " .. v:Health(), 'TabLarge', Pos.x, Pos.y + 10, team.GetColor( v:Team() ), TEXT_ALIGN_CENTER );
  304. draw.SimpleText("Project Cronus", "coolvetica", 50, 10, Color(0, 255, 0, 200)) // This had to go somewhere, Wasn't going to make a function just for it
  305. draw.SimpleText("Version "..Version.."", "DefaultBold", 140, 10, Color(255, 0, 0, 200))
  306. end
  307. end
  308. end
  309. end
  310. hook.Add("HUDPaint","PlayerESP", ESP)
  311.  
  312. function WorldWireFrame()
  313. if GetConVarNumber( "esp_worldwire" ) >=1 then
  314. cvar2.SetValue("mat_wireframe","1")
  315. else
  316. cvar2.SetValue("mat_wireframe","0")
  317. end
  318. end
  319. hook.Add("Think","WorldWireFramewtf",WorldWireFrame)
  320.  
  321.  
  322. function BoundingBox()
  323. if GetConVarNumber( "esp_box" ) >= 1 then
  324. for k, v in pairs ( player.GetAll() ) do
  325. if v ~= LocalPlayer() then
  326. if v:Alive() and v:Team() ~= TEAM_SPECTATOR then
  327. local PlayerBoxPos = v:EyePos():ToScreen()
  328. surface.SetDrawColor( team.GetColor( v:Team() ) )
  329. surface.DrawOutlinedRect( PlayerBoxPos.x - 40 / 3, PlayerBoxPos.y - 40 / 2, 30, 60 )
  330. end
  331. end
  332. end
  333. end
  334. end
  335. hook.Add( "HUDPaint", "CronusBoundingBox", BoundingBox )
  336.  
  337. // Chams
  338.  
  339. function PlayerModel()
  340. if GetConVarNumber( "esp_chams" ) >= 1 then
  341. for k, v in pairs(ents.GetAll()) do
  342. if ValidEntity( v ) then
  343. if v:IsPlayer() or v:IsNPC() then
  344. v:SetMaterial( "models/wireframe" )
  345. cam.Start3D( EyePos(), EyeAngles() )
  346. v:DrawModel()
  347. cam.End3D()
  348. end
  349. end
  350. end
  351. end
  352. end
  353. hook.Add( "HUDPaint", "Playermodel1", PlayerModel )
  354.  
  355.  
  356. // Remove Skybox
  357. function RemoveSky()
  358. if GetConVarNumber("misc_removesky") >= 1 then
  359. cvar2.SetValue( "gl_clear", "1")
  360. cvar2.SetValue( "r_drawskybox", "0")
  361. cvar2.SetValue( "r_3dsky", "0")
  362. else
  363. cvar2.SetValue( "gl_clear", "0")
  364. cvar2.SetValue( "r_drawskybox", "1")
  365. cvar2.SetValue( "r_3dsky", "1")
  366. end
  367. end
  368. hook.Add( 'HUDPaint', 'Ilikemyskyblack', RemoveSky );
  369.  
  370.  
  371. // Radar
  372. function DoChecksRadar( e )
  373.  
  374. local ply, val = LocalPlayer(), 0
  375.  
  376. if ( e:IsPlayer() && e:GetMoveType() == MOVETYPE_OBSERVER ) then return false end
  377.  
  378. if ( !e:IsValid() || !e:IsPlayer() && !e:IsNPC() || e == ply ) then return false end
  379. if ( e:IsPlayer() && !e:Alive() ) then return false end
  380. if ( e:IsNPC() && e:GetMoveType() == 0 ) then return false end
  381. if ( e:IsWeapon() && e:GetMoveType() == 0 ) then return false end
  382.  
  383. return true
  384.  
  385. end
  386.  
  387. local Radar = vgui.Create( "DFrame" )
  388. Radar:SetSize( 300, 300 )
  389.  
  390. local rW, rH, x, y = Radar:GetWide(), Radar:GetTall(), ScrW() / 2, ScrH() / 2
  391.  
  392. local sW, sH = ScrW(), ScrH()
  393. Radar:SetPos( sW - rW - 10, sH - rH - ( sH - rH ) + 10 )
  394. Radar:SetTitle("Cronus Radar")
  395. Radar:SetVisible( true )
  396. Radar:SetDraggable( true )
  397. Radar:ShowCloseButton( false )
  398. Radar:MakePopup()
  399. Radar.Paint = function()
  400. draw.RoundedBox( 0, 0, 0, rW, rH, Color( 0, 0, 0, 40 ) )
  401. surface.SetDrawColor( 255, 255, 255, 255 )
  402. surface.DrawOutlinedRect( 0, 0, rW, rH )
  403.  
  404. local ply = LocalPlayer()
  405.  
  406. local radar = {}
  407. radar.h = 300
  408. radar.w = 300
  409. radar.org = 5000
  410.  
  411. local x, y = ScrW() / 2, ScrH() / 2
  412.  
  413. local half = rH / 2
  414. local xm = half
  415. local ym = half
  416.  
  417. surface.DrawLine( xm, ym - 100, xm, ym + 100 )
  418. surface.DrawLine( xm - 100, ym, xm + 100, ym )
  419.  
  420. for k, e in pairs( ents.GetAll() ) do
  421. if ( DoChecksRadar(e) ) then
  422.  
  423. local s = 6
  424. local col = {}
  425. local color = Color( 255,255,255,200 )
  426. local plyfov = ply:GetFOV() / ( 70 / 1.13 )
  427. local zpos, npos = ply:GetPos().z - ( e:GetPos().z ), ( ply:GetPos() - e:GetPos() )
  428.  
  429. npos:Rotate( Angle( 180, ( ply:EyeAngles().y ) * -1, -180 ) )
  430. local iY = npos.y * ( radar.h / ( ( radar.org * ( plyfov * ( ScrW() / ScrH() ) ) ) + zpos * ( plyfov * (ScrW() / ScrH() ) ) ) )
  431. local iX = npos.x * ( radar.w / ( ( radar.org * ( plyfov * ( ScrW() / ScrH() ) ) ) + zpos * ( plyfov * (ScrW() / ScrH() ) ) ) )
  432.  
  433.  
  434. local pX = ( radar.w / 2 )
  435. local pY = ( radar.h / 2 )
  436.  
  437. local posX = pX - iY - ( s / 2 )
  438. local posY = pY - iX - ( s / 2 )
  439.  
  440. local text = e:GetClass()
  441.  
  442. if ( e:IsPlayer() ) then
  443. text = e:Nick() .. " ["..e:Health().."]"
  444. end
  445.  
  446. if iX < ( radar.h / 2 ) && iY < ( radar.w / 2 ) && iX > ( -radar.h / 2 ) && iY > ( -radar.w / 2 ) then
  447.  
  448. draw.RoundedBox( s, posX, posY, s, s, color )
  449.  
  450. end
  451. end
  452. end
  453. end
  454.  
  455. Radar:SetVisible( true )
  456. Radar:SetMouseInputEnabled( false )
  457. Radar:SetKeyboardInputEnabled( false )
  458. concommand.Add( "+mouseenable", function() Radar:SetMouseInputEnabled( true ) end )
  459. concommand.Add( "-mouseenable", function() Radar:SetMouseInputEnabled( false ) end )
  460.  
  461. RRadar = Radar
  462.  
  463. // Fake View // -- Ignore the mess?
  464. concommand.Add("FixView", function()
  465. Cronus.FixView = 1
  466. //Cronus.Spin = 1
  467. if GetConVarNumber("aim_silent") == 1 then
  468. Cronus.StoredAngle = LocalPlayer():EyeAngles()
  469. end
  470. Cronus.Ang = LocalPlayer():EyeAngles()
  471. Cronus.AngleRestored = 0
  472. end)
  473.  
  474.  
  475. function Cronus.FovCheck( ent, fov )
  476. if fov == 0 or fov == 180 then return true end
  477. if ValidEntity( ent ) then
  478. if GetConVarNumber("aim_silent") == 0 then
  479. LAng = LocalPlayer():EyeAngles()
  480. else
  481. LAng = Cronus.StoredAngle
  482. end
  483. if math.NormalizeAngle( ( Cronus.GetHeadPos( ent ) - LocalPlayer():GetShootPos()):Angle().y - LAng.y ) > fov then return false end
  484. if math.NormalizeAngle( ( Cronus.GetHeadPos( ent ) - LocalPlayer():GetShootPos()):Angle().y - LAng.y ) < -fov then return false end
  485. if math.NormalizeAngle( ( Cronus.GetHeadPos( ent ) - LocalPlayer():GetShootPos()):Angle().p - LAng.p ) < -fov then return false end
  486. if math.NormalizeAngle( ( Cronus.GetHeadPos( ent ) - LocalPlayer():GetShootPos()):Angle().p - LAng.p ) > fov then return false end
  487.  
  488. end
  489. return true
  490. end
  491.  
  492. function Cronus.FakeView(cmd)
  493. if GetConVarNumber("aim_silent") == 1 then
  494. Cronus.StoredAngle.p = math.Clamp(Cronus.StoredAngle.p + (cmd:GetMouseY() * 0.022), -89, 89)
  495. Cronus.StoredAngle.y = math.NormalizeAngle(Cronus.StoredAngle.y + (cmd:GetMouseX() * 0.022 * -1))
  496. Cronus.StoredAngle.r = 0
  497. end
  498. end
  499. hook.Add("CreateMove", "FakeView2", Cronus.FakeView)
  500.  
  501. local SetViewAngles = _R.CUserCmd.SetViewAngles
  502.  
  503. function AimHook( cmd )
  504. if GetConVarNumber("aim_silent") == 1 then
  505. local Forward = ((Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):GetNormal():Angle() + (cmd:GetViewAngles() - Cronus.StoredAngle)):Forward() * Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):Length())
  506. cmd:SetForwardMove(Forward.x)
  507. cmd:SetSideMove(Forward.y)
  508. end
  509. end
  510. hook.Add("CreateMove","SILENTSHITPENIS",AimHook)
  511.  
  512. function Cronus.CalcView(ply, pos, angles, fov)
  513. local view = {}
  514. view.origin = pos
  515. if Cronus.FixView == 1 and GetViewEntity() == LocalPlayer() and GetConVarNumber("aim_silent") == 1 then
  516. view.angles = Cronus.StoredAngle
  517. end
  518. view.fov = fov
  519. return view
  520. end
  521. hook.Add("CalcView", "FAKEVIEWPENIS", Cronus.CalcView)
  522.  
  523. // Spinbot // -- I made this super long and useless because I was too lazy to spend time on it.
  524. concommand.Add("+Spinbot", function()
  525. local normview = LocalPlayer():EyeAngles()
  526. hook.Add("CalcView", "NormalView", function()
  527. if spinbot then
  528. return {angles = normview}
  529. end
  530. end)
  531. hook.Add("CreateMove", "SpinHack", function(UCMD)
  532. spinbot = true
  533. local na = UCMD:GetViewAngles()
  534. Scrub(UCMD, Angle(na.p, na.y+30, na.r))
  535. end)
  536. end)
  537. concommand.Add("-Spinbot", function()
  538. spinbot = false
  539. hook.Remove("CalcView", "NormalView")
  540. hook.Remove("CreateMove", "SpinHack")
  541. end)
  542.  
  543. // Force sv_cheats // -- I made it optional because some servers autoban you for forcing sv_cheats
  544. function sv_cheats()
  545. if GetConVarNumber("misc_cheats") >= 1 then
  546. cvar2.SetValue( "sv_cheats", "1" )
  547. else
  548. cvar2.SetValue( "sv_cheats", "0" )
  549. end
  550. end
  551. hook.Add( "Think", "wtfhacker", sv_cheats )
  552.  
  553.  
  554. // Simple Chat Spam // -- Set your message at the top of the cheat "local SpamMessage"
  555. function ChatSpam()
  556. if GetConVarNumber( "misc_chatspam" ) == 1 then
  557. RunConsoleCommand( "say", ""..SpamMessage.."" )
  558. end
  559. end
  560. hook.Add( "Think", "chatspamomg", ChatSpam )
  561.  
  562.  
  563. // Laser Sight //
  564. function Cronus.Barrel( )
  565. if GetConVarNumber( "misc_removelaser" ) >= 1 then return end
  566. local ViewModel = LocalPlayer():GetViewModel()
  567. local Attach = ViewModel:LookupAttachment( '1' )
  568. if( !LocalPlayer():Alive() || LocalPlayer():GetActiveWeapon() == NULL ) then return; end
  569. if ( Attach == 0 ) then Attach = ViewModel:LookupAttachment( 'muzzle' ) end
  570. //if( !table.HasValue( LaserSightAllowed, LocalPlayer():GetActiveWeapon():GetClass() ) ) then return; end
  571. cam.Start3D( EyePos(), EyeAngles() )
  572. render.SetMaterial( Material( 'sprites/bluelaser1' ) )
  573. render.DrawBeam( ViewModel:GetAttachment( Attach ).Pos, LocalPlayer():GetEyeTrace().HitPos, 5, 0, 0, team.GetColor( LocalPlayer():Team() ) )
  574. cam.End3D()
  575. end
  576. hook.Add( 'RenderScreenspaceEffects', '\2\3', Cronus.Barrel )
  577.  
  578.  
  579. // Derma //
  580. local Menu
  581. function Menu()
  582.  
  583. local x, y = ScrW() / 2, ScrH() / 2
  584.  
  585. local Panel = vgui.Create( "DPropertySheet" )
  586. Panel:SetParent( menu )
  587. Panel:SetPos( x - 500 / 2, y - 300 / 2)
  588. Panel:SetSize( 500, 300 )
  589. Panel:MakePopup()
  590. Menu = Panel
  591.  
  592. local Aimpanel = vgui.Create( "DPanelList", Panel )
  593. local Esppanel = vgui.Create( "DPanelList", Panel )
  594. local Miscpanel = vgui.Create( "DPanelList", Panel )
  595. local InfoPage = vgui.Create( "DPanelList", Panel )
  596.  
  597.  
  598. local Text = vgui.Create("DLabel")
  599. Text:SetText( "Aimbot Settings: " )
  600. Text:SetParent( Aimpanel )
  601. Text:SetWide( 200 )
  602. Text:SetPos( 10, 0 )
  603. Text:SetTextColor( Color( 0, 255, 0, 255 ) )
  604.  
  605. --Aimbot
  606. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  607. Checkbox:SetText( "Friendly Fire" )
  608. Checkbox:SetParent( Aimpanel )
  609. Checkbox:SetPos( 10, 20 )
  610. Checkbox:SetConVar( "aim_friendly" )
  611. Checkbox:SizeToContents()
  612.  
  613. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  614. Checkbox:SetText( "Autoshoot" )
  615. Checkbox:SetParent( Aimpanel )
  616. Checkbox:SetPos( 10, 40 )
  617. Checkbox:SetConVar( "aim_auto" )
  618. Checkbox:SizeToContents()
  619.  
  620. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  621. Checkbox:SetText( "Remove Recoil" )
  622. Checkbox:SetParent( Aimpanel )
  623. Checkbox:SetPos( 10, 60 )
  624. Checkbox:SetConVar( "aim_removerecoil" )
  625. Checkbox:SizeToContents()
  626.  
  627. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  628. Checkbox:SetText( "Remove Spread" )
  629. Checkbox:SetParent( Aimpanel )
  630. Checkbox:SetPos( 10, 80 )
  631. Checkbox:SetConVar( "aim_removespread" )
  632. Checkbox:SizeToContents()
  633.  
  634. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  635. Checkbox:SetText( "Remove Anti-Aim" )
  636. Checkbox:SetParent( Aimpanel )
  637. Checkbox:SetPos( 10, 100 )
  638. Checkbox:SetConVar( "aim_removeaa" )
  639. Checkbox:SizeToContents()
  640.  
  641. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  642. Checkbox:SetText( "Silent Aim" )
  643. Checkbox:SetParent( Aimpanel )
  644. Checkbox:SetPos( 10, 120 )
  645. Checkbox:SetConVar( "aim_silent" )
  646. Checkbox:SizeToContents()
  647.  
  648. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  649. Checkbox:SetText( "Ignore Admins" )
  650. Checkbox:SetParent( Aimpanel )
  651. Checkbox:SetPos( 10, 140 )
  652. Checkbox:SetConVar( "aim_admins" )
  653. Checkbox:SizeToContents()
  654.  
  655. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  656. Checkbox:SetText( "Ignore Steam Friends" )
  657. Checkbox:SetParent( Aimpanel )
  658. Checkbox:SetPos( 10, 160 )
  659. Checkbox:SetConVar( "aim_steam" )
  660. Checkbox:SizeToContents()
  661.  
  662. local List = vgui.Create( "DMultiChoice" )
  663. List:SetPos( 260, 20 )
  664. List:SetParent( Aimpanel )
  665. List:SetSize( 220, 20 )
  666. List:AddChoice( "Head" )
  667. List:AddChoice( "Forward" )
  668. List:AddChoice( "Eyes" )
  669. List:SetConVar( "aim_offset" )
  670.  
  671. local Text = vgui.Create("DLabel")
  672. Text:SetText( "Aimspot" )
  673. Text:SetParent( Aimpanel )
  674. Text:SetWide( 200 )
  675. Text:SetPos( 260, 0 )
  676. Text:SetTextColor( Color( 0, 255, 0, 255 ) )
  677.  
  678. local NumberSlider = vgui.Create( "DNumSlider" )
  679. NumberSlider:SetPos( 260, 220 )
  680. NumberSlider:SetParent( Aimpanel )
  681. NumberSlider:SetWide( 220 )
  682. NumberSlider:SetText( "Aim Prediction" )
  683. NumberSlider:SetMin( 0 )
  684. NumberSlider:SetMax( 3 )
  685. NumberSlider:SetDecimals( 0 )
  686. NumberSlider:SetConVar( "aim_prediction" )
  687.  
  688. local FixView = vgui.Create("DButton")
  689. FixView:SetPos( 150, 20 )
  690. FixView:SetParent( Aimpanel )
  691. FixView:SetSize( 95, 25 )
  692. FixView:SetText( "Reset Aim Position" )
  693. FixView.DoClick = function()
  694. RunConsoleCommand( "FixView" )
  695. end
  696.  
  697.  
  698.  
  699. --ESP
  700. local Text = vgui.Create("DLabel")
  701. Text:SetText( "ESP And WallHack: " )
  702. Text:SetParent( Esppanel )
  703. Text:SetWide( 200 )
  704. Text:SetPos( 10, 0 )
  705. Text:SetTextColor( Color( 0, 255, 0, 255 ) )
  706.  
  707.  
  708. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  709. Checkbox:SetText( "Name And Health" )
  710. Checkbox:SetParent( Esppanel )
  711. Checkbox:SetPos( 10, 20 )
  712. Checkbox:SetConVar( "esp_info" )
  713. Checkbox:SizeToContents()
  714.  
  715. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  716. Checkbox:SetText( "Chams" )
  717. Checkbox:SetParent( Esppanel )
  718. Checkbox:SetPos( 10, 40 )
  719. Checkbox:SetConVar( "esp_chams" )
  720. Checkbox:SizeToContents()
  721.  
  722. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  723. Checkbox:SetText( "Bounding Box" )
  724. Checkbox:SetParent( Esppanel )
  725. Checkbox:SetPos( 10, 60 )
  726. Checkbox:SetConVar( "esp_box" )
  727. Checkbox:SizeToContents()
  728.  
  729. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  730. Checkbox:SetText( "World Wireframe" )
  731. Checkbox:SetParent( Esppanel )
  732. Checkbox:SetPos( 10, 80 )
  733. Checkbox:SetConVar( "esp_worldwire" )
  734. Checkbox:SizeToContents()
  735.  
  736.  
  737. --Info Page / ChangeLog
  738. local CronusInfoPage
  739. http.Get( "http://dl.dropbox.com/u/28497094/Project%20Cronus/Cronus/CronusInfoPage.txt", "", function( data )
  740. CronusInfoPage = vgui.Create("DLabel")
  741. CronusInfoPage:SetPos( 10, 5 )
  742. CronusInfoPage:SetParent( InfoPage )
  743. CronusInfoPage:SetText( data )
  744. CronusInfoPage:SizeToContents()
  745. CronusInfoPage:SetTextColor( Color( 255, 255, 255, 255 ) )
  746. end )
  747.  
  748. --Miscellaneous
  749.  
  750. local Text = vgui.Create("DLabel")
  751. Text:SetText( "Miscellaneous: " )
  752. Text:SetParent( Miscpanel )
  753. Text:SetWide( 200 )
  754. Text:SetPos( 10, 0 )
  755. Text:SetTextColor( Color( 0, 255, 0, 255 ) )
  756.  
  757. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  758. Checkbox:SetText( "Remove Skybox" )
  759. Checkbox:SetParent( Miscpanel )
  760. Checkbox:SetPos( 10, 20 )
  761. Checkbox:SetConVar( "misc_removesky" )
  762. Checkbox:SizeToContents()
  763.  
  764. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  765. Checkbox:SetText( "Remove Laser Sight" )
  766. Checkbox:SetParent( Miscpanel )
  767. Checkbox:SetPos( 10, 40 )
  768. Checkbox:SetConVar( "misc_removelaser" )
  769. Checkbox:SizeToContents()
  770.  
  771. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  772. Checkbox:SetText( "Crosshair" )
  773. Checkbox:SetParent( Miscpanel )
  774. Checkbox:SetPos( 10, 60 )
  775. Checkbox:SetConVar( "misc_crosshair" )
  776. Checkbox:SizeToContents()
  777.  
  778. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  779. Checkbox:SetText( "Force sv_cheats" )
  780. Checkbox:SetParent( Miscpanel )
  781. Checkbox:SetPos( 10, 80 )
  782. Checkbox:SetConVar( "misc_cheats" )
  783. Checkbox:SizeToContents()
  784.  
  785. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  786. Checkbox:SetText( "Chat Spam" )
  787. Checkbox:SetParent( Miscpanel )
  788. Checkbox:SetPos( 10, 100 )
  789. Checkbox:SetConVar( "misc_chatspam" )
  790. Checkbox:SizeToContents()
  791.  
  792. local Checkbox = vgui.Create( "DCheckBoxLabel" )
  793. Checkbox:SetText( "Force Other CVars" )
  794. Checkbox:SetParent( Miscpanel )
  795. Checkbox:SetPos( 10, 120 )
  796. Checkbox:SetConVar( "misc_CVarforce" )
  797. Checkbox:SizeToContents()
  798.  
  799. local NumberSlider = vgui.Create( "DNumSlider" )
  800. NumberSlider:SetPos( 260, 220 )
  801. NumberSlider:SetParent( Miscpanel )
  802. NumberSlider:SetWide( 220 )
  803. NumberSlider:SetText( "SpeedHack Speed" )
  804. NumberSlider:SetMin( 0 )
  805. NumberSlider:SetMax( 7 )
  806. NumberSlider:SetDecimals( 1 )
  807. NumberSlider:SetConVar( "Cronus_SpeedHack_Speed" )
  808.  
  809.  
  810.  
  811. Panel:AddSheet( "Aimbot", Aimpanel, "gui/silkicons/wrench", false, false, "Aimbot Settings" )
  812. Panel:AddSheet( "ESP", Esppanel, "gui/silkicons/group", false, false, "ESP/Wallhack" )
  813. Panel:AddSheet( "Miscellaneous", Miscpanel, "gui/silkicons/plugin", false, false, "Miscellaneous" )
  814. Panel:AddSheet( "Info/Changelog", InfoPage, "gui/silkicons/star", false, false, "Changelogs and Information" )
  815.  
  816. end
  817.  
  818. concommand.Add( "+Cronus_Menu", Menu )
  819. concommand.Add( "-Cronus_Menu", function()
  820. Menu:SetVisible( false )
  821. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement