home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Patche / ut2004-winpatch3204.exe / UT2004-Patch / System / Bonuspack.u / C_MutSquadAI_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-05-10  |  2.3 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6d 24 63 6c 61 73 73 20 |........|m$class |
|00000010| 4d 75 74 53 71 75 61 64 | 41 49 20 65 78 74 65 6e |MutSquad|AI exten|
|00000020| 64 73 20 44 4d 53 71 75 | 61 64 3b 0d 0a 0d 0a 2f |ds DMSqu|ad;..../|
|00000030| 2f 20 54 68 69 73 20 6f | 6e 6c 79 20 72 75 6e 73 |/ This o|nly runs|
|00000040| 20 6f 6e 20 73 65 72 76 | 65 72 0d 0a 66 75 6e 63 | on serv|er..func|
|00000050| 74 69 6f 6e 20 62 6f 6f | 6c 20 53 65 74 45 6e 65 |tion boo|l SetEne|
|00000060| 6d 79 28 20 42 6f 74 20 | 42 2c 20 50 61 77 6e 20 |my( Bot |B, Pawn |
|00000070| 4e 65 77 45 6e 65 6d 79 | 20 29 0d 0a 7b 0d 0a 09 |NewEnemy| )..{...|
|00000080| 6c 6f 63 61 6c 20 78 4d | 75 74 61 6e 74 47 61 6d |local xM|utantGam|
|00000090| 65 20 6d 75 74 61 6e 74 | 47 61 6d 65 3b 0d 0a 09 |e mutant|Game;...|
|000000a0| 6c 6f 63 61 6c 20 70 61 | 77 6e 20 6d 75 74 61 6e |local pa|wn mutan|
|000000b0| 74 50 61 77 6e 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |tPawn;..|.local i|
|000000c0| 6e 74 20 69 3b 0d 0a 0d | 0a 09 6d 75 74 61 6e 74 |nt i;...|..mutant|
|000000d0| 47 61 6d 65 20 3d 20 78 | 4d 75 74 61 6e 74 47 61 |Game = x|MutantGa|
|000000e0| 6d 65 28 4c 65 76 65 6c | 2e 47 61 6d 65 29 3b 0d |me(Level|.Game);.|
|000000f0| 0a 09 0d 0a 09 2f 2f 20 | 49 66 20 6e 6f 2d 6f 6e |.....// |If no-on|
|00000100| 65 20 69 73 20 61 20 6d | 75 74 61 6e 74 20 28 6f |e is a m|utant (o|
|00000110| 72 20 77 65 20 61 72 65 | 29 2c 20 6f 72 20 77 65 |r we are|), or we|
|00000120| 20 61 72 65 20 74 68 65 | 20 62 6f 74 74 6f 6d 20 | are the| bottom |
|00000130| 66 65 65 64 65 72 2c 20 | 64 6f 20 61 73 20 6e 6f |feeder, |do as no|
|00000140| 72 6d 61 6c 20 44 4d 2e | 20 0d 0a 09 69 66 28 20 |rmal DM.| ...if( |
|00000150| 6d 75 74 61 6e 74 47 61 | 6d 65 2e 43 75 72 72 65 |mutantGa|me.Curre|
|00000160| 6e 74 4d 75 74 61 6e 74 | 20 3d 3d 20 4e 6f 6e 65 |ntMutant| == None|
|00000170| 20 7c 7c 20 6d 75 74 61 | 6e 74 47 61 6d 65 2e 43 | || muta|ntGame.C|
|00000180| 75 72 72 65 6e 74 4d 75 | 74 61 6e 74 20 3d 3d 20 |urrentMu|tant == |
|00000190| 42 20 7c 7c 20 6d 75 74 | 61 6e 74 47 61 6d 65 2e |B || mut|antGame.|
|000001a0| 43 75 72 72 65 6e 74 42 | 6f 74 74 6f 6d 46 65 65 |CurrentB|ottomFee|
|000001b0| 64 65 72 20 3d 3d 20 42 | 20 29 0d 0a 09 09 72 65 |der == B| )....re|
|000001c0| 74 75 72 6e 20 53 75 70 | 65 72 2e 53 65 74 45 6e |turn Sup|er.SetEn|
|000001d0| 65 6d 79 28 42 2c 20 4e | 65 77 45 6e 65 6d 79 29 |emy(B, N|ewEnemy)|
|000001e0| 3b 0d 0a 0d 0a 09 6d 75 | 74 61 6e 74 50 61 77 6e |;.....mu|tantPawn|
|000001f0| 20 3d 20 6d 75 74 61 6e | 74 47 61 6d 65 2e 43 75 | = mutan|tGame.Cu|
|00000200| 72 72 65 6e 74 4d 75 74 | 61 6e 74 2e 50 61 77 6e |rrentMut|ant.Pawn|
|00000210| 3b 0d 0a 0d 0a 09 2f 2f | 20 3f 3f 3f 20 49 66 20 |;.....//| ??? If |
|00000220| 74 68 65 72 65 20 69 73 | 20 61 20 6d 75 74 61 6e |there is| a mutan|
|00000230| 74 2c 20 72 65 6d 6f 76 | 65 20 61 6c 6c 20 6e 6f |t, remov|e all no|
|00000240| 6e 2d 6d 75 74 61 6e 74 | 20 65 6e 65 6d 69 65 73 |n-mutant| enemies|
|00000250| 2e 0d 0a 09 66 6f 72 28 | 69 3d 30 3b 20 69 3c 38 |....for(|i=0; i<8|
|00000260| 3b 20 69 2b 2b 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |; i++)..|.{....if|
|00000270| 28 45 6e 65 6d 69 65 73 | 5b 69 5d 20 21 3d 20 6d |(Enemies|[i] != m|
|00000280| 75 74 61 6e 74 50 61 77 | 6e 29 0d 0a 09 09 09 52 |utantPaw|n).....R|
|00000290| 65 6d 6f 76 65 45 6e 65 | 6d 79 28 45 6e 65 6d 69 |emoveEne|my(Enemi|
|000002a0| 65 73 5b 69 5d 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |es[i]);.|..}.....|
|000002b0| 2f 2f 20 52 65 74 75 72 | 6e 20 66 61 6c 73 65 20 |// Retur|n false |
|000002c0| 69 66 20 4e 65 77 45 6e | 65 6d 79 20 21 3d 20 6d |if NewEn|emy != m|
|000002d0| 75 74 61 6e 74 2e 0d 0a | 09 69 66 28 20 4e 65 77 |utant...|.if( New|
|000002e0| 45 6e 65 6d 79 20 21 3d | 20 6d 75 74 61 6e 74 47 |Enemy !=| mutantG|
|000002f0| 61 6d 65 2e 43 75 72 72 | 65 6e 74 4d 75 74 61 6e |ame.Curr|entMutan|
|00000300| 74 2e 50 61 77 6e 20 29 | 0d 0a 09 09 72 65 74 75 |t.Pawn )|....retu|
|00000310| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 69 66 |rn false|;.....if|
|00000320| 20 28 20 21 41 64 64 45 | 6e 65 6d 79 28 4e 65 77 | ( !AddE|nemy(New|
|00000330| 45 6e 65 6d 79 29 20 29 | 0d 0a 09 09 72 65 74 75 |Enemy) )|....retu|
|00000340| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 72 65 |rn false|;.....re|
|00000350| 74 75 72 6e 20 46 69 6e | 64 4e 65 77 45 6e 65 6d |turn Fin|dNewEnem|
|00000360| 79 46 6f 72 28 42 2c 28 | 42 2e 45 6e 65 6d 79 20 |yFor(B,(|B.Enemy |
|00000370| 21 3d 4e 6f 6e 65 29 20 | 26 26 20 42 2e 4c 69 6e |!=None) |&& B.Lin|
|00000380| 65 4f 66 53 69 67 68 74 | 54 6f 28 53 71 75 61 64 |eOfSight|To(Squad|
|00000390| 4d 65 6d 62 65 72 73 2e | 45 6e 65 6d 79 29 29 3b |Members.|Enemy));|
|000003a0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000003b0| 62 6f 6f 6c 20 46 69 6e | 64 4e 65 77 45 6e 65 6d |bool Fin|dNewEnem|
|000003c0| 79 46 6f 72 28 42 6f 74 | 20 42 2c 20 62 6f 6f 6c |yFor(Bot| B, bool|
|000003d0| 20 62 53 65 65 45 6e 65 | 6d 79 29 0d 0a 7b 0d 0a | bSeeEne|my)..{..|
|000003e0| 09 6c 6f 63 61 6c 20 78 | 4d 75 74 61 6e 74 47 61 |.local x|MutantGa|
|000003f0| 6d 65 20 6d 75 74 61 6e | 74 47 61 6d 65 3b 0d 0a |me mutan|tGame;..|
|00000400| 09 6c 6f 63 61 6c 20 50 | 61 77 6e 20 4f 6c 64 45 |.local P|awn OldE|
|00000410| 6e 65 6d 79 2c 20 4d 75 | 74 61 6e 74 50 61 77 6e |nemy, Mu|tantPawn|
|00000420| 3b 0d 0a 0d 0a 09 6d 75 | 74 61 6e 74 47 61 6d 65 |;.....mu|tantGame|
|00000430| 20 3d 20 78 4d 75 74 61 | 6e 74 47 61 6d 65 28 4c | = xMuta|ntGame(L|
|00000440| 65 76 65 6c 2e 47 61 6d | 65 29 3b 0d 0a 0d 0a 09 |evel.Gam|e);.....|
|00000450| 2f 2f 20 49 66 20 6e 6f | 2d 6f 6e 65 20 69 73 20 |// If no|-one is |
|00000460| 61 20 6d 75 74 61 6e 74 | 20 28 6f 72 20 77 65 20 |a mutant| (or we |
|00000470| 61 72 65 29 2c 20 6f 72 | 20 77 65 20 61 72 65 20 |are), or| we are |
|00000480| 74 68 65 20 62 6f 74 74 | 6f 6d 20 66 65 65 64 65 |the bott|om feede|
|00000490| 72 2c 20 64 6f 20 61 73 | 20 6e 6f 72 6d 61 6c 20 |r, do as| normal |
|000004a0| 44 4d 2e 20 0d 0a 09 69 | 66 28 20 6d 75 74 61 6e |DM. ...i|f( mutan|
|000004b0| 74 47 61 6d 65 2e 43 75 | 72 72 65 6e 74 4d 75 74 |tGame.Cu|rrentMut|
|000004c0| 61 6e 74 20 3d 3d 20 4e | 6f 6e 65 20 7c 7c 20 6d |ant == N|one || m|
|000004d0| 75 74 61 6e 74 47 61 6d | 65 2e 43 75 72 72 65 6e |utantGam|e.Curren|
|000004e0| 74 4d 75 74 61 6e 74 20 | 3d 3d 20 42 20 7c 7c 20 |tMutant |== B || |
|000004f0| 6d 75 74 61 6e 74 47 61 | 6d 65 2e 43 75 72 72 65 |mutantGa|me.Curre|
|00000500| 6e 74 42 6f 74 74 6f 6d | 46 65 65 64 65 72 20 3d |ntBottom|Feeder =|
|00000510| 3d 20 42 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |= B )...|.return |
|00000520| 53 75 70 65 72 2e 46 69 | 6e 64 4e 65 77 45 6e 65 |Super.Fi|ndNewEne|
|00000530| 6d 79 46 6f 72 28 42 2c | 20 62 53 65 65 45 6e 65 |myFor(B,| bSeeEne|
|00000540| 6d 79 29 3b 0d 0a 0d 0a | 09 4f 6c 64 45 6e 65 6d |my);....|.OldEnem|
|00000550| 79 20 3d 20 42 2e 45 6e | 65 6d 79 3b 0d 0a 09 0d |y = B.En|emy;....|
|00000560| 0a 09 4d 75 74 61 6e 74 | 50 61 77 6e 20 3d 20 6d |..Mutant|Pawn = m|
|00000570| 75 74 61 6e 74 47 61 6d | 65 2e 43 75 72 72 65 6e |utantGam|e.Curren|
|00000580| 74 4d 75 74 61 6e 74 2e | 50 61 77 6e 3b 0d 0a 0d |tMutant.|Pawn;...|
|00000590| 0a 09 69 66 28 4d 75 74 | 61 6e 74 50 61 77 6e 20 |..if(Mut|antPawn |
|000005a0| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 7b 0d 0a 09 09 |!= None)|...{....|
|000005b0| 69 66 20 28 20 56 53 69 | 7a 65 28 4d 75 74 61 6e |if ( VSi|ze(Mutan|
|000005c0| 74 50 61 77 6e 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |tPawn.Lo|cation -|
|000005d0| 20 42 2e 50 61 77 6e 2e | 4c 6f 63 61 74 69 6f 6e | B.Pawn.|Location|
|000005e0| 29 20 3c 20 31 35 30 30 | 20 29 0d 0a 09 09 09 62 |) < 1500| ).....b|
|000005f0| 53 65 65 45 6e 65 6d 79 | 20 3d 20 42 2e 4c 69 6e |SeeEnemy| = B.Lin|
|00000600| 65 4f 66 53 69 67 68 74 | 54 6f 28 4d 75 74 61 6e |eOfSight|To(Mutan|
|00000610| 74 50 61 77 6e 29 3b 0d | 0a 09 09 65 6c 73 65 0d |tPawn);.|...else.|
|00000620| 0a 09 09 09 62 53 65 65 | 45 6e 65 6d 79 20 3d 20 |....bSee|Enemy = |
|00000630| 42 2e 43 61 6e 53 65 65 | 28 4d 75 74 61 6e 74 50 |B.CanSee|(MutantP|
|00000640| 61 77 6e 29 3b 09 2f 2f | 20 6f 6e 6c 79 20 69 66 |awn);.//| only if|
|00000650| 20 6c 6f 6f 6b 69 6e 67 | 20 61 74 20 68 69 6d 0d | looking| at him.|
|00000660| 0a 09 7d 0d 0a 09 42 2e | 45 6e 65 6d 79 20 3d 20 |..}...B.|Enemy = |
|00000670| 4d 75 74 61 6e 74 50 61 | 77 6e 3b 0d 0a 0d 0a 09 |MutantPa|wn;.....|
|00000680| 69 66 28 4f 6c 64 45 6e | 65 6d 79 20 21 3d 20 4d |if(OldEn|emy != M|
|00000690| 75 74 61 6e 74 50 61 77 | 6e 29 0d 0a 09 7b 0d 0a |utantPaw|n)...{..|
|000006a0| 09 09 42 2e 45 6e 65 6d | 79 43 68 61 6e 67 65 64 |..B.Enem|yChanged|
|000006b0| 28 62 53 65 65 45 6e 65 | 6d 79 29 3b 0d 0a 09 09 |(bSeeEne|my);....|
|000006c0| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 7d |return t|rue;...}|
|000006d0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.....ret|urn fals|
|000006e0| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|000006f0| 6e 20 62 6f 6f 6c 20 41 | 73 73 69 67 6e 53 71 75 |n bool A|ssignSqu|
|00000700| 61 64 52 65 73 70 6f 6e | 73 69 62 69 6c 69 74 79 |adRespon|sibility|
|00000710| 28 42 6f 74 20 42 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |(Bot B).|.{...loc|
|00000720| 61 6c 20 78 4d 75 74 61 | 6e 74 47 61 6d 65 20 6d |al xMuta|ntGame m|
|00000730| 75 74 61 6e 74 47 61 6d | 65 3b 0d 0a 09 6c 6f 63 |utantGam|e;...loc|
|00000740| 61 6c 20 70 61 77 6e 20 | 6d 75 74 61 6e 74 50 61 |al pawn |mutantPa|
|00000750| 77 6e 3b 0d 0a 0d 0a 09 | 6d 75 74 61 6e 74 47 61 |wn;.....|mutantGa|
|00000760| 6d 65 20 3d 20 78 4d 75 | 74 61 6e 74 47 61 6d 65 |me = xMu|tantGame|
|00000770| 28 4c 65 76 65 6c 2e 47 | 61 6d 65 29 3b 0d 0a 0d |(Level.G|ame);...|
|00000780| 0a 09 2f 2f 20 49 66 20 | 74 68 65 72 65 20 69 73 |..// If |there is|
|00000790| 20 61 20 6d 75 74 61 6e | 74 20 28 61 6e 64 20 49 | a mutan|t (and I|
|000007a0| 27 6d 20 6e 6f 74 20 69 | 74 29 0d 0a 09 69 66 28 |'m not i|t)...if(|
|000007b0| 6d 75 74 61 6e 74 47 61 | 6d 65 2e 43 75 72 72 65 |mutantGa|me.Curre|
|000007c0| 6e 74 4d 75 74 61 6e 74 | 20 21 3d 20 4e 6f 6e 65 |ntMutant| != None|
|000007d0| 20 26 26 20 6d 75 74 61 | 6e 74 47 61 6d 65 2e 43 | && muta|ntGame.C|
|000007e0| 75 72 72 65 6e 74 4d 75 | 74 61 6e 74 20 21 3d 20 |urrentMu|tant != |
|000007f0| 42 29 0d 0a 09 7b 0d 0a | 09 09 6d 75 74 61 6e 74 |B)...{..|..mutant|
|00000800| 50 61 77 6e 20 3d 20 6d | 75 74 61 6e 74 47 61 6d |Pawn = m|utantGam|
|00000810| 65 2e 43 75 72 72 65 6e | 74 4d 75 74 61 6e 74 2e |e.Curren|tMutant.|
|00000820| 50 61 77 6e 3b 0d 0a 0d | 0a 09 09 2f 2f 20 49 66 |Pawn;...|...// If|
|00000830| 20 49 27 6d 20 6e 6f 74 | 20 74 68 65 20 62 6f 74 | I'm not| the bot|
|00000840| 74 6f 6d 20 66 65 65 64 | 65 72 20 62 75 74 20 69 |tom feed|er but i|
|00000850| 27 6d 20 68 75 6e 74 69 | 6e 67 20 73 6f 6d 65 6f |'m hunti|ng someo|
|00000860| 6e 65 2c 20 69 74 20 63 | 61 6e 20 6f 6e 6c 79 20 |ne, it c|an only |
|00000870| 62 65 20 74 68 65 20 6d | 75 74 61 6e 74 2e 0d 0a |be the m|utant...|
|00000880| 09 09 69 66 28 42 2e 45 | 6e 65 6d 79 20 21 3d 20 |..if(B.E|nemy != |
|00000890| 4e 6f 6e 65 20 26 26 20 | 6d 75 74 61 6e 74 47 61 |None && |mutantGa|
|000008a0| 6d 65 2e 43 75 72 72 65 | 6e 74 42 6f 74 74 6f 6d |me.Curre|ntBottom|
|000008b0| 46 65 65 64 65 72 20 21 | 3d 20 42 20 26 26 20 42 |Feeder !|= B && B|
|000008c0| 2e 45 6e 65 6d 79 20 21 | 3d 20 6d 75 74 61 6e 74 |.Enemy !|= mutant|
|000008d0| 50 61 77 6e 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 46 |Pawn)...|.{.....F|
|000008e0| 69 6e 64 4e 65 77 45 6e | 65 6d 79 46 6f 72 28 42 |indNewEn|emyFor(B|
|000008f0| 2c 20 66 61 6c 73 65 29 | 3b 0d 0a 09 09 7d 0d 0a |, false)|;....}..|
|00000900| 09 7d 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 53 75 |.}.....r|eturn Su|
|00000910| 70 65 72 2e 41 73 73 69 | 67 6e 53 71 75 61 64 52 |per.Assi|gnSquadR|
|00000920| 65 73 70 6f 6e 73 69 62 | 69 6c 69 74 79 28 42 29 |esponsib|ility(B)|
|00000930| 3b 0d 0a 7d 0d 0a 00 | |;..}... | |
+--------+-------------------------+-------------------------+--------+--------+