Code: Select all
function ModifyPlayer (Pawn P)
{
/* Remove Translocator */
Inv = P.FindInventoryType(class'Translocator');
If(Inv!=None) P.DeleteInventory(Inv);
}
Code: Select all
class DeathMatchPlus extends TournamentGameInfo
config;
function AddDefaultInventory( pawn PlayerPawn )
{
... do stuff
Super.AddDefaultInventory(PlayerPawn);
... spawn translocator and do more stuff
}
Code: Select all
class GameInfo extends Info
native;
function AddDefaultInventory( pawn PlayerPawn )
{
... do stuff
BaseMutator.ModifyPlayer(PlayerPawn);
}
edit:
I forgot to tell, that I still need to be able to pickup the Translocator.
So something like this doesn't cut it:
Code: Select all
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if(Other.IsA('Translocator')) return false;
}