-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite / Optimizations / Improvements (#139)
* hasValidAngles shouldn't matter because spawn is already ignored * rm tps check for now, we're going to hook funcs instead * run nullcmds (essentially) on bunk clients, stop spamming on unconnected clients * add steam spew to debug mode only * more cleanup * IsClientKickQueue etc * add windows_speaker_cfg and undo some drastic changes * version + compile * plugin * updatefile * respect ban/punish cvar for kicking for new cvar * dont whine about speakercfg not being found * force require extensions * exts / incs * fix gamedata * update exts to proper vers from forums * add updated srctvmgr * add more detailed prints to discord log, clean up other misc * rm junk comment * add eye pos history to log/discord, more cleanup using dynamic char arrays for discord * gamedata + point_worldtext comments etc * remove spammy log * rm more dbg spam * . * dead code removal, general cleanup, etc * whine like hell if stac is unloaded, remove more dumb code with setrandomseed * turn bind bypass prevention * fix bypass with banqueued * fixup mistake with logic in oprc * yeet memory leak lmao * optimizations and tons of code cleanup remove userinfo spam rework pingmasking fixes for much cleaner code * rework a ton of lag checks, further optimizations with the help of perf finding hot functions * i'm already in hell, i might as well convert all the ugly "Cl" variables for clients to "cl" * polish * comment * chmod * update updatefile * readme * recompile * fixup a bunch of bugs, clean up discord notifs, update aimsnap to be better * ignore bot signonstate stuff * readd the loss check and add more fixes for cmdnum spike check * actually just add nullcmd/nulltick lag check to everything but dont set in lag timeout * cache tickrate instead of checking it all the damn time * proper optimizations to isDefaultTickrate, also stop calling it every frame Lol * optimize livefeed more * more tweaks / comments * fix (bang) cmdnum/tickcount logic and add detail to cmdnum spike discord msg * leverage connect extension to get proper steamids and remove dead code * see last commit re steamid changes * cleanup with consistency * float_rand on some timers * add proper invalid usercmd checks, remove dead code * bins * proper gate more dbg msgs * yet more dbg * wholesale rework of discord json using sm-json include * add avatar and fix map change race condition with steamid etc * readd discord * bins * fix comment * fix issue with client's names getting changed by other plugins breaking steamid grabbing * fixup steamid copying from PreConnect and do some more optimizations * rm spam connect msgs * update smx
- Loading branch information
Showing
48 changed files
with
8,554 additions
and
2,423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
"Games" | ||
{ | ||
"#default" | ||
{ | ||
"#supported" | ||
{ | ||
"engine" "dods" | ||
"engine" "css" | ||
"engine" "hl2dm" | ||
"engine" "tf2" | ||
} | ||
|
||
"Offsets" | ||
{ | ||
"ISteamGameServer__BeginAuthSession" | ||
{ | ||
"linux" "29" | ||
"mac" "29" | ||
"windows" "29" | ||
} | ||
|
||
"ISteamGameServer__EndAuthSession" | ||
{ | ||
"linux" "30" | ||
"mac" "30" | ||
"windows" "30" | ||
} | ||
} | ||
|
||
"Signatures" | ||
{ | ||
"CBaseServer__CheckMasterServerRequestRestart" | ||
{ | ||
"library" "engine" | ||
"windows" "\xE8\x2A\x2A\x2A\x2A\x83\x78\x04\x00\x74\x2A\xE8\x2A\x2A\x2A\x2A\x8B\x48\x04\x8B\x01\x8B\x40\x2C\xFF\xD0\x84\xC0\x74\x2A\x56" | ||
} | ||
|
||
"Steam3Server" | ||
{ | ||
"library" "engine" | ||
"linux" "@_Z12Steam3Serverv" | ||
"mac" "@_Z12Steam3Serverv" | ||
} | ||
} | ||
} | ||
|
||
"#default" | ||
{ | ||
"#supported" | ||
{ | ||
"engine" "dods" | ||
"engine" "css" | ||
"engine" "hl2dm" | ||
} | ||
|
||
"Signatures" | ||
{ | ||
"CBaseServer__ConnectClient" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer13ConnectClientER8netadr_siiiiPKcS3_S3_i" | ||
"mac" "@_ZN11CBaseServer13ConnectClientER8netadr_siiiiPKcS3_S3_i" | ||
"windows" "\x55\x8B\xEC\x81\xEC\x04\x05\x00\x00\x56\x68\x2A\x2A\x2A\x2A\x8B\xF1" | ||
} | ||
|
||
"CBaseServer__RejectConnection" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer16RejectConnectionERK8netadr_siPKc" | ||
"mac" "@_ZN11CBaseServer16RejectConnectionERK8netadr_siPKc" | ||
"windows" "\x55\x8B\xEC\x81\xEC\x04\x05\x00\x00\x56\x6A\xFF" | ||
} | ||
|
||
"CBaseClient__SetSteamID" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseClient10SetSteamIDERK8CSteamID" | ||
"mac" "@_ZN11CBaseClient10SetSteamIDERK8CSteamID" | ||
"windows" "\x55\x8B\xEC\x8B\x55\x08\x8B\x02\x89\x41\x59\x8B\x42\x04" | ||
} | ||
|
||
"CBaseServer__CheckChallengeType" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer18CheckChallengeTypeEP11CBaseClientiR8netadr_siPKcii" | ||
"mac" "@_ZN11CBaseServer18CheckChallengeTypeEP11CBaseClientiR8netadr_siPKcii" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x14\x56\x57\x8B\x7D\x2A\x8B\xF1" | ||
} | ||
} | ||
} | ||
|
||
"#default" | ||
{ | ||
"#supported" | ||
{ | ||
"engine" "tf2" | ||
} | ||
|
||
"Signatures" | ||
{ | ||
"CBaseServer__ConnectClient" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer13ConnectClientER8netadr_siiiiPKcS3_S3_i" | ||
"mac" "@_ZN11CBaseServer13ConnectClientER8netadr_siiiiPKcS3_S3_i" | ||
"windows" "\x55\x8B\xEC\x81\xEC\x24\x05\x00\x00" | ||
} | ||
|
||
"CBaseServer__RejectConnection" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer16RejectConnectionERK8netadr_siPKc" | ||
"mac" "@_ZN11CBaseServer16RejectConnectionERK8netadr_siPKc" | ||
"windows" "\x55\x8B\xEC\x81\xEC\x04\x05\x00\x00\x57" | ||
} | ||
|
||
"CBaseClient__SetSteamID" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseClient10SetSteamIDERK8CSteamID" | ||
"mac" "@_ZN11CBaseClient10SetSteamIDERK8CSteamID" | ||
"windows" "\x55\x8B\xEC\x56\x57\x8B\x7D\x08\x8B\xF1\x8D\x4E\x04" | ||
} | ||
|
||
"CBaseServer__CheckChallengeType" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CBaseServer18CheckChallengeTypeEP11CBaseClientiR8netadr_siPKcii" | ||
"mac" "@_ZN11CBaseServer18CheckChallengeTypeEP11CBaseClientiR8netadr_siPKcii" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x14\x53\x8B\x5D\x14" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
"Games" | ||
{ | ||
"#default" | ||
{ | ||
"Signatures" | ||
{ | ||
/* | ||
* String: "Socket ProcessAccept Error: %s\n" | ||
*/ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN14CSocketCreator13ProcessAcceptEv" | ||
} | ||
|
||
/* | ||
* If this signature exists, it is used to scope the ProcessAccept detour to only the RCon server. | ||
* | ||
* String: "RCON Cmd: recv error (%s)\n" | ||
* You're looking for the one that doesn't also contain "Lost RCON connection, please retry command (%s)\n" | ||
*/ | ||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CRConServer8RunFrameEv" | ||
} | ||
|
||
/* | ||
* Optional, used to ban clients sending invalid data. | ||
* | ||
* String: "Banning %s for rcon hacking attempts\n" | ||
*/ | ||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"linux" "@_ZN11CRConServer20HandleFailedRconAuthERK8netadr_s" | ||
} | ||
} | ||
} | ||
|
||
"tf" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x57\x8D\x45\xF8\xC7\x45\xF8\x10\x00\x00\x00\x50" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x53\x8B\xD9\x56\x57" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x18\xA1\x2A\x2A\x2A\x2A\x8B\x15\x2A\x2A\x2A\x2A\x53\x56\x57" | ||
} | ||
} | ||
} | ||
|
||
"cstrike" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x57\x8D\x45\xF8\xC7\x45\xF8\x10\x00\x00\x00\x50" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x68\x10\x00\x00\xE8\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x57" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x18\xA1\x2A\x2A\x2A\x2A\x8B\x15\x2A\x2A\x2A\x2A\x53\x56\x57" | ||
} | ||
} | ||
} | ||
|
||
"hl2mp" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x57\x8D\x45\xF8\xC7\x45\xF8\x10\x00\x00\x00\x50" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x68\x10\x00\x00\xE8\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x57" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x18\xA1\x2A\x2A\x2A\x2A\x8B\x15\x2A\x2A\x2A\x2A\x53\x56\x57" | ||
} | ||
} | ||
} | ||
|
||
"dod" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x57\x8D\x45\xF8\xC7\x45\xF8\x10\x00\x00\x00\x50" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x68\x10\x00\x00\xE8\x2A\x2A\x2A\x2A\x53\x56\x8B\xF1\x57" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x18\xA1\x2A\x2A\x2A\x2A\x8B\x15\x2A\x2A\x2A\x2A\x53\x56\x57" | ||
} | ||
} | ||
} | ||
|
||
"csgo" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x56\x57\x8D\x45\xF8\xC7\x45\xF8\x10\x00\x00\x00\x50" | ||
"linux" "\x55\x89\xE5\x83\xEC\x58\x89\x5D\xF4\x8B\x5D\x08\x8D\x45\xE0" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x64\x10\x00\x00\xE8\x2A\x2A\x2A\x2A\x53" | ||
"linux" "\x55\x89\xE5\x57\x56\x53\x81\xEC\x6C\x10\x00\x00\x8B\x75\x08\x83\xC6\x04" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x10\x8B\x15\x2A\x2A\x2A\x2A\x89\x4D\xFC" | ||
"linux" "\x55\xB8\x2A\x2A\x2A\x2A\x89\xE5\x57\x56\x53\x83\xEC\x5C\x8B\x15\x2A\x2A\x2A\x2A\x8B" | ||
} | ||
} | ||
} | ||
|
||
"left4dead2" | ||
{ | ||
"Signatures" | ||
{ | ||
"ProcessAccept" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x28\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x53\x57\x8B\xF9" | ||
} | ||
|
||
"RunFrame" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\xB8\x2C\x10\x00\x00\xE8\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x53\x8B\xD9\x56\x57\x8D\x4B\x04" | ||
} | ||
|
||
"HandleFailedRconAuth" | ||
{ | ||
"library" "engine" | ||
"windows" "\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\xD9\x8B\x43\x2A\x57\x33\xFF" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.