sapphonie / StAC-tf2

steph's anticheat (StAC). a built-from-scratch sourcemod based solution to cheating in Team Fortress 2.
https://sappho.io
GNU General Public License v3.0
117 stars 21 forks source link

Fix detection for SMAC core and module plugins #199

Closed sirdigbot closed 1 month ago

sirdigbot commented 3 months ago

Fix for #198

All the official SMAC stuff starts with "SMAC " (with trailing space) except for the core plugin which is "SourceMod Anti-Cheat" Not sure if there's and "[SMAC]" variants out there or not ¯\_(ツ)_/¯

sirdigbot commented 3 months ago

yo hold up this fix doesn't work 😎

Mooshua commented 3 months ago

romcom scribes have nothing on this

maxijabase commented 3 months ago

what about checking for the smac library for a more reliable result https://github.com/Silenci0/SMAC/blob/aa4cf68ab8b5f46ac59e7d94de9a936ef7704e4a/addons/sourcemod/scripting/smac.sp#L174

or the smac_wallhack library https://github.com/Silenci0/SMAC/blob/aa4cf68ab8b5f46ac59e7d94de9a936ef7704e4a/addons/sourcemod/scripting/smac_wallhack.sp#L91

sirdigbot commented 3 months ago

i'll leave it for sapphonie to decide what approach is better since i dont particularly care either way

sapphonie commented 3 months ago

GetFeatureStatus(FeatureType_Capability, "SMAC_Ban");?

sapphonie commented 1 month ago

201