Note: This is for UT2004.
Is it possible to access GameInfo::PreLogin or AccessControl::PreLogin from the context of a mutator? I'm trying to set up a mutator that does reserved slots and that seems to be the right function to use, but Mutator doesn't inherit it, and I don't know how to make it inherit it.
Here's my code so far:
The first Log() works fine, but the second one obviously doesn't. Uncommenting the Super.PreLogin() causes errors as well because it's not part of Mutator.
Should I be using PreLogin even? I just need a quick way of intercepting incoming connections and getting their playerID. Preferrably before they've spawned.
Is it possible to access GameInfo::PreLogin or AccessControl::PreLogin from the context of a mutator? I'm trying to set up a mutator that does reserved slots and that seems to be the right function to use, but Mutator doesn't inherit it, and I don't know how to make it inherit it.
Here's my code so far:
Code:
class MutReservedSlot extends Mutator; function PostBeginPlay() { Super.PostBeginPlay(); Log("Reserved Slot mutator initialized"); } function PreLogin ( string Options, string Address, string PlayerID, out string Error, out string FailCode ) { if (PlayerID == "[my playerID]") { Log("Oh my goodness!"); } //Super.PreLogin(Options, Address, PlayerID, Error, FailCode); } defaultproperties { GroupName="ReservedSlot" FriendlyName="Reserved Slot System" Description="Truly awful!" }
Should I be using PreLogin even? I just need a quick way of intercepting incoming connections and getting their playerID. Preferrably before they've spawned.
Comment