home *** CD-ROM | disk | FTP | other *** search
Unknown | 2002-05-07 | 32.9 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 | 6e 8e 04 2f 2f 3d 3d 3d |........|n..//===|
|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 0d 0a |========|==..//..|
|00000060| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|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 0d |========|=======.|
|000000b0| 0a 0d 0a 63 6c 61 73 73 | 20 52 61 67 65 53 61 66 |...class| RageSaf|
|000000c0| 65 43 72 61 63 6b 65 72 | 20 65 78 74 65 6e 64 73 |eCracker| extends|
|000000d0| 20 52 61 67 65 54 65 61 | 6d 47 61 6d 65 0d 0a 09 | RageTea|mGame...|
|000000e0| 63 6f 6e 66 69 67 3b 0d | 0a 0d 0a 2f 2f 3d 3d 3d |config;.|...//===|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000110| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000120| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 0d 0a |========|==..//..|
|00000140| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|00000150| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000160| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000170| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000180| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|00000190| 0a 0d 0a 76 61 72 20 66 | 6c 6f 61 74 09 09 4c 61 |...var f|loat..La|
|000001a0| 73 74 47 6f 74 46 6c 61 | 67 3b 0d 0a 76 61 72 20 |stGotFla|g;..var |
|000001b0| 66 6c 6f 61 74 09 09 4c | 61 73 74 53 65 65 46 6c |float..L|astSeeFl|
|000001c0| 61 67 43 61 72 72 69 65 | 72 3b 0d 0a 76 61 72 20 |agCarrie|r;..var |
|000001d0| 62 6f 6f 6c 09 09 62 53 | 61 66 65 43 72 61 63 6b |bool..bS|afeCrack|
|000001e0| 65 64 3b 0d 0a 76 61 72 | 20 52 61 67 65 54 65 61 |ed;..var| RageTea|
|000001f0| 6d 49 6e 66 6f 09 44 65 | 66 65 6e 64 65 72 2c 20 |mInfo.De|fender, |
|00000200| 41 74 74 61 63 6b 65 72 | 3b 0d 0a 76 61 72 20 6c |Attacker|;..var l|
|00000210| 6f 63 61 6c 69 7a 65 64 | 20 73 74 72 69 6e 67 20 |ocalized| string |
|00000220| 54 69 65 4d 65 73 73 61 | 67 65 2c 20 57 69 6e 4d |TieMessa|ge, WinM|
|00000230| 65 73 73 61 67 65 2c 20 | 4f 62 6a 65 63 74 69 76 |essage, |Objectiv|
|00000240| 65 73 4d 65 73 73 61 67 | 65 3b 0d 0a 76 61 72 20 |esMessag|e;..var |
|00000250| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 74 72 69 6e 67 |localize|d string|
|00000260| 20 44 65 66 65 6e 64 65 | 72 53 75 63 63 65 73 73 | Defende|rSuccess|
|00000270| 3b 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 20 62 6f |;..var c|onfig bo|
|00000280| 6f 6c 20 62 54 69 65 50 | 61 72 74 4f 6e 65 3b 0d |ol bTieP|artOne;.|
|00000290| 0a 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 20 69 6e |...var c|onfig in|
|000002a0| 74 09 50 61 72 74 3b 0d | 0a 76 61 72 20 63 6f 6e |t.Part;.|.var con|
|000002b0| 66 69 67 20 69 6e 74 09 | 46 69 72 73 74 43 61 70 |fig int.|FirstCap|
|000002c0| 74 75 72 65 54 69 6d 65 | 3b 0d 0a 0d 0a 76 61 72 |tureTime|;....var|
|000002d0| 20 63 6f 6e 66 69 67 20 | 69 6e 74 20 46 69 72 73 | config |int Firs|
|000002e0| 74 41 74 74 61 63 6b 65 | 72 49 6e 64 65 78 3b 0d |tAttacke|rIndex;.|
|000002f0| 0a 76 61 72 20 63 6f 6e | 66 69 67 20 69 6e 74 20 |.var con|fig int |
|00000300| 41 75 74 6f 43 6c 6f 73 | 65 54 69 6d 65 3b 0d 0a |AutoClos|eTime;..|
|00000310| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|00000320| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000330| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000340| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|00000360| 0a 2f 2f 0d 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//..//=|========|
|00000370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003b0| 3d 3d 3d 3d 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |====..fu|nction b|
|000003c0| 6f 6f 6c 20 43 68 61 6e | 67 65 54 65 61 6d 28 50 |ool Chan|geTeam(P|
|000003d0| 61 77 6e 20 4f 74 68 65 | 72 2c 20 69 6e 74 20 4e |awn Othe|r, int N|
|000003e0| 65 77 54 65 61 6d 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |ewTeam).|.{...loc|
|000003f0| 61 6c 20 62 6f 6f 6c 20 | 62 52 65 61 6c 42 61 6c |al bool |bRealBal|
|00000400| 61 6e 63 65 2c 20 62 52 | 65 73 75 6c 74 3b 0d 0a |ance, bR|esult;..|
|00000410| 0d 0a 09 62 52 65 61 6c | 42 61 6c 61 6e 63 65 20 |...bReal|Balance |
|00000420| 3d 20 62 50 6c 61 79 65 | 72 73 42 61 6c 61 6e 63 |= bPlaye|rsBalanc|
|00000430| 65 54 65 61 6d 73 3b 0d | 0a 09 69 66 20 28 20 50 |eTeams;.|..if ( P|
|00000440| 61 72 74 20 3d 3d 20 32 | 20 29 0d 0a 09 09 62 50 |art == 2| )....bP|
|00000450| 6c 61 79 65 72 73 42 61 | 6c 61 6e 63 65 54 65 61 |layersBa|lanceTea|
|00000460| 6d 73 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 69 66 |ms = fal|se;...if|
|00000470| 20 28 20 4e 65 77 54 65 | 61 6d 20 3e 20 31 20 29 | ( NewTe|am > 1 )|
|00000480| 0d 0a 09 09 4e 65 77 54 | 65 61 6d 20 3d 20 32 35 |....NewT|eam = 25|
|00000490| 35 3b 0d 0a 09 62 52 65 | 73 75 6c 74 20 3d 20 53 |5;...bRe|sult = S|
|000004a0| 75 70 65 72 2e 43 68 61 | 6e 67 65 54 65 61 6d 28 |uper.Cha|ngeTeam(|
|000004b0| 4f 74 68 65 72 2c 20 4e | 65 77 54 65 61 6d 29 3b |Other, N|ewTeam);|
|000004c0| 0d 0a 09 62 50 6c 61 79 | 65 72 73 42 61 6c 61 6e |...bPlay|ersBalan|
|000004d0| 63 65 54 65 61 6d 73 20 | 3d 20 62 52 65 61 6c 42 |ceTeams |= bRealB|
|000004e0| 61 6c 61 6e 63 65 3b 0d | 0a 09 72 65 74 75 72 6e |alance;.|..return|
|000004f0| 20 62 52 65 73 75 6c 74 | 3b 0d 0a 7d 0d 0a 0d 0a | bResult|;..}....|
|00000500| 66 75 6e 63 74 69 6f 6e | 20 69 6e 74 20 41 74 74 |function| int Att|
|00000510| 61 63 6b 69 6e 67 54 65 | 61 6d 49 6e 64 65 78 28 |ackingTe|amIndex(|
|00000520| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 50 61 72 74 20 |)..{...i|f (Part |
|00000530| 3d 3d 20 32 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |== 2)...|.return |
|00000540| 31 2d 46 69 72 73 74 41 | 74 74 61 63 6b 65 72 49 |1-FirstA|ttackerI|
|00000550| 6e 64 65 78 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |ndex;...|else....|
|00000560| 72 65 74 75 72 6e 20 46 | 69 72 73 74 41 74 74 61 |return F|irstAtta|
|00000570| 63 6b 65 72 49 6e 64 65 | 78 3b 0d 0a 7d 0d 0a 0d |ckerInde|x;..}...|
|00000580| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 44 65 |.functio|n int De|
|00000590| 66 65 6e 64 69 6e 67 54 | 65 61 6d 49 6e 64 65 78 |fendingT|eamIndex|
|000005a0| 28 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 50 61 72 74 |()..{...|if (Part|
|000005b0| 20 3d 3d 20 32 29 0d 0a | 09 09 72 65 74 75 72 6e | == 2)..|..return|
|000005c0| 20 46 69 72 73 74 41 74 | 74 61 63 6b 65 72 49 6e | FirstAt|tackerIn|
|000005d0| 64 65 78 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 72 |dex;...e|lse....r|
|000005e0| 65 74 75 72 6e 20 31 2d | 46 69 72 73 74 41 74 74 |eturn 1-|FirstAtt|
|000005f0| 61 63 6b 65 72 49 6e 64 | 65 78 3b 0d 0a 7d 0d 0a |ackerInd|ex;..}..|
|00000600| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 66 75 6e 63 |..simula|ted func|
|00000610| 74 69 6f 6e 20 50 72 65 | 42 65 67 69 6e 50 6c 61 |tion Pre|BeginPla|
|00000620| 79 28 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 56 |y()..{..|.local V|
|00000630| 65 68 69 63 6c 65 47 65 | 6e 65 72 61 74 6f 72 20 |ehicleGe|nerator |
|00000640| 76 67 3b 0d 0a 0d 0a 09 | 53 75 70 65 72 2e 50 72 |vg;.....|Super.Pr|
|00000650| 65 42 65 67 69 6e 50 6c | 61 79 28 29 3b 0d 0a 09 |eBeginPl|ay();...|
|00000660| 0d 0a 09 46 6f 72 45 61 | 63 68 20 41 6c 6c 41 63 |...ForEa|ch AllAc|
|00000670| 74 6f 72 73 28 63 6c 61 | 73 73 27 56 65 68 69 63 |tors(cla|ss'Vehic|
|00000680| 6c 65 47 65 6e 65 72 61 | 74 6f 72 27 2c 20 76 67 |leGenera|tor', vg|
|00000690| 29 0d 0a 09 69 66 20 28 | 20 76 67 2e 54 65 61 6d |)...if (| vg.Team|
|000006a0| 20 3d 3d 20 44 65 66 65 | 6e 64 69 6e 67 54 65 61 | == Defe|ndingTea|
|000006b0| 6d 49 6e 64 65 78 28 29 | 20 29 0d 0a 09 09 76 67 |mIndex()| )....vg|
|000006c0| 2e 62 41 75 74 6f 47 65 | 6e 65 72 61 74 65 20 3d |.bAutoGe|nerate =|
|000006d0| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 52 61 67 65 | false;.|....Rage|
|000006e0| 53 61 66 65 43 72 61 63 | 6b 65 72 52 65 70 49 6e |SafeCrac|kerRepIn|
|000006f0| 66 6f 28 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |fo(GameR|eplicati|
|00000700| 6f 6e 49 6e 66 6f 29 2e | 50 61 72 74 20 3d 20 50 |onInfo).|Part = P|
|00000710| 61 72 74 3b 0d 0a 09 52 | 61 67 65 53 61 66 65 43 |art;...R|ageSafeC|
|00000720| 72 61 63 6b 65 72 52 65 | 70 49 6e 66 6f 28 47 61 |rackerRe|pInfo(Ga|
|00000730| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00000740| 6f 29 2e 46 69 72 73 74 | 41 74 74 61 63 6b 65 72 |o).First|Attacker|
|00000750| 49 6e 64 65 78 20 3d 20 | 46 69 72 73 74 41 74 74 |Index = |FirstAtt|
|00000760| 61 63 6b 65 72 49 6e 64 | 65 78 3b 0d 0a 09 52 61 |ackerInd|ex;...Ra|
|00000770| 67 65 53 61 66 65 43 72 | 61 63 6b 65 72 52 65 70 |geSafeCr|ackerRep|
|00000780| 49 6e 66 6f 28 47 61 6d | 65 52 65 70 6c 69 63 61 |Info(Gam|eReplica|
|00000790| 74 69 6f 6e 49 6e 66 6f | 29 2e 54 69 6d 65 4c 69 |tionInfo|).TimeLi|
|000007a0| 6d 69 74 4d 69 6e 73 20 | 3d 20 52 65 6d 61 69 6e |mitMins |= Remain|
|000007b0| 69 6e 67 54 69 6d 65 20 | 2f 20 36 30 3b 0d 0a 09 |ingTime |/ 60;...|
|000007c0| 52 61 67 65 53 61 66 65 | 43 72 61 63 6b 65 72 52 |RageSafe|CrackerR|
|000007d0| 65 70 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |epInfo(G|ameRepli|
|000007e0| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 54 69 6d 65 |cationIn|fo).Time|
|000007f0| 4c 69 6d 69 74 53 65 63 | 73 20 3d 20 52 65 6d 61 |LimitSec|s = Rema|
|00000800| 69 6e 69 6e 67 54 69 6d | 65 20 25 20 36 30 3b 0d |iningTim|e % 60;.|
|00000810| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4c |.}....fu|nction L|
|00000820| 6f 67 6f 75 74 28 70 61 | 77 6e 20 45 78 69 74 69 |ogout(pa|wn Exiti|
|00000830| 6e 67 29 0d 0a 7b 0d 0a | 09 69 66 20 28 20 45 78 |ng)..{..|.if ( Ex|
|00000840| 69 74 69 6e 67 2e 50 6c | 61 79 65 72 52 65 70 6c |iting.Pl|ayerRepl|
|00000850| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 48 61 73 46 |icationI|nfo.HasF|
|00000860| 6c 61 67 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |lag != N|one )...|
|00000870| 09 52 61 67 65 53 61 66 | 65 4f 62 6a 65 63 74 28 |.RageSaf|eObject(|
|00000880| 45 78 69 74 69 6e 67 2e | 50 6c 61 79 65 72 52 65 |Exiting.|PlayerRe|
|00000890| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|000008a0| 73 46 6c 61 67 29 2e 53 | 65 6e 64 48 6f 6d 65 28 |sFlag).S|endHome(|
|000008b0| 29 3b 09 0d 0a 09 53 75 | 70 65 72 2e 4c 6f 67 6f |);....Su|per.Logo|
|000008c0| 75 74 28 45 78 69 74 69 | 6e 67 29 3b 0d 0a 7d 0d |ut(Exiti|ng);..}.|
|000008d0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 6c 61 79 |...funct|ion Play|
|000008e0| 52 6f 75 6e 64 57 69 6e | 4d 65 73 73 61 67 65 28 |RoundWin|Message(|
|000008f0| 50 6c 61 79 65 72 50 61 | 77 6e 20 50 6c 61 79 65 |PlayerPa|wn Playe|
|00000900| 72 2c 20 62 6f 6f 6c 20 | 62 57 69 6e 6e 65 72 29 |r, bool |bWinner)|
|00000910| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 50 6c 61 79 65 |..{...if| ( Playe|
|00000920| 72 2e 49 73 41 28 27 52 | 61 67 65 50 6c 61 79 65 |r.IsA('R|agePlaye|
|00000930| 72 27 29 20 29 0d 0a 09 | 09 52 61 67 65 50 6c 61 |r') )...|.RagePla|
|00000940| 79 65 72 28 50 6c 61 79 | 65 72 29 2e 50 6c 61 79 |yer(Play|er).Play|
|00000950| 52 6f 75 6e 64 57 69 6e | 4d 65 73 73 61 67 65 28 |RoundWin|Message(|
|00000960| 62 57 69 6e 6e 65 72 29 | 3b 0d 0a 7d 0d 0a 0d 0a |bWinner)|;..}....|
|00000970| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 4b 69 6c 6c 65 |..functi|on Kille|
|00000980| 64 28 20 70 61 77 6e 20 | 4b 69 6c 6c 65 72 2c 20 |d( pawn |Killer, |
|00000990| 70 61 77 6e 20 4f 74 68 | 65 72 2c 20 6e 61 6d 65 |pawn Oth|er, name|
|000009a0| 20 64 61 6d 61 67 65 54 | 79 70 65 20 29 0d 0a 7b | damageT|ype )..{|
|000009b0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 4e 65 78 |...local| int Nex|
|000009c0| 74 54 61 75 6e 74 2c 20 | 69 3b 0d 0a 09 6c 6f 63 |tTaunt, |i;...loc|
|000009d0| 61 6c 20 62 6f 6f 6c 20 | 62 41 75 74 6f 54 61 75 |al bool |bAutoTau|
|000009e0| 6e 74 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4f 74 68 |nt;.....|if ( Oth|
|000009f0| 65 72 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 |er.bIsPl|ayer && |
|00000a00| 28 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |(Other.P|layerRep|
|00000a10| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 48 61 73 |lication|Info.Has|
|00000a20| 46 6c 61 67 20 21 3d 20 | 4e 6f 6e 65 29 20 29 0d |Flag != |None) ).|
|00000a30| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 28 4b 69 6c |..{....i|f ( (Kil|
|00000a40| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |ler != N|one) && |
|00000a50| 4b 69 6c 6c 65 72 2e 62 | 49 73 50 6c 61 79 65 72 |Killer.b|IsPlayer|
|00000a60| 20 26 26 20 4f 74 68 65 | 72 2e 62 49 73 50 6c 61 | && Othe|r.bIsPla|
|00000a70| 79 65 72 20 26 26 20 28 | 4b 69 6c 6c 65 72 2e 50 |yer && (|Killer.P|
|00000a80| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000a90| 49 6e 66 6f 2e 54 65 61 | 6d 20 21 3d 20 4f 74 68 |Info.Tea|m != Oth|
|00000aa0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00000ab0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 20 29 |tionInfo|.Team) )|
|00000ac0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 6b 69 6c 6c 65 72 |....{...|..killer|
|00000ad0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000ae0| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 2b 3d 20 |onInfo.S|core += |
|00000af0| 34 3b 0d 0a 09 09 09 62 | 41 75 74 6f 54 61 75 6e |4;.....b|AutoTaun|
|00000b00| 74 20 3d 20 28 28 52 61 | 67 65 50 6c 61 79 65 72 |t = ((Ra|gePlayer|
|00000b10| 28 4b 69 6c 6c 65 72 29 | 20 21 3d 20 4e 6f 6e 65 |(Killer)| != None|
|00000b20| 29 20 26 26 20 52 61 67 | 65 50 6c 61 79 65 72 28 |) && Rag|ePlayer(|
|00000b30| 4b 69 6c 6c 65 72 29 2e | 62 41 75 74 6f 54 61 75 |Killer).|bAutoTau|
|00000b40| 6e 74 29 3b 0d 0a 09 09 | 09 69 66 20 28 20 28 52 |nt);....|.if ( (R|
|00000b50| 42 6f 74 28 4b 69 6c 6c | 65 72 29 20 21 3d 20 4e |Bot(Kill|er) != N|
|00000b60| 6f 6e 65 29 20 7c 7c 20 | 62 41 75 74 6f 54 61 75 |one) || |bAutoTau|
|00000b70| 6e 74 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |nt )....|.{......|
|00000b80| 4e 65 78 74 54 61 75 6e | 74 20 3d 20 52 61 6e 64 |NextTaun|t = Rand|
|00000b90| 28 63 6c 61 73 73 3c 52 | 61 67 65 56 6f 69 63 65 |(class<R|ageVoice|
|00000ba0| 50 61 63 6b 3e 28 4b 69 | 6c 6c 65 72 2e 50 6c 61 |Pack>(Ki|ller.Pla|
|00000bb0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000bc0| 66 6f 2e 56 6f 69 63 65 | 54 79 70 65 29 2e 44 65 |fo.Voice|Type).De|
|00000bd0| 66 61 75 6c 74 2e 4e 75 | 6d 54 61 75 6e 74 73 29 |fault.Nu|mTaunts)|
|00000be0| 3b 0d 0a 09 09 09 09 66 | 6f 72 20 28 20 69 3d 30 |;......f|or ( i=0|
|00000bf0| 3b 20 69 3c 34 3b 20 69 | 2b 2b 20 29 0d 0a 09 09 |; i<4; i|++ )....|
|00000c00| 09 09 7b 0d 0a 09 09 09 | 09 09 69 66 20 28 20 4e |..{.....|..if ( N|
|00000c10| 65 78 74 54 61 75 6e 74 | 20 3d 3d 20 4c 61 73 74 |extTaunt| == Last|
|00000c20| 54 61 75 6e 74 5b 69 5d | 20 29 0d 0a 09 09 09 09 |Taunt[i]| )......|
|00000c30| 09 09 4e 65 78 74 54 61 | 75 6e 74 20 3d 20 52 61 |..NextTa|unt = Ra|
|00000c40| 6e 64 28 63 6c 61 73 73 | 3c 52 61 67 65 56 6f 69 |nd(class|<RageVoi|
|00000c50| 63 65 50 61 63 6b 3e 28 | 4b 69 6c 6c 65 72 2e 50 |cePack>(|Killer.P|
|00000c60| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000c70| 49 6e 66 6f 2e 56 6f 69 | 63 65 54 79 70 65 29 2e |Info.Voi|ceType).|
|00000c80| 44 65 66 61 75 6c 74 2e | 4e 75 6d 54 61 75 6e 74 |Default.|NumTaunt|
|00000c90| 73 29 3b 0d 0a 09 09 09 | 09 09 69 66 20 28 20 69 |s);.....|..if ( i|
|00000ca0| 20 3e 20 30 20 29 0d 0a | 09 09 09 09 09 09 4c 61 | > 0 )..|......La|
|00000cb0| 73 74 54 61 75 6e 74 5b | 69 2d 31 5d 20 3d 20 4c |stTaunt[|i-1] = L|
|00000cc0| 61 73 74 54 61 75 6e 74 | 5b 69 5d 3b 0d 0a 09 09 |astTaunt|[i];....|
|00000cd0| 09 09 7d 09 0d 0a 09 09 | 09 09 4c 61 73 74 54 61 |..}.....|..LastTa|
|00000ce0| 75 6e 74 5b 33 5d 20 3d | 20 4e 65 78 74 54 61 75 |unt[3] =| NextTau|
|00000cf0| 6e 74 3b 0d 0a 09 09 09 | 09 6b 69 6c 6c 65 72 2e |nt;.....|.killer.|
|00000d00| 53 65 6e 64 47 6c 6f 62 | 61 6c 4d 65 73 73 61 67 |SendGlob|alMessag|
|00000d10| 65 28 4e 6f 6e 65 2c 20 | 27 41 55 54 4f 54 41 55 |e(None, |'AUTOTAU|
|00000d20| 4e 54 27 2c 20 4e 65 78 | 74 54 61 75 6e 74 2c 20 |NT', Nex|tTaunt, |
|00000d30| 35 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |5);.....|}....}..|
|00000d40| 09 09 52 61 67 65 53 61 | 66 65 4f 62 6a 65 63 74 |..RageSa|feObject|
|00000d50| 28 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |(Other.P|layerRep|
|00000d60| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 48 61 73 |lication|Info.Has|
|00000d70| 46 6c 61 67 29 2e 44 72 | 6f 70 28 30 2e 35 20 2a |Flag).Dr|op(0.5 *|
|00000d80| 20 4f 74 68 65 72 2e 56 | 65 6c 6f 63 69 74 79 29 | Other.V|elocity)|
|00000d90| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 53 75 70 65 72 2e |;...}...|..Super.|
|00000da0| 4b 69 6c 6c 65 64 28 4b | 69 6c 6c 65 72 2c 20 4f |Killed(K|iller, O|
|00000db0| 74 68 65 72 2c 20 64 61 | 6d 61 67 65 54 79 70 65 |ther, da|mageType|
|00000dc0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00000dd0| 6e 20 53 63 6f 72 65 4b | 69 6c 6c 28 70 61 77 6e |n ScoreK|ill(pawn|
|00000de0| 20 4b 69 6c 6c 65 72 2c | 20 70 61 77 6e 20 4f 74 | Killer,| pawn Ot|
|00000df0| 68 65 72 29 0d 0a 7b 0d | 0a 0d 0a 09 69 66 28 20 |her)..{.|....if( |
|00000e00| 28 6b 69 6c 6c 65 72 20 | 3d 3d 20 4f 74 68 65 72 |(killer |== Other|
|00000e10| 29 20 7c 7c 20 28 6b 69 | 6c 6c 65 72 20 3d 3d 20 |) || (ki|ller == |
|00000e20| 4e 6f 6e 65 29 20 29 0d | 0a 09 09 4f 74 68 65 72 |None) ).|...Other|
|00000e30| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000e40| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 2d 3d 20 |onInfo.S|core -= |
|00000e50| 31 3b 0d 0a 09 65 6c 73 | 65 20 69 66 20 28 20 6b |1;...els|e if ( k|
|00000e60| 69 6c 6c 65 72 20 21 3d | 20 4e 6f 6e 65 20 29 0d |iller !=| None ).|
|00000e70| 0a 09 7b 0d 0a 09 09 6b | 69 6c 6c 65 72 2e 6b 69 |..{....k|iller.ki|
|00000e80| 6c 6c 43 6f 75 6e 74 2b | 2b 3b 0d 0a 09 09 69 66 |llCount+|+;....if|
|00000e90| 20 28 20 4b 69 6c 6c 65 | 72 2e 62 49 73 50 6c 61 | ( Kille|r.bIsPla|
|00000ea0| 79 65 72 20 26 26 20 4f | 74 68 65 72 2e 62 49 73 |yer && O|ther.bIs|
|00000eb0| 50 6c 61 79 65 72 20 26 | 26 20 28 4b 69 6c 6c 65 |Player &|& (Kille|
|00000ec0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00000ed0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 21 3d 20 |ionInfo.|Team != |
|00000ee0| 4f 74 68 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |Other.Pl|ayerRepl|
|00000ef0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00000f00| 29 20 29 0d 0a 09 09 09 | 4b 69 6c 6c 65 72 2e 50 |) ).....|Killer.P|
|00000f10| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000f20| 49 6e 66 6f 2e 53 63 6f | 72 65 20 2b 3d 20 31 3b |Info.Sco|re += 1;|
|00000f30| 0d 0a 09 7d 0d 0a 09 69 | 66 20 28 20 62 41 6c 74 |...}...i|f ( bAlt|
|00000f40| 53 63 6f 72 69 6e 67 20 | 26 26 20 28 4b 69 6c 6c |Scoring |&& (Kill|
|00000f50| 65 72 20 21 3d 20 4f 74 | 68 65 72 29 20 26 26 20 |er != Ot|her) && |
|00000f60| 28 6b 69 6c 6c 65 72 20 | 21 3d 20 4e 6f 6e 65 29 |(killer |!= None)|
|00000f70| 20 26 26 20 4f 74 68 65 | 72 2e 62 49 73 50 6c 61 | && Othe|r.bIsPla|
|00000f80| 79 65 72 20 29 0d 0a 09 | 09 4f 74 68 65 72 2e 50 |yer )...|.Other.P|
|00000f90| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000fa0| 49 6e 66 6f 2e 53 63 6f | 72 65 20 2d 3d 20 31 3b |Info.Sco|re -= 1;|
|00000fb0| 0d 0a 0d 0a 09 4f 74 68 | 65 72 2e 44 69 65 43 6f |.....Oth|er.DieCo|
|00000fc0| 75 6e 74 2b 2b 3b 0d 0a | 0d 0a 09 42 61 73 65 4d |unt++;..|...BaseM|
|00000fd0| 75 74 61 74 6f 72 2e 53 | 63 6f 72 65 4b 69 6c 6c |utator.S|coreKill|
|00000fe0| 28 4b 69 6c 6c 65 72 2c | 20 4f 74 68 65 72 29 3b |(Killer,| Other);|
|00000ff0| 0d 0a 7d 09 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |..}.....|function|
|00001000| 20 62 6f 6f 6c 20 53 75 | 63 63 65 73 73 66 75 6c | bool Su|ccessful|
|00001010| 47 61 6d 65 28 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |Game()..|{...loca|
|00001020| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 69 66 20 |l int i;|.....if |
|00001030| 28 52 61 74 65 64 50 6c | 61 79 65 72 2e 50 6c 61 |(RatedPl|ayer.Pla|
|00001040| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001050| 66 6f 2e 54 65 61 6d 20 | 3d 3d 20 41 74 74 61 63 |fo.Team |== Attac|
|00001060| 6b 65 72 2e 54 65 61 6d | 49 6e 64 65 78 29 0d 0a |ker.Team|Index)..|
|00001070| 09 7b 0d 0a 09 09 2f 2f | 20 49 66 20 74 68 65 20 |.{....//| If the |
|00001080| 70 6c 61 79 65 72 20 69 | 73 20 74 68 65 20 61 74 |player i|s the at|
|00001090| 74 61 63 6b 65 72 2e 0d | 0a 09 09 72 65 74 75 72 |tacker..|...retur|
|000010a0| 6e 20 62 53 61 66 65 43 | 72 61 63 6b 65 64 3b 0d |n bSafeC|racked;.|
|000010b0| 0a 09 7d 20 65 6c 73 65 | 20 7b 0d 0a 09 09 2f 2f |..} else| {....//|
|000010c0| 20 49 66 20 74 68 65 20 | 70 6c 61 79 65 72 20 69 | If the |player i|
|000010d0| 73 20 74 68 65 20 64 65 | 66 65 6e 64 65 72 2e 0d |s the de|fender..|
|000010e0| 0a 09 09 72 65 74 75 72 | 6e 20 21 62 53 61 66 65 |...retur|n !bSafe|
|000010f0| 43 72 61 63 6b 65 64 3b | 0d 0a 09 7d 0d 0a 7d 0d |Cracked;|...}..}.|
|00001100| 0a 0d 0a 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |.......f|unction |
|00001110| 62 6f 6f 6c 20 53 65 74 | 45 6e 64 43 61 6d 73 28 |bool Set|EndCams(|
|00001120| 73 74 72 69 6e 67 20 52 | 65 61 73 6f 6e 29 0d 0a |string R|eason)..|
|00001130| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 70 61 77 6e 20 50 |{...loca|l pawn P|
|00001140| 2c 20 58 4e 65 78 74 50 | 61 77 6e 3b 0d 0a 09 6c |, XNextP|awn;...l|
|00001150| 6f 63 61 6c 20 50 6c 61 | 79 65 72 50 61 77 6e 20 |ocal Pla|yerPawn |
|00001160| 50 6c 61 79 65 72 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Player;.|..local |
|00001170| 69 6e 74 20 43 6f 6e 71 | 75 65 72 54 69 6d 65 2c |int Conq|uerTime,|
|00001180| 20 4d 69 6e 75 74 65 73 | 2c 20 53 65 63 6f 6e 64 | Minutes|, Second|
|00001190| 73 3b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |s;...loc|al strin|
|000011a0| 67 20 54 69 6d 65 52 65 | 73 75 6c 74 3b 0d 0a 09 |g TimeRe|sult;...|
|000011b0| 6c 6f 63 61 6c 20 61 63 | 74 6f 72 20 41 3b 0d 0a |local ac|tor A;..|
|000011c0| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 54 69 65 |.local b|ool bTie|
|000011d0| 47 61 6d 65 3b 0d 0a 09 | 6c 6f 63 61 6c 20 52 61 |Game;...|local Ra|
|000011e0| 67 65 53 61 66 65 20 42 | 65 73 74 42 61 73 65 3b |geSafe B|estBase;|
|000011f0| 0d 0a 09 6c 6f 63 61 6c | 20 52 61 67 65 53 61 66 |...local| RageSaf|
|00001200| 65 4f 62 6a 65 63 74 20 | 42 65 73 74 46 6c 61 67 |eObject |BestFlag|
|00001210| 3b 0d 0a 0d 0a 09 47 61 | 6d 65 52 65 70 6c 69 63 |;.....Ga|meReplic|
|00001220| 61 74 69 6f 6e 49 6e 66 | 6f 2e 62 53 74 6f 70 43 |ationInf|o.bStopC|
|00001230| 6f 75 6e 74 44 6f 77 6e | 20 3d 20 74 72 75 65 3b |ountDown| = true;|
|00001240| 0d 0a 09 45 6e 64 54 69 | 6d 65 20 3d 20 4c 65 76 |...EndTi|me = Lev|
|00001250| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 3b |el.TimeS|econds ;|
|00001260| 2f 2f 2b 20 45 6e 64 43 | 61 6d 2e 46 61 64 65 4f |//+ EndC|am.FadeO|
|00001270| 75 74 54 69 6d 65 3b 0d | 0a 09 69 66 20 28 62 4d |utTime;.|..if (bM|
|00001280| 69 73 73 69 6f 6e 47 61 | 6d 65 20 26 26 20 52 61 |issionGa|me && Ra|
|00001290| 67 65 43 6f 6e 73 6f 6c | 65 28 52 61 74 65 64 50 |geConsol|e(RatedP|
|000012a0| 6c 61 79 65 72 2e 50 6c | 61 79 65 72 2e 43 6f 6e |layer.Pl|ayer.Con|
|000012b0| 73 6f 6c 65 29 20 21 3d | 20 4e 6f 6e 65 20 26 26 |sole) !=| None &&|
|000012c0| 20 50 61 72 74 20 3d 3d | 20 32 29 0d 0a 09 7b 0d | Part ==| 2)...{.|
|000012d0| 0a 09 09 52 61 67 65 43 | 6f 6e 73 6f 6c 65 28 52 |...RageC|onsole(R|
|000012e0| 61 74 65 64 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |atedPlay|er.Playe|
|000012f0| 72 2e 43 6f 6e 73 6f 6c | 65 29 2e 4c 65 76 65 6c |r.Consol|e).Level|
|00001300| 43 6f 6d 70 6c 65 74 65 | 64 54 69 6d 65 20 3d 20 |Complete|dTime = |
|00001310| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 69 |GameRepl|icationi|
|00001320| 6e 66 6f 2e 45 6c 61 70 | 73 65 64 54 69 6d 65 20 |nfo.Elap|sedTime |
|00001330| 2b 20 46 69 72 73 74 43 | 61 70 74 75 72 65 54 69 |+ FirstC|aptureTi|
|00001340| 6d 65 3b 0d 0a 09 7d 0d | 0a 09 69 66 20 28 20 62 |me;...}.|..if ( b|
|00001350| 53 61 66 65 43 72 61 63 | 6b 65 64 20 29 0d 0a 09 |SafeCrac|ked )...|
|00001360| 7b 0d 0a 09 09 69 66 20 | 28 20 46 69 72 73 74 43 |{....if |( FirstC|
|00001370| 61 70 74 75 72 65 54 69 | 6d 65 20 3e 20 30 20 29 |aptureTi|me > 0 )|
|00001380| 0d 0a 20 09 09 09 43 6f | 6e 71 75 65 72 54 69 6d |.. ...Co|nquerTim|
|00001390| 65 20 3d 20 46 69 72 73 | 74 43 61 70 74 75 72 65 |e = Firs|tCapture|
|000013a0| 54 69 6d 65 20 2d 20 52 | 65 6d 61 69 6e 69 6e 67 |Time - R|emaining|
|000013b0| 54 69 6d 65 3b 0d 0a 09 | 09 65 6c 73 65 0d 0a 20 |Time;...|.else.. |
|000013c0| 09 09 09 43 6f 6e 71 75 | 65 72 54 69 6d 65 20 3d |...Conqu|erTime =|
|000013d0| 20 54 69 6d 65 4c 69 6d | 69 74 20 2a 20 36 30 20 | TimeLim|it * 60 |
|000013e0| 2d 20 52 65 6d 61 69 6e | 69 6e 67 54 69 6d 65 3b |- Remain|ingTime;|
|000013f0| 0d 0a 09 09 4d 69 6e 75 | 74 65 73 20 3d 20 43 6f |....Minu|tes = Co|
|00001400| 6e 71 75 65 72 54 69 6d | 65 2f 36 30 3b 0d 0a 09 |nquerTim|e/60;...|
|00001410| 09 69 66 20 28 20 4d 69 | 6e 75 74 65 73 20 3e 20 |.if ( Mi|nutes > |
|00001420| 30 20 29 0d 0a 09 09 09 | 54 69 6d 65 52 65 73 75 |0 ).....|TimeResu|
|00001430| 6c 74 20 3d 20 73 74 72 | 69 6e 67 28 4d 69 6e 75 |lt = str|ing(Minu|
|00001440| 74 65 73 29 24 22 3a 22 | 3b 0d 0a 09 09 65 6c 73 |tes)$":"|;....els|
|00001450| 65 0d 0a 09 09 09 54 69 | 6d 65 52 65 73 75 6c 74 |e.....Ti|meResult|
|00001460| 20 3d 20 22 30 3a 22 3b | 0d 0a 09 09 53 65 63 6f | = "0:";|....Seco|
|00001470| 6e 64 73 20 3d 20 43 6f | 6e 71 75 65 72 54 69 6d |nds = Co|nquerTim|
|00001480| 65 20 25 20 36 30 3b 0d | 0a 09 09 69 66 20 28 20 |e % 60;.|...if ( |
|00001490| 53 65 63 6f 6e 64 73 20 | 3d 3d 20 30 20 29 0d 0a |Seconds |== 0 )..|
|000014a0| 09 09 09 54 69 6d 65 52 | 65 73 75 6c 74 20 3d 20 |...TimeR|esult = |
|000014b0| 54 69 6d 65 52 65 73 75 | 6c 74 24 22 30 30 22 3b |TimeResu|lt$"00";|
|000014c0| 0d 0a 09 09 65 6c 73 65 | 20 69 66 20 28 20 53 65 |....else| if ( Se|
|000014d0| 63 6f 6e 64 73 20 3c 20 | 31 30 20 29 0d 0a 09 09 |conds < |10 )....|
|000014e0| 09 54 69 6d 65 52 65 73 | 75 6c 74 20 3d 20 54 69 |.TimeRes|ult = Ti|
|000014f0| 6d 65 52 65 73 75 6c 74 | 24 22 30 22 24 53 65 63 |meResult|$"0"$Sec|
|00001500| 6f 6e 64 73 3b 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |onds;...|.else...|
|00001510| 09 09 54 69 6d 65 52 65 | 73 75 6c 74 20 3d 20 54 |..TimeRe|sult = T|
|00001520| 69 6d 65 52 65 73 75 6c | 74 24 53 65 63 6f 6e 64 |imeResul|t$Second|
|00001530| 73 3b 0d 0a 09 09 47 61 | 6d 65 52 65 70 6c 69 63 |s;....Ga|meReplic|
|00001540| 61 74 69 6f 6e 49 6e 66 | 6f 2e 47 61 6d 65 45 6e |ationInf|o.GameEn|
|00001550| 64 65 64 43 6f 6d 6d 65 | 6e 74 73 20 3d 20 54 65 |dedComme|nts = Te|
|00001560| 61 6d 50 72 65 66 69 78 | 40 41 74 74 61 63 6b 65 |amPrefix|@Attacke|
|00001570| 72 2e 54 65 61 6d 4e 61 | 6d 65 40 47 61 6d 65 45 |r.TeamNa|me@GameE|
|00001580| 6e 64 65 64 4d 65 73 73 | 61 67 65 40 54 69 6d 65 |ndedMess|age@Time|
|00001590| 52 65 73 75 6c 74 3b 0d | 0a 09 09 69 66 20 28 20 |Result;.|...if ( |
|000015a0| 50 61 72 74 20 3d 3d 20 | 32 20 29 0d 0a 09 09 09 |Part == |2 ).....|
|000015b0| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|000015c0| 6e 66 6f 2e 47 61 6d 65 | 45 6e 64 65 64 43 6f 6d |nfo.Game|EndedCom|
|000015d0| 6d 65 6e 74 73 20 3d 20 | 47 61 6d 65 52 65 70 6c |ments = |GameRepl|
|000015e0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 47 61 6d 65 |icationI|nfo.Game|
|000015f0| 45 6e 64 65 64 43 6f 6d | 6d 65 6e 74 73 40 57 69 |EndedCom|ments@Wi|
|00001600| 6e 4d 65 73 73 61 67 65 | 3b 0d 0a 09 09 41 74 74 |nMessage|;....Att|
|00001610| 61 63 6b 65 72 2e 53 63 | 6f 72 65 20 2b 3d 20 31 |acker.Sc|ore += 1|
|00001620| 3b 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 0d 0a 09 7b |;...}...|else...{|
|00001630| 0d 0a 09 09 69 66 20 28 | 20 46 69 72 73 74 43 61 |....if (| FirstCa|
|00001640| 70 74 75 72 65 54 69 6d | 65 20 3e 20 30 20 29 0d |ptureTim|e > 0 ).|
|00001650| 0a 20 09 09 09 43 6f 6e | 71 75 65 72 54 69 6d 65 |. ...Con|querTime|
|00001660| 20 3d 20 46 69 72 73 74 | 43 61 70 74 75 72 65 54 | = First|CaptureT|
|00001670| 69 6d 65 20 2d 20 52 65 | 6d 61 69 6e 69 6e 67 54 |ime - Re|mainingT|
|00001680| 69 6d 65 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 20 09 |ime;....|else.. .|
|00001690| 09 09 43 6f 6e 71 75 65 | 72 54 69 6d 65 20 3d 20 |..Conque|rTime = |
|000016a0| 54 69 6d 65 4c 69 6d 69 | 74 20 2a 20 36 30 20 2d |TimeLimi|t * 60 -|
|000016b0| 20 52 65 6d 61 69 6e 69 | 6e 67 54 69 6d 65 3b 0d | Remaini|ngTime;.|
|000016c0| 0a 09 09 0d 0a 09 09 47 | 61 6d 65 52 65 70 6c 69 |.......G|ameRepli|
|000016d0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 47 61 6d 65 45 |cationIn|fo.GameE|
|000016e0| 6e 64 65 64 43 6f 6d 6d | 65 6e 74 73 20 3d 20 54 |ndedComm|ents = T|
|000016f0| 65 61 6d 50 72 65 66 69 | 78 40 44 65 66 65 6e 64 |eamPrefi|x@Defend|
|00001700| 65 72 2e 54 65 61 6d 4e | 61 6d 65 40 44 65 66 65 |er.TeamN|ame@Defe|
|00001710| 6e 64 65 72 53 75 63 63 | 65 73 73 3b 0d 0a 09 09 |nderSucc|ess;....|
|00001720| 69 66 20 28 20 50 61 72 | 74 20 3d 3d 20 32 20 29 |if ( Par|t == 2 )|
|00001730| 0d 0a 09 09 7b 0d 0a 09 | 09 09 62 54 69 65 47 61 |....{...|..bTieGa|
|00001740| 6d 65 20 3d 20 62 54 69 | 65 50 61 72 74 4f 6e 65 |me = bTi|ePartOne|
|00001750| 3b 0d 0a 09 09 09 69 66 | 20 28 20 62 54 69 65 50 |;.....if| ( bTieP|
|00001760| 61 72 74 4f 6e 65 20 29 | 0d 0a 09 09 09 09 47 61 |artOne )|......Ga|
|00001770| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00001780| 6f 2e 47 61 6d 65 45 6e | 64 65 64 43 6f 6d 6d 65 |o.GameEn|dedComme|
|00001790| 6e 74 73 20 3d 20 47 61 | 6d 65 52 65 70 6c 69 63 |nts = Ga|meReplic|
|000017a0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 47 61 6d 65 45 6e |ationInf|o.GameEn|
|000017b0| 64 65 64 43 6f 6d 6d 65 | 6e 74 73 40 54 69 65 4d |dedComme|nts@TieM|
|000017c0| 65 73 73 61 67 65 3b 0d | 0a 09 09 09 65 6c 73 65 |essage;.|....else|
|000017d0| 0d 0a 09 09 09 09 47 61 | 6d 65 52 65 70 6c 69 63 |......Ga|meReplic|
|000017e0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 47 61 6d 65 45 6e |ationInf|o.GameEn|
|000017f0| 64 65 64 43 6f 6d 6d 65 | 6e 74 73 20 3d 20 47 61 |dedComme|nts = Ga|
|00001800| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00001810| 6f 2e 47 61 6d 65 45 6e | 64 65 64 43 6f 6d 6d 65 |o.GameEn|dedComme|
|00001820| 6e 74 73 40 57 69 6e 4d | 65 73 73 61 67 65 3b 0d |nts@WinM|essage;.|
|00001830| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |...}....|else....|
|00001840| 7b 0d 0a 09 09 09 62 54 | 69 65 50 61 72 74 4f 6e |{.....bT|iePartOn|
|00001850| 65 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 09 47 61 |e = true|;.....Ga|
|00001860| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00001870| 6f 2e 47 61 6d 65 45 6e | 64 65 64 43 6f 6d 6d 65 |o.GameEn|dedComme|
|00001880| 6e 74 73 20 3d 20 47 61 | 6d 65 52 65 70 6c 69 63 |nts = Ga|meReplic|
|00001890| 61 74 69 6f 6e 49 6e 66 | 6f 2e 47 61 6d 65 45 6e |ationInf|o.GameEn|
|000018a0| 64 65 64 43 6f 6d 6d 65 | 6e 74 73 24 22 21 22 3b |dedComme|nts$"!";|
|000018b0| 0d 0a 09 09 7d 0d 0a 09 | 09 44 65 66 65 6e 64 65 |....}...|.Defende|
|000018c0| 72 2e 53 63 6f 72 65 20 | 2b 3d 20 31 3b 0d 0a 09 |r.Score |+= 1;...|
|000018d0| 7d 0d 0a 0d 0a 09 69 66 | 20 28 62 4d 69 73 73 69 |}.....if| (bMissi|
|000018e0| 6f 6e 47 61 6d 65 20 26 | 26 20 52 61 67 65 43 6f |onGame &|& RageCo|
|000018f0| 6e 73 6f 6c 65 28 52 61 | 74 65 64 50 6c 61 79 65 |nsole(Ra|tedPlaye|
|00001900| 72 2e 50 6c 61 79 65 72 | 2e 43 6f 6e 73 6f 6c 65 |r.Player|.Console|
|00001910| 29 20 21 3d 20 4e 6f 6e | 65 20 26 26 20 50 61 72 |) != Non|e && Par|
|00001920| 74 20 3d 3d 20 32 29 0d | 0a 09 7b 0d 0a 09 09 52 |t == 2).|..{....R|
|00001930| 61 67 65 43 6f 6e 73 6f | 6c 65 28 52 61 74 65 64 |ageConso|le(Rated|
|00001940| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 2e 43 6f |Player.P|layer.Co|
|00001950| 6e 73 6f 6c 65 29 2e 4c | 65 76 65 6c 43 6f 6d 70 |nsole).L|evelComp|
|00001960| 6c 65 74 65 64 54 69 6d | 65 20 3d 20 43 6f 6e 71 |letedTim|e = Conq|
|00001970| 75 65 72 54 69 6d 65 20 | 2b 20 46 69 72 73 74 43 |uerTime |+ FirstC|
|00001980| 61 70 74 75 72 65 54 69 | 6d 65 3b 0d 0a 09 7d 0d |aptureTi|me;...}.|
|00001990| 0a 0d 0a 09 2f 2f 20 56 | 69 65 77 20 64 65 66 65 |....// V|iew defe|
|000019a0| 6e 64 69 6e 67 20 74 65 | 61 6d 27 73 20 73 61 66 |nding te|am's saf|
|000019b0| 65 0d 0a 09 46 6f 72 45 | 61 63 68 20 41 6c 6c 41 |e...ForE|ach AllA|
|000019c0| 63 74 6f 72 73 28 63 6c | 61 73 73 27 52 61 67 65 |ctors(cl|ass'Rage|
|000019d0| 53 61 66 65 4f 62 6a 65 | 63 74 27 2c 20 42 65 73 |SafeObje|ct', Bes|
|000019e0| 74 46 6c 61 67 29 0d 0a | 09 09 69 66 20 28 20 42 |tFlag)..|..if ( B|
|000019f0| 65 73 74 46 6c 61 67 2e | 54 65 61 6d 20 3d 3d 20 |estFlag.|Team == |
|00001a00| 44 65 66 65 6e 64 65 72 | 2e 54 65 61 6d 49 6e 64 |Defender|.TeamInd|
|00001a10| 65 78 20 29 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |ex )....|.break;.|
|00001a20| 0a 09 42 65 73 74 42 61 | 73 65 20 3d 20 42 65 73 |..BestBa|se = Bes|
|00001a30| 74 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 3b 0d |tFlag.Ho|meBase;.|
|00001a40| 0a 0d 0a 09 66 6f 72 20 | 28 20 50 3d 4c 65 76 65 |....for |( P=Leve|
|00001a50| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00001a60| 6f 6e 65 3b 20 50 3d 58 | 4e 65 78 74 50 61 77 6e |one; P=X|NextPawn|
|00001a70| 20 29 0d 0a 09 7b 0d 0a | 09 09 58 4e 65 78 74 50 | )...{..|..XNextP|
|00001a80| 61 77 6e 20 3d 20 50 2e | 6e 65 78 74 50 61 77 6e |awn = P.|nextPawn|
|00001a90| 3b 0d 0a 0d 0a 09 09 50 | 6c 61 79 65 72 20 3d 20 |;......P|layer = |
|00001aa0| 50 6c 61 79 65 72 70 61 | 77 6e 28 50 29 3b 0d 0a |Playerpa|wn(P);..|
|00001ab0| 09 09 69 66 20 28 20 50 | 6c 61 79 65 72 20 21 3d |..if ( P|layer !=|
|00001ac0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 7b 0d 0a 09 09 | None ).|...{....|
|00001ad0| 09 69 66 20 28 20 62 53 | 61 66 65 43 72 61 63 6b |.if ( bS|afeCrack|
|00001ae0| 65 64 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ed )....|.{......|
|00001af0| 50 6c 61 79 65 72 2e 62 | 42 65 68 69 6e 64 56 69 |Player.b|BehindVi|
|00001b00| 65 77 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |ew = tru|e;......|
|00001b10| 50 6c 61 79 65 72 2e 56 | 69 65 77 54 61 72 67 65 |Player.V|iewTarge|
|00001b20| 74 20 3d 20 42 65 73 74 | 42 61 73 65 3b 0d 0a 09 |t = Best|Base;...|
|00001b30| 09 09 09 2f 2f 50 6c 61 | 79 65 72 2e 62 46 69 78 |...//Pla|yer.bFix|
|00001b40| 65 64 43 61 6d 65 72 61 | 20 3d 20 74 72 75 65 3b |edCamera| = true;|
|00001b50| 0d 0a 09 09 09 09 69 66 | 20 28 20 21 62 54 69 65 |......if| ( !bTie|
|00001b60| 47 61 6d 65 20 26 26 20 | 50 61 72 74 20 3d 3d 20 |Game && |Part == |
|00001b70| 32 20 29 0d 0a 09 09 09 | 09 09 50 6c 61 79 57 69 |2 ).....|..PlayWi|
|00001b80| 6e 4d 65 73 73 61 67 65 | 28 50 6c 61 79 65 72 2c |nMessage|(Player,|
|00001b90| 20 28 50 6c 61 79 65 72 | 2e 50 6c 61 79 65 72 52 | (Player|.PlayerR|
|00001ba0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00001bb0| 65 61 6d 20 3d 3d 20 41 | 74 74 61 63 6b 65 72 2e |eam == A|ttacker.|
|00001bc0| 54 65 61 6d 49 6e 64 65 | 78 29 29 3b 0d 0a 09 09 |TeamInde|x));....|
|00001bd0| 09 7d 0d 0a 09 09 09 65 | 6c 73 65 0d 0a 09 09 09 |.}.....e|lse.....|
|00001be0| 7b 0d 0a 09 09 09 09 69 | 66 20 28 20 21 62 54 69 |{......i|f ( !bTi|
|00001bf0| 65 47 61 6d 65 20 26 26 | 20 50 61 72 74 20 3d 3d |eGame &&| Part ==|
|00001c00| 20 32 20 29 0d 0a 09 09 | 09 09 09 50 6c 61 79 57 | 2 )....|...PlayW|
|00001c10| 69 6e 4d 65 73 73 61 67 | 65 28 50 6c 61 79 65 72 |inMessag|e(Player|
|00001c20| 2c 20 28 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |, (Playe|r.Player|
|00001c30| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001c40| 54 65 61 6d 20 3d 3d 20 | 44 65 66 65 6e 64 65 72 |Team == |Defender|
|00001c50| 2e 54 65 61 6d 49 6e 64 | 65 78 29 29 3b 0d 0a 09 |.TeamInd|ex));...|
|00001c60| 09 09 09 50 6c 61 79 65 | 72 2e 62 42 65 68 69 6e |...Playe|r.bBehin|
|00001c70| 64 56 69 65 77 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |dView = |true;...|
|00001c80| 09 09 7d 0d 0a 09 09 09 | 50 6c 61 79 65 72 2e 43 |..}.....|Player.C|
|00001c90| 6c 69 65 6e 74 47 61 6d | 65 45 6e 64 65 64 28 29 |lientGam|eEnded()|
|00001ca0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 50 2e 47 6f 74 6f |;....}..|..P.Goto|
|00001cb0| 53 74 61 74 65 28 27 47 | 61 6d 65 45 6e 64 65 64 |State('G|ameEnded|
|00001cc0| 27 29 3b 0d 0a 09 7d 0d | 0a 09 52 61 67 65 47 61 |');...}.|..RageGa|
|00001cd0| 6d 65 45 6e 64 28 29 3b | 0d 0a 09 72 65 74 75 72 |meEnd();|...retur|
|00001ce0| 6e 20 74 72 75 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |n true;.|.}....fu|
|00001cf0| 6e 63 74 69 6f 6e 20 41 | 63 74 6f 72 20 53 65 74 |nction A|ctor Set|
|00001d00| 44 65 66 65 6e 73 65 46 | 6f 72 28 52 42 6f 74 20 |DefenseF|or(RBot |
|00001d10| 61 42 6f 74 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |aBot)..{|...retur|
|00001d20| 6e 20 52 61 67 65 53 61 | 66 65 43 72 61 63 6b 65 |n RageSa|feCracke|
|00001d30| 72 52 65 70 49 6e 66 6f | 28 47 61 6d 65 52 65 70 |rRepInfo|(GameRep|
|00001d40| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 47 6f |lication|Info).Go|
|00001d50| 6c 64 4c 69 73 74 5b 61 | 42 6f 74 2e 50 6c 61 79 |ldList[a|Bot.Play|
|00001d60| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001d70| 6f 2e 54 65 61 6d 5d 2e | 48 6f 6d 65 42 61 73 65 |o.Team].|HomeBase|
|00001d80| 3b 0d 0a 7d 0d 0a 0d 0a | 0d 0a 66 75 6e 63 74 69 |;..}....|..functi|
|00001d90| 6f 6e 20 66 6c 6f 61 74 | 20 47 61 6d 65 54 68 72 |on float| GameThr|
|00001da0| 65 61 74 41 64 64 28 52 | 42 6f 74 20 61 42 6f 74 |eatAdd(R|Bot aBot|
|00001db0| 2c 20 50 61 77 6e 20 4f | 74 68 65 72 29 0d 0a 7b |, Pawn O|ther)..{|
|00001dc0| 0d 0a 09 6c 6f 63 61 6c | 20 52 61 67 65 53 61 66 |...local| RageSaf|
|00001dd0| 65 4f 62 6a 65 63 74 20 | 61 46 6c 61 67 3b 0d 0a |eObject |aFlag;..|
|00001de0| 0d 0a 09 69 66 20 28 20 | 4f 74 68 65 72 2e 50 6c |...if ( |Other.Pl|
|00001df0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001e00| 6e 66 6f 2e 48 61 73 46 | 6c 61 67 20 21 3d 20 4e |nfo.HasF|lag != N|
|00001e10| 6f 6e 65 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |one )...|.return |
|00001e20| 31 30 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 72 65 |10;...el|se....re|
|00001e30| 74 75 72 6e 20 30 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |turn 0;.|.}....fu|
|00001e40| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 46 69 6e 64 |nction b|ool Find|
|00001e50| 50 61 74 68 54 6f 53 61 | 66 65 20 28 20 52 61 67 |PathToSa|fe ( Rag|
|00001e60| 65 42 6f 74 20 61 42 6f | 74 2c 20 52 61 67 65 53 |eBot aBo|t, RageS|
|00001e70| 61 66 65 20 61 42 61 73 | 65 20 29 0d 0a 7b 0d 0a |afe aBas|e )..{..|
|00001e80| 09 50 69 63 6b 50 61 74 | 68 54 6f 42 61 73 65 20 |.PickPat|hToBase |
|00001e90| 28 20 61 42 6f 74 20 29 | 3b 0d 0a 09 61 42 6f 74 |( aBot )|;...aBot|
|00001ea0| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 61 42 |.MoveTar|get = aB|
|00001eb0| 6f 74 2e 46 69 6e 64 50 | 61 74 68 54 6f 77 61 72 |ot.FindP|athTowar|
|00001ec0| 64 56 65 68 28 61 42 61 | 73 65 29 3b 0d 0a 09 72 |dVeh(aBa|se);...r|
|00001ed0| 65 74 75 72 6e 20 28 61 | 42 6f 74 2e 62 4e 6f 43 |eturn (a|Bot.bNoC|
|00001ee0| 6c 65 61 72 53 70 65 63 | 69 61 6c 20 7c 7c 20 28 |learSpec|ial || (|
|00001ef0| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00001f00| 21 3d 20 4e 6f 6e 65 29 | 29 3b 0d 0a 7d 0d 0a 0d |!= None)|);..}...|
|00001f10| 0a 66 75 6e 63 74 69 6f | 6e 20 62 79 74 65 20 41 |.functio|n byte A|
|00001f20| 73 73 65 73 73 42 6f 74 | 41 74 74 69 74 75 64 65 |ssessBot|Attitude|
|00001f30| 20 28 20 52 42 6f 74 20 | 61 42 6f 74 2c 20 50 61 | ( RBot |aBot, Pa|
|00001f40| 77 6e 20 4f 74 68 65 72 | 20 29 0d 0a 7b 0d 0a 09 |wn Other| )..{...|
|00001f50| 69 66 20 28 20 4f 74 68 | 65 72 2e 49 73 41 28 27 |if ( Oth|er.IsA('|
|00001f60| 52 61 67 65 53 61 66 65 | 50 61 77 6e 27 20 29 20 |RageSafe|Pawn' ) |
|00001f70| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 61 42 |)...{...|.if ( aB|
|00001f80| 6f 74 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ot.Playe|rReplica|
|00001f90| 74 69 6f 6e 49 6e 66 6f | 20 21 3d 20 6e 6f 6e 65 |tionInfo| != none|
|00001fa0| 20 26 26 0d 0a 09 09 20 | 20 20 20 20 52 61 67 65 | &&.... | Rage|
|00001fb0| 53 61 66 65 50 61 77 6e | 28 4f 74 68 65 72 29 2e |SafePawn|(Other).|
|00001fc0| 53 61 6d 65 54 65 61 6d | 41 73 20 28 20 61 42 6f |SameTeam|As ( aBo|
|00001fd0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|00001fe0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 29 20 29 |ionInfo.|Team ) )|
|00001ff0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 72 65 74 75 72 6e |....{...|..return|
|00002000| 20 33 3b 09 2f 2f 20 48 | 61 74 65 0d 0a 09 09 7d | 3;.// H|ate....}|
|00002010| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00002020| 09 09 72 65 74 75 72 6e | 20 31 3b 09 2f 2f 20 46 |..return| 1;.// F|
|00002030| 72 69 65 6e 64 6c 79 0d | 0a 09 09 7d 0d 0a 09 7d |riendly.|...}...}|
|00002040| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 09 61 42 6f |...else |if (.aBo|
|00002050| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|00002060| 69 6f 6e 49 6e 66 6f 20 | 21 3d 20 6e 6f 6e 65 20 |ionInfo |!= none |
|00002070| 26 26 20 0d 0a 09 09 09 | 09 4f 74 68 65 72 2e 50 |&& .....|.Other.P|
|00002080| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002090| 49 6e 66 6f 20 21 3d 20 | 6e 6f 6e 65 20 29 0d 0a |Info != |none )..|
|000020a0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 61 42 6f 74 2e |.{....if| ( aBot.|
|000020b0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|000020c0| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 3d 3d 20 4f 74 |nInfo.Te|am == Ot|
|000020d0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|000020e0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 29 |ationInf|o.Team )|
|000020f0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 72 65 74 75 72 6e |....{...|..return|
|00002100| 20 33 3b 20 2f 2f 20 46 | 72 69 65 6e 64 6c 79 0d | 3; // F|riendly.|
|00002110| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 20 69 66 20 |...}....|else if |
|00002120| 28 09 28 4f 74 68 65 72 | 2e 62 49 73 50 6c 61 79 |(.(Other|.bIsPlay|
|00002130| 65 72 20 26 26 20 28 4f | 74 68 65 72 2e 50 6c 61 |er && (O|ther.Pla|
|00002140| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002150| 66 6f 2e 48 61 73 46 6c | 61 67 20 21 3d 20 4e 6f |fo.HasFl|ag != No|
|00002160| 6e 65 29 29 20 7c 7c 0d | 0a 09 09 09 09 09 28 61 |ne)) ||.|......(a|
|00002170| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00002180| 61 74 69 6f 6e 49 6e 66 | 6f 2e 48 61 73 46 6c 61 |ationInf|o.HasFla|
|00002190| 67 20 21 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 09 |g != Non|e) )....|
|000021a0| 7b 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 31 3b 09 |{.....re|turn 1;.|
|000021b0| 2f 2f 20 48 61 74 65 0d | 0a 09 09 7d 0d 0a 09 09 |// Hate.|...}....|
|000021c0| 65 6c 73 65 20 0d 0a 09 | 09 7b 0d 0a 09 09 09 72 |else ...|.{.....r|
|000021d0| 65 74 75 72 6e 20 53 75 | 70 65 72 2e 41 73 73 65 |eturn Su|per.Asse|
|000021e0| 73 73 42 6f 74 41 74 74 | 69 74 75 64 65 28 61 42 |ssBotAtt|itude(aB|
|000021f0| 6f 74 2c 20 4f 74 68 65 | 72 29 3b 0d 0a 09 09 7d |ot, Othe|r);....}|
|00002200| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 0d 0a 09 7b 0d |...}...e|lse...{.|
|00002210| 0a 09 09 72 65 74 75 72 | 6e 20 53 75 70 65 72 2e |...retur|n Super.|
|00002220| 41 73 73 65 73 73 42 6f | 74 41 74 74 69 74 75 64 |AssessBo|tAttitud|
|00002230| 65 28 61 42 6f 74 2c 20 | 4f 74 68 65 72 29 3b 0d |e(aBot, |Other);.|
|00002240| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 2f 2f 3d 3d 3d 3d |..}..}..|..//====|
|00002250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002260| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002270| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002280| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00002290| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 0d 0a 2f |========|=..//../|
|000022a0| 2f 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/=======|========|
|000022b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000022e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 0a |========|======..|
|000022f0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00002300| 46 69 6e 64 53 70 65 63 | 69 61 6c 41 74 74 72 61 |FindSpec|ialAttra|
|00002310| 63 74 69 6f 6e 46 6f 72 | 58 20 28 20 52 42 6f 74 |ctionFor|X ( RBot|
|00002320| 20 49 6e 42 6f 74 20 29 | 0d 0a 7b 0d 0a 09 6c 6f | InBot )|..{...lo|
|00002330| 63 61 6c 20 52 61 67 65 | 53 61 66 65 4f 62 6a 65 |cal Rage|SafeObje|
|00002340| 63 74 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2c |ct Frien|dlyFlag,|
|00002350| 20 45 6e 65 6d 79 46 6c | 61 67 3b 0d 0a 09 6c 6f | EnemyFl|ag;...lo|
|00002360| 63 61 6c 20 52 61 67 65 | 53 61 66 65 20 45 6e 65 |cal Rage|Safe Ene|
|00002370| 6d 79 53 61 66 65 2c 20 | 46 72 69 65 6e 64 6c 79 |mySafe, |Friendly|
|00002380| 53 61 66 65 3b 0d 0a 09 | 6c 6f 63 61 6c 20 62 6f |Safe;...|local bo|
|00002390| 6f 6c 20 62 53 65 65 46 | 6c 61 67 2c 20 62 52 65 |ol bSeeF|lag, bRe|
|000023a0| 61 63 68 48 6f 6d 65 2c | 20 62 4f 72 64 65 72 65 |achHome,| bOrdere|
|000023b0| 64 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |d;...loc|al float|
|000023c0| 20 44 69 73 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 52 | Dist;..|.local R|
|000023d0| 61 67 65 42 6f 74 20 61 | 42 6f 74 3b 0d 0a 09 6c |ageBot a|Bot;...l|
|000023e0| 6f 63 61 6c 20 76 65 63 | 74 6f 72 20 54 65 6d 70 |ocal vec|tor Temp|
|000023f0| 56 3b 0d 0a 09 6c 6f 63 | 61 6c 20 61 63 74 6f 72 |V;...loc|al actor|
|00002400| 20 56 65 68 54 61 72 67 | 65 74 3b 0d 0a 09 6c 6f | VehTarg|et;...lo|
|00002410| 63 61 6c 20 62 6f 6f 6c | 20 62 41 74 74 61 63 6b |cal bool| bAttack|
|00002420| 69 6e 67 2c 20 62 53 65 | 65 53 61 66 65 3b 0d 0a |ing, bSe|eSafe;..|
|00002430| 0d 0a 09 61 42 6f 74 20 | 3d 20 52 61 67 65 42 6f |...aBot |= RageBo|
|00002440| 74 28 49 6e 42 6f 74 29 | 3b 0d 0a 0d 0a 09 69 66 |t(InBot)|;.....if|
|00002450| 20 28 20 61 42 6f 74 2e | 50 6c 61 79 65 72 52 65 | ( aBot.|PlayerRe|
|00002460| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00002470| 61 6d 20 3d 3d 20 30 20 | 29 0d 0a 09 7b 0d 0a 09 |am == 0 |)...{...|
|00002480| 09 46 72 69 65 6e 64 6c | 79 46 6c 61 67 20 3d 20 |.Friendl|yFlag = |
|00002490| 52 61 67 65 53 61 66 65 | 43 72 61 63 6b 65 72 52 |RageSafe|CrackerR|
|000024a0| 65 70 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |epInfo(G|ameRepli|
|000024b0| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 47 6f 6c 64 |cationIn|fo).Gold|
|000024c0| 4c 69 73 74 5b 30 5d 3b | 0d 0a 09 09 45 6e 65 6d |List[0];|....Enem|
|000024d0| 79 46 6c 61 67 20 3d 20 | 52 61 67 65 53 61 66 65 |yFlag = |RageSafe|
|000024e0| 43 72 61 63 6b 65 72 52 | 65 70 49 6e 66 6f 28 47 |CrackerR|epInfo(G|
|000024f0| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00002500| 66 6f 29 2e 47 6f 6c 64 | 4c 69 73 74 5b 31 5d 3b |fo).Gold|List[1];|
|00002510| 0d 0a 09 09 46 72 69 65 | 6e 64 6c 79 53 61 66 65 |....Frie|ndlySafe|
|00002520| 20 3d 20 52 61 67 65 53 | 61 66 65 43 72 61 63 6b | = RageS|afeCrack|
|00002530| 65 72 52 65 70 49 6e 66 | 6f 28 47 61 6d 65 52 65 |erRepInf|o(GameRe|
|00002540| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 29 2e 53 |plicatio|nInfo).S|
|00002550| 61 66 65 4c 69 73 74 5b | 30 5d 3b 0d 0a 09 09 45 |afeList[|0];....E|
|00002560| 6e 65 6d 79 53 61 66 65 | 20 3d 20 52 61 67 65 53 |nemySafe| = RageS|
|00002570| 61 66 65 43 72 61 63 6b | 65 72 52 65 70 49 6e 66 |afeCrack|erRepInf|
|00002580| 6f 28 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |o(GameRe|plicatio|
|00002590| 6e 49 6e 66 6f 29 2e 53 | 61 66 65 4c 69 73 74 5b |nInfo).S|afeList[|
|000025a0| 31 5d 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 0d 0a |1];...}.|..else..|
|000025b0| 09 7b 0d 0a 09 09 46 72 | 69 65 6e 64 6c 79 46 6c |.{....Fr|iendlyFl|
|000025c0| 61 67 20 3d 20 52 61 67 | 65 53 61 66 65 43 72 61 |ag = Rag|eSafeCra|
|000025d0| 63 6b 65 72 52 65 70 49 | 6e 66 6f 28 47 61 6d 65 |ckerRepI|nfo(Game|
|000025e0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|000025f0| 2e 47 6f 6c 64 4c 69 73 | 74 5b 31 5d 3b 0d 0a 09 |.GoldLis|t[1];...|
|00002600| 09 45 6e 65 6d 79 46 6c | 61 67 20 3d 20 52 61 67 |.EnemyFl|ag = Rag|
|00002610| 65 53 61 66 65 43 72 61 | 63 6b 65 72 52 65 70 49 |eSafeCra|ckerRepI|
|00002620| 6e 66 6f 28 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |nfo(Game|Replicat|
|00002630| 69 6f 6e 49 6e 66 6f 29 | 2e 47 6f 6c 64 4c 69 73 |ionInfo)|.GoldLis|
|00002640| 74 5b 30 5d 3b 0d 0a 09 | 09 46 72 69 65 6e 64 6c |t[0];...|.Friendl|
|00002650| 79 53 61 66 65 20 3d 20 | 52 61 67 65 53 61 66 65 |ySafe = |RageSafe|
|00002660| 43 72 61 63 6b 65 72 52 | 65 70 49 6e 66 6f 28 47 |CrackerR|epInfo(G|
|00002670| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00002680| 66 6f 29 2e 53 61 66 65 | 4c 69 73 74 5b 31 5d 3b |fo).Safe|List[1];|
|00002690| 0d 0a 09 09 45 6e 65 6d | 79 53 61 66 65 20 3d 20 |....Enem|ySafe = |
|000026a0| 52 61 67 65 53 61 66 65 | 43 72 61 63 6b 65 72 52 |RageSafe|CrackerR|
|000026b0| 65 70 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |epInfo(G|ameRepli|
|000026c0| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 53 61 66 65 |cationIn|fo).Safe|
|000026d0| 4c 69 73 74 5b 30 5d 3b | 0d 0a 09 7d 0d 0a 0d 0a |List[0];|...}....|
|000026e0| 09 2f 2f 20 49 66 20 61 | 74 74 61 63 6b 69 6e 67 |.// If a|ttacking|
|000026f0| 20 73 61 66 65 20 64 6f | 6e 74 20 64 6f 20 61 6e | safe do|nt do an|
|00002700| 79 74 68 69 6e 67 0d 0a | 09 69 66 20 28 20 61 42 |ything..|.if ( aB|
|00002710| 6f 74 2e 45 6e 65 6d 79 | 20 21 3d 20 6e 6f 6e 65 |ot.Enemy| != none|
|00002720| 20 26 26 20 61 42 6f 74 | 2e 45 6e 65 6d 79 2e 49 | && aBot|.Enemy.I|
|00002730| 73 41 28 27 52 61 67 65 | 53 61 66 65 50 61 77 6e |sA('Rage|SafePawn|
|00002740| 27 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 66 |') )....|return f|
|00002750| 61 6c 73 65 3b 0d 0a 0d | 0a 09 2f 2f 20 49 66 20 |alse;...|..// If |
|00002760| 73 65 74 20 72 75 6e 20 | 61 74 20 65 6e 65 6d 79 |set run |at enemy|
|00002770| 20 62 61 73 65 20 2f 20 | 65 6c 73 65 20 64 65 66 | base / |else def|
|00002780| 65 6e 64 20 6f 75 72 20 | 62 61 73 65 0d 0a 09 62 |end our |base...b|
|00002790| 41 74 74 61 63 6b 69 6e | 67 20 3d 20 61 42 6f 74 |Attackin|g = aBot|
|000027a0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000027b0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 41 |onInfo.T|eam == A|
|000027c0| 74 74 61 63 6b 65 72 2e | 54 65 61 6d 49 6e 64 65 |ttacker.|TeamInde|
|000027d0| 78 3b 0d 0a 09 62 4f 72 | 64 65 72 65 64 20 3d 20 |x;...bOr|dered = |
|000027e0| 61 42 6f 74 2e 62 53 6e | 69 70 69 6e 67 20 7c 7c |aBot.bSn|iping |||
|000027f0| 20 28 61 42 6f 74 2e 4f | 72 64 65 72 73 20 3d 3d | (aBot.O|rders ==|
|00002800| 20 27 46 6f 6c 6c 6f 77 | 27 29 20 7c 7c 20 28 61 | 'Follow|') || (a|
|00002810| 42 6f 74 2e 4f 72 64 65 | 72 73 20 3d 3d 20 27 48 |Bot.Orde|rs == 'H|
|00002820| 6f 6c 64 27 29 3b 0d 0a | 0d 0a 09 2f 2f 20 54 68 |old');..|...// Th|
|00002830| 69 73 20 69 73 20 6f 6e | 6c 79 20 65 76 65 72 20 |is is on|ly ever |
|00002840| 73 65 74 20 66 72 6f 6d | 20 74 68 69 73 20 66 75 |set from| this fu|
|00002850| 6e 63 74 69 6f 6e 0d 0a | 09 61 42 6f 74 2e 46 69 |nction..|.aBot.Fi|
|00002860| 6e 61 6c 54 61 72 67 65 | 74 20 3d 20 6e 6f 6e 65 |nalTarge|t = none|
|00002870| 3b 0d 0a 0d 0a 09 2f 2f | 0d 0a 09 2f 2f 09 43 68 |;.....//|...//.Ch|
|00002880| 61 6e 67 65 20 6f 72 64 | 65 72 73 20 69 66 20 6e |ange ord|ers if n|
|00002890| 65 65 64 65 64 0d 0a 09 | 2f 2f 0d 0a 0d 0a 09 69 |eeded...|//.....i|
|000028a0| 66 20 28 20 62 41 74 74 | 61 63 6b 69 6e 67 20 29 |f ( bAtt|acking )|
|000028b0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 61 42 6f |...{....|if ( aBo|
|000028c0| 74 2e 4f 72 64 65 72 73 | 20 3d 3d 20 27 44 65 66 |t.Orders| == 'Def|
|000028d0| 65 6e 64 27 20 29 0d 0a | 09 09 09 61 42 6f 74 2e |end' )..|...aBot.|
|000028e0| 53 65 74 4f 72 64 65 72 | 73 20 28 20 27 41 74 74 |SetOrder|s ( 'Att|
|000028f0| 61 63 6b 27 2c 20 6e 6f | 6e 65 2c 20 74 72 75 65 |ack', no|ne, true|
|00002900| 20 29 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 2f 2f 0d 0a | );...}.|....//..|
|00002910| 09 2f 2f 09 49 6e 20 76 | 65 68 69 63 6c 65 21 0d |.//.In v|ehicle!.|
|00002920| 0a 09 2f 2f 0d 0a 0d 0a | 09 69 66 20 28 20 61 42 |..//....|.if ( aB|
|00002930| 6f 74 2e 56 65 68 69 63 | 6c 65 49 6e 20 21 3d 20 |ot.Vehic|leIn != |
|00002940| 6e 6f 6e 65 20 29 0d 0a | 09 7b 0d 0a 09 09 2f 2f |none )..|.{....//|
|00002950| 0d 0a 09 09 2f 2f 09 49 | 20 68 61 76 65 20 74 68 |....//.I| have th|
|00002960| 65 20 65 6e 65 6d 79 20 | 66 6c 61 67 0d 0a 09 09 |e enemy |flag....|
|00002970| 2f 2f 0d 0a 09 09 69 66 | 20 28 20 61 42 6f 74 2e |//....if| ( aBot.|
|00002980| 49 73 49 6e 4d 79 43 61 | 72 20 28 20 45 6e 65 6d |IsInMyCa|r ( Enem|
|00002990| 79 46 6c 61 67 2e 48 6f | 6c 64 65 72 20 29 20 29 |yFlag.Ho|lder ) )|
|000029a0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 54 65 6d 70 56 20 |....{...|..TempV |
|000029b0| 3d 20 46 69 6e 64 43 61 | 72 50 61 72 6b 46 6f 72 |= FindCa|rParkFor|
|000029c0| 28 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f |(Friendl|yFlag.Ho|
|000029d0| 6d 65 42 61 73 65 29 2e | 4c 6f 63 61 74 69 6f 6e |meBase).|Location|
|000029e0| 20 2d 20 61 42 6f 74 2e | 4c 6f 63 61 74 69 6f 6e | - aBot.|Location|
|000029f0| 3b 0d 0a 09 09 09 54 65 | 6d 70 56 2e 5a 20 3d 20 |;.....Te|mpV.Z = |
|00002a00| 30 3b 0d 0a 0d 0a 09 09 | 09 69 66 20 28 20 56 53 |0;......|.if ( VS|
|00002a10| 69 7a 65 28 54 65 6d 70 | 56 29 20 3c 20 38 30 30 |ize(Temp|V) < 800|
|00002a20| 20 26 26 20 61 42 6f 74 | 2e 41 63 74 6f 72 52 65 | && aBot|.ActorRe|
|00002a30| 61 63 68 61 62 6c 65 28 | 46 72 69 65 6e 64 6c 79 |achable(|Friendly|
|00002a40| 46 6c 61 67 2e 48 6f 6d | 65 42 61 73 65 29 20 29 |Flag.Hom|eBase) )|
|00002a50| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 2f 2f 20 47 |.....{..|....// G|
|00002a60| 65 74 20 6f 75 74 20 61 | 6e 64 20 72 75 6e 20 74 |et out a|nd run t|
|00002a70| 6f 20 68 6f 6d 65 20 62 | 61 73 65 0d 0a 09 09 09 |o home b|ase.....|
|00002a80| 09 61 42 6f 74 2e 4c 65 | 61 76 65 56 65 68 69 63 |.aBot.Le|aveVehic|
|00002a90| 6c 65 28 29 3b 0d 0a 09 | 09 09 7d 0d 0a 0d 0a 09 |le();...|..}.....|
|00002aa0| 09 09 69 66 20 28 20 61 | 42 6f 74 2e 62 50 61 73 |..if ( a|Bot.bPas|
|00002ab0| 73 65 6e 67 65 72 20 29 | 20 72 65 74 75 72 6e 20 |senger )| return |
|00002ac0| 66 61 6c 73 65 3b 20 2f | 2f 20 50 61 73 73 65 6e |false; /|/ Passen|
|00002ad0| 67 65 72 73 20 64 6f 6e | 74 20 6d 6f 76 65 0d 0a |gers don|t move..|
|00002ae0| 0d 0a 09 09 09 69 66 20 | 28 20 46 69 6e 64 50 61 |.....if |( FindPa|
|00002af0| 74 68 54 6f 53 61 66 65 | 20 28 20 61 42 6f 74 2c |thToSafe| ( aBot,|
|00002b00| 20 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f | Friendl|yFlag.Ho|
|00002b10| 6d 65 42 61 73 65 20 29 | 20 29 0d 0a 09 09 09 7b |meBase )| ).....{|
|00002b20| 0d 0a 09 09 09 09 61 42 | 6f 74 2e 46 69 6e 61 6c |......aB|ot.Final|
|00002b30| 54 61 72 67 65 74 20 3d | 20 46 72 69 65 6e 64 6c |Target =| Friendl|
|00002b40| 79 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 3b 0d |yFlag.Ho|meBase;.|
|00002b50| 0a 09 09 09 09 53 65 74 | 41 74 74 72 61 63 74 69 |.....Set|Attracti|
|00002b60| 6f 6e 53 74 61 74 65 46 | 6f 72 20 28 20 61 42 6f |onStateF|or ( aBo|
|00002b70| 74 20 29 3b 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |t );....|..return|
|00002b80| 20 74 72 75 65 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 | true;..|...}....|
|00002b90| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00002ba0| 09 09 7d 0d 0a 0d 0a 09 | 09 2f 2f 0d 0a 09 09 2f |..}.....|.//..../|
|00002bb0| 2f 20 53 6f 6d 65 6f 6e | 65 20 68 61 73 20 6f 75 |/ Someon|e has ou|
|00002bc0| 72 20 66 6c 61 67 21 0d | 0a 09 09 2f 2f 0d 0a 09 |r flag!.|...//...|
|00002bd0| 09 69 66 20 28 20 61 42 | 6f 74 2e 62 50 61 73 73 |.if ( aB|ot.bPass|
|00002be0| 65 6e 67 65 72 20 26 26 | 20 21 46 72 69 65 6e 64 |enger &&| !Friend|
|00002bf0| 6c 79 46 6c 61 67 2e 62 | 48 6f 6d 65 20 20 29 0d |lyFlag.b|Home ).|
|00002c00| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 46 72 |...{....|.if ( Fr|
|00002c10| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6c 64 65 |iendlyFl|ag.Holde|
|00002c20| 72 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |r != Non|e ).....|
|00002c30| 7b 0d 0a 09 09 09 09 2f | 2f 0d 0a 09 09 09 09 2f |{....../|/....../|
|00002c40| 2f 20 41 74 74 61 63 6b | 20 74 68 65 20 42 41 4d |/ Attack| the BAM|
|00002c50| 20 50 4f 54 21 0d 0a 09 | 09 09 09 2f 2f 0d 0a 09 | POT!...|...//...|
|00002c60| 09 09 09 61 42 6f 74 2e | 53 65 74 45 6e 65 6d 79 |...aBot.|SetEnemy|
|00002c70| 20 28 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e | ( Frien|dlyFlag.|
|00002c80| 48 6f 6c 64 65 72 20 29 | 3b 0d 0a 09 09 09 09 61 |Holder )|;......a|
|00002c90| 42 6f 74 2e 4f 72 64 65 | 72 73 20 3d 20 27 46 72 |Bot.Orde|rs = 'Fr|
|00002ca0| 65 65 6c 61 6e 63 65 27 | 3b 0d 0a 09 09 09 09 61 |eelance'|;......a|
|00002cb0| 42 6f 74 2e 4d 6f 76 65 | 54 61 72 67 65 74 20 3d |Bot.Move|Target =|
|00002cc0| 20 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f | Friendl|yFlag.Ho|
|00002cd0| 6c 64 65 72 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |lder;...|...aBot.|
|00002ce0| 46 69 6e 61 6c 54 61 72 | 67 65 74 20 3d 20 46 72 |FinalTar|get = Fr|
|00002cf0| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6c 64 65 |iendlyFl|ag.Holde|
|00002d00| 72 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 61 42 6f |r;......|if ( aBo|
|00002d10| 74 2e 49 73 49 6e 53 74 | 61 74 65 28 27 41 74 74 |t.IsInSt|ate('Att|
|00002d20| 61 63 6b 69 6e 67 56 65 | 68 69 63 6c 65 27 29 20 |ackingVe|hicle') |
|00002d30| 29 0d 0a 09 09 09 09 09 | 72 65 74 75 72 6e 20 66 |).......|return f|
|00002d40| 61 6c 73 65 3b 0d 0a 09 | 09 09 09 65 6c 73 65 0d |alse;...|...else.|
|00002d50| 0a 09 09 09 09 7b 0d 0a | 09 09 09 09 09 61 42 6f |.....{..|.....aBo|
|00002d60| 74 2e 47 6f 74 6f 53 74 | 61 74 65 28 27 41 74 74 |t.GotoSt|ate('Att|
|00002d70| 61 63 6b 69 6e 67 56 65 | 68 69 63 6c 65 27 29 3b |ackingVe|hicle');|
|00002d80| 0d 0a 09 09 09 09 09 72 | 65 74 75 72 6e 20 74 72 |.......r|eturn tr|
|00002d90| 75 65 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |ue;.....|.}.....}|
|00002da0| 0d 0a 09 09 7d 0d 0a 0d | 0a 09 09 2f 2f 0d 0a 09 |....}...|...//...|
|00002db0| 09 2f 2f 09 47 6f 20 66 | 6f 72 20 65 6e 65 6d 79 |.//.Go f|or enemy|
|00002dc0| 20 66 6c 61 67 0d 0a 09 | 09 2f 2f 0d 0a 09 09 69 | flag...|.//....i|
|00002dd0| 66 20 28 20 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |f ( Enem|yFlag.Ho|
|00002de0| 6c 64 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 26 26 20 |lder == |None && |
|00002df0| 62 41 74 74 61 63 6b 69 | 6e 67 20 29 0d 0a 09 09 |bAttacki|ng )....|
|00002e00| 7b 0d 0a 09 09 09 69 66 | 20 28 20 45 6e 65 6d 79 |{.....if| ( Enemy|
|00002e10| 46 6c 61 67 2e 62 48 6f | 6d 65 20 29 0d 0a 09 09 |Flag.bHo|me )....|
|00002e20| 09 09 54 65 6d 70 56 20 | 3d 20 46 69 6e 64 43 61 |..TempV |= FindCa|
|00002e30| 72 50 61 72 6b 46 6f 72 | 28 45 6e 65 6d 79 46 6c |rParkFor|(EnemyFl|
|00002e40| 61 67 2e 48 6f 6d 65 42 | 61 73 65 29 2e 4c 6f 63 |ag.HomeB|ase).Loc|
|00002e50| 61 74 69 6f 6e 20 2d 20 | 61 42 6f 74 2e 4c 6f 63 |ation - |aBot.Loc|
|00002e60| 61 74 69 6f 6e 3b 0d 0a | 09 09 09 65 6c 73 65 0d |ation;..|...else.|
|00002e70| 0a 09 09 09 09 54 65 6d | 70 56 20 3d 20 45 6e 65 |.....Tem|pV = Ene|
|00002e80| 6d 79 46 6c 61 67 2e 4c | 6f 63 61 74 69 6f 6e 20 |myFlag.L|ocation |
|00002e90| 2d 20 61 42 6f 74 2e 4c | 6f 63 61 74 69 6f 6e 3b |- aBot.L|ocation;|
|00002ea0| 0d 0a 09 09 09 54 65 6d | 70 56 2e 5a 20 3d 20 30 |.....Tem|pV.Z = 0|
|00002eb0| 3b 0d 0a 0d 0a 09 09 09 | 69 66 20 28 20 56 53 69 |;.......|if ( VSi|
|00002ec0| 7a 65 28 54 65 6d 70 56 | 29 20 3c 20 38 30 30 20 |ze(TempV|) < 800 |
|00002ed0| 26 26 20 61 42 6f 74 2e | 41 63 74 6f 72 52 65 61 |&& aBot.|ActorRea|
|00002ee0| 63 68 61 62 6c 65 28 45 | 6e 65 6d 79 46 6c 61 67 |chable(E|nemyFlag|
|00002ef0| 2e 48 6f 6d 65 42 61 73 | 65 29 20 29 0d 0a 09 09 |.HomeBas|e) )....|
|00002f00| 09 7b 0d 0a 09 09 09 09 | 2f 2f 20 47 65 74 20 6f |.{......|// Get o|
|00002f10| 75 74 20 61 6e 64 20 72 | 75 6e 20 74 6f 20 66 6c |ut and r|un to fl|
|00002f20| 61 67 0d 0a 09 09 09 09 | 61 42 6f 74 2e 4c 65 61 |ag......|aBot.Lea|
|00002f30| 76 65 56 65 68 69 63 6c | 65 28 29 3b 0d 0a 09 09 |veVehicl|e();....|
|00002f40| 09 09 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |..aBot.M|oveTarge|
|00002f50| 74 20 3d 20 45 6e 65 6d | 79 46 6c 61 67 3b 0d 0a |t = Enem|yFlag;..|
|00002f60| 09 09 09 09 61 42 6f 74 | 2e 46 69 6e 61 6c 54 61 |....aBot|.FinalTa|
|00002f70| 72 67 65 74 20 3d 20 45 | 6e 65 6d 79 46 6c 61 67 |rget = E|nemyFlag|
|00002f80| 3b 0d 0a 09 09 09 09 53 | 65 74 41 74 74 72 61 63 |;......S|etAttrac|
|00002f90| 74 69 6f 6e 53 74 61 74 | 65 46 6f 72 20 28 20 61 |tionStat|eFor ( a|
|00002fa0| 42 6f 74 20 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |Bot );..|....retu|
|00002fb0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a |rn true;|.....}..|
|00002fc0| 0d 0a 09 09 09 69 66 20 | 28 20 21 61 42 6f 74 2e |.....if |( !aBot.|
|00002fd0| 62 44 72 69 76 65 72 20 | 29 20 72 65 74 75 72 6e |bDriver |) return|
|00002fe0| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 09 09 2f 2f | false;.|......//|
|00002ff0| 20 4f 6e 6c 79 20 64 72 | 69 76 65 72 73 20 62 65 | Only dr|ivers be|
|00003000| 6c 6f 77 20 68 65 72 65 | 0d 0a 0d 0a 09 09 09 69 |low here|.......i|
|00003010| 66 20 28 20 61 42 6f 74 | 2e 41 63 74 6f 72 52 65 |f ( aBot|.ActorRe|
|00003020| 61 63 68 61 62 6c 65 56 | 65 68 28 45 6e 65 6d 79 |achableV|eh(Enemy|
|00003030| 46 6c 61 67 29 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |Flag) ).|....{...|
|00003040| 09 09 09 2f 2f 20 44 72 | 69 76 65 20 64 69 72 65 |...// Dr|ive dire|
|00003050| 63 74 6c 79 20 74 6f 20 | 66 6c 61 67 0d 0a 09 09 |ctly to |flag....|
|00003060| 09 09 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |..aBot.M|oveTarge|
|00003070| 74 20 3d 20 46 69 6e 64 | 43 61 72 50 61 72 6b 46 |t = Find|CarParkF|
|00003080| 6f 72 28 45 6e 65 6d 79 | 46 6c 61 67 29 3b 0d 0a |or(Enemy|Flag);..|
|00003090| 09 09 09 09 61 42 6f 74 | 2e 46 69 6e 61 6c 54 61 |....aBot|.FinalTa|
|000030a0| 72 67 65 74 20 3d 20 45 | 6e 65 6d 79 46 6c 61 67 |rget = E|nemyFlag|
|000030b0| 3b 0d 0a 09 09 09 09 69 | 66 20 28 20 21 61 42 6f |;......i|f ( !aBo|
|000030c0| 74 2e 49 73 49 6e 53 74 | 61 74 65 28 27 47 6f 74 |t.IsInSt|ate('Got|
|000030d0| 6f 50 6c 61 63 65 56 65 | 68 69 63 6c 65 27 29 20 |oPlaceVe|hicle') |
|000030e0| 29 0d 0a 09 09 09 09 09 | 61 42 6f 74 2e 47 6f 74 |).......|aBot.Got|
|000030f0| 6f 53 74 61 74 65 28 27 | 47 6f 74 6f 50 6c 61 63 |oState('|GotoPlac|
|00003100| 65 56 65 68 69 63 6c 65 | 27 29 3b 0d 0a 09 09 09 |eVehicle|');.....|
|00003110| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003120| 09 09 7d 0d 0a 0d 0a 09 | 09 09 2f 2f 0d 0a 09 09 |..}.....|..//....|
|00003130| 09 2f 2f 20 50 61 74 68 | 20 66 69 6e 64 20 74 6f |.// Path| find to|
|00003140| 20 66 6c 61 67 0d 0a 09 | 09 09 2f 2f 0d 0a 09 09 | flag...|..//....|
|00003150| 09 69 66 20 28 20 45 6e | 65 6d 79 46 6c 61 67 2e |.if ( En|emyFlag.|
|00003160| 62 48 6f 6d 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |bHome ).|....{...|
|00003170| 09 09 09 46 69 6e 64 50 | 61 74 68 54 6f 53 61 66 |...FindP|athToSaf|
|00003180| 65 20 28 20 61 42 6f 74 | 2c 20 45 6e 65 6d 79 46 |e ( aBot|, EnemyF|
|00003190| 6c 61 67 2e 48 6f 6d 65 | 42 61 73 65 20 29 3b 20 |lag.Home|Base ); |
|000031a0| 2f 2f 20 53 65 74 73 20 | 4d 6f 76 65 54 61 72 67 |// Sets |MoveTarg|
|000031b0| 65 74 0d 0a 09 09 09 09 | 61 42 6f 74 2e 46 69 6e |et......|aBot.Fin|
|000031c0| 61 6c 54 61 72 67 65 74 | 20 3d 20 45 6e 65 6d 79 |alTarget| = Enemy|
|000031d0| 46 6c 61 67 2e 48 6f 6d | 65 42 61 73 65 3b 0d 0a |Flag.Hom|eBase;..|
|000031e0| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |...}....|.else...|
|000031f0| 09 09 7b 0d 0a 09 09 09 | 09 61 42 6f 74 2e 4d 6f |..{.....|.aBot.Mo|
|00003200| 76 65 54 61 72 67 65 74 | 20 3d 20 61 42 6f 74 2e |veTarget| = aBot.|
|00003210| 46 69 6e 64 50 61 74 68 | 54 6f 77 61 72 64 56 65 |FindPath|TowardVe|
|00003220| 68 28 45 6e 65 6d 79 46 | 6c 61 67 29 3b 0d 0a 09 |h(EnemyF|lag);...|
|00003230| 09 09 09 61 42 6f 74 2e | 46 69 6e 61 6c 54 61 72 |...aBot.|FinalTar|
|00003240| 67 65 74 20 3d 20 45 6e | 65 6d 79 46 6c 61 67 3b |get = En|emyFlag;|
|00003250| 0d 0a 09 09 09 7d 0d 0a | 0d 0a 09 09 09 69 66 20 |.....}..|.....if |
|00003260| 28 20 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |( aBot.M|oveTarge|
|00003270| 74 20 21 3d 20 6e 6f 6e | 65 20 29 0d 0a 09 09 09 |t != non|e ).....|
|00003280| 7b 0d 0a 09 09 09 09 61 | 42 6f 74 2e 46 69 6e 61 |{......a|Bot.Fina|
|00003290| 6c 54 61 72 67 65 74 20 | 3d 20 45 6e 65 6d 79 46 |lTarget |= EnemyF|
|000032a0| 6c 61 67 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 21 |lag;....|..if ( !|
|000032b0| 61 42 6f 74 2e 49 73 49 | 6e 53 74 61 74 65 28 27 |aBot.IsI|nState('|
|000032c0| 47 6f 74 6f 50 6c 61 63 | 65 56 65 68 69 63 6c 65 |GotoPlac|eVehicle|
|000032d0| 27 29 20 29 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |') )....|...aBot.|
|000032e0| 47 6f 74 6f 53 74 61 74 | 65 28 27 47 6f 74 6f 50 |GotoStat|e('GotoP|
|000032f0| 6c 61 63 65 56 65 68 69 | 63 6c 65 27 29 3b 0d 0a |laceVehi|cle');..|
|00003300| 09 09 09 09 61 42 6f 74 | 2e 47 6f 74 6f 50 6c 61 |....aBot|.GotoPla|
|00003310| 63 65 54 61 72 67 65 74 | 20 3d 20 61 42 6f 74 2e |ceTarget| = aBot.|
|00003320| 4d 6f 76 65 54 61 72 67 | 65 74 3b 0d 0a 09 09 09 |MoveTarg|et;.....|
|00003330| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003340| 09 09 7d 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |..}.....|else....|
|00003350| 09 7b 0d 0a 09 09 09 09 | 2f 2f 6c 6f 67 20 28 20 |.{......|//log ( |
|00003360| 22 43 61 6e 74 20 66 69 | 6e 64 20 72 6f 75 74 65 |"Cant fi|nd route|
|00003370| 20 74 6f 77 61 72 64 73 | 20 65 6e 65 6d 79 20 73 | towards| enemy s|
|00003380| 61 66 65 3a 22 40 61 42 | 6f 74 2e 52 6f 75 74 65 |afe:"@aB|ot.Route|
|00003390| 43 61 63 68 65 5b 30 5d | 20 29 3b 0d 0a 0d 0a 09 |Cache[0]| );.....|
|000033a0| 09 09 09 2f 2f 20 47 65 | 74 20 6f 75 74 20 6f 66 |...// Ge|t out of|
|000033b0| 20 74 68 65 20 63 61 72 | 0d 0a 09 09 09 09 61 42 | the car|......aB|
|000033c0| 6f 74 2e 4c 65 61 76 65 | 56 65 68 69 63 6c 65 28 |ot.Leave|Vehicle(|
|000033d0| 29 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 61 42 6f |);......|if ( aBo|
|000033e0| 74 2e 52 6f 75 74 65 43 | 61 63 68 65 5b 30 5d 20 |t.RouteC|ache[0] |
|000033f0| 21 3d 20 6e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 09 |!= none |).......|
|00003400| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00003410| 3d 20 61 42 6f 74 2e 52 | 6f 75 74 65 43 61 63 68 |= aBot.R|outeCach|
|00003420| 65 5b 30 5d 3b 0d 0a 09 | 09 09 09 53 65 74 41 74 |e[0];...|...SetAt|
|00003430| 74 72 61 63 74 69 6f 6e | 53 74 61 74 65 46 6f 72 |traction|StateFor|
|00003440| 28 61 42 6f 74 29 3b 0d | 0a 09 09 09 09 72 65 74 |(aBot);.|.....ret|
|00003450| 75 72 6e 20 28 61 42 6f | 74 2e 4d 6f 76 65 54 61 |urn (aBo|t.MoveTa|
|00003460| 72 67 65 74 20 21 3d 20 | 6e 6f 6e 65 29 3b 0d 0a |rget != |none);..|
|00003470| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |...}....|}....els|
|00003480| 65 0d 0a 09 09 7b 0d 0a | 09 09 09 61 42 6f 74 2e |e....{..|...aBot.|
|00003490| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 61 42 6f |MoveTarg|et = aBo|
|000034a0| 74 2e 46 69 6e 64 50 61 | 74 68 54 6f 77 61 72 64 |t.FindPa|thToward|
|000034b0| 56 65 68 28 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |Veh(Enem|yFlag.Ho|
|000034c0| 6c 64 65 72 29 3b 0d 0a | 09 09 09 69 66 20 28 20 |lder);..|...if ( |
|000034d0| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|000034e0| 21 3d 20 6e 6f 6e 65 20 | 29 0d 0a 09 09 09 7b 0d |!= none |).....{.|
|000034f0| 0a 09 09 09 09 61 42 6f | 74 2e 46 69 6e 61 6c 54 |.....aBo|t.FinalT|
|00003500| 61 72 67 65 74 20 3d 20 | 45 6e 65 6d 79 46 6c 61 |arget = |EnemyFla|
|00003510| 67 2e 48 6f 6c 64 65 72 | 3b 0d 0a 09 09 09 09 53 |g.Holder|;......S|
|00003520| 65 74 41 74 74 72 61 63 | 74 69 6f 6e 53 74 61 74 |etAttrac|tionStat|
|00003530| 65 46 6f 72 28 61 42 6f | 74 29 3b 0d 0a 09 09 09 |eFor(aBo|t);.....|
|00003540| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003550| 09 09 7d 0d 0a 0d 0a 09 | 09 09 2f 2f 20 47 65 74 |..}.....|..// Get|
|00003560| 20 6f 75 74 20 6f 66 20 | 74 68 65 20 63 61 72 0d | out of |the car.|
|00003570| 0a 09 09 09 61 42 6f 74 | 2e 4c 65 61 76 65 56 65 |....aBot|.LeaveVe|
|00003580| 68 69 63 6c 65 28 29 3b | 0d 0a 09 09 09 69 66 20 |hicle();|.....if |
|00003590| 28 20 61 42 6f 74 2e 52 | 6f 75 74 65 43 61 63 68 |( aBot.R|outeCach|
|000035a0| 65 5b 30 5d 20 21 3d 20 | 6e 6f 6e 65 20 29 0d 0a |e[0] != |none )..|
|000035b0| 09 09 09 09 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |....aBot|.MoveTar|
|000035c0| 67 65 74 20 3d 20 61 42 | 6f 74 2e 52 6f 75 74 65 |get = aB|ot.Route|
|000035d0| 43 61 63 68 65 5b 30 5d | 3b 0d 0a 09 09 09 53 65 |Cache[0]|;.....Se|
|000035e0| 74 41 74 74 72 61 63 74 | 69 6f 6e 53 74 61 74 65 |tAttract|ionState|
|000035f0| 46 6f 72 28 61 42 6f 74 | 29 3b 0d 0a 09 09 09 61 |For(aBot|);.....a|
|00003600| 42 6f 74 2e 44 6f 6e 74 | 45 6e 74 65 72 56 65 68 |Bot.Dont|EnterVeh|
|00003610| 69 63 6c 65 54 69 6d 65 | 20 3d 20 32 30 3b 0d 0a |icleTime| = 20;..|
|00003620| 09 09 09 72 65 74 75 72 | 6e 20 28 61 42 6f 74 2e |...retur|n (aBot.|
|00003630| 4d 6f 76 65 54 61 72 67 | 65 74 20 21 3d 20 6e 6f |MoveTarg|et != no|
|00003640| 6e 65 29 3b 0d 0a 09 09 | 7d 0d 0a 0d 0a 09 09 72 |ne);....|}......r|
|00003650| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 09 7d |eturn fa|lse;...}|
|00003660| 0d 0a 0d 0a 09 2f 2f 0d | 0a 09 2f 2f 09 4f 6e 20 |.....//.|..//.On |
|00003670| 66 6f 6f 74 21 0d 0a 09 | 2f 2f 0d 0a 0d 0a 09 2f |foot!...|//...../|
|00003680| 2f 0d 0a 09 2f 2f 09 4f | 75 72 20 66 6c 61 67 20 |/...//.O|ur flag |
|00003690| 69 73 20 6e 6f 74 20 68 | 6f 6d 65 21 21 21 0d 0a |is not h|ome!!!..|
|000036a0| 09 2f 2f 0d 0a 0d 0a 09 | 69 66 20 28 20 21 46 72 |.//.....|if ( !Fr|
|000036b0| 69 65 6e 64 6c 79 46 6c | 61 67 2e 62 48 6f 6d 65 |iendlyFl|ag.bHome|
|000036c0| 20 20 29 0d 0a 09 7b 0d | 0a 09 09 62 53 65 65 46 | )...{.|...bSeeF|
|000036d0| 6c 61 67 20 3d 20 61 42 | 6f 74 2e 4c 69 6e 65 4f |lag = aB|ot.LineO|
|000036e0| 66 53 69 67 68 74 54 6f | 28 46 72 69 65 6e 64 6c |fSightTo|(Friendl|
|000036f0| 79 46 6c 61 67 2e 50 6f | 73 69 74 69 6f 6e 28 29 |yFlag.Po|sition()|
|00003700| 29 3b 0d 0a 09 09 46 72 | 69 65 6e 64 6c 79 46 6c |);....Fr|iendlyFl|
|00003710| 61 67 2e 62 4b 6e 6f 77 | 6e 4c 6f 63 61 74 69 6f |ag.bKnow|nLocatio|
|00003720| 6e 20 3d 20 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |n = Frie|ndlyFlag|
|00003730| 2e 62 4b 6e 6f 77 6e 4c | 6f 63 61 74 69 6f 6e 20 |.bKnownL|ocation |
|00003740| 7c 7c 20 62 53 65 65 46 | 6c 61 67 3b 0d 0a 0d 0a ||| bSeeF|lag;....|
|00003750| 09 09 2f 2f 0d 0a 09 09 | 2f 2f 09 47 6f 20 73 74 |..//....|//.Go st|
|00003760| 72 61 69 67 68 74 20 66 | 6f 72 20 74 68 65 20 66 |raight f|or the f|
|00003770| 6c 61 67 20 69 66 20 6f | 6e 20 74 68 65 20 67 72 |lag if o|n the gr|
|00003780| 6f 75 6e 64 21 0d 0a 09 | 09 2f 2f 0d 0a 09 09 69 |ound!...|.//....i|
|00003790| 66 20 28 20 62 53 65 65 | 46 6c 61 67 20 26 26 20 |f ( bSee|Flag && |
|000037a0| 28 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f |(Friendl|yFlag.Ho|
|000037b0| 6c 64 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 26 26 |lder == |None) &&|
|000037c0| 20 61 42 6f 74 2e 41 63 | 74 6f 72 52 65 61 63 68 | aBot.Ac|torReach|
|000037d0| 61 62 6c 65 28 46 72 69 | 65 6e 64 6c 79 46 6c 61 |able(Fri|endlyFla|
|000037e0| 67 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |g) )....|{.....if|
|000037f0| 20 28 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | ( Level|.TimeSec|
|00003800| 6f 6e 64 73 20 2d 20 4c | 61 73 74 47 6f 74 46 6c |onds - L|astGotFl|
|00003810| 61 67 20 3e 20 36 20 29 | 0d 0a 09 09 09 7b 09 0d |ag > 6 )|.....{..|
|00003820| 0a 09 09 09 09 4c 61 73 | 74 47 6f 74 46 6c 61 67 |.....Las|tGotFlag|
|00003830| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|00003840| 6f 6e 64 73 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |onds;...|...aBot.|
|00003850| 53 65 6e 64 54 65 61 6d | 4d 65 73 73 61 67 65 28 |SendTeam|Message(|
|00003860| 4e 6f 6e 65 2c 20 27 4f | 54 48 45 52 27 2c 20 32 |None, 'O|THER', 2|
|00003870| 39 2c 20 32 30 29 3b 0d | 0a 09 09 09 7d 0d 0a 09 |9, 20);.|....}...|
|00003880| 09 09 61 42 6f 74 2e 46 | 69 6e 61 6c 54 61 72 67 |..aBot.F|inalTarg|
|00003890| 65 74 20 3d 20 46 72 69 | 65 6e 64 6c 79 46 6c 61 |et = Fri|endlyFla|
|000038a0| 67 3b 0d 0a 09 09 09 61 | 42 6f 74 2e 4d 6f 76 65 |g;.....a|Bot.Move|
|000038b0| 54 61 72 67 65 74 20 3d | 20 46 72 69 65 6e 64 6c |Target =| Friendl|
|000038c0| 79 46 6c 61 67 3b 0d 0a | 09 09 09 53 65 74 41 74 |yFlag;..|...SetAt|
|000038d0| 74 72 61 63 74 69 6f 6e | 53 74 61 74 65 46 6f 72 |traction|StateFor|
|000038e0| 28 61 42 6f 74 29 3b 0d | 0a 09 09 09 72 65 74 75 |(aBot);.|....retu|
|000038f0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 7d 0d 0a 0d |rn true;|....}...|
|00003900| 0a 09 09 69 66 20 28 20 | 45 6e 65 6d 79 46 6c 61 |...if ( |EnemyFla|
|00003910| 67 2e 48 6f 6c 64 65 72 | 20 21 3d 20 61 42 6f 74 |g.Holder| != aBot|
|00003920| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 20 28 | )....{.|....if (|
|00003930| 20 62 53 65 65 46 6c 61 | 67 20 26 26 20 28 46 72 | bSeeFla|g && (Fr|
|00003940| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6c 64 65 |iendlyFl|ag.Holde|
|00003950| 72 20 21 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 09 |r != Non|e) )....|
|00003960| 09 7b 09 0d 0a 09 09 09 | 09 2f 2f 0d 0a 09 09 09 |.{......|.//.....|
|00003970| 09 2f 2f 09 41 74 74 61 | 63 6b 20 70 65 72 73 6f |.//.Atta|ck perso|
|00003980| 6e 20 68 6f 6c 64 69 6e | 67 20 66 6c 61 67 0d 0a |n holdin|g flag..|
|00003990| 09 09 09 09 2f 2f 0d 0a | 09 09 09 09 46 72 69 65 |....//..|....Frie|
|000039a0| 6e 64 6c 79 46 6c 61 67 | 2e 62 4b 6e 6f 77 6e 4c |ndlyFlag|.bKnownL|
|000039b0| 6f 63 61 74 69 6f 6e 20 | 3d 20 74 72 75 65 3b 0d |ocation |= true;.|
|000039c0| 0a 09 09 09 09 69 66 20 | 28 20 4c 65 76 65 6c 2e |.....if |( Level.|
|000039d0| 54 69 6d 65 53 65 63 6f | 6e 64 73 20 2d 20 4c 61 |TimeSeco|nds - La|
|000039e0| 73 74 53 65 65 46 6c 61 | 67 43 61 72 72 69 65 72 |stSeeFla|gCarrier|
|000039f0| 20 3e 20 36 20 29 0d 0a | 09 09 09 09 7b 0d 0a 09 | > 6 )..|....{...|
|00003a00| 09 09 09 09 4c 61 73 74 | 53 65 65 46 6c 61 67 43 |....Last|SeeFlagC|
|00003a10| 61 72 72 69 65 72 20 3d | 20 4c 65 76 65 6c 2e 54 |arrier =| Level.T|
|00003a20| 69 6d 65 53 65 63 6f 6e | 64 73 3b 0d 0a 09 09 09 |imeSecon|ds;.....|
|00003a30| 09 09 61 42 6f 74 2e 53 | 65 6e 64 54 65 61 6d 4d |..aBot.S|endTeamM|
|00003a40| 65 73 73 61 67 65 28 4e | 6f 6e 65 2c 20 27 4f 54 |essage(N|one, 'OT|
|00003a50| 48 45 52 27 2c 20 31 32 | 2c 20 31 30 29 3b 0d 0a |HER', 12|, 10);..|
|00003a60| 09 09 09 09 7d 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....}...|...aBot.|
|00003a70| 53 65 74 45 6e 65 6d 79 | 28 46 72 69 65 6e 64 6c |SetEnemy|(Friendl|
|00003a80| 79 46 6c 61 67 2e 48 6f | 6c 64 65 72 29 3b 0d 0a |yFlag.Ho|lder);..|
|00003a90| 09 09 09 09 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |....aBot|.Orders |
|00003aa0| 3d 20 27 46 72 65 65 6c | 61 6e 63 65 27 3b 0d 0a |= 'Freel|ance';..|
|00003ab0| 09 09 09 09 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |....aBot|.MoveTar|
|00003ac0| 67 65 74 20 3d 20 46 72 | 69 65 6e 64 6c 79 46 6c |get = Fr|iendlyFl|
|00003ad0| 61 67 2e 48 6f 6c 64 65 | 72 3b 0d 0a 09 09 09 09 |ag.Holde|r;......|
|00003ae0| 61 42 6f 74 2e 46 69 6e | 61 6c 54 61 72 67 65 74 |aBot.Fin|alTarget|
|00003af0| 20 3d 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e | = Frien|dlyFlag.|
|00003b00| 48 6f 6c 64 65 72 3b 0d | 0a 09 09 09 09 69 66 20 |Holder;.|.....if |
|00003b10| 28 20 61 42 6f 74 2e 49 | 73 49 6e 53 74 61 74 65 |( aBot.I|sInState|
|00003b20| 28 27 41 74 74 61 63 6b | 69 6e 67 27 29 20 29 0d |('Attack|ing') ).|
|00003b30| 0a 09 09 09 09 09 72 65 | 74 75 72 6e 20 66 61 6c |......re|turn fal|
|00003b40| 73 65 3b 0d 0a 09 09 09 | 09 65 6c 73 65 0d 0a 09 |se;.....|.else...|
|00003b50| 09 09 09 7b 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |...{....|...aBot.|
|00003b60| 47 6f 74 6f 53 74 61 74 | 65 28 27 41 74 74 61 63 |GotoStat|e('Attac|
|00003b70| 6b 69 6e 67 27 29 3b 0d | 0a 09 09 09 09 09 72 65 |king');.|......re|
|00003b80| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |turn tru|e;......|
|00003b90| 7d 0d 0a 09 09 09 7d 0d | 0a 09 09 09 65 6c 73 65 |}.....}.|....else|
|00003ba0| 20 69 66 20 28 20 61 42 | 6f 74 2e 4f 72 64 65 72 | if ( aB|ot.Order|
|00003bb0| 73 20 3d 3d 20 27 41 74 | 74 61 63 6b 27 20 29 0d |s == 'At|tack' ).|
|00003bc0| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 2f 2f 0d 0a 09 |....{...|...//...|
|00003bd0| 09 09 09 2f 2f 20 62 72 | 65 61 6b 20 6f 66 66 20 |...// br|eak off |
|00003be0| 61 74 74 61 63 6b 20 6f | 6e 6c 79 20 69 66 20 6e |attack o|nly if n|
|00003bf0| 65 65 64 65 64 0d 0a 09 | 09 09 09 2f 2f 0d 0a 09 |eeded...|...//...|
|00003c00| 09 09 09 69 66 20 28 20 | 62 53 65 65 46 6c 61 67 |...if ( |bSeeFlag|
|00003c10| 20 7c 7c 20 28 45 6e 65 | 6d 79 46 6c 61 67 2e 48 | || (Ene|myFlag.H|
|00003c20| 6f 6c 64 65 72 20 21 3d | 20 4e 6f 6e 65 29 20 0d |older !=| None) .|
|00003c30| 0a 09 09 09 09 09 7c 7c | 20 28 28 28 46 72 69 65 |......||| (((Frie|
|00003c40| 6e 64 6c 79 46 6c 61 67 | 2e 50 6f 73 69 74 69 6f |ndlyFlag|.Positio|
|00003c50| 6e 28 29 2e 52 65 67 69 | 6f 6e 2e 5a 6f 6e 65 20 |n().Regi|on.Zone |
|00003c60| 21 3d 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |!= Frien|dlyFlag.|
|00003c70| 48 6f 6d 65 62 61 73 65 | 2e 52 65 67 69 6f 6e 2e |Homebase|.Region.|
|00003c80| 5a 6f 6e 65 29 20 7c 7c | 20 28 56 53 69 7a 65 28 |Zone) ||| (VSize(|
|00003c90| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 48 6f 6d |Friendly|Flag.Hom|
|00003ca0| 65 62 61 73 65 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |ebase.Lo|cation -|
|00003cb0| 20 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 50 6f | Friendl|yFlag.Po|
|00003cc0| 73 69 74 69 6f 6e 28 29 | 2e 4c 6f 63 61 74 69 6f |sition()|.Locatio|
|00003cd0| 6e 29 20 3e 20 31 30 30 | 30 29 29 20 0d 0a 09 09 |n) > 100|0)) ....|
|00003ce0| 09 09 09 09 26 26 20 28 | 28 61 42 6f 74 2e 52 65 |....&& (|(aBot.Re|
|00003cf0| 67 69 6f 6e 2e 5a 6f 6e | 65 20 21 3d 20 45 6e 65 |gion.Zon|e != Ene|
|00003d00| 6d 79 46 6c 61 67 2e 52 | 65 67 69 6f 6e 2e 5a 6f |myFlag.R|egion.Zo|
|00003d10| 6e 65 29 0d 0a 09 09 09 | 09 09 09 09 7c 7c 20 28 |ne).....|....|| (|
|00003d20| 56 53 69 7a 65 28 61 42 | 6f 74 2e 4c 6f 63 61 74 |VSize(aB|ot.Locat|
|00003d30| 69 6f 6e 20 2d 20 45 6e | 65 6d 79 46 6c 61 67 2e |ion - En|emyFlag.|
|00003d40| 4c 6f 63 61 74 69 6f 6e | 29 20 3e 20 31 36 30 30 |Location|) > 1600|
|00003d50| 29 20 7c 7c 20 28 56 53 | 69 7a 65 28 61 42 6f 74 |) || (VS|ize(aBot|
|00003d60| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 46 72 69 65 |.Locatio|n - Frie|
|00003d70| 6e 64 6c 79 46 6c 61 67 | 2e 50 6f 73 69 74 69 6f |ndlyFlag|.Positio|
|00003d80| 6e 28 29 2e 4c 6f 63 61 | 74 69 6f 6e 29 20 3c 20 |n().Loca|tion) < |
|00003d90| 31 32 30 30 29 29 29 20 | 29 0d 0a 09 09 09 09 7b |1200))) |)......{|
|00003da0| 0d 0a 09 09 09 09 09 46 | 72 69 65 6e 64 6c 79 46 |.......F|riendlyF|
|00003db0| 6c 61 67 2e 62 4b 6e 6f | 77 6e 4c 6f 63 61 74 69 |lag.bKno|wnLocati|
|00003dc0| 6f 6e 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |on = tru|e;......|
|00003dd0| 09 61 42 6f 74 2e 4d 6f | 76 65 54 61 72 67 65 74 |.aBot.Mo|veTarget|
|00003de0| 20 3d 20 61 42 6f 74 2e | 46 69 6e 64 50 61 74 68 | = aBot.|FindPath|
|00003df0| 54 6f 77 61 72 64 28 46 | 72 69 65 6e 64 6c 79 46 |Toward(F|riendlyF|
|00003e00| 6c 61 67 2e 50 6f 73 69 | 74 69 6f 6e 28 29 29 3b |lag.Posi|tion());|
|00003e10| 0d 0a 09 09 09 09 09 61 | 42 6f 74 2e 46 69 6e 61 |.......a|Bot.Fina|
|00003e20| 6c 54 61 72 67 65 74 20 | 3d 20 46 72 69 65 6e 64 |lTarget |= Friend|
|00003e30| 6c 79 46 6c 61 67 3b 0d | 0a 09 09 09 09 09 61 42 |lyFlag;.|......aB|
|00003e40| 6f 74 2e 41 6c 74 65 72 | 6e 61 74 65 50 61 74 68 |ot.Alter|natePath|
|00003e50| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 09 09 09 09 09 69 | = None;|.......i|
|00003e60| 66 20 28 20 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |f ( aBot|.MoveTar|
|00003e70| 67 65 74 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |get != N|one )...|
|00003e80| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 09 53 65 74 |....{...|.....Set|
|00003e90| 41 74 74 72 61 63 74 69 | 6f 6e 53 74 61 74 65 46 |Attracti|onStateF|
|00003ea0| 6f 72 28 61 42 6f 74 29 | 3b 0d 0a 09 09 09 09 09 |or(aBot)|;.......|
|00003eb0| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00003ec0| 09 09 09 09 7d 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |....}...|...}....|
|00003ed0| 09 7d 0d 0a 09 09 09 65 | 6c 73 65 20 69 66 20 28 |.}.....e|lse if (|
|00003ee0| 20 28 21 62 4f 72 64 65 | 72 65 64 20 7c 7c 20 41 | (!bOrde|red || A|
|00003ef0| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 2e |Bot.Orde|rObject.|
|00003f00| 49 73 41 28 27 52 42 6f | 74 27 29 29 20 0d 0a 09 |IsA('RBo|t')) ...|
|00003f10| 09 09 09 26 26 20 28 46 | 72 69 65 6e 64 6c 79 46 |...&& (F|riendlyF|
|00003f20| 6c 61 67 2e 62 4b 6e 6f | 77 6e 4c 6f 63 61 74 69 |lag.bKno|wnLocati|
|00003f30| 6f 6e 20 7c 7c 20 28 46 | 52 61 6e 64 28 29 20 3c |on || (F|Rand() <|
|00003f40| 20 30 2e 31 29 29 20 29 | 20 0d 0a 09 09 09 7b 0d | 0.1)) )| .....{.|
|00003f50| 0a 09 09 09 09 2f 2f 0d | 0a 09 09 09 09 2f 2f 09 |.....//.|.....//.|
|00003f60| 4a 75 73 74 20 67 6f 20 | 66 6f 72 20 74 68 65 20 |Just go |for the |
|00003f70| 66 6c 61 67 20 61 6e 79 | 77 61 79 0d 0a 09 09 09 |flag any|way.....|
|00003f80| 09 2f 2f 0d 0a 09 09 09 | 09 46 72 69 65 6e 64 6c |.//.....|.Friendl|
|00003f90| 79 46 6c 61 67 2e 62 4b | 6e 6f 77 6e 4c 6f 63 61 |yFlag.bK|nownLoca|
|00003fa0| 74 69 6f 6e 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |tion = t|rue;....|
|00003fb0| 09 09 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |..aBot.M|oveTarge|
|00003fc0| 74 20 3d 20 61 42 6f 74 | 2e 46 69 6e 64 50 61 74 |t = aBot|.FindPat|
|00003fd0| 68 54 6f 77 61 72 64 28 | 46 72 69 65 6e 64 6c 79 |hToward(|Friendly|
|00003fe0| 46 6c 61 67 2e 50 6f 73 | 69 74 69 6f 6e 28 29 29 |Flag.Pos|ition())|
|00003ff0| 3b 0d 0a 09 09 09 09 61 | 42 6f 74 2e 46 69 6e 61 |;......a|Bot.Fina|
|00004000| 6c 54 61 72 67 65 74 20 | 3d 20 46 72 69 65 6e 64 |lTarget |= Friend|
|00004010| 6c 79 46 6c 61 67 3b 0d | 0a 09 09 09 09 69 66 20 |lyFlag;.|.....if |
|00004020| 28 20 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |( aBot.M|oveTarge|
|00004030| 74 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |t != Non|e ).....|
|00004040| 09 7b 0d 0a 09 09 09 09 | 09 53 65 74 41 74 74 72 |.{......|.SetAttr|
|00004050| 61 63 74 69 6f 6e 53 74 | 61 74 65 46 6f 72 28 61 |actionSt|ateFor(a|
|00004060| 42 6f 74 29 3b 0d 0a 09 | 09 09 09 09 72 65 74 75 |Bot);...|....retu|
|00004070| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 09 7d 0d |rn true;|......}.|
|00004080| 0a 09 09 09 7d 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |....}...|.}...}..|
|00004090| 0d 0a 09 2f 2f 0d 0a 09 | 2f 2f 09 49 20 68 61 76 |...//...|//.I hav|
|000040a0| 65 20 67 6f 74 20 74 68 | 65 20 65 6e 65 6d 79 20 |e got th|e enemy |
|000040b0| 66 6c 61 67 21 21 21 0d | 0a 09 2f 2f 0d 0a 0d 0a |flag!!!.|..//....|
|000040c0| 09 69 66 20 28 20 45 6e | 65 6d 79 46 6c 61 67 2e |.if ( En|emyFlag.|
|000040d0| 48 6f 6c 64 65 72 20 3d | 3d 20 61 42 6f 74 20 29 |Holder =|= aBot )|
|000040e0| 0d 0a 09 7b 0d 0a 09 09 | 61 42 6f 74 2e 62 43 61 |...{....|aBot.bCa|
|000040f0| 6e 54 72 61 6e 73 6c 6f | 63 61 74 65 20 3d 20 66 |nTranslo|cate = f|
|00004100| 61 6c 73 65 3b 0d 0a 09 | 09 62 52 65 61 63 68 48 |alse;...|.bReachH|
|00004110| 6f 6d 65 20 3d 20 61 42 | 6f 74 2e 41 63 74 6f 72 |ome = aB|ot.Actor|
|00004120| 52 65 61 63 68 61 62 6c | 65 28 46 72 69 65 6e 64 |Reachabl|e(Friend|
|00004130| 6c 79 53 61 66 65 29 3b | 0d 0a 0d 0a 0d 0a 09 09 |lySafe);|........|
|00004140| 69 66 20 28 20 62 52 65 | 61 63 68 48 6f 6d 65 20 |if ( bRe|achHome |
|00004150| 26 26 20 21 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |&& !Frie|ndlyFlag|
|00004160| 2e 62 48 6f 6d 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |.bHome )|....{...|
|00004170| 09 09 61 42 6f 74 2e 53 | 65 6e 64 54 65 61 6d 4d |..aBot.S|endTeamM|
|00004180| 65 73 73 61 67 65 28 4e | 6f 6e 65 2c 20 27 4f 54 |essage(N|one, 'OT|
|00004190| 48 45 52 27 2c 20 32 33 | 2c 20 32 35 29 3b 0d 0a |HER', 23|, 25);..|
|000041a0| 09 09 09 61 42 6f 74 2e | 4f 72 64 65 72 73 20 3d |...aBot.|Orders =|
|000041b0| 20 27 46 72 65 65 6c 61 | 6e 63 65 27 3b 0d 0a 09 | 'Freela|nce';...|
|000041c0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000041d0| 0a 09 09 7d 0d 0a 0d 0a | 09 09 2f 2f 20 46 6c 61 |...}....|..// Fla|
|000041e0| 67 20 69 73 20 68 6f 6d | 65 0d 0a 09 09 69 66 20 |g is hom|e....if |
|000041f0| 28 20 62 52 65 61 63 68 | 48 6f 6d 65 20 26 26 20 |( bReach|Home && |
|00004200| 28 56 53 69 7a 65 28 61 | 42 6f 74 2e 4c 6f 63 61 |(VSize(a|Bot.Loca|
|00004210| 74 69 6f 6e 20 2d 20 46 | 72 69 65 6e 64 6c 79 46 |tion - F|riendlyF|
|00004220| 6c 61 67 2e 4c 6f 63 61 | 74 69 6f 6e 29 20 3c 20 |lag.Loca|tion) < |
|00004230| 34 30 29 20 29 0d 0a 09 | 09 09 46 72 69 65 6e 64 |40) )...|..Friend|
|00004240| 6c 79 46 6c 61 67 2e 54 | 6f 75 63 68 28 61 42 6f |lyFlag.T|ouch(aBo|
|00004250| 74 29 3b 0d 0a 0d 0a 09 | 09 69 66 20 28 20 61 42 |t);.....|.if ( aB|
|00004260| 6f 74 2e 45 6e 65 6d 79 | 20 21 3d 20 4e 6f 6e 65 |ot.Enemy| != None|
|00004270| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 2f 2f 0d 0a | )....{.|....//..|
|00004280| 09 09 09 2f 2f 20 57 65 | 20 68 61 76 65 20 61 6e |...// We| have an|
|00004290| 20 65 6e 65 6d 79 20 73 | 6f 20 66 61 6c 6c 62 61 | enemy s|o fallba|
|000042a0| 63 6b 20 74 6f 20 62 61 | 73 65 0d 0a 09 09 09 2f |ck to ba|se...../|
|000042b0| 2f 0d 0a 09 09 09 69 66 | 20 28 20 61 42 6f 74 2e |/.....if| ( aBot.|
|000042c0| 48 65 61 6c 74 68 20 3c | 20 36 30 20 29 0d 0a 09 |Health <| 60 )...|
|000042d0| 09 09 09 61 42 6f 74 2e | 53 65 6e 64 54 65 61 6d |...aBot.|SendTeam|
|000042e0| 4d 65 73 73 61 67 65 28 | 4e 6f 6e 65 2c 20 27 4f |Message(|None, 'O|
|000042f0| 54 48 45 52 27 2c 20 31 | 33 2c 20 32 35 29 3b 0d |THER', 1|3, 25);.|
|00004300| 0a 0d 0a 09 09 09 69 66 | 20 28 20 21 61 42 6f 74 |......if| ( !aBot|
|00004310| 2e 49 73 49 6e 53 74 61 | 74 65 28 27 46 61 6c 6c |.IsInSta|te('Fall|
|00004320| 42 61 63 6b 27 29 20 29 | 0d 0a 09 09 09 7b 0d 0a |Back') )|.....{..|
|00004330| 09 09 09 09 61 42 6f 74 | 2e 62 4e 6f 43 6c 65 61 |....aBot|.bNoClea|
|00004340| 72 53 70 65 63 69 61 6c | 20 3d 20 74 72 75 65 3b |rSpecial| = true;|
|00004350| 0d 0a 09 09 09 09 61 42 | 6f 74 2e 54 77 65 65 6e |......aB|ot.Tween|
|00004360| 54 6f 52 75 6e 6e 69 6e | 67 28 30 2e 31 29 3b 0d |ToRunnin|g(0.1);.|
|00004370| 0a 09 09 09 09 61 42 6f | 74 2e 47 6f 74 6f 53 74 |.....aBo|t.GotoSt|
|00004380| 61 74 65 28 27 46 61 6c | 6c 62 61 63 6b 27 2c 20 |ate('Fal|lback', |
|00004390| 27 53 70 65 63 69 61 6c | 4e 61 76 69 67 27 29 3b |'Special|Navig');|
|000043a0| 0d 0a 0d 0a 09 09 09 7d | 0d 0a 0d 0a 09 09 09 69 |.......}|.......i|
|000043b0| 66 20 28 20 62 52 65 61 | 63 68 48 6f 6d 65 20 29 |f ( bRea|chHome )|
|000043c0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 61 42 6f 74 |.....{..|....aBot|
|000043d0| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 46 72 |.MoveTar|get = Fr|
|000043e0| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6d 65 42 |iendlyFl|ag.HomeB|
|000043f0| 61 73 65 3b 0d 0a 09 09 | 09 09 61 42 6f 74 2e 46 |ase;....|..aBot.F|
|00004400| 69 6e 61 6c 54 61 72 67 | 65 74 20 3d 20 46 72 69 |inalTarg|et = Fri|
|00004410| 65 6e 64 6c 79 46 6c 61 | 67 2e 48 6f 6d 65 42 61 |endlyFla|g.HomeBa|
|00004420| 73 65 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 09 65 6c |se;.....|}.....el|
|00004430| 73 65 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 61 42 |se.....{|......aB|
|00004440| 6f 74 2e 46 69 6e 61 6c | 54 61 72 67 65 74 20 3d |ot.Final|Target =|
|00004450| 20 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f | Friendl|yFlag.Ho|
|00004460| 6d 65 42 61 73 65 3b 0d | 0a 09 09 09 09 72 65 74 |meBase;.|.....ret|
|00004470| 75 72 6e 20 46 69 6e 64 | 50 61 74 68 54 6f 53 61 |urn Find|PathToSa|
|00004480| 66 65 28 61 42 6f 74 2c | 20 46 72 69 65 6e 64 6c |fe(aBot,| Friendl|
|00004490| 79 53 61 66 65 29 3b 0d | 0a 09 09 09 7d 0d 0a 09 |ySafe);.|....}...|
|000044a0| 09 7d 0d 0a 09 09 65 6c | 73 65 0d 0a 09 09 7b 0d |.}....el|se....{.|
|000044b0| 0a 09 09 09 2f 2f 0d 0a | 09 09 09 2f 2f 09 52 6f |....//..|...//.Ro|
|000044c0| 61 6d 20 74 6f 77 61 72 | 64 73 20 74 68 65 20 62 |am towar|ds the b|
|000044d0| 61 73 65 0d 0a 09 09 09 | 2f 2f 0d 0a 09 09 09 69 |ase.....|//.....i|
|000044e0| 66 20 28 20 21 61 42 6f | 74 2e 49 73 49 6e 53 74 |f ( !aBo|t.IsInSt|
|000044f0| 61 74 65 28 27 52 6f 61 | 6d 69 6e 67 27 29 20 29 |ate('Roa|ming') )|
|00004500| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 61 42 6f 74 |.....{..|....aBot|
|00004510| 2e 62 4e 6f 43 6c 65 61 | 72 53 70 65 63 69 61 6c |.bNoClea|rSpecial|
|00004520| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 09 61 42 | = true;|......aB|
|00004530| 6f 74 2e 54 77 65 65 6e | 54 6f 52 75 6e 6e 69 6e |ot.Tween|ToRunnin|
|00004540| 67 28 30 2e 31 29 3b 0d | 0a 09 09 09 09 61 42 6f |g(0.1);.|.....aBo|
|00004550| 74 2e 47 6f 74 6f 53 74 | 61 74 65 28 27 52 6f 61 |t.GotoSt|ate('Roa|
|00004560| 6d 69 6e 67 27 2c 20 27 | 53 70 65 63 69 61 6c 4e |ming', '|SpecialN|
|00004570| 61 76 69 67 27 29 3b 0d | 0a 0d 0a 09 09 09 7d 0d |avig');.|......}.|
|00004580| 0a 0d 0a 09 09 09 69 66 | 20 28 20 62 52 65 61 63 |......if| ( bReac|
|00004590| 68 48 6f 6d 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |hHome ).|....{...|
|000045a0| 09 09 09 61 42 6f 74 2e | 46 69 6e 61 6c 54 61 72 |...aBot.|FinalTar|
|000045b0| 67 65 74 20 3d 20 46 72 | 69 65 6e 64 6c 79 53 61 |get = Fr|iendlySa|
|000045c0| 66 65 3b 0d 0a 09 09 09 | 09 61 42 6f 74 2e 4d 6f |fe;.....|.aBot.Mo|
|000045d0| 76 65 54 61 72 67 65 74 | 20 3d 20 46 72 69 65 6e |veTarget| = Frien|
|000045e0| 64 6c 79 53 61 66 65 3b | 0d 0a 09 09 09 7d 0d 0a |dlySafe;|.....}..|
|000045f0| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|00004600| 09 09 09 61 42 6f 74 2e | 46 69 6e 61 6c 54 61 72 |...aBot.|FinalTar|
|00004610| 67 65 74 20 3d 20 46 72 | 69 65 6e 64 6c 79 53 61 |get = Fr|iendlySa|
|00004620| 66 65 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |fe;.....|.return |
|00004630| 46 69 6e 64 50 61 74 68 | 54 6f 53 61 66 65 20 28 |FindPath|ToSafe (|
|00004640| 20 61 42 6f 74 2c 20 46 | 72 69 65 6e 64 6c 79 53 | aBot, F|riendlyS|
|00004650| 61 66 65 20 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |afe );..|...}....|
|00004660| 7d 09 09 0d 0a 09 09 72 | 65 74 75 72 6e 20 74 72 |}......r|eturn tr|
|00004670| 75 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 2f 2f 0d 0a |ue;...}.|....//..|
|00004680| 09 2f 2f 09 46 6c 61 67 | 20 69 73 20 73 74 69 6c |.//.Flag| is stil|
|00004690| 6c 20 69 6e 20 74 68 65 | 20 73 61 66 65 21 0d 0a |l in the| safe!..|
|000046a0| 09 2f 2f 0d 0a 0d 0a 09 | 69 66 20 28 20 45 6e 65 |.//.....|if ( Ene|
|000046b0| 6d 79 46 6c 61 67 2e 62 | 48 6f 6d 65 20 26 26 20 |myFlag.b|Home && |
|000046c0| 45 6e 65 6d 79 46 6c 61 | 67 2e 48 6f 6c 64 65 72 |EnemyFla|g.Holder|
|000046d0| 20 3d 3d 20 6e 6f 6e 65 | 20 26 26 20 62 41 74 74 | == none| && bAtt|
|000046e0| 61 63 6b 69 6e 67 20 26 | 26 20 21 45 6e 65 6d 79 |acking &|& !Enemy|
|000046f0| 53 61 66 65 2e 62 4f 70 | 65 6e 20 29 0d 0a 09 7b |Safe.bOp|en )...{|
|00004700| 0d 0a 09 09 44 69 73 74 | 20 3d 20 56 53 69 7a 65 |....Dist| = VSize|
|00004710| 28 61 42 6f 74 2e 4c 6f | 63 61 74 69 6f 6e 2d 45 |(aBot.Lo|cation-E|
|00004720| 6e 65 6d 79 53 61 66 65 | 2e 4c 6f 63 61 74 69 6f |nemySafe|.Locatio|
|00004730| 6e 29 20 2d 20 45 6e 65 | 6d 79 53 61 66 65 2e 43 |n) - Ene|mySafe.C|
|00004740| 6f 6c 6c 69 73 69 6f 6e | 52 61 64 69 75 73 3b 0d |ollision|Radius;.|
|00004750| 0a 09 09 62 53 65 65 53 | 61 66 65 20 3d 20 61 42 |...bSeeS|afe = aB|
|00004760| 6f 74 2e 4c 69 6e 65 4f | 66 53 69 67 68 74 54 6f |ot.LineO|fSightTo|
|00004770| 20 28 45 6e 65 6d 79 53 | 61 66 65 29 3b 0d 0a 0d | (EnemyS|afe);...|
|00004780| 0a 09 09 69 66 20 28 09 | 44 69 73 74 20 3c 20 34 |...if (.|Dist < 4|
|00004790| 30 30 20 26 26 0d 0a 09 | 09 09 09 61 42 6f 74 2e |00 &&...|...aBot.|
|000047a0| 45 6e 65 6d 79 20 3d 3d | 20 45 6e 65 6d 79 53 61 |Enemy ==| EnemySa|
|000047b0| 66 65 2e 53 61 66 65 50 | 61 77 6e 20 26 26 0d 0a |fe.SafeP|awn &&..|
|000047c0| 09 09 09 09 62 53 65 65 | 53 61 66 65 20 29 0d 0a |....bSee|Safe )..|
|000047d0| 09 09 7b 0d 0a 09 09 09 | 2f 2f 20 44 6f 6e 74 20 |..{.....|// Dont |
|000047e0| 64 6f 20 61 6e 79 74 68 | 69 6e 67 2e 0d 0a 09 09 |do anyth|ing.....|
|000047f0| 09 61 42 6f 74 2e 4d 6f | 76 65 54 69 6d 65 72 20 |.aBot.Mo|veTimer |
|00004800| 3d 20 2d 31 2e 30 3b 0d | 0a 09 09 09 72 65 74 75 |= -1.0;.|....retu|
|00004810| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 7d 0d 0a 09 |rn true;|....}...|
|00004820| 09 65 6c 73 65 20 69 66 | 20 28 09 44 69 73 74 20 |.else if| (.Dist |
|00004830| 3c 20 35 30 30 20 26 26 | 20 0d 0a 09 09 09 09 09 |< 500 &&| .......|
|00004840| 61 42 6f 74 2e 45 6e 65 | 6d 79 20 21 3d 20 45 6e |aBot.Ene|my != En|
|00004850| 65 6d 79 53 61 66 65 2e | 53 61 66 65 50 61 77 6e |emySafe.|SafePawn|
|00004860| 20 26 26 0d 0a 09 09 09 | 09 09 62 53 65 65 53 61 | &&.....|..bSeeSa|
|00004870| 66 65 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 2f 2f |fe )....|{.....//|
|00004880| 0d 0a 09 09 09 2f 2f 20 | 53 74 61 72 74 20 73 68 |.....// |Start sh|
|00004890| 6f 6f 74 69 6e 67 20 74 | 68 65 20 73 61 66 65 20 |ooting t|he safe |
|000048a0| 5b 53 61 66 65 50 61 77 | 6e 5d 0d 0a 09 09 09 2f |[SafePaw|n]...../|
|000048b0| 2f 0d 0a 09 09 09 61 42 | 6f 74 2e 53 65 74 45 6e |/.....aB|ot.SetEn|
|000048c0| 65 6d 79 20 28 20 45 6e | 65 6d 79 53 61 66 65 2e |emy ( En|emySafe.|
|000048d0| 53 61 66 65 50 61 77 6e | 20 29 3b 0d 0a 09 09 09 |SafePawn| );.....|
|000048e0| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|000048f0| 3d 20 45 6e 65 6d 79 53 | 61 66 65 2e 53 61 66 65 |= EnemyS|afe.Safe|
|00004900| 50 61 77 6e 3b 0d 0a 09 | 09 09 61 42 6f 74 2e 46 |Pawn;...|..aBot.F|
|00004910| 69 6e 61 6c 54 61 72 67 | 65 74 20 3d 20 45 6e 65 |inalTarg|et = Ene|
|00004920| 6d 79 53 61 66 65 2e 53 | 61 66 65 50 61 77 6e 3b |mySafe.S|afePawn;|
|00004930| 0d 0a 09 09 09 61 42 6f | 74 2e 4d 6f 76 65 54 69 |.....aBo|t.MoveTi|
|00004940| 6d 65 72 20 3d 20 2d 31 | 2e 30 3b 0d 0a 09 09 09 |mer = -1|.0;.....|
|00004950| 69 66 20 28 20 61 42 6f | 74 2e 49 73 49 6e 53 74 |if ( aBo|t.IsInSt|
|00004960| 61 74 65 28 27 52 61 6e | 67 65 64 41 74 74 61 63 |ate('Ran|gedAttac|
|00004970| 6b 27 29 20 29 0d 0a 09 | 09 09 09 72 65 74 75 72 |k') )...|...retur|
|00004980| 6e 20 66 61 6c 73 65 3b | 0d 0a 09 09 09 65 6c 73 |n false;|.....els|
|00004990| 65 0d 0a 09 09 09 09 61 | 42 6f 74 2e 47 6f 74 6f |e......a|Bot.Goto|
|000049a0| 53 74 61 74 65 28 27 52 | 61 6e 67 65 64 41 74 74 |State('R|angedAtt|
|000049b0| 61 63 6b 27 29 3b 0d 0a | 09 09 09 72 65 74 75 72 |ack');..|...retur|
|000049c0| 6e 20 74 72 75 65 3b 0d | 0a 09 09 7d 0d 0a 09 09 |n true;.|...}....|
|000049d0| 65 6c 73 65 20 69 66 20 | 28 09 61 42 6f 74 2e 4f |else if |(.aBot.O|
|000049e0| 72 64 65 72 73 20 3d 3d | 20 27 41 74 74 61 63 6b |rders ==| 'Attack|
|000049f0| 27 20 7c 7c 0d 0a 09 09 | 09 09 09 28 09 61 42 6f |' ||....|...(.aBo|
|00004a00| 74 2e 4f 72 64 65 72 73 | 20 3d 3d 20 27 46 6f 6c |t.Orders| == 'Fol|
|00004a10| 6c 6f 77 27 20 26 26 0d | 0a 09 09 09 09 09 09 61 |low' &&.|.......a|
|00004a20| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 2e |Bot.Orde|rObject.|
|00004a30| 49 73 41 28 27 52 42 6f | 74 27 29 20 26 26 20 0d |IsA('RBo|t') && .|
|00004a40| 0a 09 09 09 09 09 09 50 | 61 77 6e 28 61 42 6f 74 |.......P|awn(aBot|
|00004a50| 2e 4f 72 64 65 72 4f 62 | 6a 65 63 74 29 2e 48 65 |.OrderOb|ject).He|
|00004a60| 61 6c 74 68 20 3c 3d 20 | 30 20 20 29 29 0d 0a 09 |alth <= |0 ))...|
|00004a70| 09 7b 0d 0a 09 09 09 61 | 42 6f 74 2e 46 69 6e 61 |.{.....a|Bot.Fina|
|00004a80| 6c 54 61 72 67 65 74 20 | 3d 20 45 6e 65 6d 79 53 |lTarget |= EnemyS|
|00004a90| 61 66 65 3b 0d 0a 09 09 | 09 46 69 6e 64 50 61 74 |afe;....|.FindPat|
|00004aa0| 68 54 6f 53 61 66 65 20 | 28 20 61 42 6f 74 2c 20 |hToSafe |( aBot, |
|00004ab0| 45 6e 65 6d 79 53 61 66 | 65 20 29 3b 0d 0a 09 09 |EnemySaf|e );....|
|00004ac0| 09 53 65 74 41 74 74 72 | 61 63 74 69 6f 6e 53 74 |.SetAttr|actionSt|
|00004ad0| 61 74 65 46 6f 72 28 61 | 42 6f 74 29 3b 0d 0a 09 |ateFor(a|Bot);...|
|00004ae0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00004af0| 09 09 7d 0d 0a 09 7d 0d | 0a 0d 0a 09 2f 2f 0d 0a |..}...}.|....//..|
|00004b00| 09 2f 2f 09 45 6e 65 6d | 79 20 66 6c 61 67 20 69 |.//.Enem|y flag i|
|00004b10| 73 20 6c 6f 6f 73 65 20 | 73 6f 6d 65 77 68 65 72 |s loose |somewher|
|00004b20| 65 0d 0a 09 2f 2f 0d 0a | 0d 0a 09 69 66 20 28 20 |e...//..|...if ( |
|00004b30| 45 6e 65 6d 79 46 6c 61 | 67 2e 48 6f 6c 64 65 72 |EnemyFla|g.Holder|
|00004b40| 20 3d 3d 20 4e 6f 6e 65 | 20 26 26 20 62 41 74 74 | == None| && bAtt|
|00004b50| 61 63 6b 69 6e 67 20 29 | 0d 0a 09 7b 0d 0a 09 09 |acking )|...{....|
|00004b60| 69 66 20 28 20 61 42 6f | 74 2e 41 63 74 6f 72 52 |if ( aBo|t.ActorR|
|00004b70| 65 61 63 68 61 62 6c 65 | 28 45 6e 65 6d 79 46 6c |eachable|(EnemyFl|
|00004b80| 61 67 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 2f |ag) )...|.{...../|
|00004b90| 2f 0d 0a 09 09 09 2f 2f | 20 47 6f 20 66 6f 72 20 |/.....//| Go for |
|00004ba0| 74 68 65 20 66 6c 61 67 | 20 69 66 20 77 65 20 63 |the flag| if we c|
|00004bb0| 61 6e 20 73 69 6d 70 6c | 79 20 72 65 61 63 68 20 |an simpl|y reach |
|00004bc0| 69 74 0d 0a 09 09 09 2f | 2f 0d 0a 09 09 09 61 42 |it...../|/.....aB|
|00004bd0| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|00004be0| 45 6e 65 6d 79 46 6c 61 | 67 3b 0d 0a 09 09 09 61 |EnemyFla|g;.....a|
|00004bf0| 42 6f 74 2e 46 69 6e 61 | 6c 54 61 72 67 65 74 20 |Bot.Fina|lTarget |
|00004c00| 3d 20 45 6e 65 6d 79 46 | 6c 61 67 3b 0d 0a 09 09 |= EnemyF|lag;....|
|00004c10| 09 53 65 74 41 74 74 72 | 61 63 74 69 6f 6e 53 74 |.SetAttr|actionSt|
|00004c20| 61 74 65 46 6f 72 28 61 | 42 6f 74 29 3b 0d 0a 09 |ateFor(a|Bot);...|
|00004c30| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00004c40| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 20 69 66 20 28 |..}....e|lse if (|
|00004c50| 20 28 61 42 6f 74 2e 4f | 72 64 65 72 73 20 3d 3d | (aBot.O|rders ==|
|00004c60| 20 27 41 74 74 61 63 6b | 27 29 0d 0a 09 09 09 09 | 'Attack|')......|
|00004c70| 20 7c 7c 20 28 28 61 42 | 6f 74 2e 4f 72 64 65 72 | || ((aB|ot.Order|
|00004c80| 73 20 3d 3d 20 27 46 6f | 6c 6c 6f 77 27 29 20 26 |s == 'Fo|llow') &|
|00004c90| 26 20 61 42 6f 74 2e 4f | 72 64 65 72 4f 62 6a 65 |& aBot.O|rderObje|
|00004ca0| 63 74 2e 49 73 41 28 27 | 52 42 6f 74 27 29 0d 0a |ct.IsA('|RBot')..|
|00004cb0| 09 09 09 09 09 26 26 20 | 28 28 50 61 77 6e 28 61 |.....&& |((Pawn(a|
|00004cc0| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 29 |Bot.Orde|rObject)|
|00004cd0| 2e 48 65 61 6c 74 68 20 | 3c 3d 20 30 29 20 0d 0a |.Health |<= 0) ..|
|00004ce0| 09 09 09 09 09 09 20 7c | 7c 20 28 28 45 6e 65 6d |...... ||| ((Enem|
|00004cf0| 79 46 6c 61 67 2e 52 65 | 67 69 6f 6e 2e 5a 6f 6e |yFlag.Re|gion.Zon|
|00004d00| 65 20 3d 3d 20 61 42 6f | 74 2e 52 65 67 69 6f 6e |e == aBo|t.Region|
|00004d10| 2e 5a 6f 6e 65 29 20 26 | 26 20 28 56 53 69 7a 65 |.Zone) &|& (VSize|
|00004d20| 28 45 6e 65 6d 79 46 6c | 61 67 2e 4c 6f 63 61 74 |(EnemyFl|ag.Locat|
|00004d30| 69 6f 6e 20 2d 20 61 42 | 6f 74 2e 4c 6f 63 61 74 |ion - aB|ot.Locat|
|00004d40| 69 6f 6e 29 20 3c 20 32 | 30 30 30 29 29 29 29 20 |ion) < 2|000)))) |
|00004d50| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 2f 2f 0d 0a 09 |)....{..|...//...|
|00004d60| 09 09 2f 2f 20 4e 65 61 | 72 20 65 6e 65 6d 79 20 |..// Nea|r enemy |
|00004d70| 66 6c 61 67 0d 0a 09 09 | 09 2f 2f 0d 0a 09 09 09 |flag....|.//.....|
|00004d80| 69 66 20 28 20 21 61 42 | 6f 74 2e 62 4b 61 6d 69 |if ( !aB|ot.bKami|
|00004d90| 6b 61 7a 65 0d 0a 09 09 | 09 09 26 26 20 28 20 28 |kaze....|..&& ( (|
|00004da0| 61 42 6f 74 2e 57 65 61 | 70 6f 6e 20 3d 3d 20 4e |aBot.Wea|pon == N|
|00004db0| 6f 6e 65 29 20 7c 7c 20 | 28 61 42 6f 74 2e 57 65 |one) || |(aBot.We|
|00004dc0| 61 70 6f 6e 2e 41 49 52 | 61 74 69 6e 67 20 3c 20 |apon.AIR|ating < |
|00004dd0| 30 2e 34 29 29 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |0.4)) ).|....{...|
|00004de0| 09 09 09 61 42 6f 74 2e | 62 4b 61 6d 69 6b 61 7a |...aBot.|bKamikaz|
|00004df0| 65 20 3d 20 28 20 46 52 | 61 6e 64 28 29 20 3c 20 |e = ( FR|and() < |
|00004e00| 30 2e 31 20 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |0.1 );..|....retu|
|00004e10| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 09 09 09 7d 0d |rn false|;.....}.|
|00004e20| 0a 0d 0a 09 09 09 69 66 | 20 28 20 28 61 42 6f 74 |......if| ( (aBot|
|00004e30| 2e 45 6e 65 6d 79 20 21 | 3d 20 4e 6f 6e 65 29 20 |.Enemy !|= None) |
|00004e40| 0d 0a 09 09 09 09 26 26 | 20 28 61 42 6f 74 2e 45 |......&&| (aBot.E|
|00004e50| 6e 65 6d 79 2e 49 73 41 | 28 27 50 6c 61 79 65 72 |nemy.IsA|('Player|
|00004e60| 50 61 77 6e 27 29 20 7c | 7c 20 28 61 42 6f 74 2e |Pawn') ||| (aBot.|
|00004e70| 45 6e 65 6d 79 2e 49 73 | 41 28 27 52 42 6f 74 27 |Enemy.Is|A('RBot'|
|00004e80| 29 20 26 26 20 28 52 42 | 6f 74 28 61 42 6f 74 2e |) && (RB|ot(aBot.|
|00004e90| 45 6e 65 6d 79 29 2e 4f | 72 64 65 72 73 20 3d 3d |Enemy).O|rders ==|
|00004ea0| 20 27 41 74 74 61 63 6b | 27 29 29 29 0d 0a 09 09 | 'Attack|')))....|
|00004eb0| 09 09 26 26 20 28 28 28 | 61 42 6f 74 2e 45 6e 65 |..&& (((|aBot.Ene|
|00004ec0| 6d 79 2e 52 65 67 69 6f | 6e 2e 5a 6f 6e 65 20 3d |my.Regio|n.Zone =|
|00004ed0| 3d 20 46 72 69 65 6e 64 | 6c 79 46 6c 61 67 2e 48 |= Friend|lyFlag.H|
|00004ee0| 6f 6d 65 42 61 73 65 2e | 52 65 67 69 6f 6e 2e 5a |omeBase.|Region.Z|
|00004ef0| 6f 6e 65 29 20 26 26 20 | 28 45 6e 65 6d 79 46 6c |one) && |(EnemyFl|
|00004f00| 61 67 2e 48 6f 6d 65 42 | 61 73 65 2e 52 65 67 69 |ag.HomeB|ase.Regi|
|00004f10| 6f 6e 2e 5a 6f 6e 65 20 | 21 3d 20 46 72 69 65 6e |on.Zone |!= Frien|
|00004f20| 64 6c 79 46 6c 61 67 2e | 48 6f 6d 65 42 61 73 65 |dlyFlag.|HomeBase|
|00004f30| 2e 52 65 67 69 6f 6e 2e | 5a 6f 6e 65 29 29 20 0d |.Region.|Zone)) .|
|00004f40| 0a 09 09 09 09 09 7c 7c | 20 28 56 53 69 7a 65 28 |......||| (VSize(|
|00004f50| 61 42 6f 74 2e 45 6e 65 | 6d 79 2e 4c 6f 63 61 74 |aBot.Ene|my.Locat|
|00004f60| 69 6f 6e 20 2d 20 46 72 | 69 65 6e 64 6c 79 46 6c |ion - Fr|iendlyFl|
|00004f70| 61 67 2e 48 6f 6d 65 42 | 61 73 65 2e 4c 6f 63 61 |ag.HomeB|ase.Loca|
|00004f80| 74 69 6f 6e 29 20 3c 20 | 30 2e 36 20 2a 20 56 53 |tion) < |0.6 * VS|
|00004f90| 69 7a 65 28 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |ize(aBot|.Locatio|
|00004fa0| 6e 20 2d 20 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |n - Enem|yFlag.Ho|
|00004fb0| 6d 65 42 61 73 65 2e 4c | 6f 63 61 74 69 6f 6e 29 |meBase.L|ocation)|
|00004fc0| 29 29 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |)) )....|..{.....|
|00004fd0| 09 09 61 42 6f 74 2e 53 | 65 6e 64 54 65 61 6d 4d |..aBot.S|endTeamM|
|00004fe0| 65 73 73 61 67 65 28 4e | 6f 6e 65 2c 20 27 4f 54 |essage(N|one, 'OT|
|00004ff0| 48 45 52 27 2c 20 31 34 | 2c 20 31 35 29 3b 20 2f |HER', 14|, 15); /|
|00005000| 2f 22 49 6e 63 6f 6d 69 | 6e 67 21 22 0d 0a 09 09 |/"Incomi|ng!"....|
|00005010| 09 09 09 61 42 6f 74 2e | 4f 72 64 65 72 73 20 3d |...aBot.|Orders =|
|00005020| 20 27 46 72 65 65 6c 61 | 6e 63 65 27 3b 0d 0a 09 | 'Freela|nce';...|
|00005030| 09 09 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|00005040| 3b 0d 0a 09 09 09 09 7d | 0d 0a 0d 0a 09 09 09 69 |;......}|.......i|
|00005050| 66 20 28 20 45 6e 65 6d | 79 46 6c 61 67 2e 62 48 |f ( Enem|yFlag.bH|
|00005060| 6f 6d 65 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |ome )...|..{.....|
|00005070| 09 61 42 6f 74 2e 46 69 | 6e 61 6c 54 61 72 67 65 |.aBot.Fi|nalTarge|
|00005080| 74 20 3d 20 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |t = Enem|yFlag.Ho|
|00005090| 6d 65 42 61 73 65 3b 0d | 0a 09 09 09 09 46 69 6e |meBase;.|.....Fin|
|000050a0| 64 50 61 74 68 54 6f 53 | 61 66 65 28 61 42 6f 74 |dPathToS|afe(aBot|
|000050b0| 2c 20 45 6e 65 6d 79 46 | 6c 61 67 2e 48 6f 6d 65 |, EnemyF|lag.Home|
|000050c0| 42 61 73 65 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |Base);..|...}....|
|000050d0| 09 65 6c 73 65 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |.else...|..{.....|
|000050e0| 09 61 42 6f 74 2e 46 69 | 6e 61 6c 54 61 72 67 65 |.aBot.Fi|nalTarge|
|000050f0| 74 20 3d 20 45 6e 65 6d | 79 46 6c 61 67 3b 0d 0a |t = Enem|yFlag;..|
|00005100| 09 09 09 09 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |....aBot|.MoveTar|
|00005110| 67 65 74 20 3d 20 61 42 | 6f 74 2e 46 69 6e 64 50 |get = aB|ot.FindP|
|00005120| 61 74 68 54 6f 77 61 72 | 64 28 45 6e 65 6d 79 46 |athTowar|d(EnemyF|
|00005130| 6c 61 67 29 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |lag);...|..}.....|
|00005140| 69 66 20 28 20 61 42 6f | 74 2e 4d 6f 76 65 54 61 |if ( aBo|t.MoveTa|
|00005150| 72 67 65 74 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |rget != |None )..|
|00005160| 09 09 09 7b 0d 0a 09 09 | 09 09 53 65 74 41 74 74 |...{....|..SetAtt|
|00005170| 72 61 63 74 69 6f 6e 53 | 74 61 74 65 46 6f 72 28 |ractionS|tateFor(|
|00005180| 61 42 6f 74 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |aBot);..|....retu|
|00005190| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a |rn true;|.....}..|
|000051a0| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|000051b0| 09 09 09 69 66 20 28 20 | 61 42 6f 74 2e 62 56 65 |...if ( |aBot.bVe|
|000051c0| 72 62 6f 73 65 20 29 0d | 0a 09 09 09 09 09 6c 6f |rbose ).|......lo|
|000051d0| 67 28 61 42 6f 74 24 22 | 20 6e 6f 20 70 61 74 68 |g(aBot$"| no path|
|000051e0| 20 74 6f 20 66 6c 61 67 | 22 29 3b 0d 0a 09 09 09 | to flag|");.....|
|000051f0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00005200| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 09 72 65 74 |...}....|}....ret|
|00005210| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 7d 0d 0a |urn fals|e;...}..|
|00005220| 09 65 6c 73 65 20 69 66 | 20 28 20 62 41 74 74 61 |.else if| ( bAtta|
|00005230| 63 6b 69 6e 67 20 29 0d | 0a 09 7b 0d 0a 09 09 2f |cking ).|..{..../|
|00005240| 2f 0d 0a 09 09 2f 2f 09 | 53 6f 6d 65 6f 6e 65 20 |/....//.|Someone |
|00005250| 68 61 73 20 65 6e 65 6d | 79 20 66 6c 61 67 21 20 |has enem|y flag! |
|00005260| 47 6f 20 61 6e 64 20 62 | 61 63 6b 20 74 68 65 6d |Go and b|ack them|
|00005270| 20 75 70 2e 0d 0a 09 09 | 2f 2f 0d 0a 0d 0a 09 09 | up.....|//......|
|00005280| 69 66 20 28 20 28 62 4f | 72 64 65 72 65 64 20 26 |if ( (bO|rdered &|
|00005290| 26 20 21 61 42 6f 74 2e | 4f 72 64 65 72 4f 62 6a |& !aBot.|OrderObj|
|000052a0| 65 63 74 2e 49 73 41 28 | 27 52 42 6f 74 27 29 29 |ect.IsA(|'RBot'))|
|000052b0| 20 7c 7c 20 28 61 42 6f | 74 2e 57 65 61 70 6f 6e | || (aBo|t.Weapon|
|000052c0| 20 3d 3d 20 4e 6f 6e 65 | 29 20 7c 7c 20 28 61 42 | == None|) || (aB|
|000052d0| 6f 74 2e 57 65 61 70 6f | 6e 2e 41 49 52 61 74 69 |ot.Weapo|n.AIRati|
|000052e0| 6e 67 20 3c 20 30 2e 34 | 29 20 29 0d 0a 09 09 09 |ng < 0.4|) ).....|
|000052f0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|00005300| 0a 09 09 69 66 20 28 20 | 28 61 42 6f 74 2e 45 6e |...if ( |(aBot.En|
|00005310| 65 6d 79 20 3d 3d 20 4e | 6f 6e 65 29 20 26 26 20 |emy == N|one) && |
|00005320| 28 61 42 6f 74 2e 4f 72 | 64 65 72 73 20 21 3d 20 |(aBot.Or|ders != |
|00005330| 27 44 65 66 65 6e 64 27 | 29 20 29 0d 0a 09 09 7b |'Defend'|) )....{|
|00005340| 0d 0a 09 09 09 44 69 73 | 74 20 3d 20 56 53 69 7a |.....Dis|t = VSiz|
|00005350| 65 28 61 42 6f 74 2e 4c | 6f 63 61 74 69 6f 6e 20 |e(aBot.L|ocation |
|00005360| 2d 20 45 6e 65 6d 79 46 | 6c 61 67 2e 48 6f 6c 64 |- EnemyF|lag.Hold|
|00005370| 65 72 2e 4c 6f 63 61 74 | 69 6f 6e 29 3b 0d 0a 09 |er.Locat|ion);...|
|00005380| 09 09 69 66 20 28 20 28 | 44 69 73 74 20 3e 20 35 |..if ( (|Dist > 5|
|00005390| 30 30 29 20 7c 7c 20 28 | 56 53 69 7a 65 28 45 6e |00) || (|VSize(En|
|000053a0| 65 6d 79 46 6c 61 67 2e | 48 6f 6c 64 65 72 2e 56 |emyFlag.|Holder.V|
|000053b0| 65 6c 6f 63 69 74 79 29 | 20 3e 20 32 33 30 29 0d |elocity)| > 230).|
|000053c0| 0a 09 09 09 09 7c 7c 20 | 21 61 42 6f 74 2e 4c 69 |.....|| |!aBot.Li|
|000053d0| 6e 65 4f 66 53 69 67 68 | 74 54 6f 28 45 6e 65 6d |neOfSigh|tTo(Enem|
|000053e0| 79 46 6c 61 67 2e 48 6f | 6c 64 65 72 29 20 29 0d |yFlag.Ho|lder) ).|
|000053f0| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....{...|...aBot.|
|00005400| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 61 42 6f |MoveTarg|et = aBo|
|00005410| 74 2e 46 69 6e 64 50 61 | 74 68 54 6f 77 61 72 64 |t.FindPa|thToward|
|00005420| 28 45 6e 65 6d 79 46 6c | 61 67 2e 48 6f 6c 64 65 |(EnemyFl|ag.Holde|
|00005430| 72 29 3b 0d 0a 0d 0a 09 | 09 09 09 69 66 20 28 20 |r);.....|...if ( |
|00005440| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00005450| 21 3d 20 6e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 09 |!= none |).......|
|00005460| 61 42 6f 74 2e 46 69 6e | 61 6c 54 61 72 67 65 74 |aBot.Fin|alTarget|
|00005470| 20 3d 20 45 6e 65 6d 79 | 46 6c 61 67 2e 48 6f 6c | = Enemy|Flag.Hol|
|00005480| 64 65 72 3b 0d 0a 0d 0a | 09 09 09 09 69 66 20 28 |der;....|....if (|
|00005490| 20 21 61 42 6f 74 2e 49 | 73 49 6e 53 74 61 74 65 | !aBot.I|sInState|
|000054a0| 28 27 52 6f 61 6d 69 6e | 67 27 29 20 29 0d 0a 09 |('Roamin|g') )...|
|000054b0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |...{....|...aBot.|
|000054c0| 62 4e 6f 43 6c 65 61 72 | 53 70 65 63 69 61 6c 20 |bNoClear|Special |
|000054d0| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 09 61 42 |= true;.|......aB|
|000054e0| 6f 74 2e 54 77 65 65 6e | 54 6f 52 75 6e 6e 69 6e |ot.Tween|ToRunnin|
|000054f0| 67 28 30 2e 31 29 3b 0d | 0a 09 09 09 09 09 61 42 |g(0.1);.|......aB|
|00005500| 6f 74 2e 47 6f 74 6f 53 | 74 61 74 65 28 27 52 6f |ot.GotoS|tate('Ro|
|00005510| 61 6d 69 6e 67 27 2c 20 | 27 53 70 65 63 69 61 6c |aming', |'Special|
|00005520| 4e 61 76 69 67 27 29 3b | 0d 0a 09 09 09 09 09 72 |Navig');|.......r|
|00005530| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 09 |eturn tr|ue;.....|
|00005540| 09 7d 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 20 28 |.}......|return (|
|00005550| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00005560| 21 3d 20 4e 6f 6e 65 29 | 3b 0d 0a 09 09 09 7d 0d |!= None)|;.....}.|
|00005570| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 7b 0d 0a |....else|.....{..|
|00005580| 09 09 09 09 69 66 20 28 | 20 21 61 42 6f 74 2e 62 |....if (| !aBot.b|
|00005590| 49 6e 69 74 4c 69 66 65 | 4d 65 73 73 61 67 65 20 |InitLife|Message |
|000055a0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 61 |)......{|.......a|
|000055b0| 42 6f 74 2e 62 49 6e 69 | 74 4c 69 66 65 4d 65 73 |Bot.bIni|tLifeMes|
|000055c0| 73 61 67 65 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |sage = t|rue;....|
|000055d0| 09 09 09 61 42 6f 74 2e | 53 65 6e 64 54 65 61 6d |...aBot.|SendTeam|
|000055e0| 4d 65 73 73 61 67 65 28 | 45 6e 65 6d 79 46 6c 61 |Message(|EnemyFla|
|000055f0| 67 2e 48 6f 6c 64 65 72 | 2e 50 6c 61 79 65 72 52 |g.Holder|.PlayerR|
|00005600| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2c 20 |eplicati|onInfo, |
|00005610| 27 4f 54 48 45 52 27 2c | 20 33 2c 20 31 30 29 3b |'OTHER',| 3, 10);|
|00005620| 0d 0a 09 09 09 09 7d 0d | 0a 0d 0a 09 09 09 09 69 |......}.|.......i|
|00005630| 66 20 28 20 46 52 61 6e | 64 28 29 20 3c 20 30 2e |f ( FRan|d() < 0.|
|00005640| 33 35 20 29 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |35 )....|...aBot.|
|00005650| 47 6f 74 6f 53 74 61 74 | 65 28 27 57 61 6e 64 65 |GotoStat|e('Wande|
|00005660| 72 69 6e 67 27 29 3b 0d | 0a 09 09 09 09 65 6c 73 |ring');.|.....els|
|00005670| 65 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 61 |e......{|.......a|
|00005680| 42 6f 74 2e 43 61 6d 70 | 54 69 6d 65 20 3d 20 31 |Bot.Camp|Time = 1|
|00005690| 2e 30 3b 0d 0a 09 09 09 | 09 09 61 42 6f 74 2e 62 |.0;.....|..aBot.b|
|000056a0| 43 61 6d 70 4f 6e 6c 79 | 4f 6e 63 65 20 3d 20 74 |CampOnly|Once = t|
|000056b0| 72 75 65 3b 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |rue;....|...aBot.|
|000056c0| 47 6f 74 6f 53 74 61 74 | 65 28 27 52 6f 61 6d 69 |GotoStat|e('Roami|
|000056d0| 6e 67 27 2c 20 27 43 61 | 6d 70 27 29 3b 0d 0a 09 |ng', 'Ca|mp');...|
|000056e0| 09 09 09 7d 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |...}....|..return|
|000056f0| 20 74 72 75 65 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 | true;..|...}....|
|00005700| 7d 0d 0a 09 7d 0d 0a 2f | 2a 0d 0a 09 2f 2f 20 54 |}...}../|*...// T|
|00005710| 68 69 73 20 77 69 6c 6c | 20 73 65 65 6b 20 6f 75 |his will| seek ou|
|00005720| 74 20 61 6e 64 20 61 74 | 74 61 63 6b 2e 2e 20 73 |t and at|tack.. s|
|00005730| 6f 6d 65 6f 6e 65 0d 0a | 09 69 66 20 28 20 21 62 |omeone..|.if ( !b|
|00005740| 41 74 74 61 63 6b 69 6e | 67 20 26 26 20 61 42 6f |Attackin|g && aBo|
|00005750| 74 2e 4f 72 64 65 72 73 | 20 21 3d 20 27 44 65 66 |t.Orders| != 'Def|
|00005760| 65 6e 64 27 20 29 0d 0a | 09 09 72 65 74 75 72 6e |end' )..|..return|
|00005770| 20 53 75 70 65 72 2e 46 | 69 6e 64 53 70 65 63 69 | Super.F|indSpeci|
|00005780| 61 6c 41 74 74 72 61 63 | 74 69 6f 6e 46 6f 72 58 |alAttrac|tionForX|
|00005790| 20 28 20 49 6e 42 6f 74 | 20 29 3b 0d 0a 09 65 6c | ( InBot| );...el|
|000057a0| 73 65 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c |se....re|turn fal|
|000057b0| 73 65 3b 0d 0a 2a 2f 0d | 0a 7d 09 09 0d 0a 0d 0a |se;..*/.|.}......|
|000057c0| 2f 2f 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |//======|========|
|000057d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000057e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000057f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005800| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 0d |========|=======.|
|00005810| 0a 2f 2f 0d 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.//..//=|========|
|00005820| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005830| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005840| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005850| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005860| 3d 3d 3d 3d 0d 0a 73 74 | 61 74 69 63 20 66 75 6e |====..st|atic fun|
|00005870| 63 74 69 6f 6e 20 52 65 | 73 65 74 47 61 6d 65 28 |ction Re|setGame(|
|00005880| 29 0d 0a 7b 0d 0a 2f 2a | 09 6c 6f 63 61 6c 20 69 |)..{../*|.local i|
|00005890| 6e 74 20 69 3b 0d 0a 0d | 0a 09 44 65 66 61 75 6c |nt i;...|..Defaul|
|000058a0| 74 2e 62 44 65 66 65 6e | 73 65 53 65 74 20 3d 20 |t.bDefen|seSet = |
|000058b0| 46 61 6c 73 65 3b 0d 0a | 09 44 65 66 61 75 6c 74 |False;..|.Default|
|000058c0| 2e 4e 75 6d 44 65 66 65 | 6e 73 65 73 20 3d 20 30 |.NumDefe|nses = 0|
|000058d0| 3b 0d 0a 09 44 65 66 61 | 75 6c 74 2e 43 75 72 72 |;...Defa|ult.Curr|
|000058e0| 65 6e 74 44 65 66 65 6e | 64 65 72 20 3d 20 30 3b |entDefen|der = 0;|
|000058f0| 0d 0a 09 44 65 66 61 75 | 6c 74 2e 47 61 6d 65 43 |...Defau|lt.GameC|
|00005900| 6f 64 65 20 3d 20 22 22 | 3b 2a 2f 0d 0a 09 44 65 |ode = ""|;*/...De|
|00005910| 66 61 75 6c 74 2e 62 54 | 69 65 50 61 72 74 4f 6e |fault.bT|iePartOn|
|00005920| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 09 44 65 66 |e = fals|e;...Def|
|00005930| 61 75 6c 74 2e 46 69 72 | 73 74 43 61 70 74 75 72 |ault.Fir|stCaptur|
|00005940| 65 54 69 6d 65 20 3d 20 | 30 3b 0d 0a 09 44 65 66 |eTime = |0;...Def|
|00005950| 61 75 6c 74 2e 50 61 72 | 74 20 3d 20 31 3b 0d 0a |ault.Par|t = 1;..|
|00005960| 09 53 74 61 74 69 63 53 | 61 76 65 43 6f 6e 66 69 |.StaticS|aveConfi|
|00005970| 67 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |g();..}.|...funct|
|00005980| 69 6f 6e 20 62 6f 6f 6c | 20 52 61 74 65 64 50 6c |ion bool| RatedPl|
|00005990| 61 79 65 72 57 6f 6e 28 | 29 0d 0a 7b 0d 0a 09 72 |ayerWon(|)..{...r|
|000059a0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 7d 0d 0a |eturn tr|ue;..}..|
|000059b0| 0d 0a 0d 0a 65 76 65 6e | 74 20 49 6e 69 74 47 61 |....even|t InitGa|
|000059c0| 6d 65 28 20 73 74 72 69 | 6e 67 20 4f 70 74 69 6f |me( stri|ng Optio|
|000059d0| 6e 73 2c 20 6f 75 74 20 | 73 74 72 69 6e 67 20 45 |ns, out |string E|
|000059e0| 72 72 6f 72 20 29 0d 0a | 7b 0d 0a 09 46 72 61 67 |rror )..|{...Frag|
|000059f0| 4c 69 6d 69 74 20 3d 20 | 31 3b 0d 0a 09 69 66 20 |Limit = |1;...if |
|00005a00| 28 54 69 6d 65 4c 69 6d | 69 74 20 3c 20 31 29 0d |(TimeLim|it < 1).|
|00005a10| 0a 09 7b 0d 0a 09 09 54 | 69 6d 65 4c 69 6d 69 74 |..{....T|imeLimit|
|00005a20| 20 3d 20 38 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 53 75 | = 8;...|}.....Su|
|00005a30| 70 65 72 2e 49 6e 69 74 | 47 61 6d 65 28 4f 70 74 |per.Init|Game(Opt|
|00005a40| 69 6f 6e 73 2c 20 45 72 | 72 6f 72 29 3b 0d 0a 0d |ions, Er|ror);...|
|00005a50| 0a 09 69 66 20 28 50 61 | 72 74 20 3d 3d 20 32 29 |..if (Pa|rt == 2)|
|00005a60| 0d 0a 09 7b 0d 0a 09 09 | 52 65 6d 61 69 6e 69 6e |...{....|Remainin|
|00005a70| 67 54 69 6d 65 20 3d 20 | 46 69 72 73 74 43 61 70 |gTime = |FirstCap|
|00005a80| 74 75 72 65 54 69 6d 65 | 3b 0d 0a 09 7d 0d 0a 7d |tureTime|;...}..}|
|00005a90| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4e 61 76 |....func|tion Nav|
|00005aa0| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 46 69 6e |igationP|oint Fin|
|00005ab0| 64 50 6c 61 79 65 72 53 | 74 61 72 74 28 50 61 77 |dPlayerS|tart(Paw|
|00005ac0| 6e 20 50 6c 61 79 65 72 | 2c 20 6f 70 74 69 6f 6e |n Player|, option|
|00005ad0| 61 6c 20 62 79 74 65 20 | 49 6e 54 65 61 6d 2c 20 |al byte |InTeam, |
|00005ae0| 6f 70 74 69 6f 6e 61 6c | 20 73 74 72 69 6e 67 20 |optional| string |
|00005af0| 69 6e 63 6f 6d 69 6e 67 | 4e 61 6d 65 29 0d 0a 2f |incoming|Name)../|
|00005b00| 2f 20 55 54 20 41 73 73 | 61 75 6c 74 20 73 65 74 |/ UT Ass|ault set|
|00005b10| 20 75 70 20 61 74 74 61 | 63 6b 69 6e 67 20 2f 20 | up atta|cking / |
|00005b20| 64 65 66 65 6e 64 69 6e | 67 20 74 65 61 6d 73 20 |defendin|g teams |
|00005b30| 69 6e 20 68 65 72 65 2c | 20 73 6f 20 77 65 20 61 |in here,| so we a|
|00005b40| 72 65 2c 20 74 6f 6f 0d | 0a 7b 0d 0a 09 69 66 20 |re, too.|.{...if |
|00005b50| 28 50 61 72 74 20 3d 3d | 20 31 29 0d 0a 09 7b 0d |(Part ==| 1)...{.|
|00005b60| 0a 09 09 41 74 74 61 63 | 6b 65 72 20 3d 20 54 65 |...Attac|ker = Te|
|00005b70| 61 6d 73 5b 46 69 72 73 | 74 41 74 74 61 63 6b 65 |ams[Firs|tAttacke|
|00005b80| 72 49 6e 64 65 78 5d 3b | 0d 0a 09 09 44 65 66 65 |rIndex];|....Defe|
|00005b90| 6e 64 65 72 20 3d 20 54 | 65 61 6d 73 5b 31 2d 46 |nder = T|eams[1-F|
|00005ba0| 69 72 73 74 41 74 74 61 | 63 6b 65 72 49 6e 64 65 |irstAtta|ckerInde|
|00005bb0| 78 5d 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 2f |x];...}.|..else /|
|00005bc0| 2a 20 69 66 20 28 50 61 | 72 74 20 3d 3d 20 32 29 |* if (Pa|rt == 2)|
|00005bd0| 20 2a 2f 0d 0a 09 7b 0d | 0a 09 09 41 74 74 61 63 | */...{.|...Attac|
|00005be0| 6b 65 72 20 3d 20 54 65 | 61 6d 73 5b 31 2d 46 69 |ker = Te|ams[1-Fi|
|00005bf0| 72 73 74 41 74 74 61 63 | 6b 65 72 49 6e 64 65 78 |rstAttac|kerIndex|
|00005c00| 5d 3b 0d 0a 09 09 44 65 | 66 65 6e 64 65 72 20 3d |];....De|fender =|
|00005c10| 20 54 65 61 6d 73 5b 46 | 69 72 73 74 41 74 74 61 | Teams[F|irstAtta|
|00005c20| 63 6b 65 72 49 6e 64 65 | 78 5d 3b 0d 0a 09 7d 0d |ckerInde|x];...}.|
|00005c30| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 53 75 70 65 72 |....retu|rn Super|
|00005c40| 2e 46 69 6e 64 50 6c 61 | 79 65 72 53 74 61 72 74 |.FindPla|yerStart|
|00005c50| 28 50 6c 61 79 65 72 2c | 20 49 6e 54 65 61 6d 2c |(Player,| InTeam,|
|00005c60| 20 69 6e 63 6f 6d 69 6e | 67 4e 61 6d 65 29 3b 0d | incomin|gName);.|
|00005c70| 0a 7d 0d 0a 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |.}......|function|
|00005c80| 20 52 65 73 74 61 72 74 | 47 61 6d 65 28 29 0d 0a | Restart|Game()..|
|00005c90| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 50 61 77 6e 20 50 |{...loca|l Pawn P|
|00005ca0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 69 3b |;...loca|l int i;|
|00005cb0| 0d 0a 0d 0a 09 69 66 20 | 28 20 62 44 6f 6e 74 52 |.....if |( bDontR|
|00005cc0| 65 73 74 61 72 74 20 29 | 0d 0a 09 09 72 65 74 75 |estart )|....retu|
|00005cd0| 72 6e 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 21 62 47 |rn;.....|if ( !bG|
|00005ce0| 61 6d 65 45 6e 64 65 64 | 20 7c 7c 20 28 45 6e 64 |ameEnded| || (End|
|00005cf0| 54 69 6d 65 20 3e 20 4c | 65 76 65 6c 2e 54 69 6d |Time > L|evel.Tim|
|00005d00| 65 53 65 63 6f 6e 64 73 | 29 20 29 20 2f 2f 20 73 |eSeconds|) ) // s|
|00005d10| 74 69 6c 6c 20 73 68 6f | 77 69 6e 67 20 65 6e 64 |till sho|wing end|
|00005d20| 20 73 63 72 65 65 6e 0d | 0a 09 09 72 65 74 75 72 | screen.|...retur|
|00005d30| 6e 3b 0d 0a 0d 0a 09 2f | 2f 20 49 66 20 61 20 74 |n;...../|/ If a t|
|00005d40| 65 61 6d 20 68 61 73 20 | 64 65 66 65 6e 64 65 64 |eam has |defended|
|00005d50| 20 61 6e 64 20 61 74 74 | 61 63 6b 65 64 2c 20 74 | and att|acked, t|
|00005d60| 68 65 20 67 61 6d 65 20 | 69 73 20 6f 76 65 72 0d |he game |is over.|
|00005d70| 0a 09 2f 2f 20 4f 72 20 | 69 6e 20 61 20 72 61 74 |..// Or |in a rat|
|00005d80| 65 64 20 67 61 6d 65 20 | 69 66 20 74 68 65 20 70 |ed game |if the p|
|00005d90| 6c 61 79 65 72 20 66 61 | 69 6c 65 64 20 6f 6e 20 |layer fa|iled on |
|00005da0| 61 74 74 61 63 6b 0d 0a | 09 69 66 20 28 20 50 61 |attack..|.if ( Pa|
|00005db0| 72 74 20 3d 3d 20 32 20 | 09 7c 7c 20 28 62 4d 69 |rt == 2 |.|| (bMi|
|00005dc0| 73 73 69 6f 6e 47 61 6d | 65 20 26 26 20 21 52 61 |ssionGam|e && !Ra|
|00005dd0| 74 65 64 50 6c 61 79 65 | 72 57 6f 6e 28 29 29 20 |tedPlaye|rWon()) |
|00005de0| 29 20 0d 0a 09 7b 0d 0a | 09 09 52 65 73 65 74 47 |) ...{..|..ResetG|
|00005df0| 61 6d 65 28 29 3b 0d 0a | 09 09 53 75 70 65 72 2e |ame();..|..Super.|
|00005e00| 52 65 73 74 61 72 74 47 | 61 6d 65 28 29 3b 0d 0a |RestartG|ame();..|
|00005e10| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 0d |..return|;...}...|
|00005e20| 0a 09 62 44 6f 6e 74 52 | 65 73 74 61 72 74 20 3d |..bDontR|estart =|
|00005e30| 20 74 72 75 65 3b 20 2f | 2f 20 64 6f 6e 27 74 20 | true; /|/ don't |
|00005e40| 72 65 73 74 61 72 74 20 | 6d 6f 72 65 20 74 68 61 |restart |more tha|
|00005e50| 6e 20 6f 6e 63 65 0d 0a | 2f 2a 09 62 44 65 66 65 |n once..|/*.bDefe|
|00005e60| 6e 73 65 53 65 74 20 3d | 20 74 72 75 65 3b 09 0d |nseSet =| true;..|
|00005e70| 0a 09 69 66 20 28 20 44 | 65 66 65 6e 64 65 72 2e |..if ( D|efender.|
|00005e80| 54 65 61 6d 49 6e 64 65 | 78 20 3d 3d 20 31 20 29 |TeamInde|x == 1 )|
|00005e90| 0d 0a 09 09 43 75 72 72 | 65 6e 74 44 65 66 65 6e |....Curr|entDefen|
|00005ea0| 64 65 72 20 3d 20 30 3b | 0d 0a 09 65 6c 73 65 0d |der = 0;|...else.|
|00005eb0| 0a 09 09 43 75 72 72 65 | 6e 74 44 65 66 65 6e 64 |...Curre|ntDefend|
|00005ec0| 65 72 20 3d 20 31 3b 0d | 0a 2a 2f 0d 0a 09 46 69 |er = 1;.|.*/...Fi|
|00005ed0| 72 73 74 43 61 70 74 75 | 72 65 54 69 6d 65 20 20 |rstCaptu|reTime |
|00005ee0| 3d 20 54 69 6d 65 4c 69 | 6d 69 74 20 2a 20 36 30 |= TimeLi|mit * 60|
|00005ef0| 20 2d 20 52 65 6d 61 69 | 6e 69 6e 67 54 69 6d 65 | - Remai|ningTime|
|00005f00| 3b 0d 0a 09 50 61 72 74 | 20 3d 20 32 3b 0d 0a 09 |;...Part| = 2;...|
|00005f10| 53 61 76 65 43 6f 6e 66 | 69 67 28 29 3b 0d 0a 09 |SaveConf|ig();...|
|00005f20| 4c 65 76 65 6c 2e 53 65 | 72 76 65 72 54 72 61 76 |Level.Se|rverTrav|
|00005f30| 65 6c 28 20 22 3f 52 65 | 73 74 61 72 74 22 2c 20 |el( "?Re|start", |
|00005f40| 66 61 6c 73 65 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 0d |false );|..}.....|
|00005f50| 0a 0d 0a 2f 2f 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |...//===|========|
|00005f60| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005f70| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005f80| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005f90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005fa0| 3d 3d 0d 0a 2f 2f 0d 0a | 2f 2f 3d 3d 3d 3d 3d 3d |==..//..|//======|
|00005fb0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005fc0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005fd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005fe0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005ff0| 3d 3d 3d 3d 3d 3d 3d 0d | 0a 0d 0a 66 75 6e 63 74 |=======.|...funct|
|00006000| 69 6f 6e 20 62 6f 6f 6c | 20 52 65 73 74 61 72 74 |ion bool| Restart|
|00006010| 50 6c 61 79 65 72 28 50 | 61 77 6e 20 61 50 6c 61 |Player(P|awn aPla|
|00006020| 79 65 72 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |yer)..{.|..local |
|00006030| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 20 |Navigati|onPoint |
|00006040| 4e 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 6e |N;...loc|al int n|
|00006050| 75 6d 3b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |um;...lo|cal floa|
|00006060| 74 20 74 6f 74 61 6c 57 | 65 69 67 68 74 2c 20 73 |t totalW|eight, s|
|00006070| 65 6c 65 63 74 69 6f 6e | 2c 20 70 61 72 74 69 61 |election|, partia|
|00006080| 6c 57 65 69 67 68 74 3b | 0d 0a 09 6c 6f 63 61 6c |lWeight;|...local|
|00006090| 20 62 6f 6f 6c 20 62 52 | 65 73 75 6c 74 2c 20 62 | bool bR|esult, b|
|000060a0| 50 6f 77 65 72 50 6c 61 | 79 3b 0d 0a 09 6c 6f 63 |PowerPla|y;...loc|
|000060b0| 61 6c 20 52 61 67 65 42 | 6f 74 20 42 3b 0d 0a 09 |al RageB|ot B;...|
|000060c0| 6c 6f 63 61 6c 20 50 61 | 77 6e 20 50 2c 20 58 4e |local Pa|wn P, XN|
|000060d0| 65 78 74 50 61 77 6e 3b | 0d 0a 09 0d 0a 09 62 52 |extPawn;|......bR|
|000060e0| 65 73 75 6c 74 20 3d 20 | 53 75 70 65 72 2e 52 65 |esult = |Super.Re|
|000060f0| 73 74 61 72 74 50 6c 61 | 79 65 72 28 61 50 6c 61 |startPla|yer(aPla|
|00006100| 79 65 72 29 3b 0d 0a 0d | 0a 09 42 20 3d 20 52 61 |yer);...|..B = Ra|
|00006110| 67 65 42 6f 74 28 61 50 | 6c 61 79 65 72 29 3b 0d |geBot(aP|layer);.|
|00006120| 0a 09 69 66 20 28 20 42 | 20 3d 3d 20 4e 6f 6e 65 |..if ( B| == None|
|00006130| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 62 52 65 | )....re|turn bRe|
|00006140| 73 75 6c 74 3b 0d 0a 0d | 0a 09 42 2e 41 6c 74 65 |sult;...|..B.Alte|
|00006150| 72 6e 61 74 65 50 61 74 | 68 20 3d 20 4e 6f 6e 65 |rnatePat|h = None|
|00006160| 3b 0d 0a 09 0d 0a 09 69 | 66 20 28 20 42 2e 62 50 |;......i|f ( B.bP|
|00006170| 6f 77 65 72 50 6c 61 79 | 20 7c 7c 20 28 52 61 67 |owerPlay| || (Rag|
|00006180| 65 42 6f 74 52 65 70 49 | 6e 66 6f 28 42 2e 50 6c |eBotRepI|nfo(B.Pl|
|00006190| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000061a0| 6e 66 6f 29 2e 52 65 61 | 6c 4f 72 64 65 72 73 20 |nfo).Rea|lOrders |
|000061b0| 3d 3d 20 27 44 65 66 65 | 6e 64 27 29 20 29 0d 0a |== 'Defe|nd') )..|
|000061c0| 09 7b 0d 0a 09 09 2f 2f | 20 69 66 20 62 6f 74 20 |.{....//| if bot |
|000061d0| 6f 6e 6c 79 20 74 65 61 | 6d 20 61 6e 64 20 61 6c |only tea|m and al|
|000061e0| 72 65 61 64 79 20 6f 6e | 65 20 64 65 66 65 6e 64 |ready on|e defend|
|000061f0| 65 72 2c 20 35 30 25 20 | 63 68 61 6e 63 65 20 6f |er, 50% |chance o|
|00006200| 66 20 70 6f 77 65 72 70 | 6c 61 79 20 66 6f 72 20 |f powerp|lay for |
|00006210| 74 68 69 73 20 67 75 79 | 20 69 66 20 64 65 66 65 |this guy| if defe|
|00006220| 6e 64 65 72 0d 0a 09 09 | 69 66 20 28 20 46 52 61 |nder....|if ( FRa|
|00006230| 6e 64 28 29 20 3c 20 30 | 2e 35 20 29 0d 0a 09 09 |nd() < 0|.5 )....|
|00006240| 7b 0d 0a 09 09 09 42 2e | 62 50 6f 77 65 72 50 6c |{.....B.|bPowerPl|
|00006250| 61 79 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 09 09 |ay = fal|se;.....|
|00006260| 42 2e 53 65 74 4f 72 64 | 65 72 73 28 27 44 65 66 |B.SetOrd|ers('Def|
|00006270| 65 6e 64 27 2c 20 4e 6f | 6e 65 2c 20 74 72 75 65 |end', No|ne, true|
|00006280| 29 3b 0d 0a 09 09 7d 0d | 0a 09 09 65 6c 73 65 0d |);....}.|...else.|
|00006290| 0a 09 09 7b 0d 0a 09 09 | 09 2f 2f 20 63 68 65 63 |...{....|.// chec|
|000062a0| 6b 20 66 6f 72 20 62 6f | 74 20 6f 6e 6c 79 20 74 |k for bo|t only t|
|000062b0| 65 61 6d 20 61 6e 64 20 | 61 6c 72 65 61 64 79 20 |eam and |already |
|000062c0| 61 20 76 61 6c 69 64 20 | 64 65 66 65 6e 64 65 72 |a valid |defender|
|000062d0| 0d 0a 09 09 09 66 6f 72 | 20 28 20 50 3d 4c 65 76 |.....for| ( P=Lev|
|000062e0| 65 6c 2e 50 61 77 6e 4c | 69 73 74 3b 20 50 21 3d |el.PawnL|ist; P!=|
|000062f0| 4e 6f 6e 65 3b 20 50 3d | 58 4e 65 78 74 50 61 77 |None; P=|XNextPaw|
|00006300| 6e 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 58 |n ).....|{......X|
|00006310| 4e 65 78 74 50 61 77 6e | 20 3d 20 50 2e 4e 65 78 |NextPawn| = P.Nex|
|00006320| 74 50 61 77 6e 3b 0d 0a | 0d 0a 09 09 09 09 69 66 |tPawn;..|......if|
|00006330| 20 28 20 50 2e 62 49 73 | 50 6c 61 79 65 72 20 26 | ( P.bIs|Player &|
|00006340| 26 20 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& (P.Pla|yerRepli|
|00006350| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00006360| 3d 3d 20 42 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |== B.Pla|yerRepli|
|00006370| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 29 |cationIn|fo.Team)|
|00006380| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|00006390| 69 66 20 28 20 50 2e 49 | 73 41 28 27 50 6c 61 79 |if ( P.I|sA('Play|
|000063a0| 65 72 50 61 77 6e 27 29 | 20 29 0d 0a 09 09 09 09 |erPawn')| )......|
|000063b0| 09 7b 0d 0a 09 09 09 09 | 09 09 62 50 6f 77 65 72 |.{......|..bPower|
|000063c0| 50 6c 61 79 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 09 |Play = f|alse;...|
|000063d0| 09 09 09 09 09 62 72 65 | 61 6b 3b 0d 0a 09 09 09 |.....bre|ak;.....|
|000063e0| 09 09 7d 0d 0a 09 09 09 | 09 09 65 6c 73 65 20 69 |..}.....|..else i|
|000063f0| 66 20 28 20 28 50 20 21 | 3d 20 42 29 20 26 26 20 |f ( (P !|= B) && |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.