How to construct own Swep Base?

Yeah, I want ot make my own Swep Base but I don’t know what’s purpose of that and I don’t know how to write it; what it must contain.

SORRY FOR THAT STUPID QUESTION BUT I WANT TO KNOW IT!!!

first make some small addons, to learn how (g)lua and gmod works. Use existing swep bases and make swep’s to see how its made and what you need.

The base is just it’s own SWEP, except it’s not spawnable and you don’t have to redefine when making a weapon with it.

Ok but I hear there are stored custom functions

That’s what I meant by “You don’t have to redefine”. You can make custom functions wherever and whenever you want :v

I want to hide all of “function SWEP:PrimaryAttack” in my code. Can I define it in SWep Base?

Again, that’s what “not having to redefine” is meaning :V

OK Thanks

[editline]2nd December 2014[/editline]

I hava one more question about swep base: Why SWep base is defined in Swep code? (SWEP.Base = “example_base”)

How else are you gonna derive from it? :v:

How SWEP Derive from base?

SWEP.Base ._.

(My last post was more of a joke then an actual question)

Yeah but what informations will be derive from the Base?

Everything until it’s overwritten in the weapon you’re deriving from.

OK