Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykotikism committed Jun 16, 2018
1 parent b7c6809 commit 5b91d43
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 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.
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -210,6 +210,7 @@ gdb_tactical "25"
You must specify the game modes in the gdb_enabledgamemodes and gdb_disabledgamemodes convars.

Here are some scenarios and their outcomes:

- Scenario 1
```
gdb_enabledgamemodes "" // The plugin is enabled in all game modes.
Expand Down
Binary file modified addons/sourcemod/plugins/gun_damage_booster.smx
Binary file not shown.
16 changes: 4 additions & 12 deletions addons/sourcemod/scripting/gun_damage_booster.sp
Expand Up @@ -2,7 +2,7 @@
#include <sdktools>
#pragma semicolon 1
#pragma newdecls required
#define GDB_VERSION "4.0"
#define GDB_VERSION "4.5"

public Plugin myinfo =
{
Expand Down Expand Up @@ -324,11 +324,7 @@ stock bool bIsSystemValid()
ExplodeString(sConVarModes, ",", sModeName, sizeof(sModeName), sizeof(sModeName[]));
for (int iMode = 0; iMode < sizeof(sModeName); iMode++)
{
if (StrContains(sGameMode, sModeName[iMode], false) == -1 && sModeName[iMode][0] != '\0')
{
return false;
}
else
if (StrContains(sGameMode, sModeName[iMode], false) != -1 && sModeName[iMode][0] != '\0')
{
return true;
}
Expand All @@ -337,14 +333,10 @@ stock bool bIsSystemValid()
ExplodeString(sConVarModes, ",", sModeName, sizeof(sModeName), sizeof(sModeName[]));
for (int iMode = 0; iMode < sizeof(sModeName); iMode++)
{
if (StrContains(sGameMode, sModeName[iMode], false) != -1 && sModeName[iMode][0] != '\0')
{
return false;
}
else
if (StrContains(sGameMode, sModeName[iMode], false) == -1 && sModeName[iMode][0] != '\0')
{
return true;
}
}
return true;
return false;
}

0 comments on commit 5b91d43

Please sign in to comment.