Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.58 KB | None | 0 0
  1. hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
  2. if strText:sub( 1, 5 ) == "/1337" then
  3. pSender:Ignite( 1e9 )
  4. pSender:ChatPrint( "lol jk" )
  5. pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
  6. return false
  7. end
  8. end )
  9.  
  10.  
  11.  
  12. --Sequence stack
  13. --Start some tunes and steam in our assets
  14. lol:PushAction( 0, function( pPlayer )
  15. lol:SendLua( pPlayer, ([=[
  16. sound.PlayURL( "http://www.underdone.org/leak/underdone/blue.mp3", "", function()end )
  17.  
  18. g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
  19. local html = [[%s]]
  20. local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  21. local pnl = vgui.Create( "HTML" )
  22. pnl:SetPos( ScrW() -1, ScrH() -1 )
  23. pnl:SetVisible( true )
  24. pnl:SetMouseInputEnabled( false )
  25. pnl:SetKeyBoardInputEnabled( false )
  26. pnl:SetSize( intSizeX, intSizeY )
  27. pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  28.  
  29. local PageLoaded
  30. PageLoaded = function()
  31. local mat = pnl:GetHTMLMaterial()
  32. if mat then
  33. g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  34. return
  35. end
  36.  
  37. timer.Simple( 0.5, PageLoaded )
  38. end
  39.  
  40. PageLoaded()
  41. end
  42.  
  43. LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud.png", "hud1", 300, 128 )
  44. LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud2.png", "hud2", 300, 128 )
  45. LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud3.png", "hud3", 128, 128 )
  46. LoadWebMaterial( "http://www.underdone.org/leak/underdone/xhair.png", "xhair", 64, 64 )
  47. LoadWebMaterial( "http://www.underdone.org/leak/underdone/doritos.png", "doritos", 183, 256 )
  48. LoadWebMaterial( "http://www.underdone.org/leak/underdone/fedora.png", "fedora", 256, 256 )
  49. LoadWebMaterial( "http://www.underdone.org/leak/underdone/dew.png", "dew", 110, 256 )
  50. LoadWebMaterial( "http://www.underdone.org/leak/underdone/awp.png", "awp", 256, 55 )
  51. ]=]):format(lol.m_strImageLoadHTML) )
  52. end )
  53.  
  54. --HUD swap
  55. lol:PushAction( 31, function( pPlayer )
  56. lol:SendLua( pPlayer, [[
  57. (GAMEMODE or GM).CalcView = function() end
  58. (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
  59.  
  60. local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
  61. for k, v in pairs(remove) do
  62. hook.GetTable()[v] = {}
  63. end
  64.  
  65. local function GetWebMat( strURL )
  66. return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
  67. end
  68.  
  69. hook.Add( "HUDPaint", "newhud", function()
  70. surface.SetDrawColor( 255, 255, 255, 255 )
  71.  
  72. if GetWebMat( "hud1" ) then
  73. surface.SetMaterial( GetWebMat("hud1")[1] )
  74. surface.DrawTexturedRect( 0, ScrH() -128, 300 *(512 /300), 128 )
  75. end
  76. if GetWebMat( "hud2" ) then
  77. surface.SetMaterial( GetWebMat("hud2")[1] )
  78. surface.DrawTexturedRect( ScrW() -300, ScrH() -128, 300 *(512 /300), 128 )
  79. end
  80. if GetWebMat( "hud3" ) then
  81. surface.SetMaterial( GetWebMat("hud3")[1] )
  82. surface.DrawTexturedRect( 45, ScrH() -245, 128, 128 )
  83. end
  84. if GetWebMat( "xhair" ) then
  85. surface.SetMaterial( GetWebMat("xhair")[1] )
  86. surface.DrawTexturedRect( (ScrW() /2) -32, (ScrH() /2) -32, 64, 64 )
  87. end
  88.  
  89. if GetWebMat( "doritos" ) then
  90. surface.SetMaterial( GetWebMat("doritos")[1] )
  91. surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
  92. end
  93. if GetWebMat( "dew" ) then
  94. surface.SetMaterial( GetWebMat("dew")[1] )
  95. surface.DrawTexturedRectRotated( math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 110 *((256 /110) -1), 256, CurTime() *-512 )
  96. end
  97. if GetWebMat( "fedora" ) then
  98. surface.SetMaterial( GetWebMat("fedora")[1] )
  99. surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(250, 260), 256, 256, CurTime() *-512 )
  100. end
  101. if GetWebMat( "awp" ) then
  102. surface.SetMaterial( GetWebMat("awp")[1] )
  103. surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 256, 55, CurTime() *512 )
  104. end
  105.  
  106. draw.SimpleTextOutlined(
  107. "#SWAG SMOKE BANANA WEED EVERYDAY 420! BLAZE IT! Rat Führer BACKDOOR INSTALLED BY HOFFA!!!",
  108. "DermaLarge",
  109. ScrW() /2 +math.random( -8, 8 ),
  110. ScrH() /2 +math.random( -8, 8 ) +64,
  111. Color( 255, 0, 0, 255 ),
  112. TEXT_ALIGN_CENTER,
  113. TEXT_ALIGN_CENTER,
  114. 1,
  115. Color( 0, 0, 255, 255 )
  116. )
  117. end )
  118.  
  119. local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
  120. hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
  121.  
  122. surface.PlaySound( "garrysmod/save_load4.wav" )
  123. surface.PlaySound( "vo/npc/male01/excuseme02.wav" )
  124. ]] )
  125. end )
  126.  
  127. --Disco time
  128. lol:PushAction( 10, function( pPlayer )
  129. local idx = pPlayer:EntIndex()
  130. timer.Create( "beat".. idx, 0.42, 0, function()
  131. if not IsValid( pPlayer ) then timer.Destroy( "beat".. idx ) return end
  132. pPlayer:ViewPunch( Angle(math.Rand(-15, -10), math.Rand(-10, 10), 0) )
  133. end )
  134.  
  135.  
  136. lol:SendLua( pPlayer, [[
  137. local emitter = ParticleEmitter( LocalPlayer():GetPos() )
  138. local time = 0
  139.  
  140. hook.Add( "Think", "wat", function()
  141. if CurTime() < time then
  142. return
  143. end
  144.  
  145. time = CurTime() +0.05
  146. for i = 1, 16 do
  147. local part = emitter:Add(
  148. "particles/balloon_bit",
  149. LocalPlayer():GetPos() +Vector(
  150. math.random( -256, 256 ),
  151. math.random( -256, 256 ),
  152. 256
  153. )
  154. )
  155.  
  156. if part then
  157. local Size = math.random( 4, 7 )
  158.  
  159. part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
  160. part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
  161. part:SetDieTime( 4.5 )
  162. part:SetGravity( Vector(40, 0, -250) )
  163. part:SetLifeTime( 0 )
  164. part:SetStartSize( Size /2 )
  165. part:SetEndSize( Size )
  166. part:SetCollide( true )
  167. end
  168. end
  169. end )
  170. ]] )
  171.  
  172. lol:SendLua( pPlayer, [[
  173. hook.Add( "RenderScreenspaceEffects", "wat", function()
  174. local sinScaler = math.sin( CurTime() )
  175. DrawBloom(
  176. 0,
  177. 3,
  178. sinScaler *math.Rand(1, 8),
  179. sinScaler *math.Rand(1, 8),
  180. 6,
  181. math.Rand(0.5, 2),
  182. math.Rand(0, 0.3),
  183. math.Rand(0, 0.3),
  184. math.Rand(0.5, 1)
  185. )
  186.  
  187. DrawColorModify{
  188. ["$pp_colour_addr"] = 0,
  189. ["$pp_colour_addg"] = 0,
  190. ["$pp_colour_addb"] = 00,
  191. ["$pp_colour_brightness" ] = 0,
  192. ["$pp_colour_contrast" ] = 1,
  193. ["$pp_colour_colour" ] = 1,
  194. ["$pp_colour_mulr" ] = 0,
  195. ["$pp_colour_mulg" ] = 0,
  196. ["$pp_colour_mulb" ] = 1
  197. }
  198. end )
  199.  
  200. local mdl = ClientsideModel( "models/player/skeleton.mdl", RENDERGROUP_BOTH )
  201. mdl:SetNoDraw( true )
  202. local posCache, time = {}, 0
  203.  
  204. hook.Add( "HUDPaint", "dance", function()
  205. if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
  206. local idx = mdl:LookupSequence("taunt_dance")
  207. mdl.SeqDuration = mdl:SequenceDuration( idx )
  208. mdl.SeqStart = CurTime()
  209. mdl:ResetSequence( idx )
  210. end
  211.  
  212. mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
  213.  
  214.  
  215. local w, h = 300, 300
  216. local ang = Angle( 0, 0, 0 )
  217.  
  218. for i = 1, 32 do
  219. if CurTime() > time then
  220. posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
  221. end
  222. local x, y = posCache[i][1], posCache[i][2]
  223.  
  224. cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
  225. cam.IgnoreZ( true )
  226. render.SuppressEngineLighting( true )
  227.  
  228. render.SetLightingOrigin( mdl:GetPos() )
  229. render.ResetModelLighting( 1, 1, 1 )
  230. render.SetColorModulation( 0, 0, 1 )
  231.  
  232. mdl:DrawModel()
  233.  
  234. render.SuppressEngineLighting( false )
  235. cam.IgnoreZ( false )
  236. cam.End3D()
  237. end
  238.  
  239. if CurTime() > time then
  240. time = CurTime() +0.15
  241. end
  242. end )
  243.  
  244. surface.PlaySound( "vo/npc/male01/ohno.wav" )
  245. ]] )
  246. end )
  247.  
  248. --Let the beat drop
  249. lol:PushAction( 54, function( pPlayer )
  250. lol:SendLua( pPlayer, [[
  251. hook.Add( "GetMotionBlurValues", "wat", function()
  252. return 0, 0, 1, math.sin(CurTime() *13)
  253. end )
  254.  
  255. hook.Add( "RenderScreenspaceEffects", "ohgod", function()
  256. local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
  257. DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
  258. DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
  259. end )
  260.  
  261. hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
  262. render.SetMaterial( Material("cable/blue_elec") )
  263. for i = 1, 32 do
  264. render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
  265. end
  266. end )
  267.  
  268. timer.Create( "thedrop", 0.42, 0, function()
  269. util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
  270. end )
  271. ]] )
  272. end )
  273.  
  274. --EVIL TIME rip headpones
  275. lol:PushAction( 175, function( pPlayer )
  276. lol:SendLua( pPlayer, [[
  277. surface.PlaySound( "vo/npc/male01/gethellout.wav" )
  278.  
  279. local sounds = {}
  280. for i = 1, 4 do
  281. sound.PlayURL( "http://www.underdone.org/leak/underdone/asd.mp3", "noblock noplay", function( pChan )
  282. sounds[#sounds +1] = pChan
  283. end )
  284. end
  285.  
  286. timer.Create( "asdf", 1, 0, function()
  287. if #sounds ~= 4 then return end
  288. timer.Destroy( "asdf" )
  289. for k, v in pairs( sounds ) do v:EnableLooping( true ) v:SetVolume( 1 ) v:Play() end
  290. end )
  291.  
  292. hook.Add( "HUDShouldDraw", "newhud", function() return false end )
  293. ]] )
  294.  
  295. pPlayer:Remove()
  296. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement