34 lines
552 B
Ucode
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
|
|
{
|
|
}
|