diff --git a/KFHusksOnly/Classes/KFHusksOnly.uc b/KFHusksOnly/Classes/KFHusksOnly.uc new file mode 100644 index 0000000..16012d0 --- /dev/null +++ b/KFHusksOnly/Classes/KFHusksOnly.uc @@ -0,0 +1,40 @@ +//================================================================================================================== +// Base Changes by Vel-San, base mutator by TripWire Interactive - Contact on Steam using the following Profile Link +// for more information, feedback, questions or requests please contact +// httpssteamcommunity.comidVel-San +//================================================================================================================== + +class KFHusksOnly extends Mutator; + +function PostBeginPlay() +{ + SetTimer(0.1,False); +} +function Timer() +{ + local KFGameType KF; + local byte i; + local class MC; + local int MSquadLength; + + KF = KFGameType(Level.Game); + MC = Class(DynamicLoadObject(KF.GetEventHuskClassName(),Class'Class')); + if ( KF!=None && MC!=None ) + { + // groups of monsters that will be spawned + KF.InitSquads.Length = 1; + MSquadLength = Min( 10, KF.MaxZombiesOnce ); + KF.InitSquads[0].MSquad.Length = MSquadLength; + for( i=0; i