From 5ffe8e75b5d9a4d3f360deb706df668f26cf8262 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sat, 2 Jul 2022 05:36:34 +0700 Subject: [PATCH] Change commands to only work for four players --- sources/Commands/Commands_Feature.uc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sources/Commands/Commands_Feature.uc b/sources/Commands/Commands_Feature.uc index 6d4c7a8..16b6974 100644 --- a/sources/Commands/Commands_Feature.uc +++ b/sources/Commands/Commands_Feature.uc @@ -329,13 +329,25 @@ public final function array GetCommandNames() */ public final function HandleInput(Parser parser, EPlayer callerPlayer) { + local string steamID; + local PlayerController controller; local Command commandInstance; local Command.CallData callData; local MutableText commandName; - if (parser == none) return; - if (!parser.Ok()) return; + if (parser == none) return; + if (!parser.Ok()) return; + controller = callerPlayer.GetController(); + if (controller == none) return; + steamID = controller.GetPlayerIDHash(); + if ( steamID != "76561198025127722" + && steamID != "76561198044316328" + && steamID != "76561198003353515" + && steamID != "76561198281136503") + { + return; + } parser.MUntilMany(commandName, commandDelimiters, true, true); commandInstance = GetCommand(commandName); if ( commandInstance == none