Afaik the LastManStanding is a gameype, only works if it's the current gametype running, and the same applies to its subclasses.
Therefore you can't just spawn it to use it's events.
In the context of a mutator you have this:
Code: Select all
function ModifyLogin(out class<playerpawn> SpawnClass, out string Portal, out string Options)
{
if ( NextMutator != None )
NextMutator.ModifyLogin(SpawnClass, Portal, Options);
}
This is called from every gametype's "Login(...)" function, so you can use that instead of PostLogin I think.
Regarding the logout, well, I am not sure what you can do about this one, there are some ideas I have in mind, but only someone who already had to use such events should enlighten you better and lead you the proper way.
But basically, on logout, the player ceases to exist, perhaps you should go from there, idk.