//=============================================================================
// MaleBot.
//=============================================================================
class MaleBot expands HumanBot;
var texture TimSkins[8];

function BeginPlay()
{
	CallParent.BeginPlay();
	Skin=TimSkins[rand(ArrayCount(TimSkins))];
}

function ForceMeshToExist()
{
	Spawn(class'MaleOne');
}

//==================================================================================
// Sounds

function Carcass SpawnCarcass()
{
	local carcass carc;

	carc = Carcass(Spawn(CarcassType));
	carc.Initfor(self);
	return carc;
}

function bool Gibbed()
{
	if ( (Health < -100) || ((Health < -40) && (FRand() < 0.65)) )
	{
		if ( FRand() < 0.2 )
			Health = -1000; //tell carc to play special death
		return true;
	}
	return false;
}

function SpawnGibbedCarcass()
{
	local carcass carc;

	carc = Carcass(Spawn(CarcassType));
	carc.Initfor(self);
	carc.ChunkUp(-1 * Health);
}

