1. I do not provide support for listen/local servers but the plugin should still work properly on them.
2. I will not help you with installing or troubleshooting problems on your part.
3. If you get errors from SourceMod itself, that is your problem, not mine.
4. MAKE SURE YOU MEET ALL THE REQUIREMENTS AND FOLLOW THE INSTALLATION GUIDE PROPERLY.
Features
1. Boost each weapon's damage.
2. Boost weapon damage globally or per-player.
3. Supports CSS weapons.
Commands
Spoiler
Code:
// Accessible by admins with "z" (Root) flag only.
sm_boost - Toggle a player's damage boost.
// Accessible by all players.
sm_damage - Show current gun damage boost settings.
ConVars
Spoiler
Code:
// Damage boost for the AK47 Assault Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_ak47 "40.0"
// Damage boost for the AWP Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_awp "50.0"
// Damage boost for the Chrome Shotgun.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_chrome "20.0"
// Disable the Gun Damage Booster in these game modes.
// Game mode limit: 64
// Character limit for each game mode: 32
// Empty: None
// Not empty: Disabled in these game modes.
// -
// Default: ""
gdb_disabledgamemodes ""
// Enable the Gun Damage Booster?
// 0: OFF
// 1: ON
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
gdb_enable "1"
// Enable the Gun Damage Booster in these game modes.
// Game mode limit: 64
// Character limit for each game mode: 32
// Empty: None
// Not empty: Enabled in these game modes.
// -
// Default: ""
gdb_enabledgamemodes ""
// Enable the Gun Damage Booster for friendly-fire?
// 0: OFF
// 1: ON
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
gdb_friendlyfire "0"
// Enable the Gun Damage Booster in these game mode types.
// 0 OR 15: ALL
// 1: Co-op
// 2: Versus
// 3: Survival
// 4: Scavenge
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "15.000000"
gdb_gamemodetypes "0"
// Enable the Gun Damage Booster for everyone?
// 0: OFF
// 1: ON
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
gdb_global "1"
// Damage boost for the Hunting Rifle.
// -
// Default: "45.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_hunting "45.0"
// Damage boost for the Grenade Launcher.
// -
// Default: "75.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_launcher "75.0"
// Damage boost for the M16 Assault Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_m16 "40.0"
// Damage boost for the M60 Assault Rifle.
// -
// Default: "45.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_m60 "45.0"
// Damage boost for the Magnum Pistol.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_magnum "25.0"
// Damage boost for the Military Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_military "50.0"
// Damage boost for the MP5 SMG.
// -
// Default: "30.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_mp5 "30.0"
// Damage boost for the M1911/P220 Pistol.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_pistol "20.0"
// Damage boost for the Pump Shotgunn.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_pump "20.0"
// Damage boost for the SCAR-L Desert Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_scar "40.0"
// Damage boost for the Steyr Scout Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_scout "50.0"
// Damage boost for the SG552 Assault Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_sg552 "40.0"
// Damage boost for the Silenced SMG.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_silenced "35.0"
// Damage boost for the SMG.
// -
// Default: "30.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_smg "30.0"
// Damage boost for the SPAS Shotgun.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_spas "25.0"
// Damage boost for the Tactical Shotgun.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "99999.000000"
gdb_tactical "25.0"
Changelog
Spoiler
Version 7.5 (June 1, 2022)
1. Changes:
- Lowered the limit of the damage boost settings from "999999" to "99999".
- Added the "sm_boost" command. (Requested by "gamer_kanelita" and "Lagg".)
- Added the "sm_damage" command. (Requested by "weffer".)
- Added the "gdb_friendlyfire" convar.
- Added the "gdb_global" convar.
- Added the "gdb_launcher" convar. (Requested by "Sunyata".)
- Damage boosts are now applied to Witches. (Requested by "Sunyata".)
- Added notification flags to each convar.
- Made the "gdb_pluginversion" convar unchangeable outside of the source code.
Version 7.0 (October 14, 2020)
1. Changes:
- Settings for L4D2-exclusive weapons are no longer created in L4D1.
- Raised the limit of the damage boost settings from "99999" to "999999".
- Damage boosts are no longer applied against teammates.
- Damage boosts are now applied to all entities, not just players.
- Added the "gdb_gamemodetypes" convar. (Thanks to "Silvers" for the code!)
Version 6.5 (August 23, 2018)
1. Changes:
- Removed the "OnClientDisconnect()" portion of the code.
- Removed the "bIsInfected()" check so the damage boost applies towards friendly-fire as well.
Version 6.0 (August 6, 2018)
1. Changes:
- The code now uses "OnTakeDamage" instead of player_hurt.
- Added support for late loads.
Version 5.5 (June 21, 2018)
1. Changes:
- Optimized code a bit.
Version 5.0 (June 18, 2018)
1. Bug fixes:
- Fixed the "gdb_enabledgamemodes" and "gdb_disabledgamemodes" convars not working properly.
Version 4.5 (June 16, 2018)
1. Bug fixes:
- Fixed the "gdb_enabledgamemodes" and "gdb_disabledgamemodes" convars not working properly.
Version 4.0 (June 13, 2018)
1. Combined all different versions into 1 file.
2. Removed unnecessary code.
Version 3.0 (November 21, 2017)
1. Converted to new syntax.
Version 2.0 (November 12, 2017)
1. Cleaned up some code for each version.
2. Added a version that supports CSS weapons unlocked by mods or other plugins.
Version 1.0 (September 29, 2017)
Initial Release.
Installation
1. Delete files from old versions of the plugin.
3. Place "gun_damage_booster.smx" in the "addons/sourcemod/plugins" folder.
4. Place "gun_damage_booster.sp" in the "addons/sourcemod/scripting" folder.
Uninstalling/Upgrading to Newer Versions
1. Delete "gun_damage_booster.sp" from the "addons/sourcemod/scripting" folder.
2. Delete "gun_damage_booster.smx" from the "addons/sourcemod/plugins" folder.
4. Follow the Installation guide above. (Only for upgrading to newer versions.)
Disabling
1. Move "gun_damage_booster.smx" to the "plugins/disabled" folder.
2. Unload "Gun Damage Booster" by typing "sm plugins unload gun_damage_booster" in the server console.
Third-party Revisions Notice
If you would like to share your own revisions of this plugin, please rename the files so that there is no confusion for users.