Skip to content

Commit

Permalink
v7.5
Browse files Browse the repository at this point in the history
* Added initial changes for v7.5

- Lowered the limit of the damage boost settings from `999999` to `99999`.
- Added the `sm_gdb_damage` command. (Requested by `weffer`.)
- Added the `gdb_friendlyfire` convar.
- Added the `gdb_launcher` convar. (Requested by `Sunyata`.)
- Damage boosts are now applied to Witches. (Requested by `Sunyata`.)
- Made the `gdb_pluginversion` convar unchangeable outside of the source code.

* Added more changes for v7.5

- Fixed `OnMapEnd` not triggering due to a typo.
- Added the `sm_boost` command. (Requested by `gamer_kanelita` and `Lagg`.)
- Renamed the `sm_gdb_damage` command to `sm_damage`.
- Added notification flags to each convar.
- Added the `gdb_global` convar.

* Updated README.md

* Updated README.md
  • Loading branch information
Psykotikism authored Jun 1, 2022
1 parent 16885ea commit a75e64f
Show file tree
Hide file tree
Showing 4 changed files with 489 additions and 204 deletions.
18 changes: 16 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 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:
Expand All @@ -8,7 +22,7 @@
- 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!)
- Added the `gdb_gamemodetypes` convar. (Thanks to `Silvers` for the code!)

## Version 6.5 (August 23, 2018)

Expand Down Expand Up @@ -58,4 +72,4 @@

## Version 1.0 (September 29, 2017)

Initial Release.
Initial Release.
164 changes: 101 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,75 @@
## PayPal
[Donate to Motivate](https://paypal.me/Psyk0tikism?locale.x=en_US)

## Introduction
I liked the idea of boosting the damage of each gun, so I decided to make this.

## License
> The following license is placed inside the source code of the plugin.
Gun Damage Booster: a L4D/L4D2 SourceMod Plugin
Copyright (C) 2017 Alfred "Psyk0tik" Llagas
Copyright (C) 2022 Alfred "Psyk0tik" Llagas

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

## About
Increases each gun's damage.

### What makes Gun Damage Booster viable in Left 4 Dead/Left 4 Dead 2?
The plugin boosts the damage. Nothing more, nothing less.
## Credits
**Crimson_Fox** - For the [[L4D2] Weapon Unlock](https://forums.alliedmods.net/showthread.php?t=114296) plugin.

### Requirements
SourceMod 1.8.X or higher
**Silvers (Silvershot)** - For the code that allows users to enable/disable the plugin in certain game modes.

### Installation
1. Delete files from old versions of the plugin.
2. Extract the folder inside the .zip file.
3. Place all the contents into their respective folders.
4. If prompted to replace or merge anything, click yes.
5. Load up Gun Damage Booster.
- Type `sm_rcon sm plugins load gun_damage_booster` in console.
- OR restart the server.
6. Customize Gun Damage Booster (Config file generated on first load).

### Uninstalling/Upgrading to Newer Versions
1. Delete `gun_damage_booster.smx` from `addons/sourcemod/plugins` folder.
2. Delete `gun_damage_booster.sp` from `addons/sourcemod/scripting` folder.
3. Delete `gun_damage_booster.cfg` from `cfg/sourcemod` folder.
4. Follow the Installation guide above. (Only for upgrading to newer versions.)
**Sunyata, gamer_kanelita, weffer, Lagg** - For suggesting ideas.

### Disabling
1. Move `gun_damage_booster.smx` to `plugins/disabled` folder.
2. Unload Gun Damage Booster.
- Type `sm_rcon sm plugins unload gun_damage_booster` in console.
- OR restart the server.
**SourceMod Team** - For continually updating/improving `SourceMod`.

## Requirements
1. `SourceMod 1.9` or higher
2. Recommended: [[L4D & L4D2] Left 4 DHooks Direct](https://forums.alliedmods.net/showthread.php?t=321696)

## Notes
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
```
// Accessible by admins with "z" (Root) flag only.
sm_boost - Toggle a player's damage boost.
## Configuration Variables (ConVars/CVars)
// Accessible by all players.
sm_damage - Show current gun damage boost settings.
```

## ConVar Settings
```
// Damage boost for the AK47 Assault Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_ak47 "40.0"
// Damage boost for the AWP Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_awp "50.0"
// Damage boost for the Chrome Shotgun.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_chrome "20.0"
// Disable the Gun Damage Booster in these game modes.
Expand Down Expand Up @@ -97,6 +101,15 @@ gdb_enable "1"
// 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
Expand All @@ -109,112 +122,142 @@ gdb_enabledgamemodes ""
// 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: "999999.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: "999999.000000"
// Maximum: "99999.000000"
gdb_m16 "40.0"
// Damage boost for the M60 Assault Rifle.
// -
// Default: "45.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_m60 "45.0"
// Damage boost for the Magnum Pistol.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_magnum "25.0"
// Damage boost for the Military Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_military "50.0"
// Damage boost for the MP5 SMG.
// -
// Default: "30.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_mp5 "30.0"
// Damage boost for the M1911/P220 Pistol.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_pistol "20.0"
// Damage boost for the Pump Shotgunn.
// -
// Default: "20.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_pump "20.0"
// Damage boost for the SCAR-L Desert Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_scar "40.0"
// Damage boost for the Scout Sniper Rifle.
// Damage boost for the Steyr Scout Sniper Rifle.
// -
// Default: "50.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_scout "50.0"
// Damage boost for the SG552 Assault Rifle.
// -
// Default: "40.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_sg552 "40.0"
// Damage boost for the Silenced SMG.
// -
// Default: "35.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_silenced "35.0"
// Damage boost for the SMG.
// -
// Default: "30.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_smg "30.0"
// Damage boost for the SPAS Shotgun.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_spas "25.0"
// Damage boost for the Tactical Shotgun.
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "999999.000000"
// Maximum: "99999.000000"
gdb_tactical "25.0"
```

## 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.

## Questions You May Have
> If you have any questions that aren't addressed below, feel free to message me or post on this [thread](https://forums.alliedmods.net/showthread.php?t=301641).
Expand All @@ -226,36 +269,31 @@ Here are some scenarios and their outcomes:

- Scenario 1
```
gdb_gamemodetypes "0" // The plugin is enabled in all game mode types.
gdb_enabledgamemodes "" // The plugin is enabled in all game modes.
gdb_disabledgamemodes "coop" // The plugin is disabled in Campaign mode.
Outcome: The plugin works in every game mode except in Campaign mode.
```
- Scenario 2
```
gdb_gamemodetypes "1" // The plugin is enabled in every Campaign-based game mode.
gdb_enabledgamemodes "coop" // The plugin is enabled in only Campaign mode.
gdb_disabledgamemodes "" // The plugin is not disabled at all.
Outcome: The plugin works only in Campaign mode.
```
- Scenario 3
```
gdb_gamemodetypes "5" // The plugin is enabled in every Campaign-based and Survival-based game mode.
gdb_enabledgamemodes "coop,versus" // The plugin is enabled in only Campaign and Versus modes.
gdb_disabledgamemodes "coop" // The plugin is disabled in Campaign mode.
Outcome: The plugin works only in Versus mode.
```

## Credits
**Crimson_Fox** - For the [Weapon Unlock](https://forums.alliedmods.net/showthread.php?t=114296) plugin.

**Silvers** - For the code that allows users to enable/disable the plugin in certain game modes.

# Contact Me
If you wish to contact me for any questions, concerns, suggestions, or criticism, I can be found here:
- [AlliedModders Forum](https://forums.alliedmods.net/member.php?u=181166) (Use this for just reporting bugs/issues or giving suggestions/ideas.)
- [Steam](https://steamcommunity.com/profiles/76561198056665335) (Use this for getting to know me or wanting to be friends with me.)
- `Psyk0tik#6898` on Discord (Use this for pitching in new/better code.)
## 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.

# 3rd-Party Revisions Notice
If you would like to share your own revisions of this plugin, please rename the files! I do not want to create confusion for end-users and it will avoid conflict and negative feedback on the official versions of my work. If you choose to keep the same file names for your revisions, it will cause users to assume that the official versions are the source of any problems your revisions may have. This is to protect you (the reviser) and me (the developer)! Thank you!
## Final Words
Enjoy all my hard work and have fun with it!
Binary file modified addons/sourcemod/plugins/gun_damage_booster.smx
Binary file not shown.
Loading

0 comments on commit a75e64f

Please sign in to comment.