2022-08-14 09:19:07 +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)
|
|
|
|
Mut.Destroy();
|
|
|
|
else
|
|
|
|
Super.AddMutator(Mut);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function NotifyLogin(Controller C)
|
|
|
|
{
|
|
|
|
AAL.NotifyLogin(C);
|
2022-08-16 07:01:59 +00:00
|
|
|
|
|
|
|
Super.NotifyLogin(C);
|
2022-08-14 09:19:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function NotifyLogout(Controller C)
|
|
|
|
{
|
|
|
|
AAL.NotifyLogout(C);
|
2022-08-16 07:01:59 +00:00
|
|
|
|
|
|
|
Super.NotifyLogout(C);
|
2022-08-14 09:19:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DefaultProperties
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|