2022-08-11 04:44:13 +00:00
|
|
|
class CVCMut extends KFMutator;
|
|
|
|
|
|
|
|
var private CVC CVC;
|
|
|
|
|
|
|
|
public simulated function bool SafeDestroy()
|
|
|
|
{
|
|
|
|
return (bPendingDelete || bDeleteMe || Destroy());
|
|
|
|
}
|
|
|
|
|
|
|
|
public event PreBeginPlay()
|
|
|
|
{
|
|
|
|
Super.PreBeginPlay();
|
|
|
|
|
|
|
|
if (WorldInfo.NetMode == NM_Client) return;
|
|
|
|
|
|
|
|
foreach WorldInfo.DynamicActors(class'CVC', CVC)
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (CVC == None)
|
|
|
|
{
|
|
|
|
CVC = WorldInfo.Spawn(class'CVC');
|
|
|
|
}
|
|
|
|
|
|
|
|
if (CVC == None)
|
|
|
|
{
|
2022-08-14 11:17:50 +00:00
|
|
|
`Log_Base("FATAL: Can't Spawn 'CVC'");
|
2022-08-11 04:44:13 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
Super.NotifyLogin(C);
|
|
|
|
|
|
|
|
CVC.NotifyLogin(C);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function NotifyLogout(Controller C)
|
|
|
|
{
|
|
|
|
Super.NotifyLogout(C);
|
|
|
|
|
|
|
|
CVC.NotifyLogout(C);
|
|
|
|
}
|
|
|
|
|
2022-09-02 12:17:59 +00:00
|
|
|
defaultproperties
|
2022-08-11 04:44:13 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|