Skip to content
Permalink
Browse files

Updated to version 0.8.7.3

Signed-off-by: Mr.Silence <Silenci0@users.noreply.github.com>
  • Loading branch information
Silenci0 committed Dec 20, 2019
1 parent f537b91 commit c60d909cb53bf31324d3a73694b219b9eb58d050
@@ -10,6 +10,13 @@ Also, if you want to help contribute to the plugin, please feel free to issue pu
For information about the plugin and its modules, please use the wiki here: https://github.com/Silenci0/SMAC/wiki

# Changelog
0.8.7.3 Update (12-20-2019)
-----------------
- Merged changes by 404UNFca adding EngineVersion check and removing support for GMod and TF2 Beta. (https://github.com/Silenci0/SMAC/pull/27 )
- Removed CSS Beta (cstrike_beta) and replaced Insurgency Mod support with Insurgency (2014 Steam version) support.
- Added support for Black Mesa multiplayer and Zombie Master Reborn (the latest version of ZMR: https://steamcommunity.com/groups/zmreborn ). While support is present, SMAC has not be tested for these games, just an fyi.
- Recompiled all plugins.

0.8.7.2 Update (12-12-2019)
-----------------
- Depreciated support for the ESEA module. As of 12/08/2019, it has been confirmed that it is not possible to download the .csv file from the ESEA website, making it impossible for the plugin to function. The code will still be available for legacy purposes, but will no longer be supported. Info regarding this is found here: https://github.com/Silenci0/SMAC/issues/11
BIN +60 Bytes (100%) addons/sourcemod/plugins/smac.smx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,7 +25,7 @@
#include <smac_stocks>

/* Globals */
#define SMAC_VERSION "0.8.7.2"
#define SMAC_VERSION "0.8.7.3"
#define SMAC_URL "https://github.com/Silenci0/SMAC"
#define SMAC_AUTHOR "SMAC Development Team"
#define SMAC_MOD_ERROR "This module will not work for this mod and should be removed."
@@ -35,7 +35,7 @@ enum GameType {
Game_CSS,
Game_TF2,
Game_DODS,
Game_INSMOD,
Game_INS,
Game_L4D,
Game_L4D2,
Game_HL2DM,
@@ -45,6 +45,8 @@ enum GameType {
Game_ND,
Game_CSGO,
Game_ZPS,
Game_ZMR,
Game_BM
};

enum DetectionType {
@@ -77,22 +77,89 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
Those could be switched over too. Also, is cstrike_beta even still a thing?
*/
if (StrEqual(sGame, "cstrike_beta")) g_Game = Game_CSS;
else if (StrEqual(sGame, "insurgency")) g_Game = Game_INSMOD;
else if (StrEqual(sGame, "fof")) g_Game = Game_FOF;
else if (StrEqual(sGame, "hl2ctf")) g_Game = Game_HL2CTF;
else if (StrEqual(sGame, "hidden")) g_Game = Game_HIDDEN;
else if (StrEqual(sGame, "zps")) g_Game = Game_ZPS;
else if (iEngine == Engine_TF2) g_Game = Game_TF2;
else if (iEngine == Engine_CSS) g_Game = Game_CSS;
else if (iEngine == Engine_CSGO) g_Game = Game_CSGO;
else if (iEngine == Engine_DODS) g_Game = Game_DODS;
else if (iEngine == Engine_Left4Dead) g_Game = Game_L4D;
else if (iEngine == Engine_Left4Dead2) g_Game = Game_L4D2;
else if (iEngine == Engine_HL2DM) g_Game = Game_HL2DM;
else if (iEngine == Engine_NuclearDawn) g_Game = Game_ND;
else if (iEngine == Engine_Unknown) g_Game = Game_Unknown;
else g_Game = Game_Unknown;

if (iEngine == Engine_TF2)
{
g_Game = Game_TF2;
}
else if (iEngine == Engine_CSS)
{
g_Game = Game_CSS;
}
else if (iEngine == Engine_CSGO)
{
g_Game = Game_CSGO;
}
else if (iEngine == Engine_DODS)
{
g_Game = Game_DODS;
}
else if (iEngine == Engine_Left4Dead)
{
g_Game = Game_L4D;
}
else if (iEngine == Engine_Left4Dead2)
{
g_Game = Game_L4D2;
}
else if (iEngine == Engine_HL2DM)
{
g_Game = Game_HL2DM;
}
else if (iEngine == Engine_NuclearDawn)
{
g_Game = Game_ND;
}
else if (iEngine == Engine_Insurgency)
{
g_Game = Game_INS;
}
else if (iEngine == Engine_BlackMesa)
{
g_Game = Game_BM;
}
else if (iEngine == Engine_SDK2013)
{
if (StrEqual(sGame, "fof"))
{
g_Game = Game_FOF;
}
else if (StrEqual(sGame, "zps"))
{
g_Game = Game_ZPS;
}
else if (StrEqual(sGame, "zps"))
{
g_Game = Game_ZMR;
}
else
{
g_Game = Game_Unknown;
}
}
else if (iEngine == Engine_SourceSDK2006)
{
if (StrEqual(sGame, "hl2ctf"))
{
g_Game = Game_HL2CTF;
}
else if (StrEqual(sGame, "hidden"))
{
g_Game = Game_HIDDEN;
}
else
{
g_Game = Game_Unknown;
}
}
else if (iEngine == Engine_Unknown)
{
g_Game = Game_Unknown;
}
else
{
g_Game = Game_Unknown;
}

// Path used for logging.
BuildPath(Path_SM, g_sLogPath, sizeof(g_sLogPath), "logs/SMAC.log");
@@ -116,7 +183,6 @@ public void OnPluginStart()
// Convars.
g_hCvarVersion = CreateConVar("smac_version", SMAC_VERSION, "SourceMod Anti-Cheat", FCVAR_NOTIFY|FCVAR_DONTRECORD);
OnVersionChanged(g_hCvarVersion, "", "");
//HookConVarChange(g_hCvarVersion, OnVersionChanged);
g_hCvarVersion.AddChangeHook(OnVersionChanged);

g_hCvarWelcomeMsg = CreateConVar("smac_welcomemsg", "0", "Display a message saying that your server is protected.", 0, true, 0.0, true, 1.0);
@@ -66,7 +66,7 @@ public void OnPluginStart()

switch (SMAC_GetGameType())
{
case Game_INSMOD:
case Game_INS:
{
AddCommandListener(Command_Say, "say2");
}
@@ -105,7 +105,7 @@ public void OnPluginStart()
AddCvar(Order_Last, "cl_showevents", Comp_Equal, Action_Ban, "0.0");

// Insurgency does not mark this as a cheat.
if (SMAC_GetGameType() == Game_INSMOD)
if (SMAC_GetGameType() == Game_INS)
{
AddCvar(Order_Last, "fog_enable", Comp_Equal, Action_Kick, "1.0");
}

0 comments on commit c60d909

Please sign in to comment.
You can’t perform that action at this time.