KF2-TAWOD/TAWOD/Classes/TAWODMut.uc

34 lines
552 B
Ucode
Raw Normal View History

2021-01-31 10:13:35 +00:00
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
{
}