Core.Object | +--Engine.Actor | +--Engine.Info | +--Engine.Mutator | +--Botpack.Arena | +--Botpack.InstaGibDM
bool
CheckReplacement(Actor Other, out byte)
00001 //============================================================================= 00002 // InstaGibDM. 00003 // The ultimate skill test. 00004 //============================================================================= 00005 00006 class InstaGibDM expands Arena; 00007 00008 function bool CheckReplacement(Actor Other, out byte bSuperRelevant) 00009 { 00010 if ( Other.IsA('TournamentHealth') || Other.IsA('UT_Shieldbelt') 00011 || Other.IsA('Armor2') || Other.IsA('ThighPads') 00012 || Other.IsA('UT_Invisibility') || Other.IsA('UDamage') ) 00013 return false; 00014 00015 return Super.CheckReplacement( Other, bSuperRelevant ); 00016 /* 00017 if ( Other.IsA('Weapon') ) 00018 if ((WeaponString != "") && !Other.IsA(WeaponName)) 00019 return false; 00020 00021 if ( Other.IsA('Ammo') ) 00022 { 00023 if ((AmmoString != "") && !Other.IsA(AmmoName)) 00024 ReplaceWith(Other, AmmoString); 00025 return false; 00026 } 00027 00028 bSuperRelevant = 0; 00029 return true; 00030 */ 00031 } 00032 00033 defaultproperties 00034 { 00035 WeaponName=SuperShockRifle 00036 AmmoName=SuperShockCore 00037 DefaultWeapon=Class'Botpack.SuperShockRifle' 00038 }