2023-05-01 22:38:24 +00:00
|
|
|
class AALMut extends KFMutator;
|
|
|
|
|
|
|
|
var private AAL AAL;
|
|
|
|
|
|
|
|
public simulated function bool SafeDestroy()
|
|
|
|
{
|
|
|
|
return (bPendingDelete || bDeleteMe || Destroy());
|
|
|
|
}
|
|
|
|
|
|
|
|
public event PreBeginPlay()
|
|
|
|
{
|
|
|
|
Super.PreBeginPlay();
|
|
|
|
|
|
|
|
if (WorldInfo.NetMode == NM_Client) return;
|
|
|
|
|
|
|
|
foreach WorldInfo.DynamicActors(class'AAL', AAL)
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (AAL == None)
|
|
|
|
{
|
|
|
|
AAL = WorldInfo.Spawn(class'AAL');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (AAL == None)
|
|
|
|
{
|
|
|
|
`Log_Base("FATAL: Can't Spawn 'AAL'");
|
|
|
|
SafeDestroy();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function AddMutator(Mutator Mut)
|
|
|
|
{
|
|
|
|
if (Mut == Self) return;
|
|
|
|
|
|
|
|
if (Mut.Class == Class)
|
2023-05-14 01:00:06 +00:00
|
|
|
AALMut(Mut).SafeDestroy();
|
2023-05-01 22:38:24 +00:00
|
|
|
else
|
|
|
|
Super.AddMutator(Mut);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function NotifyLogin(Controller C)
|
|
|
|
{
|
|
|
|
AAL.NotifyLogin(C);
|
|
|
|
|
|
|
|
Super.NotifyLogin(C);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function NotifyLogout(Controller C)
|
|
|
|
{
|
|
|
|
AAL.NotifyLogout(C);
|
|
|
|
|
|
|
|
Super.NotifyLogout(C);
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
|
2023-05-02 19:31:58 +00:00
|
|
|
}
|