Skip to content

Commit

Permalink
Removed libcurl and stats, to create other metamod plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileYzn committed Nov 29, 2022
1 parent 544f26a commit ff0babe
Show file tree
Hide file tree
Showing 40 changed files with 198 additions and 31,662 deletions.
8 changes: 4 additions & 4 deletions PugMod/Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,22 +141,22 @@ bool CCommands::ClientCommand(CBasePlayer* Player, const char* pcmd, const char*
}
else if (Q_stricmp(pcmd, ".hp") == 0)
{
gStatsCmd.HP(Player);
gStats.HP(Player);
return true;
}
else if (Q_stricmp(pcmd, ".dmg") == 0)
{
gStatsCmd.Damage(Player);
gStats.Damage(Player);
return true;
}
else if (Q_stricmp(pcmd, ".rdmg") == 0)
{
gStatsCmd.Received(Player);
gStats.Received(Player);
return true;
}
else if (Q_stricmp(pcmd, ".sum") == 0)
{
gStatsCmd.Summary(Player);
gStats.Summary(Player);
return true;
}

Expand Down
8 changes: 0 additions & 8 deletions PugMod/Cvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@ void CCvars::Load()

// Allowed ban times in minutes (0 To ban permanently)
this->m_BanTimes = this->Register("pug_ban_times", "0 5 10 15 30 45 60 120");

// URL to pugmod API (Enable Web api functions)
this->m_WebApiUrl = this->Register("pug_web_api", "");
}

cvar_t* CCvars::Register(const char* Name, const char* Value)
Expand Down Expand Up @@ -323,8 +320,3 @@ cvar_t* CCvars::GetBanTimes()
{
return this->m_BanTimes;
}

cvar_t* CCvars::GetWebApiUrl()
{
return this->m_WebApiUrl;
}
2 changes: 0 additions & 2 deletions PugMod/Cvars.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class CCvars
cvar_t* GetHelpFileAdmin();
cvar_t* GetHelpFilePlayer();
cvar_t* GetBanTimes();
cvar_t* GetWebApiUrl();

private:
cvar_t* m_Config[8];
Expand Down Expand Up @@ -76,7 +75,6 @@ class CCvars
cvar_t* m_HelpFileAdmin;
cvar_t* m_HelpFilePlayer;
cvar_t* m_BanTimes;
cvar_t* m_WebApiUrl;
};

extern CCvars gCvars;
163 changes: 0 additions & 163 deletions PugMod/LibCurl.cpp

This file was deleted.

32 changes: 0 additions & 32 deletions PugMod/LibCurl.h

This file was deleted.

9 changes: 4 additions & 5 deletions PugMod/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
CSSDK = include/cssdk
METAMOD = include/metamod
LIBCURL = include/curl

NAME = pugmod

COMPILER = g++

OBJECTS = *.cpp

LINK = -static-libstdc++ -lcurl -lssl -lcrypto -ldl -lm -lz
LINK = -static-libstdc++

OPT_FLAGS = -g0 -O3 -s -msse3 -flto -funroll-loops -fomit-frame-pointer -fno-stack-protector
OPT_FLAGS = -g0 -O3 -s -flto -funroll-loops -fno-stack-protector

INCLUDE = -I. -I$(CSSDK)/common -I$(CSSDK)/dlls -I$(CSSDK)/engine -I$(CSSDK)/game_shared -I$(CSSDK)/pm_shared -I$(CSSDK)/public -I$(METAMOD) -I$(LIBCURL)/include
INCLUDE = -I. -I$(CSSDK)/common -I$(CSSDK)/dlls -I$(CSSDK)/engine -I$(CSSDK)/game_shared -I$(CSSDK)/pm_shared -I$(CSSDK)/public -I$(METAMOD)

CFLAGS = $(OPT_FLAGS) -g -DNDEBUG -Dlinux -D__linux__ -D__USE_GNU -std=gnu++14 -m32 -msse -msse2 -msse3 -mssse3 -mmmx -shared
CFLAGS = $(OPT_FLAGS) -g -DNDEBUG -Dlinux -D__linux__ -D__USE_GNU -U_FORTIFY_SOURCE -std=gnu++14 -m32 -msse -msse2 -msse3 -mssse3 -mmmx -shared

BIN_DIR = Release

Expand Down
40 changes: 0 additions & 40 deletions PugMod/PlayerStats.cpp

This file was deleted.

Loading

0 comments on commit ff0babe

Please sign in to comment.