I have a custom gametype and in it I put, among other things, this:
But the CTOrb is destroyed anyway and lost for good if I kick a bot holding it. Is there a difference between willingly exiting the game and being 'kicked' or do they call the same function and its just something wrong with my code.
Code:
function Logout(pawn Exiting)
{
local CTOrb CO;
foreach AllActors(Class'CTOrb', CO)
if ( Exiting == CO.Owner )
{
CO.GoToState('InBase');
CO.ReturnOrb(None,CF);
}
Super.Logout(Exiting);
}
But the CTOrb is destroyed anyway and lost for good if I kick a bot holding it. Is there a difference between willingly exiting the game and being 'kicked' or do they call the same function and its just something wrong with my code.