For some reason I put the self:CreateViewModels() in the shared file under Initialize() and only run for CLIENT, but i still cant see it. I put it in the weapon base I have for TTT. I executed it clientside while I have the weapon out and it works. Also if I ran the command more than once on a client the models/sprites won't stack right?

For some reason I put the self:CreateViewModels() in the shared file under Initialize() and only run for CLIENT, but i still cant see it. I put it in the weapon base I have for TTT. I executed it clientside while I have the weapon out and it works. Also if I ran the command more than once on a client the models/sprites won't stack right?

They won't stack. Do mind that for the new version there is new base code.

Slight suggestion. How about next update you include a skeleton swep, like the "Swep Creator" that gives you a shared file, only include all of your code so people who don't know how to script can make there sweps work, by just putting in stuff like Damage and recoil and stuff... just a suggestion, will satisfy alot of people who don't take the time to learn lua.

Though a problem with my suggestion there would be that people would create very simple creations that they think are cool, and suck.

Make a button, that you can click to make it a Fully working swep. But, then you need to copy the SWEP codes and everything to make it fire etc, into a Garrysmod addon folder. Then restart gmod, and BOOM! you got the sweps :D

Can't seem to understand your lua settings.... Ive got the stuff I want... But when it comes time to do the Lua part... I don't understand what to do exactly... Is it possible to post a tutorial on how to do the lua portion... I'm not a lua guy so this is rather difficult for me.

Slight suggestion. How about next update you include a skeleton swep, like the "Swep Creator" that gives you a shared file, only include all of your code so people who don't know how to script can make there sweps work, by just putting in stuff like Damage and recoil and stuff... just a suggestion, will satisfy alot of people who don't take the time to learn lua.

Though a problem with my suggestion there would be that people would create very simple creations that they think are cool, and suck.

Still, it would help rack in downloads and pleasure nubs.

I could do this, but I don't think I want to. It really is piss easy to add my base code if you know even a tiny bit about how a SWEP script actually works. I'm trying to encourage SWEP creators to actually learn this stuff, instead of being stuck at changing recoil and damage values.

Edited:

If you really can't get it to work, dump your SWEP code on pastebin.com and give me a link. I'll tell you where it goes wrong.

@Clavus- I thing that Ashmourne is right. You should make SWEP Creator because not everyone have time to learn code but they want have some fun with yours tool. And if you advanced then you can just modify file of sweep :D And if you make it it will become popular like PAC2 (maybe ;p)

I disagree with all of you who think that this should have a SWEP creator within. In my opinion, this should be used as a developer tool to make your weapons more unique, and to avoid the trouble of getting a modeller. If you don't know how to code - then either learn or leave this alone.

I'm sure none of us would want a load more 5 second SWEPs coming onto GMod.org.

Ok so basically what do I need to add/change to make this script work? There is going to be a lot wrong with it, i'm new to lua, and was never good with those sort of things.... http://pastebin.com/sqGLsFTa
Sorry to bother you.

Ok so basically what do I need to add/change to make this script work? There is going to be a lot wrong with it, i'm new to lua, and was never good with those sort of things.... http://pastebin.com/sqGLsFTa
Sorry to bother you.

First off, SWEP.ViewModel and SWEP.WorldModel are the paths to the original viewmodel and the worldmodel that GMod will use for your weapon. Just look at the base code I posted above to see where you place the SWEP.VElements and SWEP.WElements table.

Secondly, you define SWEP:Initialize twice, which means the last one overrides your first one. Merge them:

Okay so i am using this to make a swep from fallout (Silenced N99 pistol) I already had the N99 pistol, so i used the USP to make it look silenced. Please tell me what i did wrong here

In swep Construction Kit

In my Swep

The swep functions correctly, it makes the correct sound, fires at the right rate at the right damage, And the world model worked perfectly, but the view model did this. I tried restarting but had similar results. i even reinstalled the swep construction kit. Please tell me what i did wrong.