//=============================================================================
//A special MonsterHunt Mutator
//=============================================================================
class MHVXMutator expands Mutator;

function PostBeginPlay()
{
	local PlayerStart PS;
	local byte PSCount;
	
    	ForEach AllActors(Class'PlayerStart', PS)
	{
		if (PSCount == 0)
			Spawn(Class'Konglauncher',,,PS.Location);

		PSCount++;

		if (PSCount >= 7)
			PSCount = 0;
	}

	if (Class'StrangeMutator'.default.bRandomFuelNearKong)
		spawnFuelNearKong(Class'StrangeMutator'.default.randFuelNearKong);
}

function spawnFuelNearKong(int dist) {
	 local Konglauncher kl;

	 foreach AllActors(Class'Konglauncher', kl)
	 {
		  spawn(Class'Fuelcore',,, kl.location + dist*vect(1,0,0));
		  spawn(Class'Fuelcore',,, kl.location + dist*vect(-1,0,0));
		  spawn(Class'Fuelcore',,, kl.location + dist*vect(0,1,0));
		  spawn(Class'Fuelcore',,, kl.location + dist*vect(0,-1,0));
	 }
}
