Permalink
Browse files

Moved Tool Gun's PrintName Shared

  • Loading branch information...
1 parent e456d6f commit 1066b25d0996d88d9c29f912e8141fe74e4de7dd @robotboy655 robotboy655 committed Apr 20, 2016
@@ -10,7 +10,6 @@ end, "gmod_toolmode_panel" )
include( "shared.lua" )
include( "cl_viewscreen.lua" )
-SWEP.PrintName = "Tool Gun"
SWEP.Slot = 5
SWEP.SlotPos = 6
SWEP.DrawAmmo = false
@@ -92,7 +91,7 @@ function SWEP:DrawHUD()
QuadTable.y = y
QuadTable.h = self.InfoBoxHeight
- local alpha = math.Clamp( 255 + ( self:GetToolObject().LastMessage - CurTime() ) * 800, 10, 255 )
+ local alpha = math.Clamp( 255 + ( self:GetToolObject().LastMessage - CurTime() ) * 800, 10, 255 )
QuadTable.color = Color( alpha, alpha, alpha, 230 )
draw.TexturedQuad( QuadTable )
@@ -101,7 +100,7 @@ function SWEP:DrawHUD()
TextTable.font = "GModToolHelp"
if ( !self:GetToolObject().Information ) then
- TextTable.pos = { x + self.InfoBoxHeight, y }
+ TextTable.pos = { x + self.InfoBoxHeight, y }
TextTable.text = self:GetToolObject():GetHelpText()
w, h = draw.TextShadow( TextTable, 1 )
@@ -1,44 +1,45 @@
-- Variables that are used on both client and server
+SWEP.PrintName = "Tool Gun"
SWEP.Author = ""
-SWEP.Contact = ""
-SWEP.Purpose = ""
-SWEP.Instructions = ""
+SWEP.Contact = ""
+SWEP.Purpose = ""
+SWEP.Instructions = ""
-SWEP.ViewModel = "models/weapons/c_toolgun.mdl"
-SWEP.WorldModel = "models/weapons/w_toolgun.mdl"
-SWEP.AnimPrefix = "python"
+SWEP.ViewModel = "models/weapons/c_toolgun.mdl"
+SWEP.WorldModel = "models/weapons/w_toolgun.mdl"
+SWEP.AnimPrefix = "python"
-SWEP.UseHands = true
-SWEP.Spawnable = true
+SWEP.UseHands = true
+SWEP.Spawnable = true
-- Be nice, precache the models
util.PrecacheModel( SWEP.ViewModel )
util.PrecacheModel( SWEP.WorldModel )
-- Todo, make/find a better sound.
-SWEP.ShootSound = Sound( "Airboat.FireGunRevDown" )
+SWEP.ShootSound = Sound( "Airboat.FireGunRevDown" )
-SWEP.Tool = {}
+SWEP.Tool = {}
SWEP.Primary =
{
- ClipSize = -1,
+ ClipSize = -1,
DefaultClip = -1,
Automatic = false,
Ammo = "none"
}
SWEP.Secondary =
{
- ClipSize = -1,
+ ClipSize = -1,
DefaultClip = -1,
Automatic = false,
Ammo = "none"
}
-SWEP.CanHolster = true
-SWEP.CanDeploy = true
+SWEP.CanHolster = true
+SWEP.CanDeploy = true
function SWEP:InitializeTools()

0 comments on commit 1066b25

Please sign in to comment.