//08/20/2026
class MutNewbieMode extends Mutator;

var bool bAffectSpectators;
var bool bAffectPlayers;

function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
	if (Weapon(Other) != None)
	{
	    if (Shotgun(Other) != None)
	    {
	        Shotgun(Other).bHoldToReload=False;
	    }
	    else if (Winchester(Other) != None)
	    {
	        Winchester(Other).bHoldToReload=False;
	    }
	    /*else if (LAW(Other) != None)
	    {
	        LAW(Other).FireModeClass[0]=Class'KFNewbieMode.NewbieLAWFire';
	    }*/
	}

	return true;
}

function PostBeginPlay()
{
    Super.PostBeginPlay();
    Spawn(class'NewbieReplicator');
    
	if (Level.Game != None && Level.Game.IsA('KFGameType'))
	{
	    KFGameType(Level.Game).StartingCash = 9000;
	    KFGameType(Level.Game).MinRespawnCash = 9000;
	    KFGameType(Level.Game).PlayerControllerClass = Class'KFNewbieMode.NewbiePlayerController';
	    KFGameType(Level.Game).PlayerControllerClassName = "KFNewbieMode.NewbiePlayerController";
	    KFGameType(Level.Game).DefaultPlayerClassName = "KFNewbieMode.NewbiePawn";
	}
}

defaultproperties {
    bAffectSpectators=True
    bAffectPlayers=True
    GroupName="KF-Newbie"
    FriendlyName="Newbie Mode"
    Description="Make KF easier to play."
    bAlwaysRelevant=True
    RemoteRole=ROLE_SimulatedProxy
}
