MysTikal
11-23-2007, 11:38 PM
I'm having problems with my Duel Remove mutator.
It simply does not remove any of the things I try.
My first one was this:
class UTMutator_DuelRemove extends UTMutator;
function bool CheckReplacement(Actor Other)
{
local UTPickupFactory F;
F = UTPickupFactory(Other);
return ( F == None || (!F.IsA('UTPickupFactory_UDamage') && !F.IsA('UTPickupFactory_Invulnerability') && !F.IsA('UTPickupFactory_Invisibility') && !F.IsA('UTPickupFactory_Berserk')) );
}
defaultproperties
{
Name="Default__UTMutator_DuelRemove"
}
Which didnt work. Just didnt remove it.
Next I tried a similar method suggested by MonsOlympus:
class UTMutator_DuelRemove extends UTMutator;
function bool CheckReplacement(Actor Other)
{
local UTPickupFactory F;
F = UTPickupFactory(Other);
if (F.IsA('UTPickupFactory_UDamage') ||
F.IsA('UTPickupFactory_Invulnerability') ||
F.IsA('UTPickupFactory_Invisibility') ||
F.IsA('UTPickupFactory_Berserk'))
return false;
return (F == None);
}
defaultproperties
{
Name="Default__UTMutator_DuelRemove"
}Doesnt work either.
Does UT3 hate me or what? :s
It simply does not remove any of the things I try.
My first one was this:
class UTMutator_DuelRemove extends UTMutator;
function bool CheckReplacement(Actor Other)
{
local UTPickupFactory F;
F = UTPickupFactory(Other);
return ( F == None || (!F.IsA('UTPickupFactory_UDamage') && !F.IsA('UTPickupFactory_Invulnerability') && !F.IsA('UTPickupFactory_Invisibility') && !F.IsA('UTPickupFactory_Berserk')) );
}
defaultproperties
{
Name="Default__UTMutator_DuelRemove"
}
Which didnt work. Just didnt remove it.
Next I tried a similar method suggested by MonsOlympus:
class UTMutator_DuelRemove extends UTMutator;
function bool CheckReplacement(Actor Other)
{
local UTPickupFactory F;
F = UTPickupFactory(Other);
if (F.IsA('UTPickupFactory_UDamage') ||
F.IsA('UTPickupFactory_Invulnerability') ||
F.IsA('UTPickupFactory_Invisibility') ||
F.IsA('UTPickupFactory_Berserk'))
return false;
return (F == None);
}
defaultproperties
{
Name="Default__UTMutator_DuelRemove"
}Doesnt work either.
Does UT3 hate me or what? :s