Makeing a swep base

Hi, I’ve been experimenting with swep makeing lately. I’ve made a few on various swep bases, such as Madcows, Realistic swep base, Evan one on the GDC base.

I know how to make a basic swep, But I’ve decided I want to make my own swep base…

http://wiki.garrysmod.com/?title=Lua I’ve been reading this, but it hasent really helped… I was wondering if anyone here could lend me a hand?

Creating weapons off of a base doesn’t include even the slightest programming most of the time, just settings some variables doesn’t count as programming, learn how to create a simple swep without using a base.

Once you’ve Learnt that just hide your swep which you want to be a base and link other sweps to use the swep you created earlier as the base.

Ahhh, Thanks

So useing this as a refrence I should ba able to make one?

// Show debug info?
local debug = true

//----------------------------------------------
//Author Info
//----------------------------------------------
SWEP.Author = “— AUTHOR NAME —”
SWEP.Contact = “— CONTACT EMAIL —”
SWEP.Purpose = “— PURPOSE —”
SWEP.Instructions = “— INSTRUCTIONS —”
//----------------------------------------------

SWEP.Spawnable = true
SWEP.AdminSpawnable = true
// First person Model
SWEP.ViewModel = “models/weapons/v_pistol.mdl”
// Third Person Model
SWEP.WorldModel = “models/weapons/w_pistol.mdl”
// Weapon Details
SWEP.Primary.Clipsize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = “none”
SWEP.Secondary.Clipsize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = “none”
// Sound
local ShootSound = Sound (“Metal.SawbladeStick”)

//--------------------------------------------
// Called when it reloads
//--------------------------------------------
function SWEP:Reload()
if debug then
print(“Reload”)
// Shove your debugging code in here
end

// All reload code goes in here

end

//--------------------------------------------
// Called each frame when the Swep is active
//--------------------------------------------
function SWEP:Think()

end

//--------------------------------------------
// Called when the player Shoots
//--------------------------------------------
function SWEP:PrimaryAttack()
if debug then
print(“Primary Attack”)
// Put Your debugging Code in here
end

// Any Code you want to be executed when the player uses primary attack goes in here
self:EmitSound(ShootSound)

end

//--------------------------------------------
// Called when the player Uses secondary attack
//--------------------------------------------
function SWEP:SecondaryAttack()
if debug then
print(“Secondary Attack”)
// Put your debugging code in here
end

// Any Code you want to my executed when the player uses secondary attack goes in here
self:EmitSound(ShootSound)

end