Partial CNetChan class rebuild and implementation (see description)

* Adapt codebase to new class to reduce rune-like code.
* Fixed several bugs where the global CClient pointer was used instead of the instance in question to issue bans and display information about a certain client in CBanSystem and Pylon.
* Upgraded CBanSystem and Pylon to use IPv6 instead (including IPv4 mapped IPv6 addresses). This breaks all existing banlist files! All bans have to be re-issued or the existing file has to be updated to use IPv4 mapped IPv6 addresses and renamed to 'banlist.json', and moved to the root of the 'platform' folder.
This commit is contained in:
Kawe Mazidjatari
2022-04-02 02:48:54 +02:00
parent 7c9a50f0d5
commit 6feb41c285
31 changed files with 995 additions and 461 deletions

View File

@@ -144,7 +144,7 @@ void Systems_Init()
#endif // DEDICATED || GAMEDLL_S3
//CModelLoader_Attach();
CNetChan_Attach();
NET_Attach();
ConCommand_Attach();
IConVar_Attach();
CKeyValueSystem_Attach();
@@ -245,7 +245,7 @@ void Systems_Shutdown()
#endif // DEDICATED || GAMEDLL_S3
//CModelLoader_Detach();
CNetChan_Detach();
NET_Detach();
ConCommand_Detach();
IConVar_Detach();
CKeyValueSystem_Detach();

View File

@@ -64,6 +64,10 @@
#include "tier0/platform.h"
#include "common/pseudodefs.h"
// Common type declarations to reduce code verbosity.
using std::string;
using std::vector;
#if !defined(SDKLAUNCHER) && !defined (NETCONSOLE)
namespace
{