home *** CD-ROM | disk | FTP | other *** search
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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 43 98 01 2f 2f 3d 3d 3d |........|C..//===|
|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 41 73 73 61 75 6c |class UE|TFAssaul|
|000000f0| 74 47 65 6e 65 72 61 74 | 6f 72 47 61 6d 65 20 65 |tGenerat|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| 46 72 69 65 6e 64 50 6f | 69 6e 74 2c 20 45 6e 65 |FriendPo|int, Ene|
|000001a0| 6d 79 50 6f 69 6e 74 3b | 0d 0a 76 61 72 20 62 6f |myPoint;|..var bo|
|000001b0| 6f 6c 20 53 65 6e 74 69 | 6e 65 6c 73 44 65 70 6c |ol Senti|nelsDepl|
|000001c0| 6f 79 65 64 3b 0d 0a 0d | 0a 2f 2f 76 61 72 20 63 |oyed;...|.//var c|
|000001d0| 6f 6e 66 69 67 20 61 72 | 72 61 79 3c 69 6e 74 3e |onfig ar|ray<int>|
|000001e0| 20 44 65 66 65 6e 64 69 | 6e 67 42 6f 74 73 3b 0d | Defendi|ngBots;.|
|000001f0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 43 68 65 63 |...funct|ion Chec|
|00000200| 6b 44 65 70 6c 6f 79 61 | 62 6c 65 73 28 29 0d 0a |kDeploya|bles()..|
|00000210| 7b 0d 0a 20 6c 6f 63 61 | 6c 20 78 52 65 64 46 6c |{.. loca|l xRedFl|
|00000220| 61 67 42 61 73 65 20 52 | 3b 0d 0a 20 6c 6f 63 61 |agBase R|;.. loca|
|00000230| 6c 20 78 42 6c 75 65 46 | 6c 61 67 42 61 73 65 20 |l xBlueF|lagBase |
|00000240| 42 3b 0d 0a 20 6c 6f 63 | 61 6c 20 78 52 65 64 46 |B;.. loc|al xRedF|
|00000250| 6c 61 67 20 52 46 3b 0d | 0a 20 6c 6f 63 61 6c 20 |lag RF;.|. local |
|00000260| 78 42 6c 75 65 46 6c 61 | 67 20 42 46 3b 0d 0a 0d |xBlueFla|g BF;...|
|00000270| 0a 20 6c 6f 63 61 6c 20 | 76 65 63 74 6f 72 20 73 |. local |vector s|
|00000280| 70 61 77 6e 6c 6f 63 3b | 0d 0a 0d 0a 20 66 6f 72 |pawnloc;|.... for|
|00000290| 65 61 63 68 20 41 6c 6c | 41 63 74 6f 72 73 28 63 |each All|Actors(c|
|000002a0| 6c 61 73 73 27 78 52 65 | 64 46 6c 61 67 42 61 73 |lass'xRe|dFlagBas|
|000002b0| 65 27 2c 52 29 0d 0a 20 | 7b 0d 0a 20 20 46 72 69 |e',R).. |{.. Fri|
|000002c0| 65 6e 64 50 6f 69 6e 74 | 3d 52 2e 4c 6f 63 61 74 |endPoint|=R.Locat|
|000002d0| 69 6f 6e 3b 0d 0a 20 20 | 2f 2f 44 65 70 6c 6f 79 |ion;.. |//Deploy|
|000002e0| 47 65 6e 65 72 61 74 6f | 72 28 52 2e 4c 6f 63 61 |Generato|r(R.Loca|
|000002f0| 74 69 6f 6e 29 3b 0d 0a | 20 20 52 2e 44 65 73 74 |tion);..| R.Dest|
|00000300| 72 6f 79 28 29 3b 0d 0a | 20 7d 0d 0a 0d 0a 20 66 |roy();..| }.... f|
|00000310| 6f 72 65 61 63 68 20 41 | 6c 6c 41 63 74 6f 72 73 |oreach A|llActors|
|00000320| 28 63 6c 61 73 73 27 78 | 42 6c 75 65 46 6c 61 67 |(class'x|BlueFlag|
|00000330| 42 61 73 65 27 2c 42 29 | 0d 0a 20 7b 0d 0a 20 20 |Base',B)|.. {.. |
|00000340| 45 6e 65 6d 79 50 6f 69 | 6e 74 3d 42 2e 4c 6f 63 |EnemyPoi|nt=B.Loc|
|00000350| 61 74 69 6f 6e 3b 0d 0a | 20 20 73 70 61 77 6e 6c |ation;..| spawnl|
|00000360| 6f 63 20 3d 20 42 2e 4c | 6f 63 61 74 69 6f 6e 3b |oc = B.L|ocation;|
|00000370| 0d 0a 20 20 42 2e 44 65 | 73 74 72 6f 79 28 29 3b |.. B.De|stroy();|
|00000380| 0d 0a 20 20 44 65 70 6c | 6f 79 47 65 6e 65 72 61 |.. Depl|oyGenera|
|00000390| 74 6f 72 28 73 70 61 77 | 6e 6c 6f 63 29 3b 0d 0a |tor(spaw|nloc);..|
|000003a0| 20 7d 0d 0a 0d 0a 20 66 | 6f 72 65 61 63 68 20 41 | }.... f|oreach A|
|000003b0| 6c 6c 41 63 74 6f 72 73 | 28 63 6c 61 73 73 27 78 |llActors|(class'x|
|000003c0| 52 65 64 46 6c 61 67 27 | 2c 52 46 29 0d 0a 20 7b |RedFlag'|,RF).. {|
|000003d0| 0d 0a 20 20 52 46 2e 44 | 65 73 74 72 6f 79 28 29 |.. RF.D|estroy()|
|000003e0| 3b 0d 0a 20 7d 0d 0a 0d | 0a 20 66 6f 72 65 61 63 |;.. }...|. foreac|
|000003f0| 68 20 41 6c 6c 41 63 74 | 6f 72 73 28 63 6c 61 73 |h AllAct|ors(clas|
|00000400| 73 27 78 42 6c 75 65 46 | 6c 61 67 27 2c 42 46 29 |s'xBlueF|lag',BF)|
|00000410| 0d 0a 20 7b 0d 0a 20 20 | 42 46 2e 44 65 73 74 72 |.. {.. |BF.Destr|
|00000420| 6f 79 28 29 3b 0d 0a 20 | 7d 0d 0a 7d 0d 0a 0d 0a |oy();.. |}..}....|
|00000430| 2f 2f 41 64 64 20 61 20 | 6d 6f 6e 73 74 65 72 20 |//Add a |monster |
|00000440| 61 74 20 74 68 65 20 6e | 65 61 72 65 73 74 20 6e |at the n|earest n|
|00000450| 61 76 20 70 6f 69 6e 74 | 20 74 6f 20 61 20 6c 6f |av point| to a lo|
|00000460| 63 61 74 69 6f 6e 0d 0a | 66 75 6e 63 74 69 6f 6e |cation..|function|
|00000470| 20 44 65 70 6c 6f 79 47 | 65 6e 65 72 61 74 6f 72 | DeployG|enerator|
|00000480| 28 76 65 63 74 6f 72 20 | 53 70 61 77 6e 4c 6f 63 |(vector |SpawnLoc|
|00000490| 29 0d 0a 7b 0d 0a 20 6c | 6f 63 61 6c 20 4e 61 76 |)..{.. l|ocal Nav|
|000004a0| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 4e 3b 0d |igationP|oint N;.|
|000004b0| 0a 20 6c 6f 63 61 6c 20 | 4e 61 76 69 67 61 74 69 |. local |Navigati|
|000004c0| 6f 6e 50 6f 69 6e 74 20 | 43 6c 6f 73 65 73 74 53 |onPoint |ClosestS|
|000004d0| 70 6f 74 3b 0d 0a 20 6c | 6f 63 61 6c 20 66 6c 6f |pot;.. l|ocal flo|
|000004e0| 61 74 20 64 69 73 74 61 | 6e 63 65 2c 20 63 6c 6f |at dista|nce, clo|
|000004f0| 73 65 73 74 5f 64 69 73 | 74 61 6e 63 65 3b 0d 0a |sest_dis|tance;..|
|00000500| 20 6c 6f 63 61 6c 20 50 | 61 77 6e 20 4e 65 77 47 | local P|awn NewG|
|00000510| 65 6e 65 72 61 74 6f 72 | 3b 0d 0a 20 6c 6f 63 61 |enerator|;.. loca|
|00000520| 6c 20 56 65 63 74 6f 72 | 20 43 6c 6f 73 65 73 74 |l Vector| Closest|
|00000530| 56 65 63 74 6f 72 3b 0d | 0a 0d 0a 20 4e 65 77 47 |Vector;.|... NewG|
|00000540| 65 6e 65 72 61 74 6f 72 | 20 3d 20 53 70 61 77 6e |enerator| = Spawn|
|00000550| 28 63 6c 61 73 73 27 45 | 6e 65 6d 79 47 65 6e 65 |(class'E|nemyGene|
|00000560| 72 61 74 6f 72 4d 4b 49 | 49 27 2c 2c 2c 53 70 61 |ratorMKI|I',,,Spa|
|00000570| 77 6e 4c 6f 63 20 2d 20 | 33 30 20 2a 20 76 65 63 |wnLoc - |30 * vec|
|00000580| 74 28 30 2c 30 2c 31 29 | 2c 29 3b 0d 0a 0d 0a 20 |t(0,0,1)|,);.... |
|00000590| 69 66 20 28 4e 65 77 47 | 65 6e 65 72 61 74 6f 72 |if (NewG|enerator|
|000005a0| 21 3d 4e 6f 6e 65 29 7b | 0d 0a 20 20 20 20 4e 65 |!=None){|.. Ne|
|000005b0| 77 47 65 6e 65 72 61 74 | 6f 72 2e 48 65 61 6c 74 |wGenerat|or.Healt|
|000005c0| 68 20 3d 20 33 30 30 30 | 3b 0d 0a 20 20 20 20 72 |h = 3000|;.. r|
|000005d0| 65 74 75 72 6e 3b 0d 0a | 20 7d 0d 0a 0d 0a 20 63 |eturn;..| }.... c|
|000005e0| 6c 6f 73 65 73 74 5f 64 | 69 73 74 61 6e 63 65 3d |losest_d|istance=|
|000005f0| 39 39 39 39 39 3b 0d 0a | 0d 0a 20 66 6f 72 65 61 |99999;..|.. forea|
|00000600| 63 68 20 41 6c 6c 41 63 | 74 6f 72 73 28 63 6c 61 |ch AllAc|tors(cla|
|00000610| 73 73 27 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |ss'Navig|ationPoi|
|00000620| 6e 74 27 2c 4e 29 0d 0a | 20 7b 0d 0a 20 20 64 69 |nt',N)..| {.. di|
|00000630| 73 74 61 6e 63 65 3d 20 | 56 53 69 7a 65 28 53 70 |stance= |VSize(Sp|
|00000640| 61 77 6e 4c 6f 63 20 2d | 20 4e 2e 4c 6f 63 61 74 |awnLoc -| N.Locat|
|00000650| 69 6f 6e 29 3b 0d 0a 0d | 0a 20 20 69 66 20 28 28 |ion);...|. if ((|
|00000660| 21 50 6f 69 6e 74 54 72 | 69 65 64 28 4e 29 29 20 |!PointTr|ied(N)) |
|00000670| 26 26 20 64 69 73 74 61 | 6e 63 65 20 3c 20 63 6c |&& dista|nce < cl|
|00000680| 6f 73 65 73 74 5f 64 69 | 73 74 61 6e 63 65 20 26 |osest_di|stance &|
|00000690| 26 20 64 69 73 74 61 6e | 63 65 20 3e 20 30 29 7b |& distan|ce > 0){|
|000006a0| 0d 0a 20 20 20 20 20 43 | 6c 6f 73 65 73 74 53 70 |.. C|losestSp|
|000006b0| 6f 74 3d 4e 3b 0d 0a 20 | 20 20 20 20 63 6c 6f 73 |ot=N;.. | clos|
|000006c0| 65 73 74 5f 64 69 73 74 | 61 6e 63 65 3d 64 69 73 |est_dist|ance=dis|
|000006d0| 74 61 6e 63 65 3b 0d 0a | 20 20 7d 0d 0a 20 7d 0d |tance;..| }.. }.|
|000006e0| 0a 0d 0a 20 20 4e 65 77 | 47 65 6e 65 72 61 74 6f |... New|Generato|
|000006f0| 72 20 3d 20 53 70 61 77 | 6e 28 63 6c 61 73 73 27 |r = Spaw|n(class'|
|00000700| 45 6e 65 6d 79 5f 47 65 | 6e 65 72 61 74 6f 72 27 |Enemy_Ge|nerator'|
|00000710| 2c 2c 2c 43 6c 6f 73 65 | 73 74 53 70 6f 74 2e 4c |,,,Close|stSpot.L|
|00000720| 6f 63 61 74 69 6f 6e 20 | 2d 20 33 30 20 2a 20 76 |ocation |- 30 * v|
|00000730| 65 63 74 28 30 2c 30 2c | 31 29 2c 43 6c 6f 73 65 |ect(0,0,|1),Close|
|00000740| 73 74 53 70 6f 74 2e 52 | 6f 74 61 74 69 6f 6e 29 |stSpot.R|otation)|
|00000750| 3b 0d 0a 0d 0a 20 20 69 | 66 20 28 4e 65 77 47 65 |;.... i|f (NewGe|
|00000760| 6e 65 72 61 74 6f 72 21 | 3d 4e 6f 6e 65 29 7b 0d |nerator!|=None){.|
|00000770| 0a 20 20 20 20 4e 65 77 | 47 65 6e 65 72 61 74 6f |. New|Generato|
|00000780| 72 2e 48 65 61 6c 74 68 | 20 3d 20 33 30 30 30 3b |r.Health| = 3000;|
|00000790| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 0a 20 |.. re|turn;.. |
|000007a0| 20 7d 0d 0a 0d 0a 20 20 | 54 72 69 65 64 50 6f 69 | }.... |TriedPoi|
|000007b0| 6e 74 73 2e 49 6e 73 65 | 72 74 28 54 72 69 65 64 |nts.Inse|rt(Tried|
|000007c0| 50 6f 69 6e 74 73 2e 4c | 65 6e 67 74 68 2c 20 30 |Points.L|ength, 0|
|000007d0| 29 3b 0d 0a 20 20 54 72 | 69 65 64 50 6f 69 6e 74 |);.. Tr|iedPoint|
|000007e0| 73 5b 54 72 69 65 64 50 | 6f 69 6e 74 73 2e 4c 65 |s[TriedP|oints.Le|
|000007f0| 6e 67 74 68 5d 3d 43 6c | 6f 73 65 73 74 53 70 6f |ngth]=Cl|osestSpo|
|00000800| 74 3b 0d 0a 0d 0a 20 20 | 43 6c 6f 73 65 73 74 56 |t;.... |ClosestV|
|00000810| 65 63 74 6f 72 3d 43 6c | 6f 73 65 73 74 53 70 6f |ector=Cl|osestSpo|
|00000820| 74 2e 4c 6f 63 61 74 69 | 6f 6e 3b 0d 0a 0d 0a 20 |t.Locati|on;.... |
|00000830| 20 2f 2f 49 66 20 73 70 | 61 77 6e 20 66 61 69 6c | //If sp|awn fail|
|00000840| 73 2c 20 74 72 79 20 72 | 65 63 75 72 73 69 76 65 |s, try r|ecursive|
|00000850| 20 63 68 65 63 6b 0d 0a | 20 20 69 66 20 28 4e 65 | check..| if (Ne|
|00000860| 77 47 65 6e 65 72 61 74 | 6f 72 20 3d 3d 20 4e 6f |wGenerat|or == No|
|00000870| 6e 65 29 7b 0d 0a 20 20 | 20 20 20 2f 2f 42 61 69 |ne){.. | //Bai|
|00000880| 6c 20 4f 75 74 2d 6e 6f | 20 6f 70 65 6e 20 6e 61 |l Out-no| open na|
|00000890| 76 20 70 6f 69 6e 74 73 | 2c 20 67 69 76 65 20 75 |v points|, give u|
|000008a0| 70 0d 0a 20 20 20 20 20 | 69 66 20 28 54 72 69 65 |p.. |if (Trie|
|000008b0| 64 50 6f 69 6e 74 73 2e | 4c 65 6e 67 74 68 20 3c |dPoints.|Length <|
|000008c0| 20 4d 61 78 50 6f 69 6e | 74 73 29 0d 0a 20 20 20 | MaxPoin|ts).. |
|000008d0| 20 20 20 20 20 44 65 70 | 6c 6f 79 47 65 6e 65 72 | Dep|loyGener|
|000008e0| 61 74 6f 72 28 43 6c 6f | 73 65 73 74 53 70 6f 74 |ator(Clo|sestSpot|
|000008f0| 2e 4c 6f 63 61 74 69 6f | 6e 29 3b 0d 0a 20 20 7d |.Locatio|n);.. }|
|00000900| 0d 0a 20 20 65 6c 73 65 | 7b 0d 0a 20 20 20 20 43 |.. else|{.. C|
|00000910| 6c 65 61 72 50 6f 69 6e | 74 73 54 72 69 65 64 28 |learPoin|tsTried(|
|00000920| 29 3b 0d 0a 20 20 7d 0d | 0a 7d 0d 0a 0d 0a 73 69 |);.. }.|.}....si|
|00000930| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00000940| 20 54 69 6d 65 72 28 29 | 0d 0a 7b 0d 0a 20 6c 6f | Timer()|..{.. lo|
|00000950| 63 61 6c 20 69 6e 74 20 | 6c 6f 63 61 6c 6e 75 6d |cal int |localnum|
|00000960| 70 6c 61 79 65 72 73 2c | 20 69 2c 20 72 61 6e 64 |players,| i, rand|
|00000970| 6d 6f 6e 73 74 65 72 3b | 0d 0a 0d 0a 20 69 66 20 |monster;|.... if |
|00000980| 28 44 69 73 70 6c 61 79 | 65 64 45 6e 64 49 6e 66 |(Display|edEndInf|
|00000990| 6f 29 0d 0a 20 20 20 20 | 72 65 74 75 72 6e 3b 0d |o).. |return;.|
|000009a0| 0a 0d 0a 20 2f 2f 47 65 | 74 20 74 68 65 20 69 6e |... //Ge|t the in|
|000009b0| 64 65 78 20 6f 66 20 74 | 68 65 20 6d 61 70 0d 0a |dex of t|he map..|
|000009c0| 20 2f 2f 43 75 72 4d 61 | 70 3d 46 69 6e 64 43 75 | //CurMa|p=FindCu|
|000009d0| 72 72 65 6e 74 4d 61 70 | 49 6e 64 65 78 28 47 65 |rrentMap|Index(Ge|
|000009e0| 74 55 52 4c 4d 61 70 28 | 29 29 3b 0d 0a 0d 0a 20 |tURLMap(|));.... |
|000009f0| 2f 2f 4d 61 70 20 54 79 | 70 65 0d 0a 20 2f 2f 4c |//Map Ty|pe.. //L|
|00000a00| 65 76 65 6c 54 79 70 65 | 3d 4d 61 70 54 79 70 65 |evelType|=MapType|
|00000a10| 4c 69 73 74 5b 43 75 72 | 4d 61 70 5d 3b 0d 0a 0d |List[Cur|Map];...|
|00000a20| 0a 20 69 66 20 28 62 4c | 5a 69 73 63 6c 65 61 72 |. if (bL|Zisclear|
|00000a30| 3d 3d 46 61 6c 73 65 29 | 7b 0d 0a 20 20 20 20 43 |==False)|{.. C|
|00000a40| 68 65 63 6b 44 65 70 6c | 6f 79 61 62 6c 65 73 28 |heckDepl|oyables(|
|00000a50| 29 3b 0d 0a 20 20 20 20 | 62 4c 5a 69 73 63 6c 65 |);.. |bLZiscle|
|00000a60| 61 72 3d 74 72 75 65 3b | 0d 0a 20 7d 0d 0a 0d 0a |ar=true;|.. }....|
|00000a70| 20 2f 2f 43 68 65 63 6b | 20 66 6f 72 20 70 6c 61 | //Check| for pla|
|00000a80| 79 65 72 73 0d 0a 20 69 | 66 20 28 21 63 68 65 63 |yers.. i|f (!chec|
|00000a90| 6b 74 65 61 6d 28 54 65 | 61 6d 73 5b 30 5d 29 29 |kteam(Te|ams[0]))|
|00000aa0| 7b 0d 0a 0d 0a 20 20 20 | 20 2f 2f 41 64 64 20 53 |{.... | //Add S|
|00000ab0| 65 6e 74 69 6e 65 6c 73 | 0d 0a 20 20 20 20 69 66 |entinels|.. if|
|00000ac0| 20 28 21 53 65 6e 74 69 | 6e 65 6c 73 44 65 70 6c | (!Senti|nelsDepl|
|00000ad0| 6f 79 65 64 29 7b 0d 0a | 20 20 20 20 20 2f 2a 6c |oyed){..| /*l|
|00000ae0| 6f 63 61 6c 6e 75 6d 70 | 6c 61 79 65 72 73 3d 41 |ocalnump|layers=A|
|00000af0| 64 6a 75 73 74 4e 75 6d | 42 6f 74 73 28 29 3b 0d |djustNum|Bots();.|
|00000b00| 0a 0d 0a 20 20 20 20 20 | 66 6f 72 20 28 69 3d 30 |... |for (i=0|
|00000b10| 3b 20 69 3c 6c 6f 63 61 | 6c 6e 75 6d 70 6c 61 79 |; i<loca|lnumplay|
|00000b20| 65 72 73 3b 20 69 2b 2b | 29 7b 0d 0a 20 20 20 20 |ers; i++|){.. |
|00000b30| 20 20 20 20 41 64 64 53 | 65 6e 74 69 6e 65 6c 28 | AddS|entinel(|
|00000b40| 53 65 6e 74 69 6e 65 6c | 50 6f 69 6e 74 29 3b 0d |Sentinel|Point);.|
|00000b50| 0a 20 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 20 |. }.|... |
|00000b60| 2f 2f 54 65 61 6d 73 69 | 7a 65 20 2b 20 32 3b 0d |//Teamsi|ze + 2;.|
|00000b70| 0a 20 20 20 20 20 41 64 | 64 53 65 6e 74 69 6e 65 |. Ad|dSentine|
|00000b80| 6c 28 53 65 6e 74 69 6e | 65 6c 50 6f 69 6e 74 29 |l(Sentin|elPoint)|
|00000b90| 3b 0d 0a 20 20 20 20 20 | 41 64 64 53 65 6e 74 69 |;.. |AddSenti|
|00000ba0| 6e 65 6c 28 53 65 6e 74 | 69 6e 65 6c 50 6f 69 6e |nel(Sent|inelPoin|
|00000bb0| 74 29 3b 2a 2f 0d 0a 20 | 20 20 20 20 53 65 6e 74 |t);*/.. | Sent|
|00000bc0| 69 6e 65 6c 73 44 65 70 | 6c 6f 79 65 64 3d 74 72 |inelsDep|loyed=tr|
|00000bd0| 75 65 3b 0d 0a 20 20 20 | 20 20 44 65 70 6c 6f 79 |ue;.. | Deploy|
|00000be0| 53 65 6e 74 69 6e 65 6c | 73 28 29 3b 0d 0a 20 20 |Sentinel|s();.. |
|00000bf0| 20 20 7d 0d 0a 0d 0a 20 | 20 20 20 62 54 65 61 6d | }.... | bTeam|
|00000c00| 44 65 70 6c 6f 79 65 64 | 3d 74 72 75 65 3b 0d 0a |Deployed|=true;..|
|00000c10| 20 7d 0d 0a 0d 0a 20 2f | 2f 6d 6f 72 65 20 62 61 | }.... /|/more ba|
|00000c20| 64 64 69 65 73 21 2d 61 | 66 74 65 72 20 74 68 65 |ddies!-a|fter the|
|00000c30| 20 68 75 6d 61 6e 20 74 | 65 61 6d 20 68 61 73 20 | human t|eam has |
|00000c40| 73 70 61 77 6e 65 64 20 | 69 6e 0d 0a 20 69 66 20 |spawned |in.. if |
|00000c50| 28 73 70 61 77 6e 5f 63 | 6f 75 6e 74 65 72 3d 3d |(spawn_c|ounter==|
|00000c60| 61 64 6a 75 73 74 65 64 | 5f 64 65 6c 61 79 20 26 |adjusted|_delay &|
|00000c70| 26 20 62 54 65 61 6d 44 | 65 70 6c 6f 79 65 64 29 |& bTeamD|eployed)|
|00000c80| 7b 0d 0a 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 6e 75 |{.... | localnu|
|00000c90| 6d 70 6c 61 79 65 72 73 | 3d 41 64 6a 75 73 74 4e |mplayers|=AdjustN|
|00000ca0| 75 6d 42 6f 74 73 28 29 | 3b 0d 0a 0d 0a 20 20 20 |umBots()|;.... |
|00000cb0| 20 2f 2f 64 69 66 66 69 | 63 75 6c 74 79 0d 0a 20 | //diffi|culty.. |
|00000cc0| 20 20 20 69 66 20 28 28 | 42 6f 74 44 69 66 66 69 | if ((|BotDiffi|
|00000cd0| 63 75 6c 74 79 20 2a 20 | 76 69 63 74 6f 72 79 5f |culty * |victory_|
|00000ce0| 63 6f 75 6e 74 65 72 29 | 20 3c 20 31 30 29 0d 0a |counter)| < 10)..|
|00000cf0| 20 20 20 20 20 20 20 43 | 75 72 72 65 6e 74 44 69 | C|urrentDi|
|00000d00| 66 66 69 63 75 6c 74 79 | 3d 31 3b 0d 0a 20 20 20 |fficulty|=1;.. |
|00000d10| 20 69 66 20 28 28 42 6f | 74 44 69 66 66 69 63 75 | if ((Bo|tDifficu|
|00000d20| 6c 74 79 20 2a 20 76 69 | 63 74 6f 72 79 5f 63 6f |lty * vi|ctory_co|
|00000d30| 75 6e 74 65 72 29 20 3c | 20 32 30 20 26 26 20 28 |unter) <| 20 && (|
|00000d40| 42 6f 74 44 69 66 66 69 | 63 75 6c 74 79 20 2a 20 |BotDiffi|culty * |
|00000d50| 76 69 63 74 6f 72 79 5f | 63 6f 75 6e 74 65 72 29 |victory_|counter)|
|00000d60| 20 3e 3d 20 31 30 29 0d | 0a 20 20 20 20 20 20 20 | >= 10).|. |
|00000d70| 43 75 72 72 65 6e 74 44 | 69 66 66 69 63 75 6c 74 |CurrentD|ifficult|
|00000d80| 79 3d 32 3b 0d 0a 20 20 | 20 20 69 66 20 28 28 42 |y=2;.. | if ((B|
|00000d90| 6f 74 44 69 66 66 69 63 | 75 6c 74 79 20 2a 20 76 |otDiffic|ulty * v|
|00000da0| 69 63 74 6f 72 79 5f 63 | 6f 75 6e 74 65 72 29 20 |ictory_c|ounter) |
|00000db0| 3c 20 33 30 20 26 26 20 | 28 42 6f 74 44 69 66 66 |< 30 && |(BotDiff|
|00000dc0| 69 63 75 6c 74 79 20 2a | 20 76 69 63 74 6f 72 79 |iculty *| victory|
|00000dd0| 5f 63 6f 75 6e 74 65 72 | 29 20 3e 3d 20 32 30 29 |_counter|) >= 20)|
|00000de0| 0d 0a 20 20 20 20 20 20 | 20 43 75 72 72 65 6e 74 |.. | Current|
|00000df0| 44 69 66 66 69 63 75 6c | 74 79 3d 33 3b 0d 0a 20 |Difficul|ty=3;.. |
|00000e00| 20 20 20 69 66 20 28 28 | 42 6f 74 44 69 66 66 69 | if ((|BotDiffi|
|00000e10| 63 75 6c 74 79 20 2a 20 | 76 69 63 74 6f 72 79 5f |culty * |victory_|
|00000e20| 63 6f 75 6e 74 65 72 29 | 20 3e 3d 20 33 30 29 0d |counter)| >= 30).|
|00000e30| 0a 20 20 20 20 20 20 20 | 43 75 72 72 65 6e 74 44 |. |CurrentD|
|00000e40| 69 66 66 69 63 75 6c 74 | 79 3d 34 3b 0d 0a 0d 0a |ifficult|y=4;....|
|00000e50| 20 20 20 20 66 6f 72 20 | 28 69 3d 30 3b 20 69 3c | for |(i=0; i<|
|00000e60| 6c 6f 63 61 6c 6e 75 6d | 70 6c 61 79 65 72 73 3b |localnum|players;|
|00000e70| 20 69 2b 2b 29 7b 0d 0a | 20 20 20 20 20 20 20 20 | i++){..| |
|00000e80| 2f 2f 43 68 65 63 6b 20 | 69 66 20 77 65 20 61 64 |//Check |if we ad|
|00000e90| 64 20 6e 6f 72 6d 61 6c | 20 6d 6f 6e 73 74 65 72 |d normal| monster|
|00000ea0| 73 2c 20 6f 72 20 61 20 | 6b 69 6e 65 74 69 63 20 |s, or a |kinetic |
|00000eb0| 73 71 75 61 64 0d 0a 20 | 20 20 20 20 20 20 20 69 |squad.. | i|
|00000ec0| 66 20 28 73 71 75 61 64 | 5f 73 70 61 77 6e 5f 64 |f (squad|_spawn_d|
|00000ed0| 65 6c 61 79 3d 3d 33 29 | 7b 0d 0a 20 20 20 20 20 |elay==3)|{.. |
|00000ee0| 20 20 20 20 20 20 41 64 | 64 53 75 70 70 6f 72 74 | Ad|dSupport|
|00000ef0| 4d 6f 6e 73 74 65 72 28 | 43 75 72 72 65 6e 74 44 |Monster(|CurrentD|
|00000f00| 69 66 66 69 63 75 6c 74 | 79 29 3b 0d 0a 20 20 20 |ifficult|y);.. |
|00000f10| 20 20 20 20 20 20 20 20 | 41 64 64 53 75 70 70 6f | |AddSuppo|
|00000f20| 72 74 4d 6f 6e 73 74 65 | 72 28 43 75 72 72 65 6e |rtMonste|r(Curren|
|00000f30| 74 44 69 66 66 69 63 75 | 6c 74 79 29 3b 0d 0a 20 |tDifficu|lty);.. |
|00000f40| 20 20 20 20 20 20 20 20 | 20 20 41 64 64 53 75 70 | | AddSup|
|00000f50| 70 6f 72 74 4d 6f 6e 73 | 74 65 72 28 43 75 72 72 |portMons|ter(Curr|
|00000f60| 65 6e 74 44 69 66 66 69 | 63 75 6c 74 79 29 3b 0d |entDiffi|culty);.|
|00000f70| 0a 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 41 64 |. | //Ad|
|00000f80| 64 53 75 70 70 6f 72 74 | 4d 6f 6e 73 74 65 72 28 |dSupport|Monster(|
|00000f90| 43 75 72 72 65 6e 74 44 | 69 66 66 69 63 75 6c 74 |CurrentD|ifficult|
|00000fa0| 79 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |y);.. | |
|00000fb0| 2f 2f 41 64 64 53 75 70 | 70 6f 72 74 4d 6f 6e 73 |//AddSup|portMons|
|00000fc0| 74 65 72 28 43 75 72 72 | 65 6e 74 44 69 66 66 69 |ter(Curr|entDiffi|
|00000fd0| 63 75 6c 74 79 29 3b 0d | 0a 20 20 20 20 20 20 20 |culty);.|. |
|00000fe0| 20 20 20 20 2f 2f 41 64 | 64 53 75 70 70 6f 72 74 | //Ad|dSupport|
|00000ff0| 4d 6f 6e 73 74 65 72 28 | 43 75 72 72 65 6e 74 44 |Monster(|CurrentD|
|00001000| 69 66 66 69 63 75 6c 74 | 79 29 3b 0d 0a 20 20 20 |ifficult|y);.. |
|00001010| 20 20 20 20 20 20 20 20 | 73 71 75 61 64 5f 73 70 | |squad_sp|
|00001020| 61 77 6e 5f 64 65 6c 61 | 79 3d 30 3b 0d 0a 20 20 |awn_dela|y=0;.. |
|00001030| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 20 20 20 | }.|. |
|00001040| 20 65 6c 73 65 7b 0d 0a | 20 20 20 20 20 20 20 20 | else{..| |
|00001050| 20 20 20 20 20 72 61 6e | 64 6d 6f 6e 73 74 65 72 | ran|dmonster|
|00001060| 3d 47 65 74 52 61 6e 64 | 4d 6f 6e 73 74 65 72 28 |=GetRand|Monster(|
|00001070| 43 75 72 72 65 6e 74 44 | 69 66 66 69 63 75 6c 74 |CurrentD|ifficult|
|00001080| 79 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |y);.... | |
|00001090| 20 20 20 20 41 64 64 53 | 70 65 63 69 66 69 63 4d | AddS|pecificM|
|000010a0| 6f 6e 73 74 65 72 28 72 | 61 6e 64 6d 6f 6e 73 74 |onster(r|andmonst|
|000010b0| 65 72 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |er);.. | |
|000010c0| 20 20 20 41 64 64 53 70 | 65 63 69 66 69 63 4d 6f | AddSp|ecificMo|
|000010d0| 6e 73 74 65 72 28 72 61 | 6e 64 6d 6f 6e 73 74 65 |nster(ra|ndmonste|
|000010e0| 72 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |r);.. | |
|000010f0| 20 20 2f 2f 41 64 64 53 | 70 65 63 69 66 69 63 4d | //AddS|pecificM|
|00001100| 6f 6e 73 74 65 72 28 72 | 61 6e 64 6d 6f 6e 73 74 |onster(r|andmonst|
|00001110| 65 72 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |er);.. | |
|00001120| 20 20 20 2f 2f 41 64 64 | 53 70 65 63 69 66 69 63 | //Add|Specific|
|00001130| 4d 6f 6e 73 74 65 72 28 | 72 61 6e 64 6d 6f 6e 73 |Monster(|randmons|
|00001140| 74 65 72 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 7d |ter);.. | }|
|00001150| 0d 0a 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 |.... |}.... |
|00001160| 20 73 71 75 61 64 5f 73 | 70 61 77 6e 5f 64 65 6c | squad_s|pawn_del|
|00001170| 61 79 2b 2b 3b 0d 0a 0d | 0a 20 20 20 20 73 70 61 |ay++;...|. spa|
|00001180| 77 6e 5f 63 6f 75 6e 74 | 65 72 3d 30 3b 0d 0a 20 |wn_count|er=0;.. |
|00001190| 7d 0d 0a 20 2f 2f 73 70 | 61 77 6e 5f 63 6f 75 6e |}.. //sp|awn_coun|
|000011a0| 74 65 72 2b 2b 3b 0d 0a | 0d 0a 20 2f 2f 70 72 65 |ter++;..|.. //pre|
|000011b0| 2d 65 6d 70 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |-empt th|e end of|
|000011c0| 20 74 68 65 20 72 6f 75 | 6e 64 0d 0a 20 69 66 20 | the rou|nd.. if |
|000011d0| 28 72 65 73 75 70 70 6c | 79 5f 63 6f 75 6e 74 65 |(resuppl|y_counte|
|000011e0| 72 3e 3d 36 35 29 7b 0d | 0a 20 20 20 20 2f 2f 47 |r>=65){.|. //G|
|000011f0| 69 76 65 20 75 73 20 73 | 6f 6d 65 20 62 72 65 61 |ive us s|ome brea|
|00001200| 74 68 69 6e 67 20 74 69 | 6d 65 0d 0a 20 20 20 20 |thing ti|me.. |
|00001210| 73 70 61 77 6e 5f 63 6f | 75 6e 74 65 72 3d 30 3b |spawn_co|unter=0;|
|00001220| 0d 0a 20 7d 0d 0a 0d 0a | 20 2f 2f 67 69 76 65 20 |.. }....| //give |
|00001230| 75 73 20 73 75 70 70 6c | 69 65 73 2c 20 75 70 67 |us suppl|ies, upg|
|00001240| 72 61 64 65 20 67 65 6e | 65 72 61 74 6f 72 0d 0a |rade gen|erator..|
|00001250| 20 69 66 20 28 72 65 73 | 75 70 70 6c 79 5f 63 6f | if (res|upply_co|
|00001260| 75 6e 74 65 72 3d 3d 38 | 30 29 7b 0d 0a 0d 0a 20 |unter==8|0){.... |
|00001270| 20 20 20 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 | Broad|castLoca|
|00001280| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 63 6c 61 |lizedMes|sage(cla|
|00001290| 73 73 27 55 45 54 46 48 | 55 44 4d 65 73 73 61 67 |ss'UETFH|UDMessag|
|000012a0| 65 50 6c 75 73 27 2c 20 | 30 2c 20 4e 6f 6e 65 2c |ePlus', |0, None,|
|000012b0| 20 4e 6f 6e 65 2c 20 4e | 6f 6e 65 29 3b 0d 0a 0d | None, N|one);...|
|000012c0| 0a 20 20 20 20 2f 2f 47 | 65 6e 65 72 61 74 6f 72 |. //G|enerator|
|000012d0| 20 55 70 67 72 61 64 65 | 0d 0a 20 20 20 20 76 69 | Upgrade|.. vi|
|000012e0| 63 74 6f 72 79 5f 63 6f | 75 6e 74 65 72 2b 2b 3b |ctory_co|unter++;|
|000012f0| 0d 0a 20 20 20 20 55 45 | 54 46 32 6b 34 47 61 6d |.. UE|TF2k4Gam|
|00001300| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00001310| 28 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |(GameRep|lication|
|00001320| 49 6e 66 6f 29 2e 4d 61 | 73 74 65 72 57 61 76 65 |Info).Ma|sterWave|
|00001330| 73 3d 76 69 63 74 6f 72 | 79 5f 63 6f 75 6e 74 65 |s=victor|y_counte|
|00001340| 72 3b 0d 0a 0d 0a 20 20 | 20 20 20 2f 2f 76 69 63 |r;.... | //vic|
|00001350| 74 6f 72 79 21 2d 6f 72 | 20 6c 6f 73 73 0d 0a 20 |tory!-or| loss.. |
|00001360| 20 20 20 20 2f 2f 46 49 | 58 4d 45 0d 0a 20 20 20 | //FI|XME.. |
|00001370| 20 20 69 66 20 28 76 69 | 63 74 6f 72 79 5f 63 6f | if (vi|ctory_co|
|00001380| 75 6e 74 65 72 20 3e 20 | 57 61 76 65 4c 69 6d 69 |unter > |WaveLimi|
|00001390| 74 29 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |t){.. | |
|000013a0| 54 65 61 6d 73 5b 30 5d | 2e 53 63 6f 72 65 3d 30 |Teams[0]|.Score=0|
|000013b0| 3b 2f 2f 53 65 74 20 74 | 68 65 20 6b 69 6c 6c 20 |;//Set t|he kill |
|000013c0| 63 6f 75 6e 74 73 20 73 | 6f 20 74 68 61 74 20 74 |counts s|o that t|
|000013d0| 68 65 20 67 61 6d 65 20 | 65 6e 64 73 0d 0a 20 20 |he game |ends.. |
|000013e0| 20 20 20 20 20 20 20 20 | 20 54 65 61 6d 73 5b 31 | | Teams[1|
|000013f0| 5d 2e 53 63 6f 72 65 3d | 31 3b 0d 0a 20 20 20 20 |].Score=|1;.. |
|00001400| 20 20 20 20 20 20 20 45 | 6e 64 55 45 54 46 47 61 | E|ndUETFGa|
|00001410| 6d 65 28 4e 6f 6e 65 2c | 22 74 65 61 6d 73 63 6f |me(None,|"teamsco|
|00001420| 72 65 6c 69 6d 69 74 22 | 29 3b 0d 0a 20 20 20 20 |relimit"|);.. |
|00001430| 20 7d 0d 0a 0d 0a 20 20 | 20 20 2f 2f 53 75 70 70 | }.... | //Supp|
|00001440| 6c 69 65 73 0d 0a 20 20 | 20 20 46 6c 61 74 4c 69 |lies.. | FlatLi|
|00001450| 6e 65 52 65 73 65 74 28 | 29 3b 0d 0a 20 20 20 20 |neReset(|);.. |
|00001460| 72 65 73 75 70 70 6c 79 | 5f 63 6f 75 6e 74 65 72 |resupply|_counter|
|00001470| 3d 30 3b 0d 0a 20 7d 0d | 0a 0d 0a 20 69 66 20 28 |=0;.. }.|... if (|
|00001480| 62 54 65 61 6d 44 65 70 | 6c 6f 79 65 64 29 7b 0d |bTeamDep|loyed){.|
|00001490| 0a 20 20 20 20 73 70 61 | 77 6e 5f 63 6f 75 6e 74 |. spa|wn_count|
|000014a0| 65 72 2b 2b 3b 0d 0a 20 | 20 20 20 55 45 54 46 32 |er++;.. | UETF2|
|000014b0| 6b 34 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |k4GameRe|plicatio|
|000014c0| 6e 49 6e 66 6f 28 47 61 | 6d 65 52 65 70 6c 69 63 |nInfo(Ga|meReplic|
|000014d0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 4e 65 78 74 57 |ationInf|o).NextW|
|000014e0| 61 76 65 54 69 6d 65 3d | 72 65 73 75 70 70 6c 79 |aveTime=|resupply|
|000014f0| 5f 63 6f 75 6e 74 65 72 | 3b 0d 0a 20 20 20 20 72 |_counter|;.. r|
|00001500| 65 73 75 70 70 6c 79 5f | 63 6f 75 6e 74 65 72 2b |esupply_|counter+|
|00001510| 2b 3b 0d 0a 20 7d 0d 0a | 0d 0a 20 2f 2f 55 45 54 |+;.. }..|.. //UET|
|00001520| 46 32 6b 34 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |F2k4Game|Replicat|
|00001530| 69 6f 6e 49 6e 66 6f 28 | 47 61 6d 65 52 65 70 6c |ionInfo(|GameRepl|
|00001540| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 29 2e 4e 65 78 |icationI|nfo).Nex|
|00001550| 74 57 61 76 65 54 69 6d | 65 3d 72 65 73 75 70 70 |tWaveTim|e=resupp|
|00001560| 6c 79 5f 63 6f 75 6e 74 | 65 72 3b 0d 0a 20 2f 2f |ly_count|er;.. //|
|00001570| 72 65 73 75 70 70 6c 79 | 5f 63 6f 75 6e 74 65 72 |resupply|_counter|
|00001580| 2b 2b 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |++;..}..|..functi|
|00001590| 6f 6e 20 4b 69 6c 6c 65 | 64 28 43 6f 6e 74 72 6f |on Kille|d(Contro|
|000015a0| 6c 6c 65 72 20 4b 69 6c | 6c 65 72 2c 20 43 6f 6e |ller Kil|ler, Con|
|000015b0| 74 72 6f 6c 6c 65 72 20 | 4b 69 6c 6c 65 64 2c 20 |troller |Killed, |
|000015c0| 50 61 77 6e 20 4b 69 6c | 6c 65 64 50 61 77 6e 2c |Pawn Kil|ledPawn,|
|000015d0| 20 63 6c 61 73 73 3c 44 | 61 6d 61 67 65 54 79 70 | class<D|amageTyp|
|000015e0| 65 3e 20 64 61 6d 61 67 | 65 54 79 70 65 20 29 0d |e> damag|eType ).|
|000015f0| 0a 7b 0d 0a 20 20 20 20 | 69 66 20 28 4b 69 6c 6c |.{.. |if (Kill|
|00001600| 65 64 2e 49 73 41 28 27 | 55 45 54 46 32 6b 34 50 |ed.IsA('|UETF2k4P|
|00001610| 6c 61 79 65 72 27 29 29 | 0d 0a 20 20 20 20 20 20 |layer'))|.. |
|00001620| 20 55 45 54 46 32 6b 34 | 50 6c 61 79 65 72 28 4b | UETF2k4|Player(K|
|00001630| 69 6c 6c 65 64 29 2e 50 | 6c 61 79 65 72 52 65 70 |illed).P|layerRep|
|00001640| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 4f 75 |lication|Info.bOu|
|00001650| 74 4f 66 4c 69 76 65 73 | 20 3d 20 74 72 75 65 3b |tOfLives| = true;|
|00001660| 0d 0a 0d 0a 20 20 20 20 | 53 75 70 65 72 2e 4b 69 |.... |Super.Ki|
|00001670| 6c 6c 65 64 28 4b 69 6c | 6c 65 72 2c 20 4b 69 6c |lled(Kil|ler, Kil|
|00001680| 6c 65 64 2c 20 4b 69 6c | 6c 65 64 50 61 77 6e 2c |led, Kil|ledPawn,|
|00001690| 20 64 61 6d 61 67 65 54 | 79 70 65 29 3b 0d 0a 7d | damageT|ype);..}|
|000016a0| 0d 0a 0d 0a 2f 2f 41 64 | 64 20 61 6e 20 61 6c 6c |....//Ad|d an all|
|000016b0| 79 20 61 74 20 74 68 65 | 20 6e 65 61 72 65 73 74 |y at the| nearest|
|000016c0| 20 6e 61 76 20 70 6f 69 | 6e 74 20 74 6f 20 61 20 | nav poi|nt to a |
|000016d0| 6c 6f 63 61 74 69 6f 6e | 0d 0a 66 75 6e 63 74 69 |location|..functi|
|000016e0| 6f 6e 20 76 65 63 74 6f | 72 20 41 64 64 41 6c 6c |on vecto|r AddAll|
|000016f0| 79 41 74 4c 6f 63 61 74 | 69 6f 6e 28 76 65 63 74 |yAtLocat|ion(vect|
|00001700| 6f 72 20 53 70 61 77 6e | 4c 6f 63 2c 20 63 6c 61 |or Spawn|Loc, cla|
|00001710| 73 73 3c 55 45 54 46 41 | 6c 6c 79 3e 20 41 6c 6c |ss<UETFA|lly> All|
|00001720| 79 43 6c 61 73 73 2c 20 | 69 6e 74 20 4f 72 64 65 |yClass, |int Orde|
|00001730| 72 2c 20 55 45 54 46 32 | 6b 34 50 6c 61 79 65 72 |r, UETF2|k4Player|
|00001740| 20 4c 65 61 64 65 72 29 | 0d 0a 7b 0d 0a 20 6c 6f | Leader)|..{.. lo|
|00001750| 63 61 6c 20 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |cal Navi|gationPo|
|00001760| 69 6e 74 20 4e 3b 0d 0a | 20 6c 6f 63 61 6c 20 4e |int N;..| local N|
|00001770| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 20 43 |avigatio|nPoint C|
|00001780| 6c 6f 73 65 73 74 53 70 | 6f 74 3b 0d 0a 20 6c 6f |losestSp|ot;.. lo|
|00001790| 63 61 6c 20 66 6c 6f 61 | 74 20 64 69 73 74 61 6e |cal floa|t distan|
|000017a0| 63 65 2c 20 63 6c 6f 73 | 65 73 74 5f 64 69 73 74 |ce, clos|est_dist|
|000017b0| 61 6e 63 65 3b 0d 0a 20 | 6c 6f 63 61 6c 20 50 61 |ance;.. |local Pa|
|000017c0| 77 6e 20 4e 65 77 41 6c | 6c 79 3b 0d 0a 20 6c 6f |wn NewAl|ly;.. lo|
|000017d0| 63 61 6c 20 56 65 63 74 | 6f 72 20 43 6c 6f 73 65 |cal Vect|or Close|
|000017e0| 73 74 56 65 63 74 6f 72 | 3b 0d 0a 0d 0a 20 63 6c |stVector|;.... cl|
|000017f0| 6f 73 65 73 74 5f 64 69 | 73 74 61 6e 63 65 3d 39 |osest_di|stance=9|
|00001800| 39 39 39 39 39 39 3b 0d | 0a 0d 0a 20 66 6f 72 65 |999999;.|... fore|
|00001810| 61 63 68 20 41 6c 6c 41 | 63 74 6f 72 73 28 63 6c |ach AllA|ctors(cl|
|00001820| 61 73 73 27 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |ass'Navi|gationPo|
|00001830| 69 6e 74 27 2c 4e 29 0d | 0a 20 7b 0d 0a 20 20 64 |int',N).|. {.. d|
|00001840| 69 73 74 61 6e 63 65 3d | 20 56 53 69 7a 65 28 53 |istance=| VSize(S|
|00001850| 70 61 77 6e 4c 6f 63 20 | 2d 20 4e 2e 4c 6f 63 61 |pawnLoc |- N.Loca|
|00001860| 74 69 6f 6e 29 3b 0d 0a | 0d 0a 20 20 69 66 20 28 |tion);..|.. if (|
|00001870| 28 21 50 6f 69 6e 74 54 | 72 69 65 64 28 4e 29 29 |(!PointT|ried(N))|
|00001880| 20 26 26 20 64 69 73 74 | 61 6e 63 65 20 3c 20 63 | && dist|ance < c|
|00001890| 6c 6f 73 65 73 74 5f 64 | 69 73 74 61 6e 63 65 20 |losest_d|istance |
|000018a0| 26 26 20 64 69 73 74 61 | 6e 63 65 20 3e 20 30 29 |&& dista|nce > 0)|
|000018b0| 7b 0d 0a 20 20 20 20 20 | 43 6c 6f 73 65 73 74 53 |{.. |ClosestS|
|000018c0| 70 6f 74 3d 4e 3b 0d 0a | 20 20 20 20 20 63 6c 6f |pot=N;..| clo|
|000018d0| 73 65 73 74 5f 64 69 73 | 74 61 6e 63 65 3d 64 69 |sest_dis|tance=di|
|000018e0| 73 74 61 6e 63 65 3b 0d | 0a 20 20 7d 0d 0a 20 7d |stance;.|. }.. }|
|000018f0| 0d 0a 0d 0a 20 20 4e 65 | 77 41 6c 6c 79 20 3d 20 |.... Ne|wAlly = |
|00001900| 53 70 61 77 6e 28 41 6c | 6c 79 43 6c 61 73 73 2c |Spawn(Al|lyClass,|
|00001910| 2c 2c 43 6c 6f 73 65 73 | 74 53 70 6f 74 2e 4c 6f |,,Closes|tSpot.Lo|
|00001920| 63 61 74 69 6f 6e 2b 28 | 4e 65 77 41 6c 6c 79 2e |cation+(|NewAlly.|
|00001930| 44 65 66 61 75 6c 74 2e | 43 6f 6c 6c 69 73 69 6f |Default.|Collisio|
|00001940| 6e 48 65 69 67 68 74 20 | 2d 20 43 6c 6f 73 65 73 |nHeight |- Closes|
|00001950| 74 53 70 6f 74 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |tSpot.Co|llisionH|
|00001960| 65 69 67 68 74 29 20 2a | 20 76 65 63 74 28 30 2c |eight) *| vect(0,|
|00001970| 30 2c 31 29 2c 43 6c 6f | 73 65 73 74 53 70 6f 74 |0,1),Clo|sestSpot|
|00001980| 2e 52 6f 74 61 74 69 6f | 6e 29 3b 0d 0a 0d 0a 20 |.Rotatio|n);.... |
|00001990| 20 54 72 69 65 64 50 6f | 69 6e 74 73 2e 49 6e 73 | TriedPo|ints.Ins|
|000019a0| 65 72 74 28 54 72 69 65 | 64 50 6f 69 6e 74 73 2e |ert(Trie|dPoints.|
|000019b0| 4c 65 6e 67 74 68 2c 20 | 30 29 3b 0d 0a 20 20 54 |Length, |0);.. T|
|000019c0| 72 69 65 64 50 6f 69 6e | 74 73 5b 54 72 69 65 64 |riedPoin|ts[Tried|
|000019d0| 50 6f 69 6e 74 73 2e 4c | 65 6e 67 74 68 5d 3d 43 |Points.L|ength]=C|
|000019e0| 6c 6f 73 65 73 74 53 70 | 6f 74 3b 0d 0a 0d 0a 20 |losestSp|ot;.... |
|000019f0| 20 43 6c 6f 73 65 73 74 | 56 65 63 74 6f 72 3d 43 | Closest|Vector=C|
|00001a00| 6c 6f 73 65 73 74 53 70 | 6f 74 2e 4c 6f 63 61 74 |losestSp|ot.Locat|
|00001a10| 69 6f 6e 3b 0d 0a 0d 0a | 20 20 2f 2f 49 66 20 73 |ion;....| //If s|
|00001a20| 70 61 77 6e 20 66 61 69 | 6c 73 2c 20 74 72 79 20 |pawn fai|ls, try |
|00001a30| 72 65 63 75 72 73 69 76 | 65 20 63 68 65 63 6b 0d |recursiv|e check.|
|00001a40| 0a 20 20 69 66 20 28 4e | 65 77 41 6c 6c 79 20 3d |. if (N|ewAlly =|
|00001a50| 3d 20 4e 6f 6e 65 29 7b | 0d 0a 20 20 20 20 20 2f |= None){|.. /|
|00001a60| 2f 42 61 69 6c 20 4f 75 | 74 2d 6e 6f 20 6f 70 65 |/Bail Ou|t-no ope|
|00001a70| 6e 20 6e 61 76 20 70 6f | 69 6e 74 73 2c 20 67 69 |n nav po|ints, gi|
|00001a80| 76 65 20 75 70 0d 0a 20 | 20 20 20 20 69 66 20 28 |ve up.. | if (|
|00001a90| 54 72 69 65 64 50 6f 69 | 6e 74 73 2e 4c 65 6e 67 |TriedPoi|nts.Leng|
|00001aa0| 74 68 20 3c 20 4d 61 78 | 50 6f 69 6e 74 73 29 0d |th < Max|Points).|
|00001ab0| 0a 20 20 20 20 20 20 20 | 20 43 6c 6f 73 65 73 74 |. | Closest|
|00001ac0| 56 65 63 74 6f 72 20 3d | 20 41 64 64 41 6c 6c 79 |Vector =| AddAlly|
|00001ad0| 41 74 4c 6f 63 61 74 69 | 6f 6e 28 43 6c 6f 73 65 |AtLocati|on(Close|
|00001ae0| 73 74 53 70 6f 74 2e 4c | 6f 63 61 74 69 6f 6e 2c |stSpot.L|ocation,|
|00001af0| 20 41 6c 6c 79 43 6c 61 | 73 73 2c 20 4f 72 64 65 | AllyCla|ss, Orde|
|00001b00| 72 2c 20 4c 65 61 64 65 | 72 29 3b 0d 0a 20 20 7d |r, Leade|r);.. }|
|00001b10| 0d 0a 20 20 65 6c 73 65 | 7b 0d 0a 20 20 20 20 2f |.. else|{.. /|
|00001b20| 2f 49 6e 73 65 72 74 20 | 74 68 69 73 20 62 6f 74 |/Insert |this bot|
|00001b30| 20 69 6e 74 6f 20 74 68 | 65 20 70 6c 61 79 65 72 | into th|e player|
|00001b40| 27 73 20 73 71 75 61 64 | 0d 0a 20 20 20 20 55 45 |'s squad|.. UE|
|00001b50| 54 46 41 6c 6c 79 28 4e | 65 77 41 6c 6c 79 29 2e |TFAlly(N|ewAlly).|
|00001b60| 62 43 6f 6e 74 72 6f 6c | 6c 61 62 6c 65 3d 74 72 |bControl|lable=tr|
|00001b70| 75 65 3b 0d 0a 20 20 20 | 20 55 45 54 46 41 6c 6c |ue;.. | UETFAll|
|00001b80| 79 43 6f 6e 74 72 6f 6c | 6c 65 72 28 4e 65 77 41 |yControl|ler(NewA|
|00001b90| 6c 6c 79 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 2e |lly.Cont|roller).|
|00001ba0| 62 47 75 61 72 64 69 6e | 67 3d 74 72 75 65 3b 0d |bGuardin|g=true;.|
|00001bb0| 0a 20 20 20 20 4c 65 61 | 64 65 72 2e 4d 61 72 69 |. Lea|der.Mari|
|00001bc0| 6e 65 73 5b 4f 72 64 65 | 72 5d 3d 55 45 54 46 41 |nes[Orde|r]=UETFA|
|00001bd0| 6c 6c 79 28 4e 65 77 41 | 6c 6c 79 29 3b 0d 0a 20 |lly(NewA|lly);.. |
|00001be0| 20 20 20 43 6c 65 61 72 | 50 6f 69 6e 74 73 54 72 | Clear|PointsTr|
|00001bf0| 69 65 64 28 29 3b 0d 0a | 20 20 7d 0d 0a 0d 0a 20 |ied();..| }.... |
|00001c00| 20 2f 2f 52 65 74 75 72 | 6e 20 74 68 65 20 6c 61 | //Retur|n the la|
|00001c10| 73 74 20 75 73 65 64 20 | 6c 6f 63 61 74 69 6f 6e |st used |location|
|00001c20| 0d 0a 20 20 72 65 74 75 | 72 6e 20 43 6c 6f 73 65 |.. retu|rn Close|
|00001c30| 73 74 56 65 63 74 6f 72 | 3b 0d 0a 7d 0d 0a 0d 0a |stVector|;..}....|
|00001c40| 66 75 6e 63 74 69 6f 6e | 20 44 65 70 6c 6f 79 53 |function| DeployS|
|00001c50| 65 6e 74 69 6e 65 6c 73 | 28 29 7b 0d 0a 20 6c 6f |entinels|(){.. lo|
|00001c60| 63 61 6c 20 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |cal Navi|gationPo|
|00001c70| 69 6e 74 20 4e 3b 0d 0a | 20 6c 6f 63 61 6c 20 66 |int N;..| local f|
|00001c80| 6c 6f 61 74 20 66 72 69 | 65 6e 64 5f 64 69 73 74 |loat fri|end_dist|
|00001c90| 61 6e 63 65 2c 20 65 6e | 65 6d 79 5f 64 69 73 74 |ance, en|emy_dist|
|00001ca0| 61 6e 63 65 3b 0d 0a 20 | 6c 6f 63 61 6c 20 50 61 |ance;.. |local Pa|
|00001cb0| 77 6e 20 4e 65 77 4d 6f | 6e 73 74 65 72 3b 0d 0a |wn NewMo|nster;..|
|00001cc0| 20 6c 6f 63 61 6c 20 61 | 72 72 61 79 3c 76 65 63 | local a|rray<vec|
|00001cd0| 74 6f 72 3e 20 44 65 66 | 65 6e 73 65 50 6f 69 6e |tor> Def|ensePoin|
|00001ce0| 74 73 3b 0d 0a 20 6c 6f | 63 61 6c 20 69 6e 74 20 |ts;.. lo|cal int |
|00001cf0| 69 3b 0d 0a 20 6c 6f 63 | 61 6c 20 63 6c 61 73 73 |i;.. loc|al class|
|00001d00| 3c 4d 6f 6e 73 74 65 72 | 3e 20 4e 65 77 4d 6f 6e |<Monster|> NewMon|
|00001d10| 73 74 65 72 43 6c 61 73 | 73 3b 0d 0a 20 2f 2f 6c |sterClas|s;.. //l|
|00001d20| 6f 63 61 6c 20 44 65 66 | 65 6e 73 65 50 6f 69 6e |ocal Def|ensePoin|
|00001d30| 74 20 44 3b 0d 0a 0d 0a | 20 66 6f 72 65 61 63 68 |t D;....| foreach|
|00001d40| 20 41 6c 6c 41 63 74 6f | 72 73 28 63 6c 61 73 73 | AllActo|rs(class|
|00001d50| 27 4e 61 76 69 67 61 74 | 69 6f 6e 50 6f 69 6e 74 |'Navigat|ionPoint|
|00001d60| 27 2c 4e 29 0d 0a 20 7b | 0d 0a 20 20 20 20 20 66 |',N).. {|.. f|
|00001d70| 72 69 65 6e 64 5f 64 69 | 73 74 61 6e 63 65 3d 56 |riend_di|stance=V|
|00001d80| 53 69 7a 65 28 46 72 69 | 65 6e 64 50 6f 69 6e 74 |Size(Fri|endPoint|
|00001d90| 20 2d 20 4e 2e 4c 6f 63 | 61 74 69 6f 6e 29 3b 0d | - N.Loc|ation);.|
|00001da0| 0a 20 20 20 20 20 65 6e | 65 6d 79 5f 64 69 73 74 |. en|emy_dist|
|00001db0| 61 6e 63 65 3d 56 53 69 | 7a 65 28 45 6e 65 6d 79 |ance=VSi|ze(Enemy|
|00001dc0| 50 6f 69 6e 74 20 2d 20 | 4e 2e 4c 6f 63 61 74 69 |Point - |N.Locati|
|00001dd0| 6f 6e 29 3b 0d 0a 0d 0a | 20 20 20 20 20 69 66 20 |on);....| if |
|00001de0| 28 65 6e 65 6d 79 5f 64 | 69 73 74 61 6e 63 65 20 |(enemy_d|istance |
|00001df0| 3c 20 66 72 69 65 6e 64 | 5f 64 69 73 74 61 6e 63 |< friend|_distanc|
|00001e00| 65 2b 31 30 30 30 29 7b | 0d 0a 20 20 20 20 20 20 |e+1000){|.. |
|00001e10| 20 20 44 65 66 65 6e 73 | 65 50 6f 69 6e 74 73 2e | Defens|ePoints.|
|00001e20| 49 6e 73 65 72 74 28 30 | 2c 31 29 3b 0d 0a 20 20 |Insert(0|,1);.. |
|00001e30| 20 20 20 20 20 20 44 65 | 66 65 6e 73 65 50 6f 69 | De|fensePoi|
|00001e40| 6e 74 73 5b 30 5d 20 3d | 20 4e 2e 4c 6f 63 61 74 |nts[0] =| N.Locat|
|00001e50| 69 6f 6e 3b 0d 0a 20 20 | 20 20 20 7d 0d 0a 20 7d |ion;.. | }.. }|
|00001e60| 0d 0a 0d 0a 20 66 6f 72 | 20 28 69 20 3d 20 30 3b |.... for| (i = 0;|
|00001e70| 20 69 20 3c 20 44 65 66 | 65 6e 73 65 50 6f 69 6e | i < Def|ensePoin|
|00001e80| 74 73 2e 4c 65 6e 67 74 | 68 2f 34 3b 20 69 2b 2b |ts.Lengt|h/4; i++|
|00001e90| 29 7b 0d 0a 20 20 2f 2f | 6c 6f 67 28 22 45 6e 65 |){.. //|log("Ene|
|00001ea0| 6d 79 20 52 65 69 6e 66 | 6f 72 63 65 6d 65 6e 74 |my Reinf|orcement|
|00001eb0| 73 3a 20 22 24 45 6e 65 | 6d 79 52 65 69 6e 66 6f |s: "$Ene|myReinfo|
|00001ec0| 72 63 65 6d 65 6e 74 73 | 29 3b 0d 0a 20 20 69 66 |rcements|);.. if|
|00001ed0| 20 28 69 20 3c 20 45 6e | 65 6d 79 52 65 69 6e 66 | (i < En|emyReinf|
|00001ee0| 6f 72 63 65 6d 65 6e 74 | 73 29 7b 0d 0a 20 20 4e |orcement|s){.. N|
|00001ef0| 65 77 4d 6f 6e 73 74 65 | 72 43 6c 61 73 73 20 3d |ewMonste|rClass =|
|00001f00| 20 63 6c 61 73 73 3c 4d | 6f 6e 73 74 65 72 3e 28 | class<M|onster>(|
|00001f10| 42 6f 74 4d 6f 6e 73 74 | 65 72 43 6c 61 73 73 5b |BotMonst|erClass[|
|00001f20| 47 65 74 44 65 66 65 6e | 64 65 72 4d 6f 6e 73 74 |GetDefen|derMonst|
|00001f30| 65 72 28 29 5d 29 3b 0d | 0a 0d 0a 20 20 20 20 20 |er()]);.|... |
|00001f40| 4e 65 77 4d 6f 6e 73 74 | 65 72 20 3d 20 53 70 61 |NewMonst|er = Spa|
|00001f50| 77 6e 28 4e 65 77 4d 6f | 6e 73 74 65 72 43 6c 61 |wn(NewMo|nsterCla|
|00001f60| 73 73 2c 2c 2c 44 65 66 | 65 6e 73 65 50 6f 69 6e |ss,,,Def|ensePoin|
|00001f70| 74 73 5b 69 5d 2b 28 4e | 65 77 4d 6f 6e 73 74 65 |ts[i]+(N|ewMonste|
|00001f80| 72 43 6c 61 73 73 2e 44 | 65 66 61 75 6c 74 2e 43 |rClass.D|efault.C|
|00001f90| 6f 6c 6c 69 73 69 6f 6e | 48 65 69 67 68 74 29 20 |ollision|Height) |
|00001fa0| 2a 20 76 65 63 74 28 30 | 2c 30 2c 31 29 2c 29 3b |* vect(0|,0,1),);|
|00001fb0| 0d 0a 0d 0a 20 20 20 20 | 20 69 66 20 28 4e 65 77 |.... | if (New|
|00001fc0| 4d 6f 6e 73 74 65 72 20 | 21 3d 20 4e 6f 6e 65 29 |Monster |!= None)|
|00001fd0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 55 45 54 46 4d |{.. | UETFM|
|00001fe0| 6f 6e 73 74 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |onsterCo|ntroller|
|00001ff0| 28 4e 65 77 4d 6f 6e 73 | 74 65 72 2e 43 6f 6e 74 |(NewMons|ter.Cont|
|00002000| 72 6f 6c 6c 65 72 29 2e | 47 75 61 72 64 50 6f 69 |roller).|GuardPoi|
|00002010| 6e 74 20 3d 20 53 70 61 | 77 6e 28 63 6c 61 73 73 |nt = Spa|wn(class|
|00002020| 27 44 65 66 65 6e 73 65 | 50 6f 69 6e 74 27 2c 2c |'Defense|Point',,|
|00002030| 2c 20 4e 65 77 4d 6f 6e | 73 74 65 72 2e 4c 6f 63 |, NewMon|ster.Loc|
|00002040| 61 74 69 6f 6e 2c 29 3b | 0d 0a 20 20 20 20 20 20 |ation,);|.. |
|00002050| 20 20 55 45 54 46 4d 6f | 6e 73 74 65 72 43 6f 6e | UETFMo|nsterCon|
|00002060| 74 72 6f 6c 6c 65 72 28 | 4e 65 77 4d 6f 6e 73 74 |troller(|NewMonst|
|00002070| 65 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 29 2e 45 |er.Contr|oller).E|
|00002080| 78 65 63 75 74 65 57 68 | 61 74 54 6f 44 6f 4e 65 |xecuteWh|atToDoNe|
|00002090| 78 74 28 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 4e |xt();.. | N|
|000020a0| 65 77 4d 6f 6e 73 74 65 | 72 3d 4e 6f 6e 65 3b 0d |ewMonste|r=None;.|
|000020b0| 0a 20 20 20 20 20 7d 0d | 0a 20 20 7d 0d 0a 20 7d |. }.|. }.. }|
|000020c0| 0d 0a 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |....}...|.functio|
|000020d0| 6e 20 69 6e 74 20 47 65 | 74 44 65 66 65 6e 64 65 |n int Ge|tDefende|
|000020e0| 72 4d 6f 6e 73 74 65 72 | 28 29 0d 0a 7b 0d 0a 20 |rMonster|()..{.. |
|000020f0| 20 20 20 72 65 74 75 72 | 6e 20 4d 69 73 73 69 6f | retur|n Missio|
|00002100| 6e 42 6f 74 73 5b 72 61 | 6e 64 28 4d 69 73 73 69 |nBots[ra|nd(Missi|
|00002110| 6f 6e 42 6f 74 73 2e 4c | 65 6e 67 74 68 29 5d 3b |onBots.L|ength)];|
|00002120| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 41 64 64 20 61 20 6d |..}..../|/Add a m|
|00002130| 6f 6e 73 74 65 72 20 61 | 74 20 74 68 65 20 6e 65 |onster a|t the ne|
|00002140| 61 72 65 73 74 20 6e 61 | 76 20 70 6f 69 6e 74 20 |arest na|v point |
|00002150| 74 6f 20 61 20 6c 6f 63 | 61 74 69 6f 6e 0d 0a 2f |to a loc|ation../|
|00002160| 2a 66 75 6e 63 74 69 6f | 6e 20 76 65 63 74 6f 72 |*functio|n vector|
|00002170| 20 41 64 64 53 65 6e 74 | 69 6e 65 6c 28 76 65 63 | AddSent|inel(vec|
|00002180| 74 6f 72 20 53 70 61 77 | 6e 4c 6f 63 29 0d 0a 7b |tor Spaw|nLoc)..{|
|00002190| 0d 0a 20 6c 6f 63 61 6c | 20 4e 61 76 69 67 61 74 |.. local| Navigat|
|000021a0| 69 6f 6e 50 6f 69 6e 74 | 20 4e 3b 0d 0a 20 6c 6f |ionPoint| N;.. lo|
|000021b0| 63 61 6c 20 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |cal Navi|gationPo|
|000021c0| 69 6e 74 20 43 6c 6f 73 | 65 73 74 53 70 6f 74 3b |int Clos|estSpot;|
|000021d0| 0d 0a 20 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 64 |.. local| float d|
|000021e0| 69 73 74 61 6e 63 65 2c | 20 63 6c 6f 73 65 73 74 |istance,| closest|
|000021f0| 5f 64 69 73 74 61 6e 63 | 65 3b 0d 0a 20 6c 6f 63 |_distanc|e;.. loc|
|00002200| 61 6c 20 50 61 77 6e 20 | 4e 65 77 4d 6f 6e 73 74 |al Pawn |NewMonst|
|00002210| 65 72 3b 0d 0a 20 6c 6f | 63 61 6c 20 56 65 63 74 |er;.. lo|cal Vect|
|00002220| 6f 72 20 43 6c 6f 73 65 | 73 74 56 65 63 74 6f 72 |or Close|stVector|
|00002230| 3b 0d 0a 0d 0a 20 63 6c | 6f 73 65 73 74 5f 64 69 |;.... cl|osest_di|
|00002240| 73 74 61 6e 63 65 3d 39 | 39 39 39 39 3b 0d 0a 0d |stance=9|9999;...|
|00002250| 0a 20 66 6f 72 65 61 63 | 68 20 41 6c 6c 41 63 74 |. foreac|h AllAct|
|00002260| 6f 72 73 28 63 6c 61 73 | 73 27 4e 61 76 69 67 61 |ors(clas|s'Naviga|
|00002270| 74 69 6f 6e 50 6f 69 6e | 74 27 2c 4e 29 0d 0a 20 |tionPoin|t',N).. |
|00002280| 7b 0d 0a 20 20 64 69 73 | 74 61 6e 63 65 3d 20 56 |{.. dis|tance= V|
|00002290| 53 69 7a 65 28 53 70 61 | 77 6e 4c 6f 63 20 2d 20 |Size(Spa|wnLoc - |
|000022a0| 4e 2e 4c 6f 63 61 74 69 | 6f 6e 29 3b 0d 0a 0d 0a |N.Locati|on);....|
|000022b0| 20 20 69 66 20 28 28 21 | 50 6f 69 6e 74 54 72 69 | if ((!|PointTri|
|000022c0| 65 64 28 4e 29 29 20 26 | 26 20 64 69 73 74 61 6e |ed(N)) &|& distan|
|000022d0| 63 65 20 3c 20 63 6c 6f | 73 65 73 74 5f 64 69 73 |ce < clo|sest_dis|
|000022e0| 74 61 6e 63 65 20 26 26 | 20 64 69 73 74 61 6e 63 |tance &&| distanc|
|000022f0| 65 20 3e 20 30 29 7b 0d | 0a 20 20 20 20 20 43 6c |e > 0){.|. Cl|
|00002300| 6f 73 65 73 74 53 70 6f | 74 3d 4e 3b 0d 0a 20 20 |osestSpo|t=N;.. |
|00002310| 20 20 20 63 6c 6f 73 65 | 73 74 5f 64 69 73 74 61 | close|st_dista|
|00002320| 6e 63 65 3d 64 69 73 74 | 61 6e 63 65 3b 0d 0a 20 |nce=dist|ance;.. |
|00002330| 20 7d 0d 0a 20 7d 0d 0a | 0d 0a 20 20 4e 65 77 4d | }.. }..|.. NewM|
|00002340| 6f 6e 73 74 65 72 20 3d | 20 53 70 61 77 6e 28 63 |onster =| Spawn(c|
|00002350| 6c 61 73 73 27 54 65 73 | 74 54 61 6e 6b 42 6f 74 |lass'Tes|tTankBot|
|00002360| 27 2c 2c 2c 43 6c 6f 73 | 65 73 74 53 70 6f 74 2e |',,,Clos|estSpot.|
|00002370| 4c 6f 63 61 74 69 6f 6e | 2b 28 4e 65 77 4d 6f 6e |Location|+(NewMon|
|00002380| 73 74 65 72 2e 44 65 66 | 61 75 6c 74 2e 43 6f 6c |ster.Def|ault.Col|
|00002390| 6c 69 73 69 6f 6e 48 65 | 69 67 68 74 20 2d 20 43 |lisionHe|ight - C|
|000023a0| 6c 6f 73 65 73 74 53 70 | 6f 74 2e 43 6f 6c 6c 69 |losestSp|ot.Colli|
|000023b0| 73 69 6f 6e 48 65 69 67 | 68 74 29 20 2a 20 76 65 |sionHeig|ht) * ve|
|000023c0| 63 74 28 30 2c 30 2c 31 | 29 2c 43 6c 6f 73 65 73 |ct(0,0,1|),Closes|
|000023d0| 74 53 70 6f 74 2e 52 6f | 74 61 74 69 6f 6e 29 3b |tSpot.Ro|tation);|
|000023e0| 0d 0a 0d 0a 20 20 54 72 | 69 65 64 50 6f 69 6e 74 |.... Tr|iedPoint|
|000023f0| 73 2e 49 6e 73 65 72 74 | 28 54 72 69 65 64 50 6f |s.Insert|(TriedPo|
|00002400| 69 6e 74 73 2e 4c 65 6e | 67 74 68 2c 20 30 29 3b |ints.Len|gth, 0);|
|00002410| 0d 0a 20 20 54 72 69 65 | 64 50 6f 69 6e 74 73 5b |.. Trie|dPoints[|
|00002420| 54 72 69 65 64 50 6f 69 | 6e 74 73 2e 4c 65 6e 67 |TriedPoi|nts.Leng|
|00002430| 74 68 5d 3d 43 6c 6f 73 | 65 73 74 53 70 6f 74 3b |th]=Clos|estSpot;|
|00002440| 0d 0a 0d 0a 20 20 43 6c | 6f 73 65 73 74 56 65 63 |.... Cl|osestVec|
|00002450| 74 6f 72 3d 43 6c 6f 73 | 65 73 74 53 70 6f 74 2e |tor=Clos|estSpot.|
|00002460| 4c 6f 63 61 74 69 6f 6e | 3b 0d 0a 0d 0a 20 20 2f |Location|;.... /|
|00002470| 2f 49 66 20 73 70 61 77 | 6e 20 66 61 69 6c 73 2c |/If spaw|n fails,|
|00002480| 20 74 72 79 20 72 65 63 | 75 72 73 69 76 65 20 63 | try rec|ursive c|
|00002490| 68 65 63 6b 0d 0a 20 20 | 69 66 20 28 4e 65 77 4d |heck.. |if (NewM|
|000024a0| 6f 6e 73 74 65 72 20 3d | 3d 20 4e 6f 6e 65 29 7b |onster =|= None){|
|000024b0| 0d 0a 20 20 20 20 20 2f | 2f 42 61 69 6c 20 4f 75 |.. /|/Bail Ou|
|000024c0| 74 2d 6e 6f 20 6f 70 65 | 6e 20 6e 61 76 20 70 6f |t-no ope|n nav po|
|000024d0| 69 6e 74 73 2c 20 67 69 | 76 65 20 75 70 0d 0a 20 |ints, gi|ve up.. |
|000024e0| 20 20 20 20 69 66 20 28 | 54 72 69 65 64 50 6f 69 | if (|TriedPoi|
|000024f0| 6e 74 73 2e 4c 65 6e 67 | 74 68 20 3c 20 4d 61 78 |nts.Leng|th < Max|
|00002500| 50 6f 69 6e 74 73 29 0d | 0a 20 20 20 20 20 20 20 |Points).|. |
|00002510| 20 43 6c 6f 73 65 73 74 | 56 65 63 74 6f 72 20 3d | Closest|Vector =|
|00002520| 20 41 64 64 53 65 6e 74 | 69 6e 65 6c 28 43 6c 6f | AddSent|inel(Clo|
|00002530| 73 65 73 74 53 70 6f 74 | 2e 4c 6f 63 61 74 69 6f |sestSpot|.Locatio|
|00002540| 6e 29 3b 0d 0a 20 20 7d | 0d 0a 20 20 65 6c 73 65 |n);.. }|.. else|
|00002550| 7b 0d 0a 20 20 20 20 2f | 2f 49 6e 73 65 72 74 20 |{.. /|/Insert |
|00002560| 74 68 69 73 20 62 6f 74 | 20 69 6e 74 6f 20 74 68 |this bot| into th|
|00002570| 65 20 73 71 75 61 64 0d | 0a 20 20 20 20 41 64 64 |e squad.|. Add|
|00002580| 53 65 6e 74 69 6e 65 6c | 42 6f 74 28 55 45 54 46 |Sentinel|Bot(UETF|
|00002590| 42 6f 74 4d 6f 6e 73 74 | 65 72 28 4e 65 77 4d 6f |BotMonst|er(NewMo|
|000025a0| 6e 73 74 65 72 29 29 3b | 0d 0a 20 20 20 20 43 6c |nster));|.. Cl|
|000025b0| 65 61 72 50 6f 69 6e 74 | 73 54 72 69 65 64 28 29 |earPoint|sTried()|
|000025c0| 3b 0d 0a 20 20 7d 0d 0a | 0d 0a 20 20 2f 2f 52 65 |;.. }..|.. //Re|
|000025d0| 74 75 72 6e 20 74 68 65 | 20 6c 61 73 74 20 75 73 |turn the| last us|
|000025e0| 65 64 20 6c 6f 63 61 74 | 69 6f 6e 0d 0a 20 20 72 |ed locat|ion.. r|
|000025f0| 65 74 75 72 6e 20 43 6c | 6f 73 65 73 74 56 65 63 |eturn Cl|osestVec|
|00002600| 74 6f 72 3b 0d 0a 7d 2a | 2f 0d 0a 0d 0a 00 |tor;..}*|/..... |
+--------+-------------------------+-------------------------+--------+--------+