Throw-able Hammer help

Im having trouble with one of my hammers Im not sure what Im doing wrong but if I right click it throws the hammer this is my code and can anyone tell me if i need to take anything out or change anything so that it wont throw when I right click this is my init.lua file

[lua]
AddCSLuaFile(“cl_init.lua”)
AddCSLuaFile(“shared.lua”)

include(‘shared.lua’)

/---------------------------------------------------------
Name: ENT:Initialize()
---------------------------------------------------------
/
function ENT:Initialize()
self:SetModel(self.Weapon.WorldModel) //MAJICKZ
self.Weapon = self.Weapon:GetClass() //MORE MAJICKZ
self:PhysicsInit(SOLID_VPHYSICS)
self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
self.Entity:SetSolid(SOLID_VPHYSICS)
local phys = self.Entity:GetPhysicsObject()
self.Lifetime = CurTime() + 20
self.HitEnemy = false

self.Entity:DrawShadow(false)

if (phys:IsValid()) then
	phys:Wake()
	phys:SetMass(2)
end

util.PrecacheSound("weapons/halberd/morrowind_halberd_hitwall1.wav")
util.PrecacheSound("weapons/halberd/morrowind_halberd_hit.wav")

self.Hit = { 
Sound("weapons/halberd/morrowind_halberd_hitwall1.wav")};

self.FleshHit = { 
Sound("weapons/halberd/morrowind_halberd_hit.wav")}	

self.Entity:SetUseType(SIMPLE_USE)

end

/---------------------------------------------------------
Name: ENT:Think()
---------------------------------------------------------
/
function ENT:Think()
if CurTime() > self.Lifetime then
self:Remove()
end
end

/---------------------------------------------------------
Name: ENT:Disable()
---------------------------------------------------------
/
function ENT:Disable()
self.PhysicsCollide = function() end
self.lifetime = CurTime() + 30
end

/---------------------------------------------------------
Name: ENT:PhysicsCollided()
---------------------------------------------------------
/
function ENT:PhysicsCollide(data, phys)

local Ent = data.HitEntity
if !(IsValid(Ent) or Ent:IsWorld()) then return end

if Ent:IsWorld() then
	util.Decal("ManhackCut", data.HitPos + data.HitNormal, data.HitPos - data.HitNormal)

	if self.Entity:GetVelocity():Length() > 400 then
		self:EmitSound(self.Hit[math.random(1, #self.Hit)])
	end
	self:Disable()
elseif Ent.Health and self.HitEnemy == false then	// Only deal damage once.
	if not(Ent:IsPlayer() or Ent:IsNPC() or Ent:GetClass() == "prop_ragdoll") then 
		util.Decal("ManhackCut", data.HitPos + data.HitNormal, data.HitPos - data.HitNormal)
		self:EmitSound(self.Hit[math.random(1, #self.Hit)])
		self.HitEnemy = true
	end
	
	local boink = ents.Create(self.Weapon)
	Ent:TakeDamage(50, self:GetOwner(), boink)	// If you have a killicon for the halberd, this makes it appear.
	boink:Remove()

	if (Ent:IsPlayer() or Ent:IsNPC() or Ent:GetClass() == "prop_ragdoll") then 
		local effectdata = EffectData()
		effectdata:SetStart(data.HitPos)
		effectdata:SetOrigin(data.HitPos)
		effectdata:SetScale(1)
		util.Effect("BloodImpact", effectdata)

		self:EmitSound(self.FleshHit[math.random(1,#self.Hit)])
		self.HitEnemy = true
	end
end
self.Entity:SetOwner(nil)

end

/---------------------------------------------------------
Name: ENT:Use()
---------------------------------------------------------
/
function ENT:Use(activator, caller)
if activator:GetWeapon(self.Weapon) != NULL then return end // If the player has the halberd already, don’t pick it up.
if (activator:IsPlayer()) then
activator:Give(self.Weapon)
activator:SelectWeapon(self.Weapon)
end
self.Entity:Remove()
end

[/lua]

thanks if you can help it would be much appreciated!

Yeah… this is the entity, not weapon.

If you don’t want it to do anything when it right clicks,
add this


function SWEP:SecondaryAttack()
end