home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / DVDStar / Akce / UT2004 / UETFTactics.exe / System / UETFTactics.u / ScriptText12.TextBuffer < prev    next >
Unknown  |  2005-12-22  |  9.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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 | 67 97 01 2f 2f 3d 3d 3d |........|g..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 44 |========|==..// D|
|00000060| 65 66 65 6e 73 65 0d 0a | 2f 2f 3d 3d 3d 3d 3d 3d |efense..|//======|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 0d | 0a 2f 2f 44 65 66 65 6e |=======.|.//Defen|
|000000c0| 64 20 79 6f 75 72 20 67 | 65 6e 65 72 61 74 6f 72 |d your g|enerator|
|000000d0| 20 66 6f 72 20 78 20 77 | 61 76 65 73 0d 0a 0d 0a | for x w|aves....|
|000000e0| 63 6c 61 73 73 20 55 45 | 54 46 44 65 66 65 6e 73 |class UE|TFDefens|
|000000f0| 65 47 65 6e 65 72 61 74 | 6f 72 47 61 6d 65 20 65 |eGenerat|orGame e|
|00000100| 78 74 65 6e 64 73 20 55 | 45 54 46 42 61 73 65 47 |xtends U|ETFBaseG|
|00000110| 61 6d 65 0d 0a 20 20 20 | 20 20 20 64 65 70 65 6e |ame.. | depen|
|00000120| 64 73 4f 6e 28 55 45 54 | 46 52 75 6c 65 73 29 3b |dsOn(UET|FRules);|
|00000130| 0d 0a 0d 0a 76 61 72 20 | 45 78 74 72 61 63 74 69 |....var |Extracti|
|00000140| 6f 6e 50 6f 69 6e 74 20 | 4c 65 76 65 6c 45 78 74 |onPoint |LevelExt|
|00000150| 72 61 63 74 69 6f 6e 50 | 6f 69 6e 74 3b 0d 0a 76 |ractionP|oint;..v|
|00000160| 61 72 20 61 72 72 61 79 | 3c 55 45 54 46 42 6f 74 |ar array|<UETFBot|
|00000170| 4d 6f 6e 73 74 65 72 3e | 20 53 65 6e 74 69 6e 65 |Monster>| Sentine|
|00000180| 6c 73 3b 0d 0a 76 61 72 | 20 76 65 63 74 6f 72 20 |ls;..var| vector |
|00000190| 53 65 6e 74 69 6e 65 6c | 50 6f 69 6e 74 3b 0d 0a |Sentinel|Point;..|
|000001a0| 76 61 72 20 62 6f 6f 6c | 20 53 65 6e 74 69 6e 65 |var bool| Sentine|
|000001b0| 6c 73 44 65 70 6c 6f 79 | 65 64 3b 0d 0a 76 61 72 |lsDeploy|ed;..var|
|000001c0| 20 50 61 77 6e 20 54 61 | 72 67 65 74 47 65 6e 65 | Pawn Ta|rgetGene|
|000001d0| 72 61 74 6f 72 3b 0d 0a | 0d 0a 66 75 6e 63 74 69 |rator;..|..functi|
|000001e0| 6f 6e 20 43 68 65 63 6b | 44 65 70 6c 6f 79 61 62 |on Check|Deployab|
|000001f0| 6c 65 73 28 29 0d 0a 7b | 0d 0a 20 6c 6f 63 61 6c |les()..{|.. local|
|00000200| 20 78 52 65 64 46 6c 61 | 67 42 61 73 65 20 52 3b | xRedFla|gBase R;|
|00000210| 0d 0a 20 6c 6f 63 61 6c | 20 78 42 6c 75 65 46 6c |.. local| xBlueFl|
|00000220| 61 67 42 61 73 65 20 42 | 3b 0d 0a 20 6c 6f 63 61 |agBase B|;.. loca|
|00000230| 6c 20 78 52 65 64 46 6c | 61 67 20 52 46 3b 0d 0a |l xRedFl|ag RF;..|
|00000240| 20 6c 6f 63 61 6c 20 78 | 42 6c 75 65 46 6c 61 67 | local x|BlueFlag|
|00000250| 20 42 46 3b 0d 0a 0d 0a | 20 6c 6f 63 61 6c 20 76 | BF;....| local v|
|00000260| 65 63 74 6f 72 20 73 70 | 61 77 6e 6c 6f 63 3b 0d |ector sp|awnloc;.|
|00000270| 0a 0d 0a 20 66 6f 72 65 | 61 63 68 20 41 6c 6c 41 |... fore|ach AllA|
|00000280| 63 74 6f 72 73 28 63 6c | 61 73 73 27 78 52 65 64 |ctors(cl|ass'xRed|
|00000290| 46 6c 61 67 42 61 73 65 | 27 2c 52 29 0d 0a 20 7b |FlagBase|',R).. {|
|000002a0| 0d 0a 20 20 73 70 61 77 | 6e 6c 6f 63 20 3d 20 52 |.. spaw|nloc = R|
|000002b0| 2e 4c 6f 63 61 74 69 6f | 6e 3b 0d 0a 20 20 52 2e |.Locatio|n;.. R.|
|000002c0| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 20 20 44 65 |Destroy(|);.. De|
|000002d0| 70 6c 6f 79 47 65 6e 65 | 72 61 74 6f 72 28 73 70 |ployGene|rator(sp|
|000002e0| 61 77 6e 6c 6f 63 29 3b | 0d 0a 20 7d 0d 0a 0d 0a |awnloc);|.. }....|
|000002f0| 20 66 6f 72 65 61 63 68 | 20 41 6c 6c 41 63 74 6f | foreach| AllActo|
|00000300| 72 73 28 63 6c 61 73 73 | 27 78 42 6c 75 65 46 6c |rs(class|'xBlueFl|
|00000310| 61 67 42 61 73 65 27 2c | 42 29 0d 0a 20 7b 0d 0a |agBase',|B).. {..|
|00000320| 20 20 53 65 6e 74 69 6e | 65 6c 50 6f 69 6e 74 3d | Sentin|elPoint=|
|00000330| 42 2e 4c 6f 63 61 74 69 | 6f 6e 3b 0d 0a 20 20 42 |B.Locati|on;.. B|
|00000340| 2e 44 65 73 74 72 6f 79 | 28 29 3b 0d 0a 20 7d 0d |.Destroy|();.. }.|
|00000350| 0a 0d 0a 20 66 6f 72 65 | 61 63 68 20 41 6c 6c 41 |... fore|ach AllA|
|00000360| 63 74 6f 72 73 28 63 6c | 61 73 73 27 78 52 65 64 |ctors(cl|ass'xRed|
|00000370| 46 6c 61 67 27 2c 52 46 | 29 0d 0a 20 7b 0d 0a 20 |Flag',RF|).. {.. |
|00000380| 20 52 46 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a | RF.Dest|roy();..|
|00000390| 20 7d 0d 0a 0d 0a 20 66 | 6f 72 65 61 63 68 20 41 | }.... f|oreach A|
|000003a0| 6c 6c 41 63 74 6f 72 73 | 28 63 6c 61 73 73 27 78 |llActors|(class'x|
|000003b0| 42 6c 75 65 46 6c 61 67 | 27 2c 42 46 29 0d 0a 20 |BlueFlag|',BF).. |
|000003c0| 7b 0d 0a 20 20 42 46 2e | 44 65 73 74 72 6f 79 28 |{.. BF.|Destroy(|
|000003d0| 29 3b 0d 0a 20 7d 0d 0a | 7d 0d 0a 0d 0a 2f 2f 41 |);.. }..|}....//A|
|000003e0| 64 64 20 61 20 6d 6f 6e | 73 74 65 72 20 61 74 20 |dd a mon|ster at |
|000003f0| 74 68 65 20 6e 65 61 72 | 65 73 74 20 6e 61 76 20 |the near|est nav |
|00000400| 70 6f 69 6e 74 20 74 6f | 20 61 20 6c 6f 63 61 74 |point to| a locat|
|00000410| 69 6f 6e 0d 0a 66 75 6e | 63 74 69 6f 6e 20 44 65 |ion..fun|ction De|
|00000420| 70 6c 6f 79 47 65 6e 65 | 72 61 74 6f 72 28 76 65 |ployGene|rator(ve|
|00000430| 63 74 6f 72 20 53 70 61 | 77 6e 4c 6f 63 29 0d 0a |ctor Spa|wnLoc)..|
|00000440| 7b 0d 0a 20 6c 6f 63 61 | 6c 20 4e 61 76 69 67 61 |{.. loca|l Naviga|
|00000450| 74 69 6f 6e 50 6f 69 6e | 74 20 4e 3b 0d 0a 20 6c |tionPoin|t N;.. l|
|00000460| 6f 63 61 6c 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |ocal Nav|igationP|
|00000470| 6f 69 6e 74 20 43 6c 6f | 73 65 73 74 53 70 6f 74 |oint Clo|sestSpot|
|00000480| 3b 0d 0a 20 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |;.. loca|l float |
|00000490| 64 69 73 74 61 6e 63 65 | 2c 20 63 6c 6f 73 65 73 |distance|, closes|
|000004a0| 74 5f 64 69 73 74 61 6e | 63 65 3b 0d 0a 20 6c 6f |t_distan|ce;.. lo|
|000004b0| 63 61 6c 20 50 61 77 6e | 20 4e 65 77 47 65 6e 65 |cal Pawn| NewGene|
|000004c0| 72 61 74 6f 72 3b 0d 0a | 20 6c 6f 63 61 6c 20 56 |rator;..| local V|
|000004d0| 65 63 74 6f 72 20 43 6c | 6f 73 65 73 74 56 65 63 |ector Cl|osestVec|
|000004e0| 74 6f 72 3b 0d 0a 0d 0a | 20 4e 65 77 47 65 6e 65 |tor;....| NewGene|
|000004f0| 72 61 74 6f 72 20 3d 20 | 53 70 61 77 6e 28 63 6c |rator = |Spawn(cl|
|00000500| 61 73 73 27 41 6c 6c 79 | 47 65 6e 65 72 61 74 6f |ass'Ally|Generato|
|00000510| 72 27 2c 2c 2c 53 70 61 | 77 6e 4c 6f 63 20 2d 20 |r',,,Spa|wnLoc - |
|00000520| 33 30 20 2a 20 76 65 63 | 74 28 30 2c 30 2c 31 29 |30 * vec|t(0,0,1)|
|00000530| 2c 29 3b 0d 0a 0d 0a 20 | 69 66 20 28 4e 65 77 47 |,);.... |if (NewG|
|00000540| 65 6e 65 72 61 74 6f 72 | 21 3d 4e 6f 6e 65 29 7b |enerator|!=None){|
|00000550| 0d 0a 20 20 20 20 54 61 | 72 67 65 74 47 65 6e 65 |.. Ta|rgetGene|
|00000560| 72 61 74 6f 72 20 3d 20 | 4e 65 77 47 65 6e 65 72 |rator = |NewGener|
|00000570| 61 74 6f 72 3b 0d 0a 20 | 20 20 20 72 65 74 75 72 |ator;.. | retur|
|00000580| 6e 3b 0d 0a 20 7d 0d 0a | 0d 0a 20 63 6c 6f 73 65 |n;.. }..|.. close|
|00000590| 73 74 5f 64 69 73 74 61 | 6e 63 65 3d 39 39 39 39 |st_dista|nce=9999|
|000005a0| 39 3b 0d 0a 0d 0a 20 66 | 6f 72 65 61 63 68 20 41 |9;.... f|oreach A|
|000005b0| 6c 6c 41 63 74 6f 72 73 | 28 63 6c 61 73 73 27 4e |llActors|(class'N|
|000005c0| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 27 2c |avigatio|nPoint',|
|000005d0| 4e 29 0d 0a 20 7b 0d 0a | 20 20 64 69 73 74 61 6e |N).. {..| distan|
|000005e0| 63 65 3d 20 56 53 69 7a | 65 28 53 70 61 77 6e 4c |ce= VSiz|e(SpawnL|
|000005f0| 6f 63 20 2d 20 4e 2e 4c | 6f 63 61 74 69 6f 6e 29 |oc - N.L|ocation)|
|00000600| 3b 0d 0a 0d 0a 20 20 69 | 66 20 28 28 21 50 6f 69 |;.... i|f ((!Poi|
|00000610| 6e 74 54 72 69 65 64 28 | 4e 29 29 20 26 26 20 64 |ntTried(|N)) && d|
|00000620| 69 73 74 61 6e 63 65 20 | 3c 20 63 6c 6f 73 65 73 |istance |< closes|
|00000630| 74 5f 64 69 73 74 61 6e | 63 65 20 26 26 20 64 69 |t_distan|ce && di|
|00000640| 73 74 61 6e 63 65 20 3e | 20 30 29 7b 0d 0a 20 20 |stance >| 0){.. |
|00000650| 20 20 20 43 6c 6f 73 65 | 73 74 53 70 6f 74 3d 4e | Close|stSpot=N|
|00000660| 3b 0d 0a 20 20 20 20 20 | 63 6c 6f 73 65 73 74 5f |;.. |closest_|
|00000670| 64 69 73 74 61 6e 63 65 | 3d 64 69 73 74 61 6e 63 |distance|=distanc|
|00000680| 65 3b 0d 0a 20 20 7d 0d | 0a 20 7d 0d 0a 0d 0a 20 |e;.. }.|. }.... |
|00000690| 20 4e 65 77 47 65 6e 65 | 72 61 74 6f 72 20 3d 20 | NewGene|rator = |
|000006a0| 53 70 61 77 6e 28 63 6c | 61 73 73 27 41 6c 6c 79 |Spawn(cl|ass'Ally|
|000006b0| 47 65 6e 65 72 61 74 6f | 72 27 2c 2c 2c 43 6c 6f |Generato|r',,,Clo|
|000006c0| 73 65 73 74 53 70 6f 74 | 2e 4c 6f 63 61 74 69 6f |sestSpot|.Locatio|
|000006d0| 6e 20 2d 20 33 30 20 2a | 20 76 65 63 74 28 30 2c |n - 30 *| vect(0,|
|000006e0| 30 2c 31 29 2c 43 6c 6f | 73 65 73 74 53 70 6f 74 |0,1),Clo|sestSpot|
|000006f0| 2e 52 6f 74 61 74 69 6f | 6e 29 3b 0d 0a 0d 0a 20 |.Rotatio|n);.... |
|00000700| 20 54 72 69 65 64 50 6f | 69 6e 74 73 2e 49 6e 73 | TriedPo|ints.Ins|
|00000710| 65 72 74 28 54 72 69 65 | 64 50 6f 69 6e 74 73 2e |ert(Trie|dPoints.|
|00000720| 4c 65 6e 67 74 68 2c 20 | 30 29 3b 0d 0a 20 20 54 |Length, |0);.. T|
|00000730| 72 69 65 64 50 6f 69 6e | 74 73 5b 54 72 69 65 64 |riedPoin|ts[Tried|
|00000740| 50 6f 69 6e 74 73 2e 4c | 65 6e 67 74 68 5d 3d 43 |Points.L|ength]=C|
|00000750| 6c 6f 73 65 73 74 53 70 | 6f 74 3b 0d 0a 0d 0a 20 |losestSp|ot;.... |
|00000760| 20 43 6c 6f 73 65 73 74 | 56 65 63 74 6f 72 3d 43 | Closest|Vector=C|
|00000770| 6c 6f 73 65 73 74 53 70 | 6f 74 2e 4c 6f 63 61 74 |losestSp|ot.Locat|
|00000780| 69 6f 6e 3b 0d 0a 0d 0a | 20 20 2f 2f 49 66 20 73 |ion;....| //If s|
|00000790| 70 61 77 6e 20 66 61 69 | 6c 73 2c 20 74 72 79 20 |pawn fai|ls, try |
|000007a0| 72 65 63 75 72 73 69 76 | 65 20 63 68 65 63 6b 0d |recursiv|e check.|
|000007b0| 0a 20 20 69 66 20 28 4e | 65 77 47 65 6e 65 72 61 |. if (N|ewGenera|
|000007c0| 74 6f 72 20 3d 3d 20 4e | 6f 6e 65 29 7b 0d 0a 20 |tor == N|one){.. |
|000007d0| 20 20 20 20 2f 2f 42 61 | 69 6c 20 4f 75 74 2d 6e | //Ba|il Out-n|
|000007e0| 6f 20 6f 70 65 6e 20 6e | 61 76 20 70 6f 69 6e 74 |o open n|av point|
|000007f0| 73 2c 20 67 69 76 65 20 | 75 70 0d 0a 20 20 20 20 |s, give |up.. |
|00000800| 20 69 66 20 28 54 72 69 | 65 64 50 6f 69 6e 74 73 | if (Tri|edPoints|
|00000810| 2e 4c 65 6e 67 74 68 20 | 3c 20 4d 61 78 50 6f 69 |.Length |< MaxPoi|
|00000820| 6e 74 73 29 0d 0a 20 20 | 20 20 20 20 20 20 44 65 |nts).. | De|
|00000830| 70 6c 6f 79 47 65 6e 65 | 72 61 74 6f 72 28 43 6c |ployGene|rator(Cl|
|00000840| 6f 73 65 73 74 53 70 6f | 74 2e 4c 6f 63 61 74 69 |osestSpo|t.Locati|
|00000850| 6f 6e 29 3b 0d 0a 20 20 | 7d 0d 0a 20 20 65 6c 73 |on);.. |}.. els|
|00000860| 65 7b 0d 0a 20 20 20 20 | 54 61 72 67 65 74 47 65 |e{.. |TargetGe|
|00000870| 6e 65 72 61 74 6f 72 20 | 3d 20 4e 65 77 47 65 6e |nerator |= NewGen|
|00000880| 65 72 61 74 6f 72 3b 0d | 0a 20 20 20 20 43 6c 65 |erator;.|. Cle|
|00000890| 61 72 50 6f 69 6e 74 73 | 54 72 69 65 64 28 29 3b |arPoints|Tried();|
|000008a0| 0d 0a 20 20 7d 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |.. }..}|....simu|
|000008b0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 54 |lated fu|nction T|
|000008c0| 69 6d 65 72 28 29 0d 0a | 7b 0d 0a 20 6c 6f 63 61 |imer()..|{.. loca|
|000008d0| 6c 20 69 6e 74 20 6c 6f | 63 61 6c 6e 75 6d 70 6c |l int lo|calnumpl|
|000008e0| 61 79 65 72 73 2c 20 69 | 2c 20 72 61 6e 64 6d 6f |ayers, i|, randmo|
|000008f0| 6e 73 74 65 72 3b 0d 0a | 20 6c 6f 63 61 6c 20 48 |nster;..| local H|
|00000900| 75 64 4d 65 73 73 61 67 | 65 48 65 6c 70 65 72 20 |udMessag|eHelper |
|00000910| 4f 75 72 4d 73 67 3b 0d | 0a 20 6c 6f 63 61 6c 20 |OurMsg;.|. local |
|00000920| 66 6c 6f 61 74 20 77 69 | 6e 72 61 74 69 6f 3b 0d |float wi|nratio;.|
|00000930| 0a 0d 0a 20 69 66 20 28 | 44 69 73 70 6c 61 79 65 |... if (|Displaye|
|00000940| 64 45 6e 64 49 6e 66 6f | 29 0d 0a 20 20 20 20 72 |dEndInfo|).. r|
|00000950| 65 74 75 72 6e 3b 0d 0a | 0d 0a 20 2f 2f 47 65 74 |eturn;..|.. //Get|
|00000960| 20 74 68 65 20 69 6e 64 | 65 78 20 6f 66 20 74 68 | the ind|ex of th|
|00000970| 65 20 6d 61 70 0d 0a 20 | 2f 2f 43 75 72 4d 61 70 |e map.. |//CurMap|
|00000980| 3d 46 69 6e 64 43 75 72 | 72 65 6e 74 4d 61 70 49 |=FindCur|rentMapI|
|00000990| 6e 64 65 78 28 47 65 74 | 55 52 4c 4d 61 70 28 29 |ndex(Get|URLMap()|
|000009a0| 29 3b 0d 0a 0d 0a 20 2f | 2f 4d 61 70 20 54 79 70 |);.... /|/Map Typ|
|000009b0| 65 0d 0a 20 2f 2f 4c 65 | 76 65 6c 54 79 70 65 3d |e.. //Le|velType=|
|000009c0| 4d 61 70 54 79 70 65 4c | 69 73 74 5b 43 75 72 4d |MapTypeL|ist[CurM|
|000009d0| 61 70 5d 3b 0d 0a 0d 0a | 20 69 66 20 28 62 4c 5a |ap];....| if (bLZ|
|000009e0| 69 73 63 6c 65 61 72 3d | 3d 46 61 6c 73 65 29 7b |isclear=|=False){|
|000009f0| 0d 0a 20 20 20 20 43 68 | 65 63 6b 44 65 70 6c 6f |.. Ch|eckDeplo|
|00000a00| 79 61 62 6c 65 73 28 29 | 3b 0d 0a 20 20 20 20 62 |yables()|;.. b|
|00000a10| 4c 5a 69 73 63 6c 65 61 | 72 3d 74 72 75 65 3b 0d |LZisclea|r=true;.|
|00000a20| 0a 20 7d 0d 0a 0d 0a 20 | 2f 2f 43 68 65 63 6b 20 |. }.... |//Check |
|00000a30| 66 6f 72 20 70 6c 61 79 | 65 72 73 0d 0a 20 69 66 |for play|ers.. if|
|00000a40| 20 28 21 63 68 65 63 6b | 74 65 61 6d 28 54 65 61 | (!check|team(Tea|
|00000a50| 6d 73 5b 30 5d 29 29 7b | 0d 0a 0d 0a 20 20 20 20 |ms[0])){|.... |
|00000a60| 2f 2f 41 64 64 20 53 65 | 6e 74 69 6e 65 6c 73 0d |//Add Se|ntinels.|
|00000a70| 0a 20 20 20 20 69 66 20 | 28 21 53 65 6e 74 69 6e |. if |(!Sentin|
|00000a80| 65 6c 73 44 65 70 6c 6f | 79 65 64 29 7b 0d 0a 20 |elsDeplo|yed){.. |
|00000a90| 20 20 20 20 6c 6f 63 61 | 6c 6e 75 6d 70 6c 61 79 | loca|lnumplay|
|00000aa0| 65 72 73 3d 41 64 6a 75 | 73 74 4e 75 6d 42 6f 74 |ers=Adju|stNumBot|
|00000ab0| 73 28 29 3b 0d 0a 0d 0a | 20 20 20 20 20 2f 2a 66 |s();....| /*f|
|00000ac0| 6f 72 20 28 69 3d 30 3b | 20 69 3c 6c 6f 63 61 6c |or (i=0;| i<local|
|00000ad0| 6e 75 6d 70 6c 61 79 65 | 72 73 3b 20 69 2b 2b 29 |numplaye|rs; i++)|
|00000ae0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 41 64 64 53 65 |{.. | AddSe|
|00000af0| 6e 74 69 6e 65 6c 28 53 | 65 6e 74 69 6e 65 6c 50 |ntinel(S|entinelP|
|00000b00| 6f 69 6e 74 29 3b 0d 0a | 20 20 20 20 20 7d 2a 2f |oint);..| }*/|
|00000b10| 0d 0a 0d 0a 20 20 20 20 | 20 2f 2f 54 65 61 6d 73 |.... | //Teams|
|00000b20| 69 7a 65 20 2b 20 32 3b | 0d 0a 20 20 20 20 20 2f |ize + 2;|.. /|
|00000b30| 2f 41 64 64 53 65 6e 74 | 69 6e 65 6c 28 53 65 6e |/AddSent|inel(Sen|
|00000b40| 74 69 6e 65 6c 50 6f 69 | 6e 74 29 3b 0d 0a 20 20 |tinelPoi|nt);.. |
|00000b50| 20 20 20 2f 2f 41 64 64 | 53 65 6e 74 69 6e 65 6c | //Add|Sentinel|
|00000b60| 28 53 65 6e 74 69 6e 65 | 6c 50 6f 69 6e 74 29 3b |(Sentine|lPoint);|
|00000b70| 0d 0a 20 20 20 20 20 53 | 65 6e 74 69 6e 65 6c 73 |.. S|entinels|
|00000b80| 44 65 70 6c 6f 79 65 64 | 3d 74 72 75 65 3b 0d 0a |Deployed|=true;..|
|00000b90| 20 20 20 20 7d 0d 0a 0d | 0a 20 20 20 20 62 54 65 | }...|. bTe|
|00000ba0| 61 6d 44 65 70 6c 6f 79 | 65 64 3d 74 72 75 65 3b |amDeploy|ed=true;|
|00000bb0| 0d 0a 20 7d 0d 0a 0d 0a | 20 2f 2f 6d 6f 72 65 20 |.. }....| //more |
|00000bc0| 62 61 64 64 69 65 73 21 | 2d 61 66 74 65 72 20 74 |baddies!|-after t|
|00000bd0| 68 65 20 68 75 6d 61 6e | 20 74 65 61 6d 20 68 61 |he human| team ha|
|00000be0| 73 20 73 70 61 77 6e 65 | 64 20 69 6e 0d 0a 20 69 |s spawne|d in.. i|
|00000bf0| 66 20 28 73 70 61 77 6e | 5f 63 6f 75 6e 74 65 72 |f (spawn|_counter|
|00000c00| 3d 3d 61 64 6a 75 73 74 | 65 64 5f 64 65 6c 61 79 |==adjust|ed_delay|
|00000c10| 20 26 26 20 62 54 65 61 | 6d 44 65 70 6c 6f 79 65 | && bTea|mDeploye|
|00000c20| 64 29 7b 0d 0a 0d 0a 20 | 20 20 20 6c 6f 63 61 6c |d){.... | local|
|00000c30| 6e 75 6d 70 6c 61 79 65 | 72 73 3d 41 64 6a 75 73 |numplaye|rs=Adjus|
|00000c40| 74 4e 75 6d 42 6f 74 73 | 28 29 3b 0d 0a 0d 0a 20 |tNumBots|();.... |
|00000c50| 20 20 20 2f 2f 64 69 66 | 66 69 63 75 6c 74 79 0d | //dif|ficulty.|
|00000c60| 0a 20 20 20 20 69 66 20 | 28 28 42 6f 74 44 69 66 |. if |((BotDif|
|00000c70| 66 69 63 75 6c 74 79 20 | 2a 20 76 69 63 74 6f 72 |ficulty |* victor|
|00000c80| 79 5f 63 6f 75 6e 74 65 | 72 29 20 3c 20 31 30 29 |y_counte|r) < 10)|
|00000c90| 0d 0a 20 20 20 20 20 20 | 20 43 75 72 72 65 6e 74 |.. | Current|
|00000ca0| 44 69 66 66 69 63 75 6c | 74 79 3d 31 3b 0d 0a 20 |Difficul|ty=1;.. |
|00000cb0| 20 20 20 69 66 20 28 28 | 42 6f 74 44 69 66 66 69 | if ((|BotDiffi|
|00000cc0| 63 75 6c 74 79 20 2a 20 | 76 69 63 74 6f 72 79 5f |culty * |victory_|
|00000cd0| 63 6f 75 6e 74 65 72 29 | 20 3c 20 32 30 20 26 26 |counter)| < 20 &&|
|00000ce0| 20 28 42 6f 74 44 69 66 | 66 69 63 75 6c 74 79 20 | (BotDif|ficulty |
|00000cf0| 2a 20 76 69 63 74 6f 72 | 79 5f 63 6f 75 6e 74 65 |* victor|y_counte|
|00000d00| 72 29 20 3e 3d 20 31 30 | 29 0d 0a 20 20 20 20 20 |r) >= 10|).. |
|00000d10| 20 20 43 75 72 72 65 6e | 74 44 69 66 66 69 63 75 | Curren|tDifficu|
|00000d20| 6c 74 79 3d 32 3b 0d 0a | 20 20 20 20 69 66 20 28 |lty=2;..| if (|
|00000d30| 28 42 6f 74 44 69 66 66 | 69 63 75 6c 74 79 20 2a |(BotDiff|iculty *|
|00000d40| 20 76 69 63 74 6f 72 79 | 5f 63 6f 75 6e 74 65 72 | victory|_counter|
|00000d50| 29 20 3c 20 33 30 20 26 | 26 20 28 42 6f 74 44 69 |) < 30 &|& (BotDi|
|00000d60| 66 66 69 63 75 6c 74 79 | 20 2a 20 76 69 63 74 6f |fficulty| * victo|
|00000d70| 72 79 5f 63 6f 75 6e 74 | 65 72 29 20 3e 3d 20 32 |ry_count|er) >= 2|
|00000d80| 30 29 0d 0a 20 20 20 20 | 20 20 20 43 75 72 72 65 |0).. | Curre|
|00000d90| 6e 74 44 69 66 66 69 63 | 75 6c 74 79 3d 33 3b 0d |ntDiffic|ulty=3;.|
|00000da0| 0a 20 20 20 20 69 66 20 | 28 28 42 6f 74 44 69 66 |. if |((BotDif|
|00000db0| 66 69 63 75 6c 74 79 20 | 2a 20 76 69 63 74 6f 72 |ficulty |* victor|
|00000dc0| 79 5f 63 6f 75 6e 74 65 | 72 29 20 3e 3d 20 33 30 |y_counte|r) >= 30|
|00000dd0| 29 0d 0a 20 20 20 20 20 | 20 20 43 75 72 72 65 6e |).. | Curren|
|00000de0| 74 44 69 66 66 69 63 75 | 6c 74 79 3d 34 3b 0d 0a |tDifficu|lty=4;..|
|00000df0| 0d 0a 20 20 20 20 66 6f | 72 20 28 69 3d 30 3b 20 |.. fo|r (i=0; |
|00000e00| 69 3c 6c 6f 63 61 6c 6e | 75 6d 70 6c 61 79 65 72 |i<localn|umplayer|
|00000e10| 73 3b 20 69 2b 2b 29 7b | 0d 0a 20 20 20 20 20 20 |s; i++){|.. |
|00000e20| 20 20 2f 2f 43 68 65 63 | 6b 20 69 66 20 77 65 20 | //Chec|k if we |
|00000e30| 61 64 64 20 6e 6f 72 6d | 61 6c 20 6d 6f 6e 73 74 |add norm|al monst|
|00000e40| 65 72 73 2c 20 6f 72 20 | 61 20 6b 69 6e 65 74 69 |ers, or |a kineti|
|00000e50| 63 20 73 71 75 61 64 0d | 0a 20 20 20 20 20 20 20 |c squad.|. |
|00000e60| 20 69 66 20 28 73 71 75 | 61 64 5f 73 70 61 77 6e | if (squ|ad_spawn|
|00000e70| 5f 64 65 6c 61 79 3d 3d | 33 29 7b 0d 0a 20 20 20 |_delay==|3){.. |
|00000e80| 20 20 20 20 20 20 20 20 | 41 64 64 53 75 70 70 6f | |AddSuppo|
|00000e90| 72 74 4d 6f 6e 73 74 65 | 72 28 43 75 72 72 65 6e |rtMonste|r(Curren|
|00000ea0| 74 44 69 66 66 69 63 75 | 6c 74 79 29 3b 0d 0a 20 |tDifficu|lty);.. |
|00000eb0| 20 20 20 20 20 20 20 20 | 20 20 41 64 64 53 75 70 | | AddSup|
|00000ec0| 70 6f 72 74 4d 6f 6e 73 | 74 65 72 28 43 75 72 72 |portMons|ter(Curr|
|00000ed0| 65 6e 74 44 69 66 66 69 | 63 75 6c 74 79 29 3b 0d |entDiffi|culty);.|
|00000ee0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 41 64 64 53 |. | AddS|
|00000ef0| 75 70 70 6f 72 74 4d 6f | 6e 73 74 65 72 28 43 75 |upportMo|nster(Cu|
|00000f00| 72 72 65 6e 74 44 69 66 | 66 69 63 75 6c 74 79 29 |rrentDif|ficulty)|
|00000f10| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 41 64 |;.. | Ad|
|00000f20| 64 53 75 70 70 6f 72 74 | 4d 6f 6e 73 74 65 72 28 |dSupport|Monster(|
|00000f30| 43 75 72 72 65 6e 74 44 | 69 66 66 69 63 75 6c 74 |CurrentD|ifficult|
|00000f40| 79 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |y);.. | |
|00000f50| 41 64 64 53 75 70 70 6f | 72 74 4d 6f 6e 73 74 65 |AddSuppo|rtMonste|
|00000f60| 72 28 43 75 72 72 65 6e | 74 44 69 66 66 69 63 75 |r(Curren|tDifficu|
|00000f70| 6c 74 79 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |lty);.. | |
|00000f80| 20 20 41 64 64 53 75 70 | 70 6f 72 74 4d 6f 6e 73 | AddSup|portMons|
|00000f90| 74 65 72 28 43 75 72 72 | 65 6e 74 44 69 66 66 69 |ter(Curr|entDiffi|
|00000fa0| 63 75 6c 74 79 29 3b 0d | 0a 20 20 20 20 20 20 20 |culty);.|. |
|00000fb0| 20 20 20 20 73 71 75 61 | 64 5f 73 70 61 77 6e 5f | squa|d_spawn_|
|00000fc0| 64 65 6c 61 79 3d 30 3b | 0d 0a 20 20 20 20 20 20 |delay=0;|.. |
|00000fd0| 20 20 7d 0d 0a 20 20 20 | 20 20 20 20 20 65 6c 73 | }.. | els|
|00000fe0| 65 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e{.. | |
|00000ff0| 20 72 61 6e 64 6d 6f 6e | 73 74 65 72 3d 47 65 74 | randmon|ster=Get|
|00001000| 52 61 6e 64 4d 6f 6e 73 | 74 65 72 28 43 75 72 72 |RandMons|ter(Curr|
|00001010| 65 6e 74 44 69 66 66 69 | 63 75 6c 74 79 29 3b 0d |entDiffi|culty);.|
|00001020| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00001030| 41 64 64 53 70 65 63 69 | 66 69 63 4d 6f 6e 73 74 |AddSpeci|ficMonst|
|00001040| 65 72 28 72 61 6e 64 6d | 6f 6e 73 74 65 72 29 3b |er(randm|onster);|
|00001050| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 41 |.. | A|
|00001060| 64 64 53 70 65 63 69 66 | 69 63 4d 6f 6e 73 74 65 |ddSpecif|icMonste|
|00001070| 72 28 72 61 6e 64 6d 6f | 6e 73 74 65 72 29 3b 0d |r(randmo|nster);.|
|00001080| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 64 |. | Ad|
|00001090| 64 53 70 65 63 69 66 69 | 63 4d 6f 6e 73 74 65 72 |dSpecifi|cMonster|
|000010a0| 28 72 61 6e 64 6d 6f 6e | 73 74 65 72 29 3b 0d 0a |(randmon|ster);..|
|000010b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 41 64 64 | | Add|
|000010c0| 53 70 65 63 69 66 69 63 | 4d 6f 6e 73 74 65 72 28 |Specific|Monster(|
|000010d0| 72 61 6e 64 6d 6f 6e 73 | 74 65 72 29 3b 0d 0a 20 |randmons|ter);.. |
|000010e0| 20 20 20 20 20 20 20 7d | 0d 0a 20 20 20 20 7d 0d | }|.. }.|
|000010f0| 0a 0d 0a 20 20 20 20 73 | 71 75 61 64 5f 73 70 61 |... s|quad_spa|
|00001100| 77 6e 5f 64 65 6c 61 79 | 2b 2b 3b 0d 0a 0d 0a 20 |wn_delay|++;.... |
|00001110| 20 20 20 73 70 61 77 6e | 5f 63 6f 75 6e 74 65 72 | spawn|_counter|
|00001120| 3d 30 3b 0d 0a 20 7d 0d | 0a 20 2f 2f 73 70 61 77 |=0;.. }.|. //spaw|
|00001130| 6e 5f 63 6f 75 6e 74 65 | 72 2b 2b 3b 0d 0a 0d 0a |n_counte|r++;....|
|00001140| 20 2f 2f 70 72 65 2d 65 | 6d 70 74 20 74 68 65 20 | //pre-e|mpt the |
|00001150| 65 6e 64 20 6f 66 20 74 | 68 65 20 72 6f 75 6e 64 |end of t|he round|
|00001160| 0d 0a 20 69 66 20 28 72 | 65 73 75 70 70 6c 79 5f |.. if (r|esupply_|
|00001170| 63 6f 75 6e 74 65 72 3e | 3d 36 35 29 7b 0d 0a 20 |counter>|=65){.. |
|00001180| 20 20 20 2f 2f 47 69 76 | 65 20 75 73 20 73 6f 6d | //Giv|e us som|
|00001190| 65 20 62 72 65 61 74 68 | 69 6e 67 20 74 69 6d 65 |e breath|ing time|
|000011a0| 0d 0a 20 20 20 20 73 70 | 61 77 6e 5f 63 6f 75 6e |.. sp|awn_coun|
|000011b0| 74 65 72 3d 30 3b 0d 0a | 20 7d 0d 0a 0d 0a 20 2f |ter=0;..| }.... /|
|000011c0| 2f 67 69 76 65 20 75 73 | 20 73 75 70 70 6c 69 65 |/give us| supplie|
|000011d0| 73 2c 20 75 70 67 72 61 | 64 65 20 67 65 6e 65 72 |s, upgra|de gener|
|000011e0| 61 74 6f 72 0d 0a 20 69 | 66 20 28 72 65 73 75 70 |ator.. i|f (resup|
|000011f0| 70 6c 79 5f 63 6f 75 6e | 74 65 72 3d 3d 38 30 29 |ply_coun|ter==80)|
|00001200| 7b 0d 0a 0d 0a 20 20 20 | 20 20 2f 2f 61 64 6a 75 |{.... | //adju|
|00001210| 73 74 20 73 70 61 77 6e | 20 64 65 6c 61 79 2d 64 |st spawn| delay-d|
|00001220| 65 63 72 65 61 73 65 20 | 69 66 20 77 65 27 72 65 |ecrease |if we're|
|00001230| 20 64 6f 69 6e 67 20 77 | 65 6c 6c 2c 20 69 6e 63 | doing w|ell, inc|
|00001240| 72 65 61 73 65 20 69 66 | 20 6e 6f 74 0d 0a 20 20 |rease if| not.. |
|00001250| 20 20 77 69 6e 72 61 74 | 69 6f 20 3d 20 76 69 63 | winrat|io = vic|
|00001260| 74 6f 72 79 5f 63 6f 75 | 6e 74 65 72 2f 57 61 76 |tory_cou|nter/Wav|
|00001270| 65 4c 69 6d 69 74 3b 0d | 0a 0d 0a 20 20 20 20 69 |eLimit;.|... i|
|00001280| 66 20 28 54 61 72 67 65 | 74 47 65 6e 65 72 61 74 |f (Targe|tGenerat|
|00001290| 6f 72 2e 48 65 61 6c 74 | 68 20 3e 20 77 69 6e 72 |or.Healt|h > winr|
|000012a0| 61 74 69 6f 20 2a 20 54 | 61 72 67 65 74 47 65 6e |atio * T|argetGen|
|000012b0| 65 72 61 74 6f 72 2e 64 | 65 66 61 75 6c 74 2e 48 |erator.d|efault.H|
|000012c0| 65 61 6c 74 68 29 7b 0d | 0a 20 20 20 20 20 20 20 |ealth){.|. |
|000012d0| 73 70 61 77 6e 5f 64 65 | 6c 61 79 20 3d 20 63 6c |spawn_de|lay = cl|
|000012e0| 61 6d 70 28 73 70 61 77 | 6e 5f 64 65 6c 61 79 2d |amp(spaw|n_delay-|
|000012f0| 31 2c 20 30 2c 20 73 70 | 61 77 6e 5f 64 65 6c 61 |1, 0, sp|awn_dela|
|00001300| 79 29 3b 0d 0a 20 20 20 | 20 7d 0d 0a 20 20 20 20 |y);.. | }.. |
|00001310| 65 6c 73 65 7b 0d 0a 20 | 20 20 20 20 20 20 69 66 |else{.. | if|
|00001320| 20 28 73 70 61 77 6e 5f | 64 65 6c 61 79 20 3c 20 | (spawn_|delay < |
|00001330| 64 65 66 61 75 6c 74 2e | 73 70 61 77 6e 5f 64 65 |default.|spawn_de|
|00001340| 6c 61 79 29 0d 0a 20 20 | 20 20 20 20 20 73 70 61 |lay).. | spa|
|00001350| 77 6e 5f 64 65 6c 61 79 | 2b 2b 3b 0d 0a 20 20 20 |wn_delay|++;.. |
|00001360| 20 7d 0d 0a 0d 0a 20 20 | 20 20 20 4f 75 72 4d 73 | }.... | OurMs|
|00001370| 67 20 3d 20 53 70 61 77 | 6e 28 63 6c 61 73 73 27 |g = Spaw|n(class'|
|00001380| 48 75 64 4d 65 73 73 61 | 67 65 48 65 6c 70 65 72 |HudMessa|geHelper|
|00001390| 27 29 3b 0d 0a 20 20 20 | 20 20 4f 75 72 4d 73 67 |');.. | OurMsg|
|000013a0| 2e 4d 73 67 53 74 72 69 | 6e 67 20 3d 20 22 52 65 |.MsgStri|ng = "Re|
|000013b0| 73 75 70 70 6c 79 20 43 | 6f 6d 70 6c 65 74 65 22 |supply C|omplete"|
|000013c0| 3b 0d 0a 20 20 20 20 20 | 4f 75 72 4d 73 67 2e 4d |;.. |OurMsg.M|
|000013d0| 73 67 50 6f 72 74 72 61 | 69 74 20 3d 20 54 61 63 |sgPortra|it = Tac|
|000013e0| 4f 66 66 69 63 65 72 50 | 69 63 3b 0d 0a 0d 0a 20 |OfficerP|ic;.... |
|000013f0| 20 20 20 20 42 72 6f 61 | 64 63 61 73 74 4c 6f 63 | Broa|dcastLoc|
|00001400| 61 6c 69 7a 65 64 4d 65 | 73 73 61 67 65 28 63 6c |alizedMe|ssage(cl|
|00001410| 61 73 73 27 55 45 54 46 | 48 55 44 4d 65 73 73 61 |ass'UETF|HUDMessa|
|00001420| 67 65 50 6c 75 73 27 2c | 20 30 2c 20 4e 6f 6e 65 |gePlus',| 0, None|
|00001430| 2c 20 4e 6f 6e 65 2c 20 | 4f 75 72 4d 73 67 29 3b |, None, |OurMsg);|
|00001440| 0d 0a 0d 0a 20 20 20 20 | 2f 2f 47 65 6e 65 72 61 |.... |//Genera|
|00001450| 74 6f 72 20 55 70 67 72 | 61 64 65 0d 0a 20 20 20 |tor Upgr|ade.. |
|00001460| 20 76 69 63 74 6f 72 79 | 5f 63 6f 75 6e 74 65 72 | victory|_counter|
|00001470| 2b 2b 3b 0d 0a 20 20 20 | 20 55 45 54 46 32 6b 34 |++;.. | UETF2k4|
|00001480| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00001490| 6e 66 6f 28 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |nfo(Game|Replicat|
|000014a0| 69 6f 6e 49 6e 66 6f 29 | 2e 4d 61 73 74 65 72 57 |ionInfo)|.MasterW|
|000014b0| 61 76 65 73 3d 76 69 63 | 74 6f 72 79 5f 63 6f 75 |aves=vic|tory_cou|
|000014c0| 6e 74 65 72 3b 0d 0a 0d | 0a 20 20 20 20 20 2f 2f |nter;...|. //|
|000014d0| 76 69 63 74 6f 72 79 21 | 2d 6f 72 20 6c 6f 73 73 |victory!|-or loss|
|000014e0| 0d 0a 20 20 20 20 20 2f | 2f 46 49 58 4d 45 0d 0a |.. /|/FIXME..|
|000014f0| 20 20 20 20 20 69 66 20 | 28 76 69 63 74 6f 72 79 | if |(victory|
|00001500| 5f 63 6f 75 6e 74 65 72 | 20 3e 20 57 61 76 65 4c |_counter| > WaveL|
|00001510| 69 6d 69 74 29 7b 0d 0a | 20 20 20 20 20 20 20 20 |imit){..| |
|00001520| 20 20 20 54 65 61 6d 73 | 5b 30 5d 2e 53 63 6f 72 | Teams|[0].Scor|
|00001530| 65 3d 31 3b 2f 2f 53 65 | 74 20 74 68 65 20 6b 69 |e=1;//Se|t the ki|
|00001540| 6c 6c 20 63 6f 75 6e 74 | 73 20 73 6f 20 74 68 61 |ll count|s so tha|
|00001550| 74 20 74 68 65 20 67 61 | 6d 65 20 65 6e 64 73 0d |t the ga|me ends.|
|00001560| 0a 20 20 20 20 20 20 20 | 20 20 20 20 54 65 61 6d |. | Team|
|00001570| 73 5b 31 5d 2e 53 63 6f | 72 65 3d 30 3b 0d 0a 20 |s[1].Sco|re=0;.. |
|00001580| 20 20 20 20 20 20 20 20 | 20 20 45 6e 64 55 45 54 | | EndUET|
|00001590| 46 47 61 6d 65 28 4e 6f | 6e 65 2c 22 74 65 61 6d |FGame(No|ne,"team|
|000015a0| 73 63 6f 72 65 6c 69 6d | 69 74 22 29 3b 0d 0a 20 |scorelim|it");.. |
|000015b0| 20 20 20 20 7d 0d 0a 0d | 0a 20 20 20 20 2f 2f 53 | }...|. //S|
|000015c0| 65 6e 74 69 6e 65 6c 73 | 0d 0a 20 20 20 20 2f 2a |entinels|.. /*|
|000015d0| 6c 6f 63 61 6c 6e 75 6d | 70 6c 61 79 65 72 73 3d |localnum|players=|
|000015e0| 41 64 6a 75 73 74 4e 75 | 6d 42 6f 74 73 28 29 3b |AdjustNu|mBots();|
|000015f0| 0d 0a 20 20 20 20 66 6f | 72 20 28 69 3d 30 3b 20 |.. fo|r (i=0; |
|00001600| 69 20 3c 20 28 28 6c 6f | 63 61 6c 6e 75 6d 70 6c |i < ((lo|calnumpl|
|00001610| 61 79 65 72 73 2b 32 29 | 2d 28 53 65 6e 74 69 6e |ayers+2)|-(Sentin|
|00001620| 65 6c 73 2e 4c 65 6e 67 | 74 68 2d 31 29 29 3b 20 |els.Leng|th-1)); |
|00001630| 69 2b 2b 29 7b 0d 0a 20 | 20 20 20 20 20 20 20 41 |i++){.. | A|
|00001640| 64 64 53 65 6e 74 69 6e | 65 6c 28 53 65 6e 74 69 |ddSentin|el(Senti|
|00001650| 6e 65 6c 50 6f 69 6e 74 | 29 3b 0d 0a 20 20 20 20 |nelPoint|);.. |
|00001660| 7d 2a 2f 0d 0a 0d 0a 20 | 20 20 20 2f 2f 53 75 70 |}*/.... | //Sup|
|00001670| 70 6c 69 65 73 0d 0a 20 | 20 20 20 46 6c 61 74 4c |plies.. | FlatL|
|00001680| 69 6e 65 52 65 73 65 74 | 28 29 3b 0d 0a 20 20 20 |ineReset|();.. |
|00001690| 20 72 65 73 75 70 70 6c | 79 5f 63 6f 75 6e 74 65 | resuppl|y_counte|
|000016a0| 72 3d 30 3b 0d 0a 20 7d | 0d 0a 0d 0a 20 69 66 20 |r=0;.. }|.... if |
|000016b0| 28 62 54 65 61 6d 44 65 | 70 6c 6f 79 65 64 29 7b |(bTeamDe|ployed){|
|000016c0| 0d 0a 20 20 20 20 73 70 | 61 77 6e 5f 63 6f 75 6e |.. sp|awn_coun|
|000016d0| 74 65 72 2b 2b 3b 0d 0a | 20 20 20 20 55 45 54 46 |ter++;..| UETF|
|000016e0| 32 6b 34 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |2k4GameR|eplicati|
|000016f0| 6f 6e 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |onInfo(G|ameRepli|
|00001700| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 4e 65 78 74 |cationIn|fo).Next|
|00001710| 57 61 76 65 54 69 6d 65 | 3d 72 65 73 75 70 70 6c |WaveTime|=resuppl|
|00001720| 79 5f 63 6f 75 6e 74 65 | 72 3b 0d 0a 20 20 20 20 |y_counte|r;.. |
|00001730| 72 65 73 75 70 70 6c 79 | 5f 63 6f 75 6e 74 65 72 |resupply|_counter|
|00001740| 2b 2b 3b 0d 0a 20 7d 0d | 0a 0d 0a 20 2f 2f 55 45 |++;.. }.|... //UE|
|00001750| 54 46 32 6b 34 47 61 6d | 65 52 65 70 6c 69 63 61 |TF2k4Gam|eReplica|
|00001760| 74 69 6f 6e 49 6e 66 6f | 28 47 61 6d 65 52 65 70 |tionInfo|(GameRep|
|00001770| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 4e 65 |lication|Info).Ne|
|00001780| 78 74 57 61 76 65 54 69 | 6d 65 3d 72 65 73 75 70 |xtWaveTi|me=resup|
|00001790| 70 6c 79 5f 63 6f 75 6e | 74 65 72 3b 0d 0a 20 2f |ply_coun|ter;.. /|
|000017a0| 2f 72 65 73 75 70 70 6c | 79 5f 63 6f 75 6e 74 65 |/resuppl|y_counte|
|000017b0| 72 2b 2b 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 43 68 65 |r++;..}.|...//Che|
|000017c0| 63 6b 20 69 66 20 77 65 | 20 6e 65 65 64 20 6d 6f |ck if we| need mo|
|000017d0| 72 65 20 73 65 6e 74 69 | 6e 65 6c 73 0d 0a 66 75 |re senti|nels..fu|
|000017e0| 6e 63 74 69 6f 6e 20 4b | 69 6c 6c 65 64 28 43 6f |nction K|illed(Co|
|000017f0| 6e 74 72 6f 6c 6c 65 72 | 20 4b 69 6c 6c 65 72 2c |ntroller| Killer,|
|00001800| 20 43 6f 6e 74 72 6f 6c | 6c 65 72 20 4b 69 6c 6c | Control|ler Kill|
|00001810| 65 64 2c 20 50 61 77 6e | 20 4b 69 6c 6c 65 64 50 |ed, Pawn| KilledP|
|00001820| 61 77 6e 2c 20 63 6c 61 | 73 73 3c 44 61 6d 61 67 |awn, cla|ss<Damag|
|00001830| 65 54 79 70 65 3e 20 64 | 61 6d 61 67 65 54 79 70 |eType> d|amageTyp|
|00001840| 65 20 29 0d 0a 7b 0d 0a | 20 20 20 20 69 66 20 28 |e )..{..| if (|
|00001850| 4b 69 6c 6c 65 64 50 61 | 77 6e 2e 49 73 41 28 27 |KilledPa|wn.IsA('|
|00001860| 55 45 54 46 42 6f 74 4d | 6f 6e 73 74 65 72 27 29 |UETFBotM|onster')|
|00001870| 29 7b 0d 0a 20 20 20 20 | 20 20 20 2f 2f 55 70 64 |){.. | //Upd|
|00001880| 61 74 65 20 74 68 65 20 | 61 73 73 61 75 6c 74 20 |ate the |assault |
|00001890| 74 65 61 6d 73 0d 0a 20 | 20 20 20 20 20 20 52 65 |teams.. | Re|
|000018a0| 6d 6f 76 65 53 65 6e 74 | 69 6e 65 6c 42 6f 74 28 |moveSent|inelBot(|
|000018b0| 55 45 54 46 42 6f 74 4d | 6f 6e 73 74 65 72 28 4b |UETFBotM|onster(K|
|000018c0| 69 6c 6c 65 64 50 61 77 | 6e 29 29 3b 0d 0a 20 20 |illedPaw|n));.. |
|000018d0| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 69 66 20 28 4b | }.... | if (K|
|000018e0| 69 6c 6c 65 64 2e 49 73 | 41 28 27 55 45 54 46 32 |illed.Is|A('UETF2|
|000018f0| 6b 34 50 6c 61 79 65 72 | 27 29 29 0d 0a 20 20 20 |k4Player|')).. |
|00001900| 20 20 20 20 55 45 54 46 | 32 6b 34 50 6c 61 79 65 | UETF|2k4Playe|
|00001910| 72 28 4b 69 6c 6c 65 64 | 29 2e 50 6c 61 79 65 72 |r(Killed|).Player|
|00001920| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001930| 62 4f 75 74 4f 66 4c 69 | 76 65 73 20 3d 20 74 72 |bOutOfLi|ves = tr|
|00001940| 75 65 3b 0d 0a 0d 0a 20 | 20 20 20 53 75 70 65 72 |ue;.... | Super|
|00001950| 2e 4b 69 6c 6c 65 64 28 | 4b 69 6c 6c 65 72 2c 20 |.Killed(|Killer, |
|00001960| 4b 69 6c 6c 65 64 2c 20 | 4b 69 6c 6c 65 64 50 61 |Killed, |KilledPa|
|00001970| 77 6e 2c 20 64 61 6d 61 | 67 65 54 79 70 65 29 3b |wn, dama|geType);|
|00001980| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 41 64 64 20 61 6e 20 |..}..../|/Add an |
|00001990| 61 6c 6c 79 20 61 74 20 | 74 68 65 20 6e 65 61 72 |ally at |the near|
|000019a0| 65 73 74 20 6e 61 76 20 | 70 6f 69 6e 74 20 74 6f |est nav |point to|
|000019b0| 20 61 20 6c 6f 63 61 74 | 69 6f 6e 0d 0a 66 75 6e | a locat|ion..fun|
|000019c0| 63 74 69 6f 6e 20 76 65 | 63 74 6f 72 20 41 64 64 |ction ve|ctor Add|
|000019d0| 41 6c 6c 79 41 74 4c 6f | 63 61 74 69 6f 6e 28 76 |AllyAtLo|cation(v|
|000019e0| 65 63 74 6f 72 20 53 70 | 61 77 6e 4c 6f 63 2c 20 |ector Sp|awnLoc, |
|000019f0| 63 6c 61 73 73 3c 55 45 | 54 46 41 6c 6c 79 3e 20 |class<UE|TFAlly> |
|00001a00| 41 6c 6c 79 43 6c 61 73 | 73 2c 20 69 6e 74 20 4f |AllyClas|s, int O|
|00001a10| 72 64 65 72 2c 20 55 45 | 54 46 32 6b 34 50 6c 61 |rder, UE|TF2k4Pla|
|00001a20| 79 65 72 20 4c 65 61 64 | 65 72 29 0d 0a 7b 0d 0a |yer Lead|er)..{..|
|00001a30| 20 6c 6f 63 61 6c 20 4e | 61 76 69 67 61 74 69 6f | local N|avigatio|
|00001a40| 6e 50 6f 69 6e 74 20 4e | 3b 0d 0a 20 6c 6f 63 61 |nPoint N|;.. loca|
|00001a50| 6c 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |l Naviga|tionPoin|
|00001a60| 74 20 43 6c 6f 73 65 73 | 74 53 70 6f 74 3b 0d 0a |t Closes|tSpot;..|
|00001a70| 20 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 64 69 73 | local f|loat dis|
|00001a80| 74 61 6e 63 65 2c 20 63 | 6c 6f 73 65 73 74 5f 64 |tance, c|losest_d|
|00001a90| 69 73 74 61 6e 63 65 3b | 0d 0a 20 6c 6f 63 61 6c |istance;|.. local|
|00001aa0| 20 50 61 77 6e 20 4e 65 | 77 41 6c 6c 79 3b 0d 0a | Pawn Ne|wAlly;..|
|00001ab0| 20 6c 6f 63 61 6c 20 56 | 65 63 74 6f 72 20 43 6c | local V|ector Cl|
|00001ac0| 6f 73 65 73 74 56 65 63 | 74 6f 72 3b 0d 0a 0d 0a |osestVec|tor;....|
|00001ad0| 20 63 6c 6f 73 65 73 74 | 5f 64 69 73 74 61 6e 63 | closest|_distanc|
|00001ae0| 65 3d 39 39 39 39 39 39 | 39 3b 0d 0a 0d 0a 20 66 |e=999999|9;.... f|
|00001af0| 6f 72 65 61 63 68 20 41 | 6c 6c 41 63 74 6f 72 73 |oreach A|llActors|
|00001b00| 28 63 6c 61 73 73 27 4e | 61 76 69 67 61 74 69 6f |(class'N|avigatio|
|00001b10| 6e 50 6f 69 6e 74 27 2c | 4e 29 0d 0a 20 7b 0d 0a |nPoint',|N).. {..|
|00001b20| 20 20 64 69 73 74 61 6e | 63 65 3d 20 56 53 69 7a | distan|ce= VSiz|
|00001b30| 65 28 53 70 61 77 6e 4c | 6f 63 20 2d 20 4e 2e 4c |e(SpawnL|oc - N.L|
|00001b40| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 0d 0a 20 20 69 |ocation)|;.... i|
|00001b50| 66 20 28 28 21 50 6f 69 | 6e 74 54 72 69 65 64 28 |f ((!Poi|ntTried(|
|00001b60| 4e 29 29 20 26 26 20 64 | 69 73 74 61 6e 63 65 20 |N)) && d|istance |
|00001b70| 3c 20 63 6c 6f 73 65 73 | 74 5f 64 69 73 74 61 6e |< closes|t_distan|
|00001b80| 63 65 20 26 26 20 64 69 | 73 74 61 6e 63 65 20 3e |ce && di|stance >|
|00001b90| 20 30 29 7b 0d 0a 20 20 | 20 20 20 43 6c 6f 73 65 | 0){.. | Close|
|00001ba0| 73 74 53 70 6f 74 3d 4e | 3b 0d 0a 20 20 20 20 20 |stSpot=N|;.. |
|00001bb0| 63 6c 6f 73 65 73 74 5f | 64 69 73 74 61 6e 63 65 |closest_|distance|
|00001bc0| 3d 64 69 73 74 61 6e 63 | 65 3b 0d 0a 20 20 7d 0d |=distanc|e;.. }.|
|00001bd0| 0a 20 7d 0d 0a 0d 0a 20 | 20 4e 65 77 41 6c 6c 79 |. }.... | NewAlly|
|00001be0| 20 3d 20 53 70 61 77 6e | 28 41 6c 6c 79 43 6c 61 | = Spawn|(AllyCla|
|00001bf0| 73 73 2c 2c 2c 43 6c 6f | 73 65 73 74 53 70 6f 74 |ss,,,Clo|sestSpot|
|00001c00| 2e 4c 6f 63 61 74 69 6f | 6e 2b 28 4e 65 77 41 6c |.Locatio|n+(NewAl|
|00001c10| 6c 79 2e 44 65 66 61 75 | 6c 74 2e 43 6f 6c 6c 69 |ly.Defau|lt.Colli|
|00001c20| 73 69 6f 6e 48 65 69 67 | 68 74 20 2d 20 43 6c 6f |sionHeig|ht - Clo|
|00001c30| 73 65 73 74 53 70 6f 74 | 2e 43 6f 6c 6c 69 73 69 |sestSpot|.Collisi|
|00001c40| 6f 6e 48 65 69 67 68 74 | 29 20 2a 20 76 65 63 74 |onHeight|) * vect|
|00001c50| 28 30 2c 30 2c 31 29 2c | 43 6c 6f 73 65 73 74 53 |(0,0,1),|ClosestS|
|00001c60| 70 6f 74 2e 52 6f 74 61 | 74 69 6f 6e 29 3b 0d 0a |pot.Rota|tion);..|
|00001c70| 0d 0a 20 20 54 72 69 65 | 64 50 6f 69 6e 74 73 2e |.. Trie|dPoints.|
|00001c80| 49 6e 73 65 72 74 28 54 | 72 69 65 64 50 6f 69 6e |Insert(T|riedPoin|
|00001c90| 74 73 2e 4c 65 6e 67 74 | 68 2c 20 30 29 3b 0d 0a |ts.Lengt|h, 0);..|
|00001ca0| 20 20 54 72 69 65 64 50 | 6f 69 6e 74 73 5b 54 72 | TriedP|oints[Tr|
|00001cb0| 69 65 64 50 6f 69 6e 74 | 73 2e 4c 65 6e 67 74 68 |iedPoint|s.Length|
|00001cc0| 5d 3d 43 6c 6f 73 65 73 | 74 53 70 6f 74 3b 0d 0a |]=Closes|tSpot;..|
|00001cd0| 0d 0a 20 20 43 6c 6f 73 | 65 73 74 56 65 63 74 6f |.. Clos|estVecto|
|00001ce0| 72 3d 43 6c 6f 73 65 73 | 74 53 70 6f 74 2e 4c 6f |r=Closes|tSpot.Lo|
|00001cf0| 63 61 74 69 6f 6e 3b 0d | 0a 0d 0a 20 20 2f 2f 49 |cation;.|... //I|
|00001d00| 66 20 73 70 61 77 6e 20 | 66 61 69 6c 73 2c 20 74 |f spawn |fails, t|
|00001d10| 72 79 20 72 65 63 75 72 | 73 69 76 65 20 63 68 65 |ry recur|sive che|
|00001d20| 63 6b 0d 0a 20 20 69 66 | 20 28 4e 65 77 41 6c 6c |ck.. if| (NewAll|
|00001d30| 79 20 3d 3d 20 4e 6f 6e | 65 29 7b 0d 0a 20 20 20 |y == Non|e){.. |
|00001d40| 20 20 2f 2f 42 61 69 6c | 20 4f 75 74 2d 6e 6f 20 | //Bail| Out-no |
|00001d50| 6f 70 65 6e 20 6e 61 76 | 20 70 6f 69 6e 74 73 2c |open nav| points,|
|00001d60| 20 67 69 76 65 20 75 70 | 0d 0a 20 20 20 20 20 69 | give up|.. i|
|00001d70| 66 20 28 54 72 69 65 64 | 50 6f 69 6e 74 73 2e 4c |f (Tried|Points.L|
|00001d80| 65 6e 67 74 68 20 3c 20 | 4d 61 78 50 6f 69 6e 74 |ength < |MaxPoint|
|00001d90| 73 29 0d 0a 20 20 20 20 | 20 20 20 20 43 6c 6f 73 |s).. | Clos|
|00001da0| 65 73 74 56 65 63 74 6f | 72 20 3d 20 41 64 64 41 |estVecto|r = AddA|
|00001db0| 6c 6c 79 41 74 4c 6f 63 | 61 74 69 6f 6e 28 43 6c |llyAtLoc|ation(Cl|
|00001dc0| 6f 73 65 73 74 53 70 6f | 74 2e 4c 6f 63 61 74 69 |osestSpo|t.Locati|
|00001dd0| 6f 6e 2c 20 41 6c 6c 79 | 43 6c 61 73 73 2c 20 4f |on, Ally|Class, O|
|00001de0| 72 64 65 72 2c 20 4c 65 | 61 64 65 72 29 3b 0d 0a |rder, Le|ader);..|
|00001df0| 20 20 7d 0d 0a 20 20 65 | 6c 73 65 7b 0d 0a 20 20 | }.. e|lse{.. |
|00001e00| 20 20 2f 2f 49 6e 73 65 | 72 74 20 74 68 69 73 20 | //Inse|rt this |
|00001e10| 62 6f 74 20 69 6e 74 6f | 20 74 68 65 20 70 6c 61 |bot into| the pla|
|00001e20| 79 65 72 27 73 20 73 71 | 75 61 64 0d 0a 20 20 20 |yer's sq|uad.. |
|00001e30| 20 55 45 54 46 41 6c 6c | 79 28 4e 65 77 41 6c 6c | UETFAll|y(NewAll|
|00001e40| 79 29 2e 62 43 6f 6e 74 | 72 6f 6c 6c 61 62 6c 65 |y).bCont|rollable|
|00001e50| 3d 74 72 75 65 3b 0d 0a | 20 20 20 20 55 45 54 46 |=true;..| UETF|
|00001e60| 41 6c 6c 79 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 4e |AllyCont|roller(N|
|00001e70| 65 77 41 6c 6c 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |ewAlly.C|ontrolle|
|00001e80| 72 29 2e 62 47 75 61 72 | 64 69 6e 67 3d 74 72 75 |r).bGuar|ding=tru|
|00001e90| 65 3b 0d 0a 20 20 20 20 | 4c 65 61 64 65 72 2e 4d |e;.. |Leader.M|
|00001ea0| 61 72 69 6e 65 73 5b 4f | 72 64 65 72 5d 3d 55 45 |arines[O|rder]=UE|
|00001eb0| 54 46 41 6c 6c 79 28 4e | 65 77 41 6c 6c 79 29 3b |TFAlly(N|ewAlly);|
|00001ec0| 0d 0a 20 20 20 20 43 6c | 65 61 72 50 6f 69 6e 74 |.. Cl|earPoint|
|00001ed0| 73 54 72 69 65 64 28 29 | 3b 0d 0a 20 20 7d 0d 0a |sTried()|;.. }..|
|00001ee0| 0d 0a 20 20 2f 2f 52 65 | 74 75 72 6e 20 74 68 65 |.. //Re|turn the|
|00001ef0| 20 6c 61 73 74 20 75 73 | 65 64 20 6c 6f 63 61 74 | last us|ed locat|
|00001f00| 69 6f 6e 0d 0a 20 20 72 | 65 74 75 72 6e 20 43 6c |ion.. r|eturn Cl|
|00001f10| 6f 73 65 73 74 56 65 63 | 74 6f 72 3b 0d 0a 7d 0d |osestVec|tor;..}.|
|00001f20| 0a 0d 0a 2f 2f 41 64 64 | 20 61 20 6d 6f 6e 73 74 |...//Add| a monst|
|00001f30| 65 72 20 61 74 20 74 68 | 65 20 6e 65 61 72 65 73 |er at th|e neares|
|00001f40| 74 20 6e 61 76 20 70 6f | 69 6e 74 20 74 6f 20 61 |t nav po|int to a|
|00001f50| 20 6c 6f 63 61 74 69 6f | 6e 0d 0a 66 75 6e 63 74 | locatio|n..funct|
|00001f60| 69 6f 6e 20 76 65 63 74 | 6f 72 20 41 64 64 53 65 |ion vect|or AddSe|
|00001f70| 6e 74 69 6e 65 6c 28 76 | 65 63 74 6f 72 20 53 70 |ntinel(v|ector Sp|
|00001f80| 61 77 6e 4c 6f 63 29 0d | 0a 7b 0d 0a 20 6c 6f 63 |awnLoc).|.{.. loc|
|00001f90| 61 6c 20 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |al Navig|ationPoi|
|00001fa0| 6e 74 20 4e 3b 0d 0a 20 | 6c 6f 63 61 6c 20 4e 61 |nt N;.. |local Na|
|00001fb0| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 20 43 6c |vigation|Point Cl|
|00001fc0| 6f 73 65 73 74 53 70 6f | 74 3b 0d 0a 20 6c 6f 63 |osestSpo|t;.. loc|
|00001fd0| 61 6c 20 66 6c 6f 61 74 | 20 64 69 73 74 61 6e 63 |al float| distanc|
|00001fe0| 65 2c 20 63 6c 6f 73 65 | 73 74 5f 64 69 73 74 61 |e, close|st_dista|
|00001ff0| 6e 63 65 3b 0d 0a 20 6c | 6f 63 61 6c 20 50 61 77 |nce;.. l|ocal Paw|
|00002000| 6e 20 4e 65 77 4d 6f 6e | 73 74 65 72 3b 0d 0a 20 |n NewMon|ster;.. |
|00002010| 6c 6f 63 61 6c 20 56 65 | 63 74 6f 72 20 43 6c 6f |local Ve|ctor Clo|
|00002020| 73 65 73 74 56 65 63 74 | 6f 72 3b 0d 0a 0d 0a 20 |sestVect|or;.... |
|00002030| 63 6c 6f 73 65 73 74 5f | 64 69 73 74 61 6e 63 65 |closest_|distance|
|00002040| 3d 39 39 39 39 39 3b 0d | 0a 0d 0a 20 66 6f 72 65 |=99999;.|... fore|
|00002050| 61 63 68 20 41 6c 6c 41 | 63 74 6f 72 73 28 63 6c |ach AllA|ctors(cl|
|00002060| 61 73 73 27 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |ass'Navi|gationPo|
|00002070| 69 6e 74 27 2c 4e 29 0d | 0a 20 7b 0d 0a 20 20 64 |int',N).|. {.. d|
|00002080| 69 73 74 61 6e 63 65 3d | 20 56 53 69 7a 65 28 53 |istance=| VSize(S|
|00002090| 70 61 77 6e 4c 6f 63 20 | 2d 20 4e 2e 4c 6f 63 61 |pawnLoc |- N.Loca|
|000020a0| 74 69 6f 6e 29 3b 0d 0a | 0d 0a 20 20 69 66 20 28 |tion);..|.. if (|
|000020b0| 28 21 50 6f 69 6e 74 54 | 72 69 65 64 28 4e 29 29 |(!PointT|ried(N))|
|000020c0| 20 26 26 20 64 69 73 74 | 61 6e 63 65 20 3c 20 63 | && dist|ance < c|
|000020d0| 6c 6f 73 65 73 74 5f 64 | 69 73 74 61 6e 63 65 20 |losest_d|istance |
|000020e0| 26 26 20 64 69 73 74 61 | 6e 63 65 20 3e 20 30 29 |&& dista|nce > 0)|
|000020f0| 7b 0d 0a 20 20 20 20 20 | 43 6c 6f 73 65 73 74 53 |{.. |ClosestS|
|00002100| 70 6f 74 3d 4e 3b 0d 0a | 20 20 20 20 20 63 6c 6f |pot=N;..| clo|
|00002110| 73 65 73 74 5f 64 69 73 | 74 61 6e 63 65 3d 64 69 |sest_dis|tance=di|
|00002120| 73 74 61 6e 63 65 3b 0d | 0a 20 20 7d 0d 0a 20 7d |stance;.|. }.. }|
|00002130| 0d 0a 0d 0a 20 20 4e 65 | 77 4d 6f 6e 73 74 65 72 |.... Ne|wMonster|
|00002140| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 54 | = Spawn|(class'T|
|00002150| 65 73 74 54 61 6e 6b 42 | 6f 74 27 2c 2c 2c 43 6c |estTankB|ot',,,Cl|
|00002160| 6f 73 65 73 74 53 70 6f | 74 2e 4c 6f 63 61 74 69 |osestSpo|t.Locati|
|00002170| 6f 6e 2b 28 4e 65 77 4d | 6f 6e 73 74 65 72 2e 44 |on+(NewM|onster.D|
|00002180| 65 66 61 75 6c 74 2e 43 | 6f 6c 6c 69 73 69 6f 6e |efault.C|ollision|
|00002190| 48 65 69 67 68 74 20 2d | 20 43 6c 6f 73 65 73 74 |Height -| Closest|
|000021a0| 53 70 6f 74 2e 43 6f 6c | 6c 69 73 69 6f 6e 48 65 |Spot.Col|lisionHe|
|000021b0| 69 67 68 74 29 20 2a 20 | 76 65 63 74 28 30 2c 30 |ight) * |vect(0,0|
|000021c0| 2c 31 29 2c 43 6c 6f 73 | 65 73 74 53 70 6f 74 2e |,1),Clos|estSpot.|
|000021d0| 52 6f 74 61 74 69 6f 6e | 29 3b 0d 0a 0d 0a 20 20 |Rotation|);.... |
|000021e0| 54 72 69 65 64 50 6f 69 | 6e 74 73 2e 49 6e 73 65 |TriedPoi|nts.Inse|
|000021f0| 72 74 28 54 72 69 65 64 | 50 6f 69 6e 74 73 2e 4c |rt(Tried|Points.L|
|00002200| 65 6e 67 74 68 2c 20 30 | 29 3b 0d 0a 20 20 54 72 |ength, 0|);.. Tr|
|00002210| 69 65 64 50 6f 69 6e 74 | 73 5b 54 72 69 65 64 50 |iedPoint|s[TriedP|
|00002220| 6f 69 6e 74 73 2e 4c 65 | 6e 67 74 68 5d 3d 43 6c |oints.Le|ngth]=Cl|
|00002230| 6f 73 65 73 74 53 70 6f | 74 3b 0d 0a 0d 0a 20 20 |osestSpo|t;.... |
|00002240| 43 6c 6f 73 65 73 74 56 | 65 63 74 6f 72 3d 43 6c |ClosestV|ector=Cl|
|00002250| 6f 73 65 73 74 53 70 6f | 74 2e 4c 6f 63 61 74 69 |osestSpo|t.Locati|
|00002260| 6f 6e 3b 0d 0a 0d 0a 20 | 20 2f 2f 49 66 20 73 70 |on;.... | //If sp|
|00002270| 61 77 6e 20 66 61 69 6c | 73 2c 20 74 72 79 20 72 |awn fail|s, try r|
|00002280| 65 63 75 72 73 69 76 65 | 20 63 68 65 63 6b 0d 0a |ecursive| check..|
|00002290| 20 20 69 66 20 28 4e 65 | 77 4d 6f 6e 73 74 65 72 | if (Ne|wMonster|
|000022a0| 20 3d 3d 20 4e 6f 6e 65 | 29 7b 0d 0a 20 20 20 20 | == None|){.. |
|000022b0| 20 2f 2f 42 61 69 6c 20 | 4f 75 74 2d 6e 6f 20 6f | //Bail |Out-no o|
|000022c0| 70 65 6e 20 6e 61 76 20 | 70 6f 69 6e 74 73 2c 20 |pen nav |points, |
|000022d0| 67 69 76 65 20 75 70 0d | 0a 20 20 20 20 20 69 66 |give up.|. if|
|000022e0| 20 28 54 72 69 65 64 50 | 6f 69 6e 74 73 2e 4c 65 | (TriedP|oints.Le|
|000022f0| 6e 67 74 68 20 3c 20 4d | 61 78 50 6f 69 6e 74 73 |ngth < M|axPoints|
|00002300| 29 0d 0a 20 20 20 20 20 | 20 20 20 43 6c 6f 73 65 |).. | Close|
|00002310| 73 74 56 65 63 74 6f 72 | 20 3d 20 41 64 64 53 65 |stVector| = AddSe|
|00002320| 6e 74 69 6e 65 6c 28 43 | 6c 6f 73 65 73 74 53 70 |ntinel(C|losestSp|
|00002330| 6f 74 2e 4c 6f 63 61 74 | 69 6f 6e 29 3b 0d 0a 20 |ot.Locat|ion);.. |
|00002340| 20 7d 0d 0a 20 20 65 6c | 73 65 7b 0d 0a 20 20 20 | }.. el|se{.. |
|00002350| 20 2f 2f 49 6e 73 65 72 | 74 20 74 68 69 73 20 62 | //Inser|t this b|
|00002360| 6f 74 20 69 6e 74 6f 20 | 74 68 65 20 73 71 75 61 |ot into |the squa|
|00002370| 64 0d 0a 20 20 20 20 41 | 64 64 53 65 6e 74 69 6e |d.. A|ddSentin|
|00002380| 65 6c 42 6f 74 28 55 45 | 54 46 42 6f 74 4d 6f 6e |elBot(UE|TFBotMon|
|00002390| 73 74 65 72 28 4e 65 77 | 4d 6f 6e 73 74 65 72 29 |ster(New|Monster)|
|000023a0| 29 3b 0d 0a 20 20 20 20 | 43 6c 65 61 72 50 6f 69 |);.. |ClearPoi|
|000023b0| 6e 74 73 54 72 69 65 64 | 28 29 3b 0d 0a 20 20 7d |ntsTried|();.. }|
|000023c0| 0d 0a 0d 0a 20 20 2f 2f | 52 65 74 75 72 6e 20 74 |.... //|Return t|
|000023d0| 68 65 20 6c 61 73 74 20 | 75 73 65 64 20 6c 6f 63 |he last |used loc|
|000023e0| 61 74 69 6f 6e 0d 0a 20 | 20 72 65 74 75 72 6e 20 |ation.. | return |
|000023f0| 43 6c 6f 73 65 73 74 56 | 65 63 74 6f 72 3b 0d 0a |ClosestV|ector;..|
|00002400| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 41 64 |}....fun|ction Ad|
|00002410| 64 53 65 6e 74 69 6e 65 | 6c 42 6f 74 28 55 45 54 |dSentine|lBot(UET|
|00002420| 46 42 6f 74 4d 6f 6e 73 | 74 65 72 20 41 64 64 42 |FBotMons|ter AddB|
|00002430| 6f 74 29 7b 0d 0a 0d 0a | 20 20 20 20 53 65 6e 74 |ot){....| Sent|
|00002440| 69 6e 65 6c 73 2e 49 6e | 73 65 72 74 28 53 65 6e |inels.In|sert(Sen|
|00002450| 74 69 6e 65 6c 73 2e 4c | 65 6e 67 74 68 2c 20 30 |tinels.L|ength, 0|
|00002460| 29 3b 0d 0a 20 20 20 20 | 53 65 6e 74 69 6e 65 6c |);.. |Sentinel|
|00002470| 73 5b 53 65 6e 74 69 6e | 65 6c 73 2e 4c 65 6e 67 |s[Sentin|els.Leng|
|00002480| 74 68 5d 3d 41 64 64 42 | 6f 74 3b 0d 0a 7d 0d 0a |th]=AddB|ot;..}..|
|00002490| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 52 65 6d 6f 76 |..functi|on Remov|
|000024a0| 65 53 65 6e 74 69 6e 65 | 6c 42 6f 74 28 55 45 54 |eSentine|lBot(UET|
|000024b0| 46 42 6f 74 4d 6f 6e 73 | 74 65 72 20 44 65 61 64 |FBotMons|ter Dead|
|000024c0| 62 6f 74 29 7b 0d 0a 20 | 6c 6f 63 61 6c 20 69 6e |bot){.. |local in|
|000024d0| 74 20 69 3b 0d 0a 0d 0a | 20 20 66 6f 72 20 28 69 |t i;....| for (i|
|000024e0| 3d 30 3b 20 69 3c 53 65 | 6e 74 69 6e 65 6c 73 2e |=0; i<Se|ntinels.|
|000024f0| 4c 65 6e 67 74 68 3b 20 | 69 2b 2b 29 7b 0d 0a 20 |Length; |i++){.. |
|00002500| 20 20 69 66 20 28 53 65 | 6e 74 69 6e 65 6c 73 5b | if (Se|ntinels[|
|00002510| 69 5d 2e 48 65 61 6c 74 | 68 20 3c 3d 20 30 29 7b |i].Healt|h <= 0){|
|00002520| 0d 0a 20 20 20 20 20 20 | 53 65 6e 74 69 6e 65 6c |.. |Sentinel|
|00002530| 73 2e 52 65 6d 6f 76 65 | 28 69 2c 20 31 29 3b 0d |s.Remove|(i, 1);.|
|00002540| 0a 20 20 20 20 20 20 69 | 66 20 28 53 65 6e 74 69 |. i|f (Senti|
|00002550| 6e 65 6c 73 2e 4c 65 6e | 67 74 68 20 3d 3d 20 30 |nels.Len|gth == 0|
|00002560| 29 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 42 72 |){.. | Br|
|00002570| 6f 61 64 63 61 73 74 4c | 6f 63 61 6c 69 7a 65 64 |oadcastL|ocalized|
|00002580| 4d 65 73 73 61 67 65 28 | 63 6c 61 73 73 27 55 45 |Message(|class'UE|
|00002590| 54 46 48 55 44 4d 65 73 | 73 61 67 65 50 6c 75 73 |TFHUDMes|sagePlus|
|000025a0| 27 2c 20 30 2c 20 4e 6f | 6e 65 2c 20 4e 6f 6e 65 |', 0, No|ne, None|
|000025b0| 2c 20 4e 6f 6e 65 29 3b | 0d 0a 20 20 20 20 20 20 |, None);|.. |
|000025c0| 20 20 20 20 46 6c 61 74 | 4c 69 6e 65 52 65 73 65 | Flat|LineRese|
|000025d0| 74 28 29 3b 0d 0a 20 20 | 20 20 20 20 7d 0d 0a 20 |t();.. | }.. |
|000025e0| 20 20 7d 0d 0a 20 20 7d | 0d 0a 0d 0a 7d 0d 0a 0d | }.. }|....}...|
|000025f0| 0a 00 | |.. | |
+--------+-------------------------+-------------------------+--------+--------+