//=============================================================================
// VoiceMaleOne.
//=============================================================================
class VoiceMaleOne expands ChallengeVoicePack;

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MAbel.WAV" NAME="M1Abel" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MBaker.WAV" NAME="M1Baker" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MCharlie.WAV" NAME="M1Charlie" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MDog.WAV" NAME="M1Dog" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MEasy.WAV" NAME="M1Easy" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MFox.WAV" NAME="M1Fox" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MRomeo.WAV" NAME="M1Romeo" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MTango.WAV" NAME="M1Tango" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MVictor.WAV" NAME="M1Victor" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MZulu.WAV" NAME="M1Zulu" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MRedLeader.WAV" NAME="M1RedLeader" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MBlueLeader.WAV" NAME="M1BlueLeader" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MGoldLeader.WAV" NAME="M1GoldLeader" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\names\MGreenLeader.WAV" NAME="M1GreenLeader" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\acknowledge\Mgotit.WAV" NAME="M1Gotit" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\acknowledge\Mroger.WAV" NAME="M1Roger" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\acknowledge\Monmyway.WAV" NAME="M1OnMyWay" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\ffire\Midiot.WAV" NAME="M1Idiot" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\ffire\Msameteam.WAV" NAME="M1SameTeam" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\eatthat.WAV" NAME="M1EatThat" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\MLikethat.WAV" NAME="M1LikeThat" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\Myeahbitch.WAV" NAME="M1YeahBitch" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\boom.WAV" NAME="M1Boom" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\burnbaby.WAV" NAME="M1Burnbaby" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\clobber.WAV" NAME="M1Clobber" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\diebitch.WAV" NAME="M1DieBitch" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\loser.WAV" NAME="M1Loser" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\nailedem.WAV" NAME="M1NailedEm" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\nasty.WAV" NAME="M1Nasty" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\nice.WAV" NAME="M1Nice" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\OhYeah.WAV" NAME="M1OhYeah" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\slaughter.WAV" NAME="M1Slaughter" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\sucker.WAV" NAME="M1Sucker" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\yeehaw.WAV" NAME="M1Yeehaw" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\taunts\yousuck.WAV" NAME="M1YouSuck" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Massault.WAV" NAME="M1Assault" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Mcoverme.WAV" NAME="M1Cover" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Mdefend.WAV" NAME="M1Defend" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Mengage.WAV" NAME="M1Engage" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Mhold.WAV" NAME="M1Hold" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Mtakeflag.WAV" NAME="M1TakeFlag" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\orders\Msearchdestroy.WAV" NAME="M1Destroy" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\uncovered.WAV" NAME="M1BaseUnc" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\getflagback.WAV" NAME="M1GetFlag" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\igotflag.WAV" NAME="M1GotFlag" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\gotyourback.WAV" NAME="M1Backup" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\imhit.WAV" NAME="M1ImHit" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\mandown.WAV" NAME="M1ManDown" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\underattack.WAV" NAME="M1UnderAttack" GROUP="Male1Speech"

#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\Myougotpoint.WAV" NAME="M1GotPoint" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\inPosition.WAV" NAME="M1InPosition" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\ObjectDestroyed.WAV" NAME="M1ObjectiveDestroyed" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\PointSecure.WAV" NAME="M1PointSecure" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\enemycarrier.WAV" NAME="M1EnemyHere" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\MBackup.WAV" NAME="M1NeedBack" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\GotYouCovered.WAV" NAME="M1GotYouCovered" GROUP="Male1Speech"

/* FIXME - Need
"I've got our flag"
"Incoming"
"Hang in there"
*/
//FIXME - use messages below here
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\MTakeDown.WAV" NAME="M1TakeDown" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\proceeding.WAV" NAME="M1Proceeding" GROUP="Male1Speech"
#exec AUDIO IMPORT FILE="Sounds\Speech\Male1\random\quietHere.WAV" NAME="M1QuietHere" GROUP="Male1Speech"

function SetOrderMessage(int messageIndex, PlayerReplicationInfo Recipient, out Sound MessageSound, out Float MessageTime)
{
	if ( messageIndex == 2 )
	{
		if ( Level.Game.IsA('CTFGame') )
			messageIndex = 10;
	}
	else if ( messageIndex == 4 )
	{
		if ( FRand() < 0.4 )
			messageIndex = 11;
	}
	Super.SetOrderMessage(messageIndex, Recipient, MessageSound, MessageTime);
}

function SetOtherMessage(int messageIndex, PlayerReplicationInfo Recipient, out Sound MessageSound, out Float MessageTime)
{
	if ( messageIndex == 3 )
	{
		if ( FRand() < 0.3 )
			messageIndex = 7;
		else if ( FRand() < 0.5 )
			messageIndex = 15;
	}
	else if ( messageIndex == 4 )
	{
		if ( FRand() < 0.3 )
			messageIndex = 6;
		else if ( FRand() < 0.5 )
			messageIndex = 13;
	}
	else if ( messageIndex == 10 )
	{
		SetTimer(3 + FRand(), false); // wait for initial request to be spoken
		if ( FRand() < 0.5 )
		{
			DelayedResponse = AckString[2]$", "$GetCallSign(recipient.TeamID);
			Phrase[0] = AckSound[2];
			PhraseTime[0] = AckTime[2];
			if ( recipient.TeamID > 0 )
			{
				Phrase[1] = NameSound[recipient.TeamID];
				PhraseTime[1] = NameTime[recipient.TeamID];
			}
			else
			{
				Phrase[1] = NameSound[recipient.Team + 11 ];
				PhraseTime[1] = NameTime[recipient.Team + 11];
			}
			return;
		}
	}
	Super.SetOtherMessage(messageIndex, Recipient, MessageSound, MessageTime);
}

defaultproperties
{
	NameSound(1)=M1Abel
	NameSound(2)=M1Baker
	NameSound(3)=M1Charlie
	NameSound(4)=M1Dog
	NameSound(5)=M1Easy
	NameSound(6)=M1Fox
	NameSound(7)=M1Romeo
	NameSound(8)=M1Tango
	NameSound(9)=M1Victor
	NameSound(10)=M1Zulu
	NameSound(11)=M1RedLeader
	NameSound(12)=M1BlueLeader
	NameSound(13)=M1GreenLeader
	NameSound(14)=M1GoldLeader
	NameTime(1)=0.87
	NameTime(2)=0.87
	NameTime(3)=0.71
	NameTime(4)=0.89
	NameTime(5)=0.92
	NameTime(6)=0.88
	NameTime(7)=0.73
	NameTime(8)=0.79
	NameTime(9)=0.73
	NameTime(10)=0.78
	NameTime(11)=0.96
	NameTime(12)=1.10
	NameTime(13)=1.02
	NameTime(14)=0.99

	numAcks=3
	AckSound(0)=M1GotIt
	AckSound(1)=M1Roger
	AckSound(2)=M1OnMyWay
	AckTime(0)=0.78
	AckTime(1)=0.81
	AckTime(2)=0.98
	AckString(0)="Got it"
	AckString(1)="Roger"
	AckString(2)="On my way"

	numFFires=3
	FFireSound(0)=M1Idiot
	FFireSound(1)=M1SameTeam
	FFireSound(2)=M1SameTeam
	FFireString(0)="I'm on your team, you idiot!"
	FFireString(1)="Hey! Same team!"
	FFireString(2)="Hey! Same team!"

	numTaunts=16
	TauntSound(0)=M1EatThat
	TauntSound(1)=M1LikeThat
	TauntSound(2)=M1YeahBitch
	TauntSound(3)=M1Boom
	TauntSound(4)=M1Burnbaby
	TauntSound(5)=M1Clobber
	TauntSound(6)=M1DieBitch
	TauntSound(7)=M1Loser
	TauntSound(8)=M1NailedEm
	TauntSound(9)=M1Nasty
	TauntSound(10)=M1Nice
	TauntSound(11)=M1OhYeah
	TauntSound(12)=M1Slaughter
	TauntSound(13)=M1Sucker
	TauntSound(14)=M1Yeehaw
	TauntSound(15)=M1Yousuck
	TauntString(0)="Eat that!"
	TauntString(1)="You like that?"
	TauntString(2)="Yeah, bitch!"
	TauntString(3)="Boom!"
	TauntString(4)="Burn, baby"
	TauntString(5)="Its clobberin' time."
	TauntString(6)="Die, bitch."
	TauntString(7)="Loser."
	TauntString(8)="Nailed 'im."
	TauntString(9)="That was nasty."
	TauntString(10)="Nice."
	TauntString(11)="Oh, yeah!"
	TauntString(12)="I just slaughtered that guy."
	TauntString(13)="Sucker!"
	TauntString(14)="Yeehaw!"
	TauntString(15)="You suck!"

	OrderSound(0)=M1Defend
	OrderSound(1)=M1Hold
	OrderSound(2)=M1Assault
	OrderSound(3)=M1Cover
	OrderSound(4)=M1Engage
	OrderSound(10)=M1TakeFlag
	OrderSound(11)=M1Destroy
	OrderString(0)="Defend the base."
	OrderString(1)="Hold this position."
	OrderString(2)="Assault the base."
	OrderString(3)="Cover me."
	OrderString(4)="Engage according to operational parameters."
	OrderString(10)="Take their flag."
	OrderString(11)="Search and destroy."

	OtherSound(0)=M1BaseUnc
	OtherSound(1)=M1GetFlag
	OtherSound(2)=M1GotFlag
	OtherSound(3)=M1Backup
	OtherSound(4)=M1ImHit
	OtherSound(5)=M1ManDown
	OtherSound(6)=M1UnderAttack
	OtherSound(7)=M1GotPoint
	OtherSound(8)=M1GotFlag
	OtherSound(9)=M1InPosition
	OtherSound(10)=M1OnMyWay
	OtherSound(11)=M1PointSecure
	OtherSound(12)=M1EnemyHere
	OtherSound(13)=M1NeedBack
	OtherSound(14)=M1TakeDown
	OtherSound(15)=M1GotYouCovered
	OtherSound(16)=M1ObjectiveDestroyed
	OtherString(0)="Base is uncovered!"
	OtherString(1)="Somebody get our flag back!"
	OtherString(2)="I've got the flag."
	OtherString(3)="I've got your back."
	OtherString(4)="I'm hit!"
	OtherString(5)="Man down!"
	OtherString(6)="I'm under heavy attack!"
	OtherString(7)="You got point."
	OtherString(8)="I've got our flag."
	OtherString(9)="I'm in position."
	OtherString(10)="Hang in there."
	OtherString(11)="Control point is secure."
	OtherString(12)="Enemy flag carrier is here."
	OtherString(13)="I need some backup."
	OtherString(14)="Take them down."
	OtherString(15)="I've got you covered."
	OtherString(16)="Objective is destroyed."
}