Roughly 400 lines of code later…
and now I have a gun system 
Here it is in action! (I don’t have a cloud sharing site so i compressed it 5 times
)
It’s also very easy to set up after importing the module!
Just 22 lines of code to set it up! All the settings are configurable to make your very own unique weapons!
Let me know if I should publish the module!
- Holy mid

- This isn’t good
- It’s ok.
- This is good
- Wowzers!

4 Likes
In my very humble opinion I think adding some sort of bullet tracers or actual recoil would make this look so much better.
Would you be surprised if I said there was recoil, AND tracers?
(Even though it’s very primative)
Tracers can be enabled in the settings, but its whatnot right now 
As for recoil, I wanted to take an approach like it was an older source game, which is also why I’m using half life guns as the models.
With weapons, like auto-guns, or fast semi-auto guns, the more you shoot, the more your spread increases. There’s a counter that increases your spread by 5% exponentially each time you shoot a bullet, and resets after 2 * (1/weaponSettings.fireRate). So gun’s like SMG’s have quick recovery, but something like a bolt action sniper, or a slow AK-47 would have slower recovery. However, the spread on a bolt action sniper is so low that a 5% increase of the period of 2 seconds makes absolutely 0 difference.
Thank you for my college lecture on how to cheat recoil without using the camera lol
It does look okay but for 400 lines there isn’t much there, When I work on gun systems mine normally cap between 200 - 300 lines in the client then the server is up to 150 lines.
And by the looks of it there is not extra first person details like sway or bob which is fine if that’s the style your going for, I just think you need to shorten some of the ways .
And obviously gotta respect its a module that part is insane just the actual system needs a little bit of work but it looks okay.