now adding cvar to exclude fakeclients, afks and autism bots from being mother zombie, also cvar for how long people must be afk before they cant be mother zombie. also critically a cvar that says fakeclients, autismbots and afks can actually be mother zombie if less than this cvar amount of players are connected. with 3 real players its not good if they constantly are mother zombie, hence at a low player count we still allow afks, fakes and autismbots to be. this update was done by claude AI

This commit is contained in:
jenz
2026-10-06 12:41:15 +02:00
parent 29dc99af0c
commit 6255e871d3
5 changed files with 374 additions and 33 deletions
+30
View File
@@ -0,0 +1,30 @@
#if defined _BotTargeting_Included
#endinput
#endif
#define _BotTargeting_Included
/**
* Returns whether the client is one of the BotTargeting "autism bot" SteamIDs.
*
* @param client Client index. Must be in-game and authorized, otherwise a native error is thrown.
* @return True if the client is an autism bot, false otherwise.
*/
native bool IsClientAutismBot(int client);
public SharedPlugin __pl_BotTargeting =
{
name = "BotTargeting",
file = "BotTargeting.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
#if !defined REQUIRE_PLUGIN
public __pl_BotTargeting_SetNTVOptional()
{
MarkNativeAsOptional("IsClientAutismBot");
}
#endif