Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lol:SendLua( pPlayer, [[
- local emitter = ParticleEmitter( LocalPlayer():GetPos() )
- local time = 0
- hook.Add( "Think", "wat", function()
- if CurTime() < time then
- return
- end
- time = CurTime() +0.05
- for i = 1, 16 do
- local part = emitter:Add(
- "particles/balloon_bit",
- LocalPlayer():GetPos() +Vector(
- math.random( -256, 256 ),
- math.random( -256, 256 ),
- 256
- )
- )
- if part then
- local Size = math.random( 4, 7 )
- part:SetColor( math.random(0, 255), math.random(0, 255), math.random(0, 255), 255 )
- part:SetVelocity( Vector( 40, 25, -math.random(300, 400) ) )
- part:SetDieTime( 4.5 )
- part:SetGravity( Vector(40, 0, -250) )
- part:SetLifeTime( 0 )
- part:SetStartSize( Size /2 )
- part:SetEndSize( Size )
- part:SetCollide( true )
- end
- end
- end )
- ]] )
- lol:SendLua( pPlayer, [[
- hook.Add( "RenderScreenspaceEffects", "wat", function()
- local sinScaler = math.sin( CurTime() )
- DrawBloom(
- 0,
- 3,
- sinScaler *math.Rand(1, 8),
- sinScaler *math.Rand(1, 8),
- 6,
- math.Rand(0.5, 2),
- math.Rand(0, 0.3),
- math.Rand(0, 0.3),
- math.Rand(0.5, 1)
- )
- DrawColorModify{
- ["$pp_colour_addr"] = 0,
- ["$pp_colour_addg"] = 0,
- ["$pp_colour_addb"] = 00,
- ["$pp_colour_brightness" ] = 0,
- ["$pp_colour_contrast" ] = 1,
- ["$pp_colour_colour" ] = 1,
- ["$pp_colour_mulr" ] = 0,
- ["$pp_colour_mulg" ] = 0,
- ["$pp_colour_mulb" ] = 1
- }
- 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 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement