KF2-TAWOD/TAWOD/Classes/TAWODMut.uc
2021-01-31 13:13:35 +03:00

34 lines
552 B
Ucode

Class TAWODMut extends KFMutator;
simulated event PostBeginPlay()
{
super.PostBeginPlay();
if (WorldInfo.Game.BaseMutator == None)
WorldInfo.Game.BaseMutator = Self;
else
WorldInfo.Game.BaseMutator.AddMutator(Self);
if (bDeleteMe)
return;
WorldInfo.Game.DefaultPawnClass = class'TAWODPawn_Human';
`Log("[TAWOD] Loaded mutator.");
}
function AddMutator(Mutator Mut)
{
if (Mut == Self)
return;
if (Mut.Class == Class)
Mut.Destroy();
else
Super.AddMutator(Mut);
}
defaultproperties
{
}