rott/kf_sources/KFMutators/Classes/KFBeatDownMut.uc
2026-07-14 20:27:09 +07:00

39 lines
1.1 KiB
Ucode

class KFBeatDownMut extends Mutator;
function bool CheckReplacement( Actor Other, out byte bSuperRelevant )
{
// Only pansies need ammunition.
if ( Other.IsA('KFRandomAmmoSpawn') )
{
ReplaceWith(Other, "None");
return false;
}
if ( Other.IsA('KFRandomItemSpawn') )
{
KFRandomItemSpawn(Other).default.PickupClasses[0]= class 'KFMod.BatPickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[1]= class 'KFMod.AxePickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[2]= class 'KFMod.BatPickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[3]= class 'KFMod.BatPickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[4]= class 'KFMod.AxePickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[5]= class 'KFMod.BatPickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[6]= class 'KFMod.AxePickup' ;
KFRandomItemSpawn(Other).default.PickupClasses[7]= class 'KFMod.BatPickup' ;
return false;
}
return true;
}
Defaultproperties
{
//GroupName = "KF-Arena"
FriendlyName = "BeatDown"
Description = "Melee Weapons only. For ye hard'uns."
}