SWEP Creation - remove default actions

When I create a SWEP with just the basics, it has a primary / secondary attack and fires bullets ( I think like a shotgun? )

How can you disable this to start from scratch?

I’ve tried having SWEP:PrimaryAttack() functions etc. but it’s doing the default on-top of my own.



include( "shared.lua" )
AddCSLuaFile( "shared.lua" )
AddCSLuaFile( "cl_init.lua" )

SWEP.Primary.ClipSize 			= 50
SWEP.Primary.DefaultClip 		= 10
SWEP.Primary.Automatic 			= false
SWEP.Primary.Ammo 				= "none"

SWEP.Secondary.ClipSize 		= 50
SWEP.Secondary.DefaultClip 		= 10
SWEP.Secondary.Automatic 		= false
SWEP.Secondary.Ammo 			= "none"

function SWEP:Initialize()
end

function SWEP:Think()
end

function SWEP:Reload()
end

function SWEP:PrimaryAttack()
	print( "Primary Attack" )
end

function SWEP:SecondaryAttack()
	print( "Secondary Attack" )
end




SWEP.Author 			= "Semajnad"
SWEP.Contact 			= ""
SWEP.Purpose 			= ""
SWEP.Instructions 		= ""

SWEP.PrintName			= ""
SWEP.Category 			= ""

SWEP.Spawnable 			= true
SWEP.AdminSpawnable 	= true

SWEP.ViewModel			= "models/Weapons/v_blazer.mdl"
SWEP.WorldModel			= "models/Weapons/w_blazer.mdl"

SWEP.Base				= "weapon_base"

SWEP.Slot				= 1


[editline]29th January 2017[/editline]

Balls, never-mind - realised I had to over-ride it client-side as well :smiley: