Making two threads doesn’t get double the help every time
Anyways, create a folder called ‘Weapon’ (You can change it later)
Inside, create a folder called lua. Inside THAT create a folder called weapons, and inside that make a folder called weapon_gungun (you can change that later too.)Inside the weapon_gungun you put your weapons code.
Go back to the main folder there the lua folder is. Create a folder called models. Inside that create one called weapons. Your models go there ( “models/weapons/v/w_name.mdl” )
The ViewModel is what you see on your screen, and the WorldModel is what others see you holding.
If you want to use a custom model for your SWEP put it in models/weapons and copy the .mdl name for the v_ model. ( “v_name.mdl” ) and put that in the SWEP.ViewModel = " " part.
If there isn’t a world model then use the closest thing you can for a world model, (if it’s a pistol use w_pistol.mdl, if its an SMG use v_smg1.mdl, ect.)
SWEP.ReloadSound only works if you derive from weapon_base I think, I haven’t really checked, but this is the sound that plays when you reload. Usually I make my own sounds, (Like when I made a Deagle SWEP I loaded all the sounds from CS:S and combined them and tested to make sure the sounds matched the animations. I used Audacity.)
When you finish your sounds, create a folder inside the folder we called ‘Weapon’ named sound, create one inside that called weapons, and put your sound in there. For the path for SWEP.ReloadSound it would be, as you should know, sound/weapons/name.wav.
After you have all your lua done, models in the right places, and sounds in the right place, you need an info text file inside the main folder. Inside of this place this text:
"name" "My weapon"
"up_date" "Date Made"
"author_name" "Your name"
"author_email" "Your email, optional"
Hope this helps :downs: