Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Psykotikism authored Jun 21, 2018
1 parent e05947f commit e4e0260
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Version 6.5 (June 21, 2018)

1. Changes:

- Optimized code a bit.

## Version 6.0 (June 18, 2018)

1. Bug fixes:
Expand Down
Binary file modified addons/sourcemod/plugins/no_friendly-fire.smx
Binary file not shown.
12 changes: 6 additions & 6 deletions addons/sourcemod/scripting/no_friendly-fire.sp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <sdktools>
#pragma semicolon 1
#pragma newdecls required
#define NFF_VERSION "6.0"
#define NFF_VERSION "6.5"

public Plugin myinfo =
{
Expand All @@ -14,7 +14,6 @@ public Plugin myinfo =
url = "https://forums.alliedmods.net/showthread.php?t=302822"
};

char g_sGameName[32];
ConVar g_cvNFFAdvanced;
ConVar g_cvNFFBurnAdvanced;
ConVar g_cvNFFBurnEasy;
Expand All @@ -32,9 +31,10 @@ ConVar g_cvNFFNormal;

public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
GetGameFolderName(g_sGameName, sizeof(g_sGameName));
if (!StrEqual(g_sGameName, "left4dead", false) && !StrEqual(g_sGameName, "left4dead2", false))
EngineVersion evEngine = GetEngineVersion();
if (evEngine != Engine_Left4Dead && evEngine != Engine_Left4Dead2)
{
strcopy(error, err_max, "No Friendly-fire only supports Left 4 Dead 1 & 2.");
return APLRes_SilentFailure;
}
return APLRes_Success;
Expand Down Expand Up @@ -107,8 +107,8 @@ void vChangeCvars()

stock bool bIsL4D2Game()
{
GetGameFolderName(g_sGameName, sizeof(g_sGameName));
return (StrEqual(g_sGameName, "left4dead2", false));
EngineVersion evEngine = GetEngineVersion();
return evEngine == Engine_Left4Dead2;
}

stock bool bIsSystemValid()
Expand Down

0 comments on commit e4e0260

Please sign in to comment.