I have made a mutator for UT. When i go into the game all is good. When other connect to my network game they show no gun or crosshairs but can shoot. here is my mutator code. Thanks.
class RapidShock expands Arena;
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if ( Other.IsA('TournamentHealth') || Other.IsA('UT_Shieldbelt')
|| Other.IsA('Armor2') || Other.IsA('ThighPads')
|| Other.IsA('UT_Invisibility') || Other.IsA('UDamage') )
return false;
return Super.CheckReplacement( Other, bSuperRelevant );
/*
if ( Other.IsA('Weapon') )
if ((WeaponString != "") && !Other.IsA(WeaponName))
return false;
if ( Other.IsA('Ammo') )
{
if ((AmmoString != "") && !Other.IsA(AmmoName))
ReplaceWith(Other, AmmoString);
return false;
}
bSuperRelevant = 0;
return true;
*/
}
defaultproperties
{
WeaponName=SuperShockRifle
DefaultWeapon=class'RapidFireShock.SSRifle'
AmmoName=SuperShockCore
}
class RapidShock expands Arena;
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
if ( Other.IsA('TournamentHealth') || Other.IsA('UT_Shieldbelt')
|| Other.IsA('Armor2') || Other.IsA('ThighPads')
|| Other.IsA('UT_Invisibility') || Other.IsA('UDamage') )
return false;
return Super.CheckReplacement( Other, bSuperRelevant );
/*
if ( Other.IsA('Weapon') )
if ((WeaponString != "") && !Other.IsA(WeaponName))
return false;
if ( Other.IsA('Ammo') )
{
if ((AmmoString != "") && !Other.IsA(AmmoName))
ReplaceWith(Other, AmmoString);
return false;
}
bSuperRelevant = 0;
return true;
*/
}
defaultproperties
{
WeaponName=SuperShockRifle
DefaultWeapon=class'RapidFireShock.SSRifle'
AmmoName=SuperShockCore
}
Comment