A guy I'm on contact with has a zark rifle mutator that works with UTPure. However, he would like an arena mutator which the current mutator doesn't have. Is it possible to make an arena mutator that will work in conjunction with the existing mutator ?
The following is what I've come up with so far. Ucc will complain because of references to outside packages. I've added the original mutator in the editpackages list and the arena mutator will compile fine but it doesn't seem to do anything when it's loaded in a practise session.
The following is what I've come up with so far. Ucc will complain because of references to outside packages. I've added the original mutator in the editpackages list and the arena mutator will compile fine but it doesn't seem to do anything when it's loaded in a practise session.
Code:
class ZM_SLRB_II_AR_Arena extends Arena;
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if ( Other.IsA('Weapon') && Other.class!=class'ZM_SLRB_II_ZarkAssaultRifleZ.ZM_SLRB_II_AssaultRifleZ' )
{
ReplaceWith(Other, "ZM_SLRB_II_ZarkAssaultRifleZ.ZM_SLRB_II_AssaultRifleZ");
return false;
}
else if ( Other.IsA('Ammo') && Other.class!=class'Botpack.BulletBox' )
{
ReplaceWith(Other, "Botpack.BulletBox");
return false;
}
return true;
}
function Class<Weapon> MyDefaultWeapon()
{
return class'ZM_SLRB_II_ZarkAssaultRifleZ.ZM_SLRB_II_AssaultRifleZ';
}
defaultproperties
{
}