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
@@ -325,6 +325,34 @@ zr_infect_mzombie_countdown "0"
// Default: "0"
zr_infect_mzombie_respawn "0"
// Exclude fake clients (bots, SourceTV) from being picked as mother zombie. Excluded players are still used as a last resort when no one else can be picked. [0 = Include | 1 = Exclude]
// Default: "1"
zr_infect_mzombie_exclude_fakeclients "1"
// Exclude AFK players (AFKManager idle time of at least zr_infect_mzombie_exclude_afk_time) from being picked as mother zombie. Requires the AFKManager plugin. Excluded players are still used as a last resort when no one else can be picked. [0 = Include | 1 = Exclude]
// Default: "1"
zr_infect_mzombie_exclude_afk "1"
// Seconds a player has to be idle (according to AFKManager) to count as AFK for mother zombie selection.
// Default: "180"
zr_infect_mzombie_exclude_afk_time "180"
// Exclude autism bots (IsClientAutismBot from the BotTargeting plugin) from being picked as mother zombie. Requires the BotTargeting plugin. Excluded players are still used as a last resort when no one else can be picked. [0 = Include | 1 = Exclude]
// Default: "1"
zr_infect_mzombie_exclude_autismbots "1"
// The zr_infect_mzombie_exclude_* cvars only apply while at least this many REAL players are present.
// A REAL player is a player who is:
// - NOT a fake client
// - NOT AFK (AFKManager idle time >= zr_infect_mzombie_exclude_afk_time)
// - NOT an autism bot (BotTargeting)
// - NOT in spectate/unassigned
// - NOT dead
// Example: 5 = while there are fewer than 5 real players, fake clients, AFKs and autism bots can be mother zombie too.
// [0 = Always apply the exclusions]
// Default: "0"
zr_infect_mzombie_exclude_min_real "0"
// Maximum time from the start of the round until picking the mother zombie(s).
// Default: "50.0"
zr_infect_spawntime_max "50.0"