Add sm_realclients to FakeClients and update several plugins

FakeClients: sm_realclients, autism bots counted separately.

Updated: Extend, HostnameManager, PlayerRankings_nohlstats.

Add shared include: BotTargeting.
This commit is contained in:
2026-11-24 03:21:45 +00:00
parent dd33584e57
commit 7c111cd0f8
5 changed files with 249 additions and 169 deletions
+4 -3
View File
@@ -59,7 +59,7 @@ public void OnPluginStart()
g_cvarExtendVote = CreateConVar("sm_extendvote_enabled", "1", "Enable Extend Vote? [1 = Enable | 0 = Disable]", FCVAR_NONE, true, 0.0, true, 1.0);
g_cvarExtendVoteTime = CreateConVar("sm_extendvote_time", "15", "Time that will be added to mp_timelimit shall the extend vote succeed", FCVAR_NONE, true, 1.0);
g_cvarExtendVoteMaxDuration = CreateConVar("sm_extendvote_max_duration", "30", "Maximum minutes an admin can request with \"sm_extend <time>\"", FCVAR_NONE, true, 1.0);
g_cvarExtendVoteMaxDuration = CreateConVar("sm_extendvote_max_duration", "30", "Maximum minutes an admin can request with \"sm_voteextend <time>\"", FCVAR_NONE, true, 1.0);
g_cvarExtendVotePercent = CreateConVar("sm_extendvote_percent", "0.6", "Percentage of \"yes\" votes required to consider the vote successful", FCVAR_NONE, true, 0.05, true, 1.0);
g_cvarExtendVotePercentIncrement = CreateConVar("sm_extendvote_percent_increment", "0.1", "Percentage added to the required \"yes\" votes for each successful extend vote on the current map", FCVAR_NONE, true, 0.0, true, 1.0);
g_cvarExtendVotePercentMax = CreateConVar("sm_extendvote_percent_max", "0.9", "Maximum percentage of \"yes\" votes that can be required after increments", FCVAR_NONE, true, 0.05, true, 1.0);
@@ -85,8 +85,9 @@ public void OnPluginStart()
if (g_cvarMpTimeLimit != null)
{
RegAdminCmd("sm_extend", Command_Extend, ADMFLAG_GENERIC, "Add more time to mp_timelimit");
RegAdminCmd("sm_extendmap", Command_Extend, ADMFLAG_GENERIC, "Add more time to mp_timelimit");
RegAdminCmd("sm_extend", Command_ExtendVote, ADMFLAG_GENERIC, "sm_extend [time] - Start an extendvote");
RegAdminCmd("sm_voteextend", Command_ExtendVote, ADMFLAG_GENERIC, "sm_voteextend [time] - Start an extendvote");
RegAdminCmd("sm_settimeleft", Command_SetTimeLeft, ADMFLAG_GENERIC, "sm_settimeleft <minutes> - Set the time left on the map");
// Relies on the m_fRoundStartTime gamerules prop, which only Counter-Strike games have
@@ -149,7 +150,7 @@ public Action Command_Extend_Wins(int client, int argc)
public Action Command_Extend(int client, int argc)
{
return HandleLimitCommand(client, argc, g_cvarMpTimeLimit, "sm_extendmap", "minutes", "Unit Minute", "Unit Minutes");
return HandleLimitCommand(client, argc, g_cvarMpTimeLimit, "sm_extend", "minutes", "Unit Minute", "Unit Minutes");
}
public Action Command_ExtendVote(int client, int argc)