I understand that this is probably a very nooby question, but I am kind of new to LUA scripting. I would like to start off by saying that I am not asking anyone to make a swep for me, just to point me in the right direction and/or link me to a page that would show me how to do so. I apologize if there is already a thread about this, but I have been searching for a little bit now and haven’t been able to find it. Basically, I’m trying to make a swep that shoots projectiles instead of bullets. I am looking to make two separate sweps: a rocket launcher that actually fires rockets and a machine gun similar to Doom’s plasma gun. Once again, I apologize if this has been asked before or if the solution is very obvious, but any help would be appreciated.
Edit: I have made a swep following the link that Ludicium posted. I cannot get the weapon to fire anything. It makes sounds and uses ammo, but fires nothing and deals no damage. If someone could look at my scripts to try and help me out I would be very thankful.