From bb49da4d9c12ede5929be933726ea783a77c4b85 Mon Sep 17 00:00:00 2001 From: rtldg Date: Fri, 30 Dec 2022 12:12:00 +0000 Subject: [PATCH] add !specbot to shavit-misc as an alias for !spec ... (which makes it spec the replay bot if it exists) --- addons/sourcemod/scripting/shavit-misc.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/shavit-misc.sp b/addons/sourcemod/scripting/shavit-misc.sp index 259506f1..5ee179aa 100644 --- a/addons/sourcemod/scripting/shavit-misc.sp +++ b/addons/sourcemod/scripting/shavit-misc.sp @@ -186,6 +186,7 @@ public void OnPluginStart() // spec RegConsoleCmd("sm_spec", Command_Spec, "Moves you to the spectators' team. Usage: sm_spec [target]"); RegConsoleCmd("sm_spectate", Command_Spec, "Moves you to the spectators' team. Usage: sm_spectate [target]"); + RegConsoleCmd("sm_specbot", Command_SpecBot, "Spectates the replay bot (usually)"); // hide RegConsoleCmd("sm_hide", Command_Hide, "Toggle players' hiding."); @@ -206,7 +207,7 @@ public void OnPluginStart() RegConsoleCmd("sm_practice", Command_Noclip, "Toggles noclip. (sm_nc alias)"); RegConsoleCmd("sm_nc", Command_Noclip, "Toggles noclip."); RegConsoleCmd("sm_noclipme", Command_Noclip, "Toggles noclip. (sm_nc alias)"); - + // qol RegConsoleCmd("sm_autorestart", Command_AutoRestart, "Toggles auto-restart."); RegConsoleCmd("sm_autoreset", Command_AutoRestart, "Toggles auto-restart."); @@ -1650,6 +1651,11 @@ public Action Command_Hide(int client, int args) return Plugin_Handled; } +public Action Command_SpecBot(int client, int args) +{ + return Command_Spec(client, 0); +} + public Action Command_Spec(int client, int args) { if(!IsValidClient(client))