From 0274c0c31f38ece6280c0a26945a9a2309ac66d1 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Wed, 12 Jan 2022 02:16:34 +0700 Subject: [PATCH] Add `OnModifyLogin()` signal support --- sources/Packages.uc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/Packages.uc b/sources/Packages.uc index 05a2cb6..91cd66a 100644 --- a/sources/Packages.uc +++ b/sources/Packages.uc @@ -41,6 +41,7 @@ var private config bool useGameModes; var VotingHandlerAdapter votingAdapter; var Mutator_OnMutate_Signal onMutateSignal; +var Mutator_OnModifyLogin_Signal onModifyLoginSignal; var Mutator_OnCheckReplacement_Signal onCheckReplacementSignal; var private LoggerAPI.Definition infoFeatureEnabled; @@ -154,6 +155,8 @@ private function SetupMutatorSignals() service = UnrealService(class'UnrealService'.static.Require()); onMutateSignal = Mutator_OnMutate_Signal( service.GetSignal(class'Mutator_OnMutate_Signal')); + onModifyLoginSignal = Mutator_OnModifyLogin_Signal( + service.GetSignal(class'Mutator_OnModifyLogin_Signal')); onCheckReplacementSignal = Mutator_OnCheckReplacement_Signal( service.GetSignal(class'Mutator_OnCheckReplacement_Signal')); } @@ -177,6 +180,14 @@ function Mutate(string command, PlayerController sendingController) super.Mutate(command, sendingController); } +function ModifyLogin(out string portal, out string options) +{ + if (onModifyLoginSignal != none) { + onModifyLoginSignal.Emit(portal, options); + } + super.ModifyLogin(portal, options); +} + defaultproperties { useGameModes = false