Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

Add Missing Weapon Functions and Variable Bindings #2369

Open T-Rizzle12 opened 5 months ago

T-Rizzle12 commented 5 months ago

Details

I noticed while making custom SWEPS for a gamemode I'm working on there are some useful bindings in the engine that would help immensely without having to manually recreate them just like every other weapon base on the workshop.

I will also make a note that using DefaultReload sets m_bInReload to true while the weapon is being reloaded, having a function to check for this for example CBaseCombatWeapon::IsReloading( void ) would be useful if the binding for m_bReloadsSingly is added.

Note: Every function and attribute I'm asking you to add is in this one file. 😄 Source: https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/game/shared/basecombatweapon_shared.cpp#L2119

robotboy655 commented 4 months ago

Related: https://github.com/Facepunch/garrysmod-requests/issues/933