Botpack
Class VoiceBoss

source: e:\games\UnrealTournament\Botpack\Classes\VoiceBoss.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Info
         |
         +--Engine.VoicePack
            |
            +--Botpack.ChallengeVoicePack
               |
               +--Botpack.VoiceBoss
Direct Known Subclasses:VoiceBotBoss

class VoiceBoss
extends Botpack.ChallengeVoicePack

//============================================================================= // VoiceBoss. //=============================================================================

Function Summary
 void SetOtherMessage(int messageIndex, PlayerReplicationInfo Recipient, out Sound, out Float)



Source Code


00001	//=============================================================================
00002	// VoiceBoss.
00003	//=============================================================================
00004	class VoiceBoss extends ChallengeVoicePack;
00005	
00006	#exec OBJ LOAD FILE=..\Sounds\BossVoice.uax PACKAGE=BossVoice
00007	
00008	function SetOtherMessage(int messageIndex, PlayerReplicationInfo Recipient, out Sound MessageSound, out Float MessageTime)
00009	{
00010		if ( messageIndex == 3 )
00011		{
00012			if ( FRand() < 0.3 )
00013				messageIndex = 7;
00014			else if ( FRand() < 0.5 )
00015				messageIndex = 15;
00016		}
00017		else if ( messageIndex == 4 )
00018		{
00019			if ( FRand() < 0.3 )
00020				messageIndex = 6;
00021			else if ( FRand() < 0.5 )
00022				messageIndex = 13;
00023		}
00024		else if ( messageIndex == 10 )
00025		{
00026			SetTimer(3 + FRand(), false); // wait for initial request to be spoken
00027			if ( FRand() < 0.5 )
00028			{
00029				DelayedResponse = AckString[2]$CommaText$GetCallSign(recipient);
00030				Phrase[0] = AckSound[2];
00031				PhraseTime[0] = AckTime[2];
00032				if ( (Level.NetMode == NM_Standalone) && (recipient.TeamID == 0) )
00033				{
00034					Phrase[1] = NameSound[recipient.Team];
00035					PhraseTime[1] = NameTime[recipient.Team];
00036				}
00037				return;
00038			}
00039		}
00040		Super.SetOtherMessage(messageIndex, Recipient, MessageSound, MessageTime);
00041	}
00042	
00043	defaultproperties
00044	{
00045	     NameSound(0)=Sound'BossVoice.(All).Bredleader'
00046	     NameSound(1)=Sound'BossVoice.(All).Bblueleader'
00047	     NameSound(2)=Sound'BossVoice.(All).Bgreenleader'
00048	     NameSound(3)=Sound'BossVoice.(All).Bgoldleader'
00049	     NameTime(0)=0.960000
00050	     NameTime(1)=1.100000
00051	     NameTime(2)=1.020000
00052	     NameTime(3)=0.990000
00053	     AckSound(0)=Sound'BossVoice.(All).Bgotit'
00054	     AckSound(1)=Sound'BossVoice.(All).Broger'
00055	     AckSound(2)=Sound'BossVoice.(All).Bonmyway'
00056	     AckString(0)="Got it"
00057	     AckString(1)="Roger"
00058	     AckString(2)="On my way"
00059	     AckTime(0)=0.780000
00060	     AckTime(1)=0.810000
00061	     AckTime(2)=0.980000
00062	     numAcks=3
00063	     FFireSound(0)=Sound'BossVoice.(All).Bonyourteam'
00064	     FFireSound(1)=Sound'BossVoice.(All).Bsameteam'
00065	     FFireString(0)="I'm on your team!"
00066	     FFireString(1)="Same team!"
00067	     FFireAbbrev(0)="On your team!"
00068	     numFFires=2
00069	     TauntSound(0)=Sound'BossVoice.(All).Bbowdown'
00070	     TauntSound(1)=Sound'BossVoice.(All).Bdiehuman'
00071	     TauntSound(2)=Sound'BossVoice.(All).Beliminated'
00072	     TauntSound(3)=Sound'BossVoice.(All).Byoudie'
00073	     TauntSound(4)=Sound'BossVoice.(All).Buseless'
00074	     TauntSound(5)=Sound'BossVoice.(All).Bfearme'
00075	     TauntSound(6)=Sound'BossVoice.(All).Binferior'
00076	     TauntSound(7)=Sound'BossVoice.(All).Bobsolete'
00077	     TauntSound(8)=Sound'BossVoice.(All).Bomega'
00078	     TauntSound(9)=Sound'BossVoice.(All).Brunhuman'
00079	     TauntSound(10)=Sound'BossVoice.(All).Bstepaside'
00080	     TauntSound(11)=Sound'BossVoice.(All).Bsuperior'
00081	     TauntSound(12)=Sound'BossVoice.(All).Bperfection'
00082	     TauntSound(13)=Sound'BossVoice.(All).Bboom'
00083	     TauntSound(14)=Sound'BossVoice.(All).Bmyhouse'
00084	     TauntSound(15)=Sound'BossVoice.(All).Bnext'
00085	     TauntSound(16)=Sound'BossVoice.(All).Bburnbaby'
00086	     TauntSound(17)=Sound'BossVoice.(All).Bwantsome'
00087	     TauntSound(18)=Sound'BossVoice.(All).Bhadtohurt'
00088	     TauntSound(19)=Sound'BossVoice.(All).Bimonfire'
00089	     TauntString(0)="Bow down!"
00090	     TauntString(1)="Die, human."
00091	     TauntString(2)="Target lifeform eliminated."
00092	     TauntString(3)="You die too easily."
00093	     TauntString(4)="Useless."
00094	     TauntString(5)="Fear me."
00095	     TauntString(6)="You are inferior."
00096	     TauntString(7)="You are obsolete."
00097	     TauntString(8)="I am the alpha and the omega."
00098	     TauntString(9)="Run, human."
00099	     TauntString(10)="Step aside."
00100	     TauntString(11)="I am superior."
00101	     TauntString(12)="Witness my perfection."
00102	     TauntString(13)="Boom!"
00103	     TauntString(14)="My house."
00104	     TauntString(15)="Next."
00105	     TauntString(16)="Burn, baby"
00106	     TauntString(17)="Anyone else want some?"
00107	     TauntString(18)="That had to hurt."
00108	     TauntString(19)="I'm on fire"
00109	     TauntAbbrev(2)="Target lifeform."
00110	     TauntAbbrev(8)="Alpha/Omega"
00111	     numTaunts=20
00112	     OrderSound(0)=Sound'BossVoice.(All).Bdefendthebase'
00113	     OrderSound(1)=Sound'BossVoice.(All).Bholdposit'
00114	     OrderSound(2)=Sound'BossVoice.(All).Bassaultbase'
00115	     OrderSound(3)=Sound'BossVoice.(All).Bcoverme'
00116	     OrderSound(4)=Sound'BossVoice.(All).Bengage'
00117	     OrderSound(10)=Sound'BossVoice.(All).Btaketheirflag'
00118	     OrderSound(11)=Sound'BossVoice.(All).Bsandd'
00119	     OrderString(0)="Defend the base."
00120	     OrderString(1)="Hold this position."
00121	     OrderString(2)="Assault the base."
00122	     OrderString(3)="Cover me."
00123	     OrderString(4)="Engage according to operational parameters."
00124	     OrderString(10)="Take their flag."
00125	     OrderString(11)="Search and destroy."
00126	     OrderAbbrev(0)="Defend"
00127	     OrderAbbrev(2)="Attack"
00128	     OrderAbbrev(4)="Freelance."
00129	     OtherSound(0)=Sound'BossVoice.(All).Bbaseunc'
00130	     OtherSound(1)=Sound'BossVoice.(All).Bgetourflag'
00131	     OtherSound(2)=Sound'BossVoice.(All).Bgottheflag'
00132	     OtherSound(3)=Sound'BossVoice.(All).Bgotyourback'
00133	     OtherSound(4)=Sound'BossVoice.(All).BImhit'
00134	     OtherSound(5)=Sound'BossVoice.(All).Bmandown'
00135	     OtherSound(6)=Sound'BossVoice.(All).Bunderattack'
00136	     OtherSound(7)=Sound'BossVoice.(All).Byougotpoint'
00137	     OtherSound(8)=Sound'BossVoice.(All).Bgotourflag'
00138	     OtherSound(9)=Sound'BossVoice.(All).Binposition'
00139	     OtherSound(10)=Sound'BossVoice.(All).Bhanginthere'
00140	     OtherSound(11)=Sound'BossVoice.(All).Bconpointsecure'
00141	     OtherSound(12)=Sound'BossVoice.(All).Bflagcarrierher'
00142	     OtherSound(13)=Sound'BossVoice.(All).Bbackup'
00143	     OtherSound(14)=Sound'BossVoice.(All).Bincoming'
00144	     OtherSound(15)=Sound'BossVoice.(All).Bgotyourback'
00145	     OtherSound(16)=Sound'BossVoice.(All).Bobjectivedest'
00146	     otherstring(0)="Base is uncovered!"
00147	     otherstring(1)="Get our flag back!"
00148	     otherstring(2)="I've got the flag."
00149	     otherstring(3)="I've got your back."
00150	     otherstring(4)="I'm hit!"
00151	     otherstring(5)="Man down!"
00152	     otherstring(6)="I'm under heavy attack!"
00153	     otherstring(7)="You got point."
00154	     otherstring(8)="I've got our flag."
00155	     otherstring(9)="I'm in position."
00156	     otherstring(10)="Hang in there."
00157	     otherstring(11)="Control point is secure."
00158	     otherstring(12)="Enemy flag carrier is here."
00159	     otherstring(13)="I need some backup."
00160	     otherstring(14)="Incoming!"
00161	     otherstring(15)="I've got your back."
00162	     otherstring(16)="Objective destroyed."
00163	     OtherAbbrev(1)="Get our flag!"
00164	     OtherAbbrev(2)="Got the flag."
00165	     OtherAbbrev(3)="Got your back."
00166	     OtherAbbrev(6)="Under attack!"
00167	     OtherAbbrev(8)="Got our flag."
00168	     OtherAbbrev(9)="In position."
00169	     OtherAbbrev(11)="Point is secure."
00170	     OtherAbbrev(12)="Enemy carrier here."
00171	     OtherAbbrev(15)="Got your back."
00172	}

End Source Code