Huh. So I'l try to put that in my Custom Player. The Mutator just uses something sektor wrote for his nsDM stuff.
Code: Select all
class BotMe expands Mutator;
function ModifyLogin(out class<playerpawn> SpawnClass, out string Portal, out string Options)
{
// Log("SpawnClass:"@SpawnClass); // Someone claims that Engine.Pawn makes it here.
if ( SpawnClass == None )
SpawnClass = class'TMale1';
if ( NextMutator != None )
NextMutator.ModifyLogin(SpawnClass, Portal, Options);
if (!ClassIsChildOf(SpawnClass, class'TPBotMe'))
{
log ("Player has entered with class"@SpawnClass);
if ( Right(Caps(SpawnClass),5) == "TBOSS" )
{
SpawnClass = class'NsTBoss';
Log ("Assigned"@SpawnClass);
GoTo JL753;
}
else if ( Right (Caps(SpawnClass),6) == "TMALE1" )
{
SpawnClass = class'NsTMale1';
Log ("Assigned"@SpawnClass);
GoTo JL753;
}
else if ( Right (Caps(SpawnClass),6) == "TMALE2" )
{
SpawnClass = class'NsTMale2';
Log ("Assigned"@SpawnClass);
GoTo JL753;
}
else if ( Right (Caps(SpawnClass),8) == "TFEMALE1" )
{
SpawnClass = class'NsTFemale1';
Log ("Assigned"@SpawnClass);
GoTo JL753;
}
else if ( Right (Caps(SpawnClass),8) == "TFEMALE2" )
{
SpawnClass = class'NsTFemale2';
Log ("Assigned"@SpawnClass);
GoTo JL753;
}
}
JL753:
}
I'll check what sektor pointed out here right now.
Edit: look at that. Sektor was right. I had a PostBeginPlay(); in my player. Go figure. SOLVED
To anyone else having this issue do not call PostBeginPlay(); in your custom player unless you add the playerpawn hud code with it. If you don't you will have my issue.
That would be this:
Code: Select all
event PostBeginPlay()
{
Super.PostBeginPlay();
if (Level.LevelEnterText != "" )
ClientMessage(Level.LevelEnterText);
if ( Level.NetMode != NM_Client )
{
HUDType = Level.Game.HUDType;
ScoringType = Level.Game.ScoreboardType;
MyAutoAim = FMax(MyAutoAim, Level.Game.AutoAim);
}
bIsPlayer = true;
DodgeClickTime = FMin(0.3, DodgeClickTime);
DesiredFOV = DefaultFOV;
EyeHeight = BaseEyeHeight;
if ( Level.Game.IsA('SinglePlayer') && (Level.NetMode == NM_Standalone) )
FlashScale = vect(0,0,0);
}
Thanks sektor!