Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 420 CODE
- if CLIENT then
- function Load420()
- LocalPlayer().snoopdogg = vgui.Create("HTML")
- LocalPlayer().snoopdogg:SetPos(ScrW()/1.35,ScrH()/2.4)
- LocalPlayer().snoopdogg:SetSize(80 + 50,207 + 50)
- LocalPlayer().snoopdogg:SetHTML( "<img src='http://x2.fjcdn.com/thumbnails/comments/I+didn+t+notice+Snoop+at+first+_45a03f0812115bd6bd6eca50224ef730.gif' class='smallimg'>" )
- LocalPlayer().snoopdogg:ParentToHUD()
- LocalPlayer().snoopdogg:SetVisible(false)
- LocalPlayer().dancingguy = vgui.Create("HTML")
- LocalPlayer().dancingguy:SetPos(ScrW()/4,(ScrH()/5))
- LocalPlayer().dancingguy:SetSize(220,120)
- LocalPlayer().dancingguy:SetHTML( "<img src='http://i.imgur.com/7rWn3nN.gif' class='smallimg'>" )
- LocalPlayer().dancingguy:ParentToHUD()
- LocalPlayer().dancingguy:SetVisible(false)
- LocalPlayer().blunt = vgui.Create("HTML")
- LocalPlayer().blunt:SetPos(120,ScrH() - 400)
- LocalPlayer().blunt:SetSize(420,420)
- LocalPlayer().blunt:SetHTML( "<img src='http://media.giphy.com/media/GWIpvD12KeoE/giphy.gif' class='smallimg'>" )
- LocalPlayer().blunt:ParentToHUD()
- LocalPlayer().blunt:SetVisible(false)
- LocalPlayer().mountaindew = vgui.Create("HTML")
- LocalPlayer().mountaindew:SetPos(ScrW() - 250 ,30)
- LocalPlayer().mountaindew:SetSize(420,420)
- LocalPlayer().mountaindew:SetHTML( "<img src='http://upload.wikimedia.org/wikipedia/en/thumb/b/b3/Mountain_Dew_logo.svg/200px-Mountain_Dew_logo.svg.png' class='smallimg'>" )
- LocalPlayer().mountaindew:ParentToHUD()
- LocalPlayer().mountaindew:SetVisible(false)
- end
- function show420(bool)
- if bool then
- LocalPlayer().snoopdogg:SetVisible(true)
- LocalPlayer().dancingguy:SetVisible(true)
- LocalPlayer().blunt:SetVisible(true)
- LocalPlayer().mountaindew:SetVisible(true)
- should420 = true
- else
- LocalPlayer().snoopdogg:SetVisible(false)
- LocalPlayer().dancingguy:SetVisible(false)
- LocalPlayer().blunt:SetVisible(false)
- LocalPlayer().mountaindew:SetVisible(false)
- wyozimc.Stop()
- should420 = false
- end
- end
- local tab =
- {
- [ "$pp_colour_addr" ] = 0.02,
- [ "$pp_colour_addg" ] = 0.02,
- [ "$pp_colour_addb" ] = 0,
- [ "$pp_colour_brightness" ] = 0,
- [ "$pp_colour_contrast" ] = 1,
- [ "$pp_colour_colour" ] = 3,
- [ "$pp_colour_mulr" ] = 0,
- [ "$pp_colour_mulg" ] = 0.02,
- [ "$pp_colour_mulb" ] = 0
- }
- hook.Add("RenderScreenspaceEffects","swagweed",function()
- if should420 or false then
- tab[ "$pp_colour_addr" ] = (math.sin(CurTime() + 0.3) * 0.2 + 0.15)
- tab[ "$pp_colour_addg" ] = (math.sin(CurTime() + 0.6) * 0.2 + 0.15)
- tab[ "$pp_colour_addb" ] = (math.sin(CurTime()) * 0.2 + 0.15)
- DrawColorModify( tab )
- DrawToyTown( 3, ScrH()/2 )
- end
- end)
- end
- -- REACTIONS
- epicjb.reactionsounds = {
- "http://puu.sh/8R8qV.ogg",
- "http://puu.sh/8R8sk.ogg",
- "http://puu.sh/8R8sU.ogg",
- "http://puu.sh/8R8tq.ogg",
- "http://puu.sh/8R8tX.ogg",
- "http://puu.sh/8R8uq.ogg"
- }
- if SERVER then
- hook.Add("PlayerDeath","reactionsound",function(vic,wep,killer)
- if not killer:IsValid() or not killer:IsPlayer() then return end
- if not killer:GetActiveWeapon():IsValid() then return end
- local weapon = killer:GetActiveWeapon():GetClass() or "swagnigger"
- if weapon == "weapon_jb_noscope" then
- killer:SendLua([[ sound.PlayURL(table.Random(epicjb.reactionsounds),"",function() end)]])
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement