Awesome. Could you make it so you make it so you can mess around with the power, recoil, accuracy or even launching stuff. I don't code so I don't know how hard it will be.
I understand that some things simply can't be coded. :)
Oh, OK but I'd immediately change the name. When I saw "SWEP Construction Kit" I thought that it'd make SWEP's rather than V_models.
Don't get the wrong end of the stick this is a good release.
Well, with that tool your first swep might look interesting. awesome work.
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?
Nvm. Lol didn't check the new update before typing that.
The viewmodel position looks entirely different. It looks a lot closer then normal and none of the animations are working for the AWP when it used to for the other version.
The animations are a different issue. GMod isn't happy that the viewmodel is changed and decides it doesn't want to animate it any more. Can't do much about that.
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.
The only thing that would Perfect this is one thing......
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.
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.
Mr. Green community member NECROSSIN created this design:
I'd love to see what you guys are making!
@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.
Added a gallery to OP.
I think I found a bug. In the current version on Toybox, when you save and load (tried this with a few sprites) - the second size box reverts to what the first box says.
For example, is what the size boxes first read. Then I saved and loaded it, and it reverted to
Ah right, noted. Bug in how the panels are build up.
Wait, according to the code this shouldn't happen... I'll take a closer look.
how can i get a SWEP script? plz Reply
Do I put the base script before or after my script? Sorry if this is a stupid question but i'm new to lua :p.
Im assuming before, but....
On a side note this is a very great tool. Your tool was actually the only reason I attempted to create a swep, thank you.
Like said earlier, you need to include a skeleton swep in next release with your code in it.
Since some of you seem to be so intent on not-learning-how-to-script, I've copied the Desert Eagle code from the default CSS weapons GMod provides and added my base code:
REMOVED because it's outdated
But promise me this: don't submit any 5-second-SWEPs created with the above base to Toybox. Try to come up with some cool / unique functionality.
Ah yes that will satisfy most.
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....
Sorry to bother you.
Secondly, you define SWEP:Initialize twice, which means the last one overrides your first one. Merge them:
function SWEP:Initialize() util.PrecacheSound(self.Primary.Sound) util.PrecacheSound(self.Secondary.Sound) self:SetWeaponHoldType( self.HoldType ) self.Weapon:SetNetworkedBool( "Ironsights", false ) if CLIENT then self:CreateModels(self.VElements) // create viewmodels self:CreateModels(self.WElements) // create worldmodels end end
Works perfectly, the only problem is the recoil of the HL2 SMG model pushes the gun back and the models just stay there, they don't move with the gun itself.
call it SWEP Designer maybe?
Or SWEP Appearance Customizer :P haha jk, but on a serious note, this addon is pretty epic and I've yet to encounter any bugs with it.
Oh btw, that crossbow LOOKS EPIC.
Re-download but swep is gone
So, I save the config? Because when i open it, i see boxes, and notepad++ has wierd icons everywhere: with SOH and BEL in everywhere
Holy shit, you deserve all those lua king ratings.
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.