Garry's Mod

Garry's Mod

518 ratings
Buu342's Weapon Base 2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
6.069 MB
Mar 18, 2021 @ 4:30pm
Aug 2, 2021 @ 2:25pm
13 Change Notes ( view )

Subscribe to download
Buu342's Weapon Base 2

Description
A complete rework (from the ground up) of my original Buu342 Weapon Base. The original was buggy, contained code from a myriad of sources, and in general was a mess to maintain. I've been trying to refurbish it for quite some time, with this version being the final one that I'm happy to release to the wild.

I've done the best I could to keep the code as clean as possible, commenting whenever I could. This should hopefully contain a lot of cool stuff for people to learn from! Hey, maybe someone will end up using it :)

Special SWEP Base Controls
- Right click to ironsight
- Press ALT while scoped to hold your breath
- E and Right Click to change fire mode
- Run and hold CTRL to slide

Features
- Fully commented source code
- Fully predicted, so that laggy clients have the best experience
- Super customizable and easy to edit
- Shotgun reloading
- Sniper scope with swaying
- Ironsights
- Sprinting animations
- Near-Wall detection
- Ladder detection
- Barrel smoke trail
- Low ammo clicking
- Silencer
- Multiple crosshairs, customizable too
- Firemode switching
- Burst fire
- Tactical Sliding
- Laser Pointer (Also in thirdperson)
- Flashlight that follows the gun (Also in thirdperson)
- Idle, holster, ironsight, and empty animation support
- Lua based animations, including breathing, idle, bobbing, swaying, crouching, and jumping
- Ammo being given during animation, instead of at the end
- Clientside magazine dropping
- Holding breath while scoping with ALT
- Shotgun door destruction
- Lots of clientside and serverside settings, also available in the Q menu
- Thirdperson animations

Credits
- Everything here is pretty much mine, scope textures are inspired from Far Cry 3, and there's a ZDoom crosshair texture
- A huge thank you to Mushroom Guy, for putting up with me for so many years and teaching me so much valuable information. None of this would've been possible without you!
- And love to all the following people, for being awesome, for teaching me things, providing feedback, testing, and so much more (in no particular order):
* Ghetto
* BFG9000
* Matsilagi
* Stiffy
* Pyromancer
* Demo/CougarMagnum
* Trigger Hurt
* Spastik
* ErrolLiamP + Blaziken
* ZeqMacaw
* xDShot
* datae
* Spartains

FAQ
Q: I didn't notice any new weapons in my Q menu?
A: Well duh, this is a weapon base. You'll need something that uses this weapon base.

Q: I don't like X feature
A: Disable it in the Q menu.

Q: Are you going to release the weapons in the videos?
A: Probably.

Q: Are you making going to release more stuff regularly?
A: Probably not.

Q: Where are the Reelistik Handz?
A: If they ever make a return, they'll be a separate addon.

Q: Gmod says "Buu342's Weapon Base 2" is creating script errors!
A: Watch this video.

Q: Can you please make X
A: No. I'm fine with taking suggestions but don't ask me to make stuff for you. I have my own projects and things to do, and making something for someone I've never met for no incentive whatsoever is not one of them. I am perfectly fine with adding additional content to my current work, however.
Popular Discussions View All (2)
7
Apr 1, 2023 @ 10:33am
Weapons that use this base
Courier 6
0
Mar 18, 2021 @ 6:22pm
PINNED: Code source
Buu342
114 Comments
аБИБАс Jun 18 @ 10:34am 
I fixed all, dont worry
Buu342  [author] Jun 18 @ 10:22am 
@аБИБАс
1) You will need to derive the weapon base and add this functionality on your own or combine the animation.
2 and 3) I can't debug these issues without code seeing code.
It will be a better idea for you to open a thread because the comment section is harder to read.
аБИБАс Jun 17 @ 12:53pm 
And also, when I pick up weapons by spawning them with the middle mouse button, it gives me this error:
[mmod_usp_w_o_the_match_3112674215] addons/mmod_usp_w_o_the_match_3112674215/lua/weapons/weapon_buu_usp.lua:1704: Tried to use a NULL entity!
1. GetNWBool - [C]:-1
2. Cleanup - addons/mmod_usp_w_o_the_match_3112674215/lua/weapons/weapon_buu_usp.lua:1704
3. unknown - addons/mmod_usp_w_o_the_match_3112674215/lua/weapons/weapon_buu_usp.lua:524
аБИБАс Jun 17 @ 12:42pm 
And also, when I reload my pistol, I get this error:
[mmod_usp_w_o_the_match_3112674215] addons/mmod_usp_w_o_the_match_3112674215/lua/weapons/weapon_buu_usp.lua:1813: attempt to call method 'ShouldDrawLocalPlayer' (a nil value)
1. unknown - addons/mmod_usp_w_o_the_match_3112674215/lua/weapons/weapon_buu_usp.lua:1813
аБИБАс Jun 17 @ 12:29pm 
@Buu342 Okay, but what if the shotgun has separate pump-action animations? Because the firing animation on my shotgun model isn't combined with the pump-action animation. Is there a way to add the pump-action animation somehow?
Buu342  [author] Jun 17 @ 11:14am 
@аБИБАс "SWEP.Shotgun = true" for a shotgun reload. For pump action, just set the "SWEP.Primary.Delay" to a higher number so it plays the whole animation.
аБИБАс Jun 17 @ 4:41am 
how to make pump shotguns?
would be amazing to get l4d1 weapons on this base or l4d2
geogray Mar 2 @ 2:57pm 
[buu342_s_weapon_base_2_2428764566] addons/buu342_s_weapon_base_2_2428764566/lua/weapons/weapon_buu_base2.lua:1935: attempt to call method 'ShouldDrawLocalPlayer' (a nil value)
1. unknown - addons/buu342_s_weapon_base_2_2428764566/lua/weapons/weapon_buu_base2.lua:1935
Lucorn Jul 3, 2024 @ 2:30pm 
cold