home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 21.2 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 70 d3 02 2f 2f 3d 3d 3d |........|p..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 43 |========|==..// C|
|00000060| 54 46 47 61 6d 65 2e 0d | 0a 2f 2f 3d 3d 3d 3d 3d |TFGame..|.//=====|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 0a 63 6c 61 73 73 20 |========|..class |
|000000c0| 43 54 46 47 61 6d 65 20 | 65 78 74 65 6e 64 73 20 |CTFGame |extends |
|000000d0| 54 65 61 6d 47 61 6d 65 | 50 6c 75 73 0d 0a 09 63 |TeamGame|Plus...c|
|000000e0| 6f 6e 66 69 67 3b 0d 0a | 0d 0a 23 65 78 65 63 20 |onfig;..|..#exec |
|000000f0| 41 55 44 49 4f 20 49 4d | 50 4f 52 54 20 46 49 4c |AUDIO IM|PORT FIL|
|00000100| 45 3d 22 53 6f 75 6e 64 | 73 5c 43 54 46 5c 52 6f |E="Sound|s\CTF\Ro|
|00000110| 63 6b 4f 6e 44 75 64 65 | 2e 77 61 76 22 20 4e 41 |ckOnDude|.wav" NA|
|00000120| 4d 45 3d 22 43 61 70 74 | 75 72 65 53 6f 75 6e 64 |ME="Capt|ureSound|
|00000130| 22 20 47 52 4f 55 50 3d | 22 43 54 46 22 0d 0a 23 |" GROUP=|"CTF"..#|
|00000140| 65 78 65 63 20 41 55 44 | 49 4f 20 49 4d 50 4f 52 |exec AUD|IO IMPOR|
|00000150| 54 20 46 49 4c 45 3d 22 | 53 6f 75 6e 64 73 5c 43 |T FILE="|Sounds\C|
|00000160| 54 46 5c 63 74 66 39 2e | 77 61 76 22 20 4e 41 4d |TF\ctf9.|wav" NAM|
|00000170| 45 3d 22 43 61 70 74 75 | 72 65 53 6f 75 6e 64 32 |E="Captu|reSound2|
|00000180| 22 20 47 52 4f 55 50 3d | 22 43 54 46 22 0d 0a 23 |" GROUP=|"CTF"..#|
|00000190| 65 78 65 63 20 41 55 44 | 49 4f 20 49 4d 50 4f 52 |exec AUD|IO IMPOR|
|000001a0| 54 20 46 49 4c 45 3d 22 | 53 6f 75 6e 64 73 5c 43 |T FILE="|Sounds\C|
|000001b0| 54 46 5c 63 74 66 31 30 | 2e 77 61 76 22 20 4e 41 |TF\ctf10|.wav" NA|
|000001c0| 4d 45 3d 22 43 61 70 74 | 75 72 65 53 6f 75 6e 64 |ME="Capt|ureSound|
|000001d0| 33 22 20 47 52 4f 55 50 | 3d 22 43 54 46 22 0d 0a |3" GROUP|="CTF"..|
|000001e0| 23 65 78 65 63 20 41 55 | 44 49 4f 20 49 4d 50 4f |#exec AU|DIO IMPO|
|000001f0| 52 54 20 46 49 4c 45 3d | 22 53 6f 75 6e 64 73 5c |RT FILE=|"Sounds\|
|00000200| 43 54 46 5c 72 65 74 75 | 72 6e 66 31 2e 77 61 76 |CTF\retu|rnf1.wav|
|00000210| 22 20 4e 41 4d 45 3d 22 | 52 65 74 75 72 6e 53 6f |" NAME="|ReturnSo|
|00000220| 75 6e 64 22 20 47 52 4f | 55 50 3d 22 43 54 46 22 |und" GRO|UP="CTF"|
|00000230| 0d 0a 0d 0a 76 61 72 09 | 20 20 69 6e 74 20 20 20 |....var.| int |
|00000240| 47 72 6f 77 54 69 6d 65 | 72 3b 0d 0a 76 61 72 28 |GrowTime|r;..var(|
|00000250| 29 20 73 6f 75 6e 64 20 | 43 61 70 74 75 72 65 53 |) sound |CaptureS|
|00000260| 6f 75 6e 64 5b 34 5d 3b | 0d 0a 76 61 72 28 29 20 |ound[4];|..var() |
|00000270| 73 6f 75 6e 64 20 52 65 | 74 75 72 6e 53 6f 75 6e |sound Re|turnSoun|
|00000280| 64 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 4c 61 |d;..var |float La|
|00000290| 73 74 47 6f 74 46 6c 61 | 67 3b 0d 0a 76 61 72 20 |stGotFla|g;..var |
|000002a0| 66 6c 6f 61 74 20 4c 61 | 73 74 53 65 65 46 6c 61 |float La|stSeeFla|
|000002b0| 67 43 61 72 72 69 65 72 | 3b 0d 0a 0d 0a 66 75 6e |gCarrier|;....fun|
|000002c0| 63 74 69 6f 6e 20 4c 6f | 67 6f 75 74 28 70 61 77 |ction Lo|gout(paw|
|000002d0| 6e 20 45 78 69 74 69 6e | 67 29 0d 0a 7b 0d 0a 09 |n Exitin|g)..{...|
|000002e0| 69 66 20 28 20 45 78 69 | 74 69 6e 67 2e 50 6c 61 |if ( Exi|ting.Pla|
|000002f0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000300| 66 6f 2e 48 61 73 46 6c | 61 67 20 21 3d 20 4e 6f |fo.HasFl|ag != No|
|00000310| 6e 65 20 29 0d 0a 09 09 | 43 54 46 46 6c 61 67 28 |ne )....|CTFFlag(|
|00000320| 45 78 69 74 69 6e 67 2e | 50 6c 61 79 65 72 52 65 |Exiting.|PlayerRe|
|00000330| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00000340| 73 46 6c 61 67 29 2e 53 | 65 6e 64 48 6f 6d 65 28 |sFlag).S|endHome(|
|00000350| 29 3b 09 0d 0a 09 53 75 | 70 65 72 2e 4c 6f 67 6f |);....Su|per.Logo|
|00000360| 75 74 28 45 78 69 74 69 | 6e 67 29 3b 0d 0a 7d 0d |ut(Exiti|ng);..}.|
|00000370| 0a 0d 0a 65 76 65 6e 74 | 20 49 6e 69 74 47 61 6d |...event| InitGam|
|00000380| 65 28 20 73 74 72 69 6e | 67 20 4f 70 74 69 6f 6e |e( strin|g Option|
|00000390| 73 2c 20 6f 75 74 20 73 | 74 72 69 6e 67 20 45 72 |s, out s|tring Er|
|000003a0| 72 6f 72 20 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |ror )..{|...Super|
|000003b0| 2e 49 6e 69 74 47 61 6d | 65 28 4f 70 74 69 6f 6e |.InitGam|e(Option|
|000003c0| 73 2c 20 45 72 72 6f 72 | 29 3b 0d 0a 09 69 66 20 |s, Error|);...if |
|000003d0| 28 20 62 52 61 74 65 64 | 47 61 6d 65 20 29 0d 0a |( bRated|Game )..|
|000003e0| 09 09 47 6f 61 6c 54 65 | 61 6d 53 63 6f 72 65 20 |..GoalTe|amScore |
|000003f0| 3d 20 35 3b 0d 0a 0d 0a | 09 46 72 61 67 4c 69 6d |= 5;....|.FragLim|
|00000400| 69 74 20 3d 20 30 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |it = 0;.|.}....fu|
|00000410| 6e 63 74 69 6f 6e 20 53 | 63 6f 72 65 4b 69 6c 6c |nction S|coreKill|
|00000420| 28 70 61 77 6e 20 4b 69 | 6c 6c 65 72 2c 20 70 61 |(pawn Ki|ller, pa|
|00000430| 77 6e 20 4f 74 68 65 72 | 29 0d 0a 7b 0d 0a 09 6c |wn Other|)..{...l|
|00000440| 6f 63 61 6c 20 69 6e 74 | 20 4e 65 78 74 54 61 75 |ocal int| NextTau|
|00000450| 6e 74 2c 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 |nt, i;..|.local b|
|00000460| 6f 6f 6c 20 62 41 75 74 | 6f 54 61 75 6e 74 3b 0d |ool bAut|oTaunt;.|
|00000470| 0a 0d 0a 09 69 66 28 20 | 28 6b 69 6c 6c 65 72 20 |....if( |(killer |
|00000480| 3d 3d 20 4f 74 68 65 72 | 29 20 7c 7c 20 28 6b 69 |== Other|) || (ki|
|00000490| 6c 6c 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 29 0d |ller == |None) ).|
|000004a0| 0a 09 09 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 |...Other|.PlayerR|
|000004b0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 53 |eplicati|onInfo.S|
|000004c0| 63 6f 72 65 20 2d 3d 20 | 31 3b 0d 0a 09 65 6c 73 |core -= |1;...els|
|000004d0| 65 20 69 66 20 28 20 6b | 69 6c 6c 65 72 20 21 3d |e if ( k|iller !=|
|000004e0| 20 4e 6f 6e 65 20 29 0d | 0a 09 7b 0d 0a 09 09 6b | None ).|..{....k|
|000004f0| 69 6c 6c 65 72 2e 6b 69 | 6c 6c 43 6f 75 6e 74 2b |iller.ki|llCount+|
|00000500| 2b 3b 0d 0a 09 09 69 66 | 20 28 20 4b 69 6c 6c 65 |+;....if| ( Kille|
|00000510| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 26 26 20 4f |r.bIsPla|yer && O|
|00000520| 74 68 65 72 2e 62 49 73 | 50 6c 61 79 65 72 20 26 |ther.bIs|Player &|
|00000530| 26 20 28 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |& (Kille|r.Player|
|00000540| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000550| 54 65 61 6d 20 21 3d 20 | 4f 74 68 65 72 2e 50 6c |Team != |Other.Pl|
|00000560| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00000570| 6e 66 6f 2e 54 65 61 6d | 29 20 29 0d 0a 09 09 09 |nfo.Team|) ).....|
|00000580| 4b 69 6c 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Killer.P|layerRep|
|00000590| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|000005a0| 72 65 20 2b 3d 20 31 3b | 0d 0a 09 7d 0d 0a 09 69 |re += 1;|...}...i|
|000005b0| 66 20 28 20 62 41 6c 74 | 53 63 6f 72 69 6e 67 20 |f ( bAlt|Scoring |
|000005c0| 26 26 20 28 4b 69 6c 6c | 65 72 20 21 3d 20 4f 74 |&& (Kill|er != Ot|
|000005d0| 68 65 72 29 20 26 26 20 | 28 6b 69 6c 6c 65 72 20 |her) && |(killer |
|000005e0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 4f 74 68 65 |!= None)| && Othe|
|000005f0| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 29 0d 0a 09 |r.bIsPla|yer )...|
|00000600| 09 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |.Other.P|layerRep|
|00000610| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|00000620| 72 65 20 2d 3d 20 31 3b | 0d 0a 0d 0a 09 4f 74 68 |re -= 1;|.....Oth|
|00000630| 65 72 2e 44 69 65 43 6f | 75 6e 74 2b 2b 3b 0d 0a |er.DieCo|unt++;..|
|00000640| 09 69 66 20 28 20 4f 74 | 68 65 72 2e 62 49 73 50 |.if ( Ot|her.bIsP|
|00000650| 6c 61 79 65 72 20 26 26 | 20 28 4f 74 68 65 72 2e |layer &&| (Other.|
|00000660| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000670| 6e 49 6e 66 6f 2e 48 61 | 73 46 6c 61 67 20 21 3d |nInfo.Ha|sFlag !=|
|00000680| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 | None) )|...{....|
|00000690| 69 66 20 28 20 28 4b 69 | 6c 6c 65 72 20 21 3d 20 |if ( (Ki|ller != |
|000006a0| 4e 6f 6e 65 29 20 26 26 | 20 4b 69 6c 6c 65 72 2e |None) &&| Killer.|
|000006b0| 62 49 73 50 6c 61 79 65 | 72 20 26 26 20 4f 74 68 |bIsPlaye|r && Oth|
|000006c0| 65 72 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 |er.bIsPl|ayer && |
|000006d0| 28 4b 69 6c 6c 65 72 2e | 50 6c 61 79 65 72 52 65 |(Killer.|PlayerRe|
|000006e0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|000006f0| 61 6d 20 21 3d 20 4f 74 | 68 65 72 2e 50 6c 61 79 |am != Ot|her.Play|
|00000700| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000710| 6f 2e 54 65 61 6d 29 20 | 29 0d 0a 09 09 7b 0d 0a |o.Team) |)....{..|
|00000720| 09 09 09 6b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |...kille|r.Player|
|00000730| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000740| 53 63 6f 72 65 20 2b 3d | 20 34 3b 0d 0a 09 09 09 |Score +=| 4;.....|
|00000750| 62 41 75 74 6f 54 61 75 | 6e 74 20 3d 20 28 28 54 |bAutoTau|nt = ((T|
|00000760| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 28 |ournamen|tPlayer(|
|00000770| 4b 69 6c 6c 65 72 29 20 | 21 3d 20 4e 6f 6e 65 29 |Killer) |!= None)|
|00000780| 20 26 26 20 54 6f 75 72 | 6e 61 6d 65 6e 74 50 6c | && Tour|namentPl|
|00000790| 61 79 65 72 28 4b 69 6c | 6c 65 72 29 2e 62 41 75 |ayer(Kil|ler).bAu|
|000007a0| 74 6f 54 61 75 6e 74 29 | 3b 0d 0a 09 09 09 69 66 |toTaunt)|;.....if|
|000007b0| 20 28 20 28 42 6f 74 28 | 4b 69 6c 6c 65 72 29 20 | ( (Bot(|Killer) |
|000007c0| 21 3d 20 4e 6f 6e 65 29 | 20 7c 7c 20 62 41 75 74 |!= None)| || bAut|
|000007d0| 6f 54 61 75 6e 74 20 29 | 0d 0a 09 09 09 7b 0d 0a |oTaunt )|.....{..|
|000007e0| 09 09 09 09 4e 65 78 74 | 54 61 75 6e 74 20 3d 20 |....Next|Taunt = |
|000007f0| 52 61 6e 64 28 63 6c 61 | 73 73 3c 43 68 61 6c 6c |Rand(cla|ss<Chall|
|00000800| 65 6e 67 65 56 6f 69 63 | 65 50 61 63 6b 3e 28 4b |engeVoic|ePack>(K|
|00000810| 69 6c 6c 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iller.Pl|ayerRepl|
|00000820| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 56 6f 69 63 |icationI|nfo.Voic|
|00000830| 65 54 79 70 65 29 2e 44 | 65 66 61 75 6c 74 2e 4e |eType).D|efault.N|
|00000840| 75 6d 54 61 75 6e 74 73 | 29 3b 0d 0a 09 09 09 09 |umTaunts|);......|
|00000850| 66 6f 72 20 28 20 69 3d | 30 3b 20 69 3c 34 3b 20 |for ( i=|0; i<4; |
|00000860| 69 2b 2b 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |i++ )...|...{....|
|00000870| 09 09 09 69 66 20 28 20 | 4e 65 78 74 54 61 75 6e |...if ( |NextTaun|
|00000880| 74 20 3d 3d 20 4c 61 73 | 74 54 61 75 6e 74 5b 69 |t == Las|tTaunt[i|
|00000890| 5d 20 29 0d 0a 09 09 09 | 09 09 09 4e 65 78 74 54 |] ).....|...NextT|
|000008a0| 61 75 6e 74 20 3d 20 52 | 61 6e 64 28 63 6c 61 73 |aunt = R|and(clas|
|000008b0| 73 3c 43 68 61 6c 6c 65 | 6e 67 65 56 6f 69 63 65 |s<Challe|ngeVoice|
|000008c0| 50 61 63 6b 3e 28 4b 69 | 6c 6c 65 72 2e 50 6c 61 |Pack>(Ki|ller.Pla|
|000008d0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000008e0| 66 6f 2e 56 6f 69 63 65 | 54 79 70 65 29 2e 44 65 |fo.Voice|Type).De|
|000008f0| 66 61 75 6c 74 2e 4e 75 | 6d 54 61 75 6e 74 73 29 |fault.Nu|mTaunts)|
|00000900| 3b 0d 0a 09 09 09 09 09 | 69 66 20 28 20 69 20 3e |;.......|if ( i >|
|00000910| 20 30 20 29 0d 0a 09 09 | 09 09 09 09 4c 61 73 74 | 0 )....|....Last|
|00000920| 54 61 75 6e 74 5b 69 2d | 31 5d 20 3d 20 4c 61 73 |Taunt[i-|1] = Las|
|00000930| 74 54 61 75 6e 74 5b 69 | 5d 3b 0d 0a 09 09 09 09 |tTaunt[i|];......|
|00000940| 7d 09 0d 0a 09 09 09 09 | 4c 61 73 74 54 61 75 6e |}.......|LastTaun|
|00000950| 74 5b 33 5d 20 3d 20 4e | 65 78 74 54 61 75 6e 74 |t[3] = N|extTaunt|
|00000960| 3b 0d 0a 09 09 09 09 69 | 66 20 28 20 62 41 75 74 |;......i|f ( bAut|
|00000970| 6f 54 61 75 6e 74 20 29 | 0d 0a 09 09 09 09 09 6b |oTaunt )|.......k|
|00000980| 69 6c 6c 65 72 2e 53 65 | 6e 64 47 6c 6f 62 61 6c |iller.Se|ndGlobal|
|00000990| 4d 65 73 73 61 67 65 28 | 4e 6f 6e 65 2c 20 27 41 |Message(|None, 'A|
|000009a0| 55 54 4f 54 41 55 4e 54 | 27 2c 20 4e 65 78 74 54 |UTOTAUNT|', NextT|
|000009b0| 61 75 6e 74 2c 20 35 29 | 3b 0d 0a 09 09 09 09 65 |aunt, 5)|;......e|
|000009c0| 6c 73 65 0d 0a 09 09 09 | 09 09 6b 69 6c 6c 65 72 |lse.....|..killer|
|000009d0| 2e 53 65 6e 64 47 6c 6f | 62 61 6c 4d 65 73 73 61 |.SendGlo|balMessa|
|000009e0| 67 65 28 4e 6f 6e 65 2c | 20 27 54 41 55 4e 54 27 |ge(None,| 'TAUNT'|
|000009f0| 2c 20 4e 65 78 74 54 61 | 75 6e 74 2c 20 35 29 3b |, NextTa|unt, 5);|
|00000a00| 0d 0a 09 09 09 7d 0d 0a | 09 09 7d 0d 0a 09 09 43 |.....}..|..}....C|
|00000a10| 54 46 46 6c 61 67 28 4f | 74 68 65 72 2e 50 6c 61 |TFFlag(O|ther.Pla|
|00000a20| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000a30| 66 6f 2e 48 61 73 46 6c | 61 67 29 2e 44 72 6f 70 |fo.HasFl|ag).Drop|
|00000a40| 28 30 2e 35 20 2a 20 4f | 74 68 65 72 2e 56 65 6c |(0.5 * O|ther.Vel|
|00000a50| 6f 63 69 74 79 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |ocity);.|..}.....|
|00000a60| 42 61 73 65 4d 75 74 61 | 74 6f 72 2e 53 63 6f 72 |BaseMuta|tor.Scor|
|00000a70| 65 4b 69 6c 6c 28 4b 69 | 6c 6c 65 72 2c 20 4f 74 |eKill(Ki|ller, Ot|
|00000a80| 68 65 72 29 3b 0d 0a 7d | 09 0d 0a 0d 0a 66 75 6e |her);..}|.....fun|
|00000a90| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 65 74 45 6e |ction bo|ol SetEn|
|00000aa0| 64 43 61 6d 73 28 73 74 | 72 69 6e 67 20 52 65 61 |dCams(st|ring Rea|
|00000ab0| 73 6f 6e 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |son)..{.|..local |
|00000ac0| 54 65 61 6d 49 6e 66 6f | 20 42 65 73 74 3b 0d 0a |TeamInfo| Best;..|
|00000ad0| 09 6c 6f 63 61 6c 20 46 | 6c 61 67 42 61 73 65 20 |.local F|lagBase |
|00000ae0| 42 65 73 74 42 61 73 65 | 3b 0d 0a 09 6c 6f 63 61 |BestBase|;...loca|
|00000af0| 6c 20 43 54 46 46 6c 61 | 67 20 42 65 73 74 46 6c |l CTFFla|g BestFl|
|00000b00| 61 67 3b 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |ag;...lo|cal Pawn|
|00000b10| 20 50 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 | P;...lo|cal int |
|00000b20| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 6c 61 79 65 |i;...loc|al Playe|
|00000b30| 72 50 61 77 6e 20 50 6c | 61 79 65 72 3b 0d 0a 0d |rPawn Pl|ayer;...|
|00000b40| 0a 09 66 6f 72 20 28 20 | 69 3d 30 3b 20 69 3c 4d |..for ( |i=0; i<M|
|00000b50| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|00000b60| 09 09 69 66 20 28 20 28 | 42 65 73 74 20 3d 3d 20 |..if ( (|Best == |
|00000b70| 4e 6f 6e 65 29 20 7c 7c | 20 28 42 65 73 74 2e 53 |None) ||| (Best.S|
|00000b80| 63 6f 72 65 20 3c 20 54 | 65 61 6d 73 5b 69 5d 2e |core < T|eams[i].|
|00000b90| 53 63 6f 72 65 29 20 29 | 0d 0a 09 09 09 42 65 73 |Score) )|.....Bes|
|00000ba0| 74 20 3d 20 54 65 61 6d | 73 5b 69 5d 3b 0d 0a 0d |t = Team|s[i];...|
|00000bb0| 0a 09 66 6f 72 20 28 20 | 69 3d 30 3b 20 69 3c 4d |..for ( |i=0; i<M|
|00000bc0| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|00000bd0| 09 09 69 66 20 28 20 28 | 42 65 73 74 2e 54 65 61 |..if ( (|Best.Tea|
|00000be0| 6d 49 6e 64 65 78 20 21 | 3d 20 69 29 20 26 26 20 |mIndex !|= i) && |
|00000bf0| 28 42 65 73 74 2e 53 63 | 6f 72 65 20 3d 3d 20 54 |(Best.Sc|ore == T|
|00000c00| 65 61 6d 73 5b 69 5d 2e | 53 63 6f 72 65 29 20 29 |eams[i].|Score) )|
|00000c10| 0d 0a 09 09 7b 0d 0a 09 | 09 09 42 72 6f 61 64 63 |....{...|..Broadc|
|00000c20| 61 73 74 4c 6f 63 61 6c | 69 7a 65 64 4d 65 73 73 |astLocal|izedMess|
|00000c30| 61 67 65 28 63 6c 61 73 | 73 27 44 65 61 74 68 4d |age(clas|s'DeathM|
|00000c40| 61 74 63 68 4d 65 73 73 | 61 67 65 27 2c 20 30 29 |atchMess|age', 0)|
|00000c50| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 66 61 6c |;.....re|turn fal|
|00000c60| 73 65 3b 0d 0a 09 09 7d | 09 09 0d 0a 0d 0a 09 2f |se;....}|......./|
|00000c70| 2f 20 66 69 6e 64 20 77 | 69 6e 6e 65 72 0d 0a 09 |/ find w|inner...|
|00000c80| 46 6f 72 45 61 63 68 20 | 41 6c 6c 41 63 74 6f 72 |ForEach |AllActor|
|00000c90| 73 28 63 6c 61 73 73 27 | 43 54 46 46 6c 61 67 27 |s(class'|CTFFlag'|
|00000ca0| 2c 20 42 65 73 74 46 6c | 61 67 29 0d 0a 09 09 69 |, BestFl|ag)....i|
|00000cb0| 66 20 28 20 42 65 73 74 | 46 6c 61 67 2e 54 65 61 |f ( Best|Flag.Tea|
|00000cc0| 6d 20 3d 3d 20 42 65 73 | 74 2e 54 65 61 6d 49 6e |m == Bes|t.TeamIn|
|00000cd0| 64 65 78 20 29 0d 0a 09 | 09 09 62 72 65 61 6b 3b |dex )...|..break;|
|00000ce0| 0d 0a 0d 0a 09 42 65 73 | 74 42 61 73 65 20 3d 20 |.....Bes|tBase = |
|00000cf0| 42 65 73 74 46 6c 61 67 | 2e 48 6f 6d 65 42 61 73 |BestFlag|.HomeBas|
|00000d00| 65 3b 0d 0a 09 47 61 6d | 65 52 65 70 6c 69 63 61 |e;...Gam|eReplica|
|00000d10| 74 69 6f 6e 49 6e 66 6f | 2e 47 61 6d 65 45 6e 64 |tionInfo|.GameEnd|
|00000d20| 65 64 43 6f 6d 6d 65 6e | 74 73 20 3d 20 42 65 73 |edCommen|ts = Bes|
|00000d30| 74 2e 54 65 61 6d 4e 61 | 6d 65 40 47 61 6d 65 45 |t.TeamNa|me@GameE|
|00000d40| 6e 64 65 64 4d 65 73 73 | 61 67 65 3b 0d 0a 0d 0a |ndedMess|age;....|
|00000d50| 09 45 6e 64 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |.EndTime| = Level|
|00000d60| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2b 20 33 |.TimeSec|onds + 3|
|00000d70| 2e 30 3b 0d 0a 09 66 6f | 72 20 28 20 50 3d 4c 65 |.0;...fo|r ( P=Le|
|00000d80| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|00000d90| 3d 4e 6f 6e 65 3b 20 50 | 3d 50 2e 6e 65 78 74 50 |=None; P|=P.nextP|
|00000da0| 61 77 6e 20 29 0d 0a 09 | 7b 0d 0a 09 09 50 2e 47 |awn )...|{....P.G|
|00000db0| 6f 74 6f 53 74 61 74 65 | 28 27 47 61 6d 65 45 6e |otoState|('GameEn|
|00000dc0| 64 65 64 27 29 3b 0d 0a | 09 09 50 6c 61 79 65 72 |ded');..|..Player|
|00000dd0| 20 3d 20 50 6c 61 79 65 | 72 50 61 77 6e 28 50 29 | = Playe|rPawn(P)|
|00000de0| 3b 0d 0a 09 09 69 66 20 | 28 20 50 6c 61 79 65 72 |;....if |( Player|
|00000df0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 7b 0d | != None| )....{.|
|00000e00| 0a 09 09 09 50 6c 61 79 | 65 72 2e 62 42 65 68 69 |....Play|er.bBehi|
|00000e10| 6e 64 56 69 65 77 20 3d | 20 74 72 75 65 3b 0d 0a |ndView =| true;..|
|00000e20| 09 09 09 50 6c 61 79 65 | 72 2e 56 69 65 77 54 61 |...Playe|r.ViewTa|
|00000e30| 72 67 65 74 20 3d 20 42 | 65 73 74 42 61 73 65 3b |rget = B|estBase;|
|00000e40| 0d 0a 09 09 09 69 66 20 | 28 21 62 54 75 74 6f 72 |.....if |(!bTutor|
|00000e50| 69 61 6c 47 61 6d 65 29 | 0d 0a 09 09 09 7b 0d 0a |ialGame)|.....{..|
|00000e60| 09 09 09 09 69 66 20 28 | 20 50 6c 61 79 65 72 2e |....if (| Player.|
|00000e70| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000e80| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 3d 3d 20 42 65 |nInfo.Te|am == Be|
|00000e90| 73 74 2e 54 65 61 6d 49 | 6e 64 65 78 20 29 0d 0a |st.TeamI|ndex )..|
|00000ea0| 09 09 09 09 09 50 6c 61 | 79 65 72 2e 43 6c 69 65 |.....Pla|yer.Clie|
|00000eb0| 6e 74 50 6c 61 79 53 6f | 75 6e 64 28 73 6f 75 6e |ntPlaySo|und(soun|
|00000ec0| 64 27 41 6e 6e 6f 75 6e | 63 65 72 2e 57 69 6e 6e |d'Announ|cer.Winn|
|00000ed0| 65 72 27 2c 20 54 72 75 | 65 2c 20 74 72 75 65 29 |er', Tru|e, true)|
|00000ee0| 3b 0d 0a 09 09 09 09 65 | 6c 73 65 20 69 66 20 28 |;......e|lse if (|
|00000ef0| 20 21 50 6c 61 79 65 72 | 2e 49 73 41 28 27 53 70 | !Player|.IsA('Sp|
|00000f00| 65 63 74 61 74 6f 72 27 | 29 20 29 20 0d 0a 09 09 |ectator'|) ) ....|
|00000f10| 09 09 09 50 6c 61 79 65 | 72 2e 43 6c 69 65 6e 74 |...Playe|r.Client|
|00000f20| 50 6c 61 79 53 6f 75 6e | 64 28 73 6f 75 6e 64 27 |PlaySoun|d(sound'|
|00000f30| 41 6e 6e 6f 75 6e 63 65 | 72 2e 4c 6f 73 74 4d 61 |Announce|r.LostMa|
|00000f40| 74 63 68 27 2c 20 54 72 | 75 65 2c 20 74 72 75 65 |tch', Tr|ue, true|
|00000f50| 29 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 09 50 6c 61 |);.....}|.....Pla|
|00000f60| 79 65 72 2e 43 6c 69 65 | 6e 74 47 61 6d 65 45 6e |yer.Clie|ntGameEn|
|00000f70| 64 65 64 28 29 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |ded();..|..}...}.|
|00000f80| 0a 09 42 65 73 74 42 61 | 73 65 2e 62 48 69 64 64 |..BestBa|se.bHidd|
|00000f90| 65 6e 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 42 65 |en = fal|se;...Be|
|00000fa0| 73 74 46 6c 61 67 2e 62 | 48 69 64 64 65 6e 20 3d |stFlag.b|Hidden =|
|00000fb0| 20 74 72 75 65 3b 0d 0a | 09 43 61 6c 63 45 6e 64 | true;..|.CalcEnd|
|00000fc0| 53 74 61 74 73 28 29 3b | 0d 0a 09 72 65 74 75 72 |Stats();|...retur|
|00000fd0| 6e 20 74 72 75 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |n true;.|.}....fu|
|00000fe0| 6e 63 74 69 6f 6e 20 43 | 61 6c 63 45 6e 64 53 74 |nction C|alcEndSt|
|00000ff0| 61 74 73 28 29 0d 0a 7b | 0d 0a 09 54 6f 74 61 6c |ats()..{|...Total|
|00001000| 47 61 6d 65 73 2b 2b 3b | 0d 0a 09 53 61 76 65 43 |Games++;|...SaveC|
|00001010| 6f 6e 66 69 67 28 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |onfig();|..}....f|
|00001020| 75 6e 63 74 69 6f 6e 20 | 53 63 6f 72 65 46 6c 61 |unction |ScoreFla|
|00001030| 67 28 50 61 77 6e 20 53 | 63 6f 72 65 72 2c 20 43 |g(Pawn S|corer, C|
|00001040| 54 46 46 6c 61 67 20 74 | 68 65 46 6c 61 67 29 0d |TFFlag t|heFlag).|
|00001050| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 70 61 77 6e 20 |.{...loc|al pawn |
|00001060| 54 65 61 6d 4d 61 74 65 | 3b 0d 0a 09 6c 6f 63 61 |TeamMate|;...loca|
|00001070| 6c 20 41 63 74 6f 72 20 | 41 3b 0d 0a 0d 0a 09 69 |l Actor |A;.....i|
|00001080| 66 20 28 20 53 63 6f 72 | 65 72 2e 50 6c 61 79 65 |f ( Scor|er.Playe|
|00001090| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000010a0| 2e 54 65 61 6d 20 3d 3d | 20 74 68 65 46 6c 61 67 |.Team ==| theFlag|
|000010b0| 2e 54 65 61 6d 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |.Team ).|..{....i|
|000010c0| 66 20 28 4c 65 76 65 6c | 2e 47 61 6d 65 2e 57 6f |f (Level|.Game.Wo|
|000010d0| 72 6c 64 4c 6f 67 20 21 | 3d 20 4e 6f 6e 65 29 0d |rldLog !|= None).|
|000010e0| 0a 09 09 7b 0d 0a 09 09 | 09 4c 65 76 65 6c 2e 47 |...{....|.Level.G|
|000010f0| 61 6d 65 2e 57 6f 72 6c | 64 4c 6f 67 2e 4c 6f 67 |ame.Worl|dLog.Log|
|00001100| 53 70 65 63 69 61 6c 45 | 76 65 6e 74 28 22 66 6c |SpecialE|vent("fl|
|00001110| 61 67 5f 72 65 74 75 72 | 6e 65 64 22 2c 20 53 63 |ag_retur|ned", Sc|
|00001120| 6f 72 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |orer.Pla|yerRepli|
|00001130| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 50 6c 61 79 65 |cationIn|fo.Playe|
|00001140| 72 49 44 2c 20 54 65 61 | 6d 73 5b 74 68 65 46 6c |rID, Tea|ms[theFl|
|00001150| 61 67 2e 54 65 61 6d 5d | 2e 54 65 61 6d 49 6e 64 |ag.Team]|.TeamInd|
|00001160| 65 78 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 69 66 20 |ex);....|}....if |
|00001170| 28 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 4c 6f 63 61 |(Level.G|ame.Loca|
|00001180| 6c 4c 6f 67 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |lLog != |None)...|
|00001190| 09 7b 0d 0a 09 09 09 4c | 65 76 65 6c 2e 47 61 6d |.{.....L|evel.Gam|
|000011a0| 65 2e 4c 6f 63 61 6c 4c | 6f 67 2e 4c 6f 67 53 70 |e.LocalL|og.LogSp|
|000011b0| 65 63 69 61 6c 45 76 65 | 6e 74 28 22 66 6c 61 67 |ecialEve|nt("flag|
|000011c0| 5f 72 65 74 75 72 6e 65 | 64 22 2c 20 53 63 6f 72 |_returne|d", Scor|
|000011d0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|000011e0| 74 69 6f 6e 49 6e 66 6f | 2e 50 6c 61 79 65 72 49 |tionInfo|.PlayerI|
|000011f0| 44 2c 20 54 65 61 6d 73 | 5b 74 68 65 46 6c 61 67 |D, Teams|[theFlag|
|00001200| 2e 54 65 61 6d 5d 2e 54 | 65 61 6d 49 6e 64 65 78 |.Team].T|eamIndex|
|00001210| 29 3b 0d 0a 09 09 7d 0d | 0a 09 09 42 72 6f 61 64 |);....}.|...Broad|
|00001220| 63 61 73 74 4c 6f 63 61 | 6c 69 7a 65 64 4d 65 73 |castLoca|lizedMes|
|00001230| 73 61 67 65 28 20 63 6c | 61 73 73 27 43 54 46 4d |sage( cl|ass'CTFM|
|00001240| 65 73 73 61 67 65 27 2c | 20 31 2c 20 53 63 6f 72 |essage',| 1, Scor|
|00001250| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001260| 74 69 6f 6e 49 6e 66 6f | 2c 20 4e 6f 6e 65 2c 20 |tionInfo|, None, |
|00001270| 54 68 65 46 6c 61 67 20 | 29 3b 0d 0a 09 09 66 6f |TheFlag |);....fo|
|00001280| 72 20 28 20 54 65 61 6d | 4d 61 74 65 3d 4c 65 76 |r ( Team|Mate=Lev|
|00001290| 65 6c 2e 50 61 77 6e 4c | 69 73 74 3b 20 54 65 61 |el.PawnL|ist; Tea|
|000012a0| 6d 4d 61 74 65 21 3d 4e | 6f 6e 65 3b 20 54 65 61 |mMate!=N|one; Tea|
|000012b0| 6d 4d 61 74 65 3d 54 65 | 61 6d 4d 61 74 65 2e 4e |mMate=Te|amMate.N|
|000012c0| 65 78 74 50 61 77 6e 20 | 29 0d 0a 09 09 7b 0d 0a |extPawn |)....{..|
|000012d0| 09 09 09 69 66 20 28 20 | 54 65 61 6d 4d 61 74 65 |...if ( |TeamMate|
|000012e0| 2e 49 73 41 28 27 50 6c | 61 79 65 72 50 61 77 6e |.IsA('Pl|ayerPawn|
|000012f0| 27 29 20 29 0d 0a 09 09 | 09 09 50 6c 61 79 65 72 |') )....|..Player|
|00001300| 50 61 77 6e 28 54 65 61 | 6d 4d 61 74 65 29 2e 43 |Pawn(Tea|mMate).C|
|00001310| 6c 69 65 6e 74 50 6c 61 | 79 53 6f 75 6e 64 28 52 |lientPla|ySound(R|
|00001320| 65 74 75 72 6e 53 6f 75 | 6e 64 29 3b 0d 0a 09 09 |eturnSou|nd);....|
|00001330| 09 65 6c 73 65 20 69 66 | 20 28 20 54 65 61 6d 4d |.else if| ( TeamM|
|00001340| 61 74 65 2e 49 73 41 28 | 27 42 6f 74 27 29 20 29 |ate.IsA(|'Bot') )|
|00001350| 0d 0a 09 09 09 09 42 6f | 74 28 54 65 61 6d 4d 61 |......Bo|t(TeamMa|
|00001360| 74 65 29 2e 53 65 74 4f | 72 64 65 72 73 28 42 6f |te).SetO|rders(Bo|
|00001370| 74 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |tReplica|tionInfo|
|00001380| 28 54 65 61 6d 4d 61 74 | 65 2e 50 6c 61 79 65 72 |(TeamMat|e.Player|
|00001390| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|000013a0| 2e 52 65 61 6c 4f 72 64 | 65 72 73 2c 20 42 6f 74 |.RealOrd|ers, Bot|
|000013b0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|000013c0| 54 65 61 6d 4d 61 74 65 | 2e 50 6c 61 79 65 72 52 |TeamMate|.PlayerR|
|000013d0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|000013e0| 52 65 61 6c 4f 72 64 65 | 72 47 69 76 65 72 2c 20 |RealOrde|rGiver, |
|000013f0| 74 72 75 65 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 72 |true);..|..}....r|
|00001400| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |eturn;..|.}.....i|
|00001410| 66 20 28 20 62 52 61 74 | 65 64 47 61 6d 65 20 26 |f ( bRat|edGame &|
|00001420| 26 20 53 63 6f 72 65 72 | 2e 49 73 41 28 27 50 6c |& Scorer|.IsA('Pl|
|00001430| 61 79 65 72 50 61 77 6e | 27 29 20 29 0d 0a 09 09 |ayerPawn|') )....|
|00001440| 62 46 75 6c 66 69 6c 6c | 65 64 53 70 65 63 69 61 |bFulfill|edSpecia|
|00001450| 6c 20 3d 20 74 72 75 65 | 3b 0d 0a 09 53 63 6f 72 |l = true|;...Scor|
|00001460| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001470| 74 69 6f 6e 49 6e 66 6f | 2e 53 63 6f 72 65 20 2b |tionInfo|.Score +|
|00001480| 3d 20 37 3b 0d 0a 09 54 | 65 61 6d 73 5b 53 63 6f |= 7;...T|eams[Sco|
|00001490| 72 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |rer.Play|erReplic|
|000014a0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 2e |ationInf|o.Team].|
|000014b0| 53 63 6f 72 65 20 2b 3d | 20 31 2e 30 3b 0d 0a 0d |Score +=| 1.0;...|
|000014c0| 0a 09 66 6f 72 20 28 20 | 54 65 61 6d 4d 61 74 65 |..for ( |TeamMate|
|000014d0| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|000014e0| 20 54 65 61 6d 4d 61 74 | 65 21 3d 4e 6f 6e 65 3b | TeamMat|e!=None;|
|000014f0| 20 54 65 61 6d 4d 61 74 | 65 3d 54 65 61 6d 4d 61 | TeamMat|e=TeamMa|
|00001500| 74 65 2e 4e 65 78 74 50 | 61 77 6e 20 29 0d 0a 09 |te.NextP|awn )...|
|00001510| 7b 0d 0a 09 09 69 66 20 | 28 20 54 65 61 6d 4d 61 |{....if |( TeamMa|
|00001520| 74 65 2e 49 73 41 28 27 | 50 6c 61 79 65 72 50 61 |te.IsA('|PlayerPa|
|00001530| 77 6e 27 29 20 29 0d 0a | 09 09 09 50 6c 61 79 65 |wn') )..|...Playe|
|00001540| 72 50 61 77 6e 28 54 65 | 61 6d 4d 61 74 65 29 2e |rPawn(Te|amMate).|
|00001550| 43 6c 69 65 6e 74 50 6c | 61 79 53 6f 75 6e 64 28 |ClientPl|aySound(|
|00001560| 43 61 70 74 75 72 65 53 | 6f 75 6e 64 5b 53 63 6f |CaptureS|ound[Sco|
|00001570| 72 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |rer.Play|erReplic|
|00001580| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 29 |ationInf|o.Team])|
|00001590| 3b 0d 0a 09 09 65 6c 73 | 65 20 69 66 20 28 20 54 |;....els|e if ( T|
|000015a0| 65 61 6d 4d 61 74 65 2e | 49 73 41 28 27 42 6f 74 |eamMate.|IsA('Bot|
|000015b0| 27 29 20 29 0d 0a 09 09 | 09 42 6f 74 28 54 65 61 |') )....|.Bot(Tea|
|000015c0| 6d 4d 61 74 65 29 2e 53 | 65 74 4f 72 64 65 72 73 |mMate).S|etOrders|
|000015d0| 28 42 6f 74 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |(BotRepl|icationI|
|000015e0| 6e 66 6f 28 54 65 61 6d | 4d 61 74 65 2e 50 6c 61 |nfo(Team|Mate.Pla|
|000015f0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001600| 66 6f 29 2e 52 65 61 6c | 4f 72 64 65 72 73 2c 20 |fo).Real|Orders, |
|00001610| 42 6f 74 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |BotRepli|cationIn|
|00001620| 66 6f 28 54 65 61 6d 4d | 61 74 65 2e 50 6c 61 79 |fo(TeamM|ate.Play|
|00001630| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001640| 6f 29 2e 52 65 61 6c 4f | 72 64 65 72 47 69 76 65 |o).RealO|rderGive|
|00001650| 72 2c 20 74 72 75 65 29 | 3b 0d 0a 09 7d 0d 0a 0d |r, true)|;...}...|
|00001660| 0a 09 69 66 20 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |..if (Le|vel.Game|
|00001670| 2e 57 6f 72 6c 64 4c 6f | 67 20 21 3d 20 4e 6f 6e |.WorldLo|g != Non|
|00001680| 65 29 0d 0a 09 7b 0d 0a | 09 09 4c 65 76 65 6c 2e |e)...{..|..Level.|
|00001690| 47 61 6d 65 2e 57 6f 72 | 6c 64 4c 6f 67 2e 4c 6f |Game.Wor|ldLog.Lo|
|000016a0| 67 53 70 65 63 69 61 6c | 45 76 65 6e 74 28 22 66 |gSpecial|Event("f|
|000016b0| 6c 61 67 5f 63 61 70 74 | 75 72 65 64 22 2c 20 53 |lag_capt|ured", S|
|000016c0| 63 6f 72 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |corer.Pl|ayerRepl|
|000016d0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 50 6c 61 79 |icationI|nfo.Play|
|000016e0| 65 72 49 44 2c 20 54 65 | 61 6d 73 5b 74 68 65 46 |erID, Te|ams[theF|
|000016f0| 6c 61 67 2e 54 65 61 6d | 5d 2e 54 65 61 6d 49 6e |lag.Team|].TeamIn|
|00001700| 64 65 78 29 3b 0d 0a 09 | 7d 0d 0a 09 69 66 20 28 |dex);...|}...if (|
|00001710| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 4c 6f 63 61 6c |Level.Ga|me.Local|
|00001720| 4c 6f 67 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 7b |Log != N|one)...{|
|00001730| 0d 0a 09 09 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 4c |....Leve|l.Game.L|
|00001740| 6f 63 61 6c 4c 6f 67 2e | 4c 6f 67 53 70 65 63 69 |ocalLog.|LogSpeci|
|00001750| 61 6c 45 76 65 6e 74 28 | 22 66 6c 61 67 5f 63 61 |alEvent(|"flag_ca|
|00001760| 70 74 75 72 65 64 22 2c | 20 53 63 6f 72 65 72 2e |ptured",| Scorer.|
|00001770| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001780| 6e 49 6e 66 6f 2e 50 6c | 61 79 65 72 49 44 2c 20 |nInfo.Pl|ayerID, |
|00001790| 54 65 61 6d 73 5b 74 68 | 65 46 6c 61 67 2e 54 65 |Teams[th|eFlag.Te|
|000017a0| 61 6d 5d 2e 54 65 61 6d | 49 6e 64 65 78 29 3b 0d |am].Team|Index);.|
|000017b0| 0a 09 7d 0d 0a 09 54 6f | 74 61 6c 46 6c 61 67 73 |..}...To|talFlags|
|000017c0| 2b 2b 3b 0d 0a 09 42 72 | 6f 61 64 63 61 73 74 4c |++;...Br|oadcastL|
|000017d0| 6f 63 61 6c 69 7a 65 64 | 4d 65 73 73 61 67 65 28 |ocalized|Message(|
|000017e0| 20 63 6c 61 73 73 27 43 | 54 46 4d 65 73 73 61 67 | class'C|TFMessag|
|000017f0| 65 27 2c 20 30 2c 20 53 | 63 6f 72 65 72 2e 50 6c |e', 0, S|corer.Pl|
|00001800| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001810| 6e 66 6f 2c 20 4e 6f 6e | 65 2c 20 54 68 65 46 6c |nfo, Non|e, TheFl|
|00001820| 61 67 20 29 3b 0d 0a 09 | 69 66 20 28 20 74 68 65 |ag );...|if ( the|
|00001830| 46 6c 61 67 2e 48 6f 6d | 65 42 61 73 65 2e 45 76 |Flag.Hom|eBase.Ev|
|00001840| 65 6e 74 20 21 3d 20 27 | 27 20 29 0d 0a 09 09 66 |ent != '|' )....f|
|00001850| 6f 72 65 61 63 68 20 61 | 6c 6c 61 63 74 6f 72 73 |oreach a|llactors|
|00001860| 28 63 6c 61 73 73 27 41 | 63 74 6f 72 27 2c 20 41 |(class'A|ctor', A|
|00001870| 2c 20 74 68 65 46 6c 61 | 67 2e 48 6f 6d 65 42 61 |, theFla|g.HomeBa|
|00001880| 73 65 2e 45 76 65 6e 74 | 20 29 0d 0a 09 09 09 41 |se.Event| ).....A|
|00001890| 2e 54 72 69 67 67 65 72 | 28 74 68 65 46 6c 61 67 |.Trigger|(theFlag|
|000018a0| 2e 48 6f 6d 65 42 61 73 | 65 2c 09 53 63 6f 72 65 |.HomeBas|e,.Score|
|000018b0| 72 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 28 62 4f |r);.....|if ( (bO|
|000018c0| 76 65 72 54 69 6d 65 20 | 7c 7c 20 28 47 6f 61 6c |verTime ||| (Goal|
|000018d0| 54 65 61 6d 53 63 6f 72 | 65 20 21 3d 20 30 29 29 |TeamScor|e != 0))|
|000018e0| 20 26 26 20 28 54 65 61 | 6d 73 5b 53 63 6f 72 65 | && (Tea|ms[Score|
|000018f0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001900| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 5d 2e 53 63 |ionInfo.|Team].Sc|
|00001910| 6f 72 65 20 3e 3d 20 47 | 6f 61 6c 54 65 61 6d 53 |ore >= G|oalTeamS|
|00001920| 63 6f 72 65 29 20 29 0d | 0a 09 09 45 6e 64 47 61 |core) ).|...EndGa|
|00001930| 6d 65 28 22 74 65 61 6d | 73 63 6f 72 65 6c 69 6d |me("team|scorelim|
|00001940| 69 74 22 29 3b 0d 0a 09 | 65 6c 73 65 20 69 66 20 |it");...|else if |
|00001950| 28 20 62 4f 76 65 72 54 | 69 6d 65 20 29 0d 0a 09 |( bOverT|ime )...|
|00001960| 09 45 6e 64 47 61 6d 65 | 28 22 74 69 6d 65 6c 69 |.EndGame|("timeli|
|00001970| 6d 69 74 22 29 3b 0d 0a | 7d 0d 0a 20 0d 0a 66 75 |mit");..|}.. ..fu|
|00001980| 6e 63 74 69 6f 6e 20 41 | 63 74 6f 72 20 53 65 74 |nction A|ctor Set|
|00001990| 44 65 66 65 6e 73 65 46 | 6f 72 28 42 6f 74 20 61 |DefenseF|or(Bot a|
|000019a0| 42 6f 74 29 0d 0a 7b 0d | 0a 09 72 65 74 75 72 6e |Bot)..{.|..return|
|000019b0| 20 43 54 46 52 65 70 6c | 69 63 61 74 69 6f 6e 49 | CTFRepl|icationI|
|000019c0| 6e 66 6f 28 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |nfo(Game|Replicat|
|000019d0| 69 6f 6e 49 6e 66 6f 29 | 2e 46 6c 61 67 4c 69 73 |ionInfo)|.FlagLis|
|000019e0| 74 5b 61 42 6f 74 2e 50 | 6c 61 79 65 72 52 65 70 |t[aBot.P|layerRep|
|000019f0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00001a00| 6d 5d 2e 48 6f 6d 65 42 | 61 73 65 3b 0d 0a 7d 0d |m].HomeB|ase;..}.|
|00001a10| 0a 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 66 6c |.....fun|ction fl|
|00001a20| 6f 61 74 20 47 61 6d 65 | 54 68 72 65 61 74 41 64 |oat Game|ThreatAd|
|00001a30| 64 28 42 6f 74 20 61 42 | 6f 74 2c 20 50 61 77 6e |d(Bot aB|ot, Pawn|
|00001a40| 20 4f 74 68 65 72 29 0d | 0a 7b 0d 0a 09 6c 6f 63 | Other).|.{...loc|
|00001a50| 61 6c 20 43 54 46 46 6c | 61 67 20 61 46 6c 61 67 |al CTFFl|ag aFlag|
|00001a60| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 4f 74 68 65 72 |;.....if| ( Other|
|00001a70| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001a80| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 20 21 |onInfo.H|asFlag !|
|00001a90| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 72 65 74 75 |= None )|....retu|
|00001aa0| 72 6e 20 31 30 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |rn 10;..|.else...|
|00001ab0| 09 72 65 74 75 72 6e 20 | 30 3b 0d 0a 7d 0d 0a 0d |.return |0;..}...|
|00001ac0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 46 |.functio|n bool F|
|00001ad0| 69 6e 64 50 61 74 68 54 | 6f 42 61 73 65 28 42 6f |indPathT|oBase(Bo|
|00001ae0| 74 20 61 42 6f 74 2c 20 | 46 6c 61 67 42 61 73 65 |t aBot, |FlagBase|
|00001af0| 20 61 42 61 73 65 29 0d | 0a 7b 0d 0a 09 69 66 20 | aBase).|.{...if |
|00001b00| 28 20 28 61 42 6f 74 2e | 41 6c 74 65 72 6e 61 74 |( (aBot.|Alternat|
|00001b10| 65 50 61 74 68 20 21 3d | 20 4e 6f 6e 65 29 20 0d |ePath !=| None) .|
|00001b20| 0a 09 09 26 26 20 28 61 | 42 6f 74 2e 41 6c 74 65 |...&& (a|Bot.Alte|
|00001b30| 72 6e 61 74 65 50 61 74 | 68 2e 74 65 61 6d 20 3d |rnatePat|h.team =|
|00001b40| 3d 20 61 42 61 73 65 2e | 74 65 61 6d 29 20 29 0d |= aBase.|team) ).|
|00001b50| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 61 42 6f 74 |..{....i|f ( aBot|
|00001b60| 2e 41 63 74 6f 72 52 65 | 61 63 68 61 62 6c 65 28 |.ActorRe|achable(|
|00001b70| 61 42 6f 74 2e 41 6c 74 | 65 72 6e 61 74 65 50 61 |aBot.Alt|ernatePa|
|00001b80| 74 68 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 61 |th) )...|.{.....a|
|00001b90| 42 6f 74 2e 4d 6f 76 65 | 54 61 72 67 65 74 20 3d |Bot.Move|Target =|
|00001ba0| 20 61 42 6f 74 2e 41 6c | 74 65 72 6e 61 74 65 50 | aBot.Al|ternateP|
|00001bb0| 61 74 68 3b 0d 0a 09 09 | 09 61 42 6f 74 2e 41 6c |ath;....|.aBot.Al|
|00001bc0| 74 65 72 6e 61 74 65 50 | 61 74 68 20 3d 20 4e 6f |ternateP|ath = No|
|00001bd0| 6e 65 3b 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |ne;....}|....else|
|00001be0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 61 42 6f 74 2e 4d |....{...|..aBot.M|
|00001bf0| 6f 76 65 54 61 72 67 65 | 74 20 3d 20 61 42 6f 74 |oveTarge|t = aBot|
|00001c00| 2e 46 69 6e 64 50 61 74 | 68 54 6f 77 61 72 64 28 |.FindPat|hToward(|
|00001c10| 61 42 6f 74 2e 41 6c 74 | 65 72 6e 61 74 65 50 61 |aBot.Alt|ernatePa|
|00001c20| 74 68 29 3b 0d 0a 09 09 | 09 69 66 20 28 20 61 42 |th);....|.if ( aB|
|00001c30| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 3d |ot.MoveT|arget ==|
|00001c40| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 | None ).|....{...|
|00001c50| 09 09 09 61 42 6f 74 2e | 41 6c 74 65 72 6e 61 74 |...aBot.|Alternat|
|00001c60| 65 50 61 74 68 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |ePath = |None;...|
|00001c70| 09 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00001c80| 65 74 20 3d 20 61 42 6f | 74 2e 46 69 6e 64 50 61 |et = aBo|t.FindPa|
|00001c90| 74 68 54 6f 77 61 72 64 | 28 61 42 61 73 65 29 3b |thToward|(aBase);|
|00001ca0| 0d 0a 09 09 09 7d 0d 0a | 09 09 7d 0d 0a 09 7d 0d |.....}..|..}...}.|
|00001cb0| 0a 09 65 6c 73 65 09 09 | 09 09 09 09 0d 0a 09 09 |..else..|........|
|00001cc0| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00001cd0| 3d 20 61 42 6f 74 2e 46 | 69 6e 64 50 61 74 68 54 |= aBot.F|indPathT|
|00001ce0| 6f 77 61 72 64 28 61 42 | 61 73 65 29 3b 0d 0a 0d |oward(aB|ase);...|
|00001cf0| 0a 09 72 65 74 75 72 6e | 20 28 61 42 6f 74 2e 62 |..return| (aBot.b|
|00001d00| 4e 6f 43 6c 65 61 72 53 | 70 65 63 69 61 6c 20 7c |NoClearS|pecial ||
|00001d10| 7c 20 28 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 || (aBot.|MoveTarg|
|00001d20| 65 74 20 21 3d 20 4e 6f | 6e 65 29 29 3b 0d 0a 7d |et != No|ne));..}|
|00001d30| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 79 74 |....func|tion byt|
|00001d40| 65 20 41 73 73 65 73 73 | 42 6f 74 41 74 74 69 74 |e Assess|BotAttit|
|00001d50| 75 64 65 28 42 6f 74 20 | 61 42 6f 74 2c 20 50 61 |ude(Bot |aBot, Pa|
|00001d60| 77 6e 20 4f 74 68 65 72 | 29 0d 0a 7b 0d 0a 09 69 |wn Other|)..{...i|
|00001d70| 66 20 28 20 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |f ( aBot|.PlayerR|
|00001d80| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00001d90| 65 61 6d 20 3d 3d 20 4f | 74 68 65 72 2e 50 6c 61 |eam == O|ther.Pla|
|00001da0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001db0| 66 6f 2e 54 65 61 6d 20 | 29 0d 0a 09 09 72 65 74 |fo.Team |)....ret|
|00001dc0| 75 72 6e 20 33 3b 20 2f | 2f 74 65 61 6d 6d 61 74 |urn 3; /|/teammat|
|00001dd0| 65 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 28 4f |e...else| if ( (O|
|00001de0| 74 68 65 72 2e 62 49 73 | 50 6c 61 79 65 72 20 26 |ther.bIs|Player &|
|00001df0| 26 20 28 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 |& (Other|.PlayerR|
|00001e00| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 48 |eplicati|onInfo.H|
|00001e10| 61 73 46 6c 61 67 20 21 | 3d 20 4e 6f 6e 65 29 29 |asFlag !|= None))|
|00001e20| 20 0d 0a 09 09 09 09 7c | 7c 20 28 61 42 6f 74 2e | ......||| (aBot.|
|00001e30| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001e40| 6e 49 6e 66 6f 2e 48 61 | 73 46 6c 61 67 20 21 3d |nInfo.Ha|sFlag !=|
|00001e50| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 72 65 74 75 | None) )|....retu|
|00001e60| 72 6e 20 31 3b 0d 0a 09 | 65 6c 73 65 20 0d 0a 09 |rn 1;...|else ...|
|00001e70| 09 72 65 74 75 72 6e 20 | 53 75 70 65 72 2e 41 73 |.return |Super.As|
|00001e80| 73 65 73 73 42 6f 74 41 | 74 74 69 74 75 64 65 28 |sessBotA|ttitude(|
|00001e90| 61 42 6f 74 2c 20 4f 74 | 68 65 72 29 3b 0d 0a 7d |aBot, Ot|her);..}|
|00001ea0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00001eb0| 6c 20 46 69 6e 64 53 70 | 65 63 69 61 6c 41 74 74 |l FindSp|ecialAtt|
|00001ec0| 72 61 63 74 69 6f 6e 46 | 6f 72 28 42 6f 74 20 61 |ractionF|or(Bot a|
|00001ed0| 42 6f 74 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Bot)..{.|..local |
|00001ee0| 43 54 46 46 6c 61 67 20 | 46 72 69 65 6e 64 6c 79 |CTFFlag |Friendly|
|00001ef0| 46 6c 61 67 2c 20 45 6e | 65 6d 79 46 6c 61 67 3b |Flag, En|emyFlag;|
|00001f00| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 62 53 |...local| bool bS|
|00001f10| 65 65 46 6c 61 67 2c 20 | 62 52 65 61 63 68 48 6f |eeFlag, |bReachHo|
|00001f20| 6d 65 2c 20 62 4f 72 64 | 65 72 65 64 3b 0d 0a 09 |me, bOrd|ered;...|
|00001f30| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 44 69 73 74 |local fl|oat Dist|
|00001f40| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 61 42 6f 74 2e |;.....if| ( aBot.|
|00001f50| 4c 61 73 74 41 74 74 72 | 61 63 74 43 68 65 63 6b |LastAttr|actCheck|
|00001f60| 20 3d 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 | == Leve|l.TimeSe|
|00001f70| 63 6f 6e 64 73 20 29 0d | 0a 09 09 72 65 74 75 72 |conds ).|...retur|
|00001f80| 6e 20 66 61 6c 73 65 3b | 0d 0a 09 61 42 6f 74 2e |n false;|...aBot.|
|00001f90| 4c 61 73 74 41 74 74 72 | 61 63 74 43 68 65 63 6b |LastAttr|actCheck|
|00001fa0| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|00001fb0| 6f 6e 64 73 3b 0d 0a 0d | 0a 09 2f 2f 6c 6f 67 28 |onds;...|..//log(|
|00001fc0| 61 42 6f 74 40 22 66 69 | 6e 64 20 73 70 65 63 69 |aBot@"fi|nd speci|
|00001fd0| 61 6c 20 61 74 74 72 61 | 63 74 69 6f 6e 20 69 6e |al attra|ction in|
|00001fe0| 20 73 74 61 74 65 22 40 | 61 42 6f 74 2e 47 65 74 | state"@|aBot.Get|
|00001ff0| 53 74 61 74 65 4e 61 6d | 65 28 29 40 22 61 74 22 |StateNam|e()@"at"|
|00002000| 40 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e |@Level.T|imeSecon|
|00002010| 64 73 29 3b 09 0d 0a 09 | 46 72 69 65 6e 64 6c 79 |ds);....|Friendly|
|00002020| 46 6c 61 67 20 3d 20 43 | 54 46 52 65 70 6c 69 63 |Flag = C|TFReplic|
|00002030| 61 74 69 6f 6e 49 6e 66 | 6f 28 47 61 6d 65 52 65 |ationInf|o(GameRe|
|00002040| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 29 2e 46 |plicatio|nInfo).F|
|00002050| 6c 61 67 4c 69 73 74 5b | 61 42 6f 74 2e 50 6c 61 |lagList[|aBot.Pla|
|00002060| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002070| 66 6f 2e 54 65 61 6d 5d | 3b 0d 0a 09 0d 0a 09 69 |fo.Team]|;......i|
|00002080| 66 20 28 20 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |f ( aBot|.PlayerR|
|00002090| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|000020a0| 65 61 6d 20 3d 3d 20 30 | 20 29 0d 0a 09 09 45 6e |eam == 0| )....En|
|000020b0| 65 6d 79 46 6c 61 67 20 | 3d 20 43 54 46 52 65 70 |emyFlag |= CTFRep|
|000020c0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 47 61 6d |lication|Info(Gam|
|000020d0| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|000020e0| 29 2e 46 6c 61 67 4c 69 | 73 74 5b 31 5d 3b 0d 0a |).FlagLi|st[1];..|
|000020f0| 09 65 6c 73 65 0d 0a 09 | 09 45 6e 65 6d 79 46 6c |.else...|.EnemyFl|
|00002100| 61 67 20 3d 20 43 54 46 | 52 65 70 6c 69 63 61 74 |ag = CTF|Replicat|
|00002110| 69 6f 6e 49 6e 66 6f 28 | 47 61 6d 65 52 65 70 6c |ionInfo(|GameRepl|
|00002120| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 29 2e 46 6c 61 |icationI|nfo).Fla|
|00002130| 67 4c 69 73 74 5b 30 5d | 3b 0d 0a 09 0d 0a 09 62 |gList[0]|;......b|
|00002140| 4f 72 64 65 72 65 64 20 | 3d 20 61 42 6f 74 2e 62 |Ordered |= aBot.b|
|00002150| 53 6e 69 70 69 6e 67 20 | 7c 7c 20 28 61 42 6f 74 |Sniping ||| (aBot|
|00002160| 2e 4f 72 64 65 72 73 20 | 3d 3d 20 27 46 6f 6c 6c |.Orders |== 'Foll|
|00002170| 6f 77 27 29 20 7c 7c 20 | 28 61 42 6f 74 2e 4f 72 |ow') || |(aBot.Or|
|00002180| 64 65 72 73 20 3d 3d 20 | 27 48 6f 6c 64 27 29 3b |ders == |'Hold');|
|00002190| 0d 0a 0d 0a 09 69 66 20 | 28 20 21 46 72 69 65 6e |.....if |( !Frien|
|000021a0| 64 6c 79 46 6c 61 67 2e | 62 48 6f 6d 65 20 20 29 |dlyFlag.|bHome )|
|000021b0| 0d 0a 09 7b 0d 0a 09 09 | 62 53 65 65 46 6c 61 67 |...{....|bSeeFlag|
|000021c0| 20 3d 20 61 42 6f 74 2e | 4c 69 6e 65 4f 66 53 69 | = aBot.|LineOfSi|
|000021d0| 67 68 74 54 6f 28 46 72 | 69 65 6e 64 6c 79 46 6c |ghtTo(Fr|iendlyFl|
|000021e0| 61 67 2e 50 6f 73 69 74 | 69 6f 6e 28 29 29 3b 0d |ag.Posit|ion());.|
|000021f0| 0a 09 09 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |...Frien|dlyFlag.|
|00002200| 62 4b 6e 6f 77 6e 4c 6f | 63 61 74 69 6f 6e 20 3d |bKnownLo|cation =|
|00002210| 20 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 62 4b | Friendl|yFlag.bK|
|00002220| 6e 6f 77 6e 4c 6f 63 61 | 74 69 6f 6e 20 7c 7c 20 |nownLoca|tion || |
|00002230| 62 53 65 65 46 6c 61 67 | 3b 0d 0a 0d 0a 09 09 69 |bSeeFlag|;......i|
|00002240| 66 20 28 20 62 53 65 65 | 46 6c 61 67 20 26 26 20 |f ( bSee|Flag && |
|00002250| 28 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 48 6f |(Friendl|yFlag.Ho|
|00002260| 6c 64 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 26 26 |lder == |None) &&|
|00002270| 20 61 42 6f 74 2e 41 63 | 74 6f 72 52 65 61 63 68 | aBot.Ac|torReach|
|00002280| 61 62 6c 65 28 46 72 69 | 65 6e 64 6c 79 46 6c 61 |able(Fri|endlyFla|
|00002290| 67 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |g) )....|{.....if|
|000022a0| 20 28 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | ( Level|.TimeSec|
|000022b0| 6f 6e 64 73 20 2d 20 4c | 61 73 74 47 6f 74 46 6c |onds - L|astGotFl|
|000022c0| 61 67 20 3e 20 36 20 29 | 0d 0a 09 09 09 7b 09 0d |ag > 6 )|.....{..|
|000022d0| 0a 09 09 09 09 4c 61 73 | 74 47 6f 74 46 6c 61 67 |.....Las|tGotFlag|
|000022e0| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|000022f0| 6f 6e 64 73 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |onds;...|...aBot.|
|00002300| 53 65 6e 64 54 65 61 6d | 4d 65 73 73 61 67 65 28 |SendTeam|Message(|
|00002310| 4e 6f 6e 65 2c 20 27 4f | 54 48 45 52 27 2c 20 38 |None, 'O|THER', 8|
|00002320| 2c 20 32 30 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |, 20);..|...}....|
|00002330| 09 61 42 6f 74 2e 4d 6f | 76 65 54 61 72 67 65 74 |.aBot.Mo|veTarget|
|00002340| 20 3d 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 3b | = Frien|dlyFlag;|
|00002350| 0d 0a 09 09 09 53 65 74 | 41 74 74 72 61 63 74 69 |.....Set|Attracti|
|00002360| 6f 6e 53 74 61 74 65 46 | 6f 72 28 61 42 6f 74 29 |onStateF|or(aBot)|
|00002370| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |;.....re|turn tru|
|00002380| 65 3b 0d 0a 09 09 7d 0d | 0a 0d 0a 09 09 69 66 20 |e;....}.|.....if |
|00002390| 28 20 45 6e 65 6d 79 46 | 6c 61 67 2e 48 6f 6c 64 |( EnemyF|lag.Hold|
|000023a0| 65 72 20 21 3d 20 61 42 | 6f 74 20 29 0d 0a 09 09 |er != aB|ot )....|
|000023b0| 7b 0d 0a 09 09 09 69 66 | 20 28 20 62 53 65 65 46 |{.....if| ( bSeeF|
|000023c0| 6c 61 67 20 26 26 20 28 | 46 72 69 65 6e 64 6c 79 |lag && (|Friendly|
|000023d0| 46 6c 61 67 2e 48 6f 6c | 64 65 72 20 21 3d 20 4e |Flag.Hol|der != N|
|000023e0| 6f 6e 65 29 20 29 0d 0a | 09 09 09 7b 09 0d 0a 09 |one) )..|...{....|
|000023f0| 09 09 09 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |...Frien|dlyFlag.|
|00002400| 62 4b 6e 6f 77 6e 4c 6f | 63 61 74 69 6f 6e 20 3d |bKnownLo|cation =|
|00002410| 20 74 72 75 65 3b 0d 0a | 09 09 09 09 69 66 20 28 | true;..|....if (|
|00002420| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00002430| 64 73 20 2d 20 4c 61 73 | 74 53 65 65 46 6c 61 67 |ds - Las|tSeeFlag|
|00002440| 43 61 72 72 69 65 72 20 | 3e 20 36 20 29 0d 0a 09 |Carrier |> 6 )...|
|00002450| 09 09 09 7b 0d 0a 09 09 | 09 09 09 4c 61 73 74 53 |...{....|...LastS|
|00002460| 65 65 46 6c 61 67 43 61 | 72 72 69 65 72 20 3d 20 |eeFlagCa|rrier = |
|00002470| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00002480| 73 3b 0d 0a 09 09 09 09 | 09 61 42 6f 74 2e 53 65 |s;......|.aBot.Se|
|00002490| 6e 64 54 65 61 6d 4d 65 | 73 73 61 67 65 28 4e 6f |ndTeamMe|ssage(No|
|000024a0| 6e 65 2c 20 27 4f 54 48 | 45 52 27 2c 20 31 32 2c |ne, 'OTH|ER', 12,|
|000024b0| 20 31 30 29 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 | 10);...|...}....|
|000024c0| 09 09 61 42 6f 74 2e 53 | 65 74 45 6e 65 6d 79 28 |..aBot.S|etEnemy(|
|000024d0| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 48 6f 6c |Friendly|Flag.Hol|
|000024e0| 64 65 72 29 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |der);...|...aBot.|
|000024f0| 4f 72 64 65 72 73 20 3d | 20 27 46 72 65 65 6c 61 |Orders =| 'Freela|
|00002500| 6e 63 65 27 3b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |nce';...|...aBot.|
|00002510| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 46 72 69 |MoveTarg|et = Fri|
|00002520| 65 6e 64 6c 79 46 6c 61 | 67 2e 48 6f 6c 64 65 72 |endlyFla|g.Holder|
|00002530| 3b 0d 0a 09 09 09 09 69 | 66 20 28 20 61 42 6f 74 |;......i|f ( aBot|
|00002540| 2e 49 73 49 6e 53 74 61 | 74 65 28 27 41 74 74 61 |.IsInSta|te('Atta|
|00002550| 63 6b 69 6e 67 27 29 20 | 29 0d 0a 09 09 09 09 09 |cking') |).......|
|00002560| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00002570| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 09 7b 0d 0a |...else.|.....{..|
|00002580| 09 09 09 09 09 61 42 6f | 74 2e 47 6f 74 6f 53 74 |.....aBo|t.GotoSt|
|00002590| 61 74 65 28 27 41 74 74 | 61 63 6b 69 6e 67 27 29 |ate('Att|acking')|
|000025a0| 3b 0d 0a 09 09 09 09 09 | 72 65 74 75 72 6e 20 74 |;.......|return t|
|000025b0| 72 75 65 3b 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 |rue;....|..}.....|
|000025c0| 7d 0d 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 20 |}.....el|se if ( |
|000025d0| 61 42 6f 74 2e 4f 72 64 | 65 72 73 20 3d 3d 20 27 |aBot.Ord|ers == '|
|000025e0| 41 74 74 61 63 6b 27 20 | 29 0d 0a 09 09 09 7b 0d |Attack' |).....{.|
|000025f0| 0a 09 09 09 09 2f 2f 20 | 62 72 65 61 6b 20 6f 66 |.....// |break of|
|00002600| 66 20 61 74 74 61 63 6b | 20 6f 6e 6c 79 20 69 66 |f attack| only if|
|00002610| 20 6e 65 65 64 65 64 0d | 0a 09 09 09 09 69 66 20 | needed.|.....if |
|00002620| 28 20 62 53 65 65 46 6c | 61 67 20 7c 7c 20 28 45 |( bSeeFl|ag || (E|
|00002630| 6e 65 6d 79 46 6c 61 67 | 2e 48 6f 6c 64 65 72 20 |nemyFlag|.Holder |
|00002640| 21 3d 20 4e 6f 6e 65 29 | 20 0d 0a 09 09 09 09 09 |!= None)| .......|
|00002650| 7c 7c 20 28 28 28 46 72 | 69 65 6e 64 6c 79 46 6c ||| (((Fr|iendlyFl|
|00002660| 61 67 2e 50 6f 73 69 74 | 69 6f 6e 28 29 2e 52 65 |ag.Posit|ion().Re|
|00002670| 67 69 6f 6e 2e 5a 6f 6e | 65 20 21 3d 20 46 72 69 |gion.Zon|e != Fri|
|00002680| 65 6e 64 6c 79 46 6c 61 | 67 2e 48 6f 6d 65 62 61 |endlyFla|g.Homeba|
|00002690| 73 65 2e 52 65 67 69 6f | 6e 2e 5a 6f 6e 65 29 20 |se.Regio|n.Zone) |
|000026a0| 7c 7c 20 28 56 53 69 7a | 65 28 46 72 69 65 6e 64 ||| (VSiz|e(Friend|
|000026b0| 6c 79 46 6c 61 67 2e 48 | 6f 6d 65 62 61 73 65 2e |lyFlag.H|omebase.|
|000026c0| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 46 72 69 65 6e |Location| - Frien|
|000026d0| 64 6c 79 46 6c 61 67 2e | 50 6f 73 69 74 69 6f 6e |dlyFlag.|Position|
|000026e0| 28 29 2e 4c 6f 63 61 74 | 69 6f 6e 29 20 3e 20 31 |().Locat|ion) > 1|
|000026f0| 30 30 30 29 29 20 0d 0a | 09 09 09 09 09 09 26 26 |000)) ..|......&&|
|00002700| 20 28 28 61 42 6f 74 2e | 52 65 67 69 6f 6e 2e 5a | ((aBot.|Region.Z|
|00002710| 6f 6e 65 20 21 3d 20 45 | 6e 65 6d 79 46 6c 61 67 |one != E|nemyFlag|
|00002720| 2e 52 65 67 69 6f 6e 2e | 5a 6f 6e 65 29 0d 0a 09 |.Region.|Zone)...|
|00002730| 09 09 09 09 09 09 7c 7c | 20 28 56 53 69 7a 65 28 |......||| (VSize(|
|00002740| 61 42 6f 74 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |aBot.Loc|ation - |
|00002750| 45 6e 65 6d 79 46 6c 61 | 67 2e 4c 6f 63 61 74 69 |EnemyFla|g.Locati|
|00002760| 6f 6e 29 20 3e 20 31 36 | 30 30 29 20 7c 7c 20 28 |on) > 16|00) || (|
|00002770| 56 53 69 7a 65 28 61 42 | 6f 74 2e 4c 6f 63 61 74 |VSize(aB|ot.Locat|
|00002780| 69 6f 6e 20 2d 20 46 72 | 69 65 6e 64 6c 79 46 6c |ion - Fr|iendlyFl|
|00002790| 61 67 2e 50 6f 73 69 74 | 69 6f 6e 28 29 2e 4c 6f |ag.Posit|ion().Lo|
|000027a0| 63 61 74 69 6f 6e 29 20 | 3c 20 31 32 30 30 29 29 |cation) |< 1200))|
|000027b0| 29 20 29 0d 0a 09 09 09 | 09 7b 0d 0a 09 09 09 09 |) ).....|.{......|
|000027c0| 09 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 62 4b |.Friendl|yFlag.bK|
|000027d0| 6e 6f 77 6e 4c 6f 63 61 | 74 69 6f 6e 20 3d 20 74 |nownLoca|tion = t|
|000027e0| 72 75 65 3b 0d 0a 09 09 | 09 09 09 61 42 6f 74 2e |rue;....|...aBot.|
|000027f0| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 61 42 6f |MoveTarg|et = aBo|
|00002800| 74 2e 46 69 6e 64 50 61 | 74 68 54 6f 77 61 72 64 |t.FindPa|thToward|
|00002810| 28 46 72 69 65 6e 64 6c | 79 46 6c 61 67 2e 50 6f |(Friendl|yFlag.Po|
|00002820| 73 69 74 69 6f 6e 28 29 | 29 3b 0d 0a 09 09 09 09 |sition()|);......|
|00002830| 09 61 42 6f 74 2e 41 6c | 74 65 72 6e 61 74 65 50 |.aBot.Al|ternateP|
|00002840| 61 74 68 20 3d 20 4e 6f | 6e 65 3b 0d 0a 09 09 09 |ath = No|ne;.....|
|00002850| 09 09 69 66 20 28 20 61 | 42 6f 74 2e 4d 6f 76 65 |..if ( a|Bot.Move|
|00002860| 54 61 72 67 65 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |Target !|= None )|
|00002870| 0d 0a 09 09 09 09 09 7b | 0d 0a 09 09 09 09 09 09 |.......{|........|
|00002880| 53 65 74 41 74 74 72 61 | 63 74 69 6f 6e 53 74 61 |SetAttra|ctionSta|
|00002890| 74 65 46 6f 72 28 61 42 | 6f 74 29 3b 0d 0a 09 09 |teFor(aB|ot);....|
|000028a0| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|000028b0| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 7d 0d |.......}|......}.|
|000028c0| 0a 09 09 09 7d 0d 0a 09 | 09 09 65 6c 73 65 20 69 |....}...|..else i|
|000028d0| 66 20 28 20 28 21 62 4f | 72 64 65 72 65 64 20 7c |f ( (!bO|rdered ||
|000028e0| 7c 20 41 42 6f 74 2e 4f | 72 64 65 72 4f 62 6a 65 || ABot.O|rderObje|
|000028f0| 63 74 2e 49 73 41 28 27 | 42 6f 74 27 29 29 20 0d |ct.IsA('|Bot')) .|
|00002900| 0a 09 09 09 09 26 26 20 | 28 46 72 69 65 6e 64 6c |.....&& |(Friendl|
|00002910| 79 46 6c 61 67 2e 62 4b | 6e 6f 77 6e 4c 6f 63 61 |yFlag.bK|nownLoca|
|00002920| 74 69 6f 6e 20 7c 7c 20 | 28 46 52 61 6e 64 28 29 |tion || |(FRand()|
|00002930| 20 3c 20 30 2e 31 29 29 | 20 29 20 0d 0a 09 09 09 | < 0.1))| ) .....|
|00002940| 7b 0d 0a 09 09 09 09 46 | 72 69 65 6e 64 6c 79 46 |{......F|riendlyF|
|00002950| 6c 61 67 2e 62 4b 6e 6f | 77 6e 4c 6f 63 61 74 69 |lag.bKno|wnLocati|
|00002960| 6f 6e 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |on = tru|e;......|
|00002970| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00002980| 3d 20 61 42 6f 74 2e 46 | 69 6e 64 50 61 74 68 54 |= aBot.F|indPathT|
|00002990| 6f 77 61 72 64 28 46 72 | 69 65 6e 64 6c 79 46 6c |oward(Fr|iendlyFl|
|000029a0| 61 67 2e 50 6f 73 69 74 | 69 6f 6e 28 29 29 3b 0d |ag.Posit|ion());.|
|000029b0| 0a 09 09 09 09 69 66 20 | 28 20 61 42 6f 74 2e 4d |.....if |( aBot.M|
|000029c0| 6f 76 65 54 61 72 67 65 | 74 20 21 3d 20 4e 6f 6e |oveTarge|t != Non|
|000029d0| 65 20 29 0d 0a 09 09 09 | 09 7b 0d 0a 09 09 09 09 |e ).....|.{......|
|000029e0| 09 53 65 74 41 74 74 72 | 61 63 74 69 6f 6e 53 74 |.SetAttr|actionSt|
|000029f0| 61 74 65 46 6f 72 28 61 | 42 6f 74 29 3b 0d 0a 09 |ateFor(a|Bot);...|
|00002a00| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00002a10| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 09 |......}.|....}...|
|00002a20| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 20 |.}...}..|...if ( |
|00002a30| 45 6e 65 6d 79 46 6c 61 | 67 2e 48 6f 6c 64 65 72 |EnemyFla|g.Holder|
|00002a40| 20 3d 3d 20 61 42 6f 74 | 20 29 0d 0a 09 7b 0d 0a | == aBot| )...{..|
|00002a50| 09 09 61 42 6f 74 2e 62 | 43 61 6e 54 72 61 6e 73 |..aBot.b|CanTrans|
|00002a60| 6c 6f 63 61 74 65 20 3d | 20 66 61 6c 73 65 3b 0d |locate =| false;.|
|00002a70| 0a 09 09 62 52 65 61 63 | 68 48 6f 6d 65 20 3d 20 |...bReac|hHome = |
|00002a80| 61 42 6f 74 2e 41 63 74 | 6f 72 52 65 61 63 68 61 |aBot.Act|orReacha|
|00002a90| 62 6c 65 28 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |ble(Frie|ndlyFlag|
|00002aa0| 2e 48 6f 6d 65 42 61 73 | 65 29 3b 0d 0a 09 09 69 |.HomeBas|e);....i|
|00002ab0| 66 20 28 20 62 52 65 61 | 63 68 48 6f 6d 65 20 26 |f ( bRea|chHome &|
|00002ac0| 26 20 21 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |& !Frien|dlyFlag.|
|00002ad0| 62 48 6f 6d 65 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |bHome ).|...{....|
|00002ae0| 09 61 42 6f 74 2e 53 65 | 6e 64 54 65 61 6d 4d 65 |.aBot.Se|ndTeamMe|
|00002af0| 73 73 61 67 65 28 4e 6f | 6e 65 2c 20 27 4f 54 48 |ssage(No|ne, 'OTH|
|00002b00| 45 52 27 2c 20 31 2c 20 | 32 35 29 3b 0d 0a 09 09 |ER', 1, |25);....|
|00002b10| 09 61 42 6f 74 2e 4f 72 | 64 65 72 73 20 3d 20 27 |.aBot.Or|ders = '|
|00002b20| 46 72 65 65 6c 61 6e 63 | 65 27 3b 0d 0a 09 09 09 |Freelanc|e';.....|
|00002b30| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00002b40| 09 7d 0d 0a 09 09 69 66 | 20 28 20 62 52 65 61 63 |.}....if| ( bReac|
|00002b50| 68 48 6f 6d 65 20 26 26 | 20 28 56 53 69 7a 65 28 |hHome &&| (VSize(|
|00002b60| 61 42 6f 74 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |aBot.Loc|ation - |
|00002b70| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 4c 6f 63 |Friendly|Flag.Loc|
|00002b80| 61 74 69 6f 6e 29 20 3c | 20 33 30 29 20 29 0d 0a |ation) <| 30) )..|
|00002b90| 09 09 09 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |...Frien|dlyFlag.|
|00002ba0| 54 6f 75 63 68 28 61 42 | 6f 74 29 3b 0d 0a 09 09 |Touch(aB|ot);....|
|00002bb0| 69 66 20 28 20 61 42 6f | 74 2e 45 6e 65 6d 79 20 |if ( aBo|t.Enemy |
|00002bc0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|00002bd0| 09 09 09 69 66 20 28 20 | 61 42 6f 74 2e 48 65 61 |...if ( |aBot.Hea|
|00002be0| 6c 74 68 20 3c 20 36 30 | 20 29 0d 0a 09 09 09 09 |lth < 60| )......|
|00002bf0| 61 42 6f 74 2e 53 65 6e | 64 54 65 61 6d 4d 65 73 |aBot.Sen|dTeamMes|
|00002c00| 73 61 67 65 28 4e 6f 6e | 65 2c 20 27 4f 54 48 45 |sage(Non|e, 'OTHE|
|00002c10| 52 27 2c 20 31 33 2c 20 | 32 35 29 3b 0d 0a 09 09 |R', 13, |25);....|
|00002c20| 09 69 66 20 28 20 21 61 | 42 6f 74 2e 49 73 49 6e |.if ( !a|Bot.IsIn|
|00002c30| 53 74 61 74 65 28 27 46 | 61 6c 6c 42 61 63 6b 27 |State('F|allBack'|
|00002c40| 29 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 61 |) ).....|{......a|
|00002c50| 42 6f 74 2e 62 4e 6f 43 | 6c 65 61 72 53 70 65 63 |Bot.bNoC|learSpec|
|00002c60| 69 61 6c 20 3d 20 74 72 | 75 65 3b 0d 0a 09 09 09 |ial = tr|ue;.....|
|00002c70| 09 61 42 6f 74 2e 54 77 | 65 65 6e 54 6f 52 75 6e |.aBot.Tw|eenToRun|
|00002c80| 6e 69 6e 67 28 30 2e 31 | 29 3b 0d 0a 09 09 09 09 |ning(0.1|);......|
|00002c90| 61 42 6f 74 2e 47 6f 74 | 6f 53 74 61 74 65 28 27 |aBot.Got|oState('|
|00002ca0| 46 61 6c 6c 62 61 63 6b | 27 2c 20 27 53 70 65 63 |Fallback|', 'Spec|
|00002cb0| 69 61 6c 4e 61 76 69 67 | 27 29 3b 0d 0a 09 09 09 |ialNavig|');.....|
|00002cc0| 7d 0d 0a 09 09 09 69 66 | 20 28 20 62 52 65 61 63 |}.....if| ( bReac|
|00002cd0| 68 48 6f 6d 65 20 29 0d | 0a 09 09 09 09 61 42 6f |hHome ).|.....aBo|
|00002ce0| 74 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 3d 20 46 |t.MoveTa|rget = F|
|00002cf0| 72 69 65 6e 64 6c 79 46 | 6c 61 67 2e 48 6f 6d 65 |riendlyF|lag.Home|
|00002d00| 42 61 73 65 3b 0d 0a 09 | 09 09 65 6c 73 65 0d 0a |Base;...|..else..|
|00002d10| 09 09 09 09 72 65 74 75 | 72 6e 20 46 69 6e 64 50 |....retu|rn FindP|
|00002d20| 61 74 68 54 6f 42 61 73 | 65 28 61 42 6f 74 2c 20 |athToBas|e(aBot, |
|00002d30| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 48 6f 6d |Friendly|Flag.Hom|
|00002d40| 65 42 61 73 65 29 3b 0d | 0a 09 09 7d 0d 0a 09 09 |eBase);.|...}....|
|00002d50| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |else....|{.....if|
|00002d60| 20 28 20 21 61 42 6f 74 | 2e 49 73 49 6e 53 74 61 | ( !aBot|.IsInSta|
|00002d70| 74 65 28 27 52 6f 61 6d | 69 6e 67 27 29 20 29 0d |te('Roam|ing') ).|
|00002d80| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....{...|...aBot.|
|00002d90| 62 4e 6f 43 6c 65 61 72 | 53 70 65 63 69 61 6c 20 |bNoClear|Special |
|00002da0| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 61 42 6f |= true;.|.....aBo|
|00002db0| 74 2e 54 77 65 65 6e 54 | 6f 52 75 6e 6e 69 6e 67 |t.TweenT|oRunning|
|00002dc0| 28 30 2e 31 29 3b 0d 0a | 09 09 09 09 61 42 6f 74 |(0.1);..|....aBot|
|00002dd0| 2e 47 6f 74 6f 53 74 61 | 74 65 28 27 52 6f 61 6d |.GotoSta|te('Roam|
|00002de0| 69 6e 67 27 2c 20 27 53 | 70 65 63 69 61 6c 4e 61 |ing', 'S|pecialNa|
|00002df0| 76 69 67 27 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |vig');..|...}....|
|00002e00| 09 69 66 20 28 20 62 52 | 65 61 63 68 48 6f 6d 65 |.if ( bR|eachHome|
|00002e10| 20 29 0d 0a 09 09 09 09 | 61 42 6f 74 2e 4d 6f 76 | )......|aBot.Mov|
|00002e20| 65 54 61 72 67 65 74 20 | 3d 20 46 72 69 65 6e 64 |eTarget |= Friend|
|00002e30| 6c 79 46 6c 61 67 2e 48 | 6f 6d 65 42 61 73 65 3b |lyFlag.H|omeBase;|
|00002e40| 0d 0a 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 09 72 |.....els|e......r|
|00002e50| 65 74 75 72 6e 20 46 69 | 6e 64 50 61 74 68 54 6f |eturn Fi|ndPathTo|
|00002e60| 42 61 73 65 28 61 42 6f | 74 2c 20 46 72 69 65 6e |Base(aBo|t, Frien|
|00002e70| 64 6c 79 46 6c 61 67 2e | 48 6f 6d 65 42 61 73 65 |dlyFlag.|HomeBase|
|00002e80| 29 3b 0d 0a 09 09 7d 09 | 09 0d 0a 09 09 72 65 74 |);....}.|.....ret|
|00002e90| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 0d |urn true|;...}...|
|00002ea0| 0a 09 69 66 20 28 20 45 | 6e 65 6d 79 46 6c 61 67 |..if ( E|nemyFlag|
|00002eb0| 2e 48 6f 6c 64 65 72 20 | 3d 3d 20 4e 6f 6e 65 20 |.Holder |== None |
|00002ec0| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 61 42 |)...{...|.if ( aB|
|00002ed0| 6f 74 2e 41 63 74 6f 72 | 52 65 61 63 68 61 62 6c |ot.Actor|Reachabl|
|00002ee0| 65 28 45 6e 65 6d 79 46 | 6c 61 67 29 20 29 0d 0a |e(EnemyF|lag) )..|
|00002ef0| 09 09 7b 0d 0a 09 09 09 | 61 42 6f 74 2e 4d 6f 76 |..{.....|aBot.Mov|
|00002f00| 65 54 61 72 67 65 74 20 | 3d 20 45 6e 65 6d 79 46 |eTarget |= EnemyF|
|00002f10| 6c 61 67 3b 0d 0a 09 09 | 09 53 65 74 41 74 74 72 |lag;....|.SetAttr|
|00002f20| 61 63 74 69 6f 6e 53 74 | 61 74 65 46 6f 72 28 61 |actionSt|ateFor(a|
|00002f30| 42 6f 74 29 3b 0d 0a 09 | 09 09 72 65 74 75 72 6e |Bot);...|..return|
|00002f40| 20 74 72 75 65 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 | true;..|..}....e|
|00002f50| 6c 73 65 20 69 66 20 28 | 20 28 61 42 6f 74 2e 4f |lse if (| (aBot.O|
|00002f60| 72 64 65 72 73 20 3d 3d | 20 27 41 74 74 61 63 6b |rders ==| 'Attack|
|00002f70| 27 29 0d 0a 09 09 09 09 | 20 7c 7c 20 28 28 61 42 |')......| || ((aB|
|00002f80| 6f 74 2e 4f 72 64 65 72 | 73 20 3d 3d 20 27 46 6f |ot.Order|s == 'Fo|
|00002f90| 6c 6c 6f 77 27 29 20 26 | 26 20 61 42 6f 74 2e 4f |llow') &|& aBot.O|
|00002fa0| 72 64 65 72 4f 62 6a 65 | 63 74 2e 49 73 41 28 27 |rderObje|ct.IsA('|
|00002fb0| 42 6f 74 27 29 0d 0a 09 | 09 09 09 09 26 26 20 28 |Bot')...|....&& (|
|00002fc0| 28 50 61 77 6e 28 61 42 | 6f 74 2e 4f 72 64 65 72 |(Pawn(aB|ot.Order|
|00002fd0| 4f 62 6a 65 63 74 29 2e | 48 65 61 6c 74 68 20 3c |Object).|Health <|
|00002fe0| 3d 20 30 29 20 0d 0a 09 | 09 09 09 09 09 20 7c 7c |= 0) ...|..... |||
|00002ff0| 20 28 28 45 6e 65 6d 79 | 46 6c 61 67 2e 52 65 67 | ((Enemy|Flag.Reg|
|00003000| 69 6f 6e 2e 5a 6f 6e 65 | 20 3d 3d 20 61 42 6f 74 |ion.Zone| == aBot|
|00003010| 2e 52 65 67 69 6f 6e 2e | 5a 6f 6e 65 29 20 26 26 |.Region.|Zone) &&|
|00003020| 20 28 56 53 69 7a 65 28 | 45 6e 65 6d 79 46 6c 61 | (VSize(|EnemyFla|
|00003030| 67 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 61 42 6f |g.Locati|on - aBo|
|00003040| 74 2e 4c 6f 63 61 74 69 | 6f 6e 29 20 3c 20 32 30 |t.Locati|on) < 20|
|00003050| 30 30 29 29 29 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 |00)))) )|....{...|
|00003060| 09 09 69 66 20 28 20 21 | 61 42 6f 74 2e 62 4b 61 |..if ( !|aBot.bKa|
|00003070| 6d 69 6b 61 7a 65 0d 0a | 09 09 09 09 26 26 20 28 |mikaze..|....&& (|
|00003080| 20 28 61 42 6f 74 2e 57 | 65 61 70 6f 6e 20 3d 3d | (aBot.W|eapon ==|
|00003090| 20 4e 6f 6e 65 29 20 7c | 7c 20 28 61 42 6f 74 2e | None) ||| (aBot.|
|000030a0| 57 65 61 70 6f 6e 2e 41 | 49 52 61 74 69 6e 67 20 |Weapon.A|IRating |
|000030b0| 3c 20 30 2e 34 29 29 20 | 29 0d 0a 09 09 09 7b 0d |< 0.4)) |).....{.|
|000030c0| 0a 09 09 09 09 61 42 6f | 74 2e 62 4b 61 6d 69 6b |.....aBo|t.bKamik|
|000030d0| 61 7a 65 20 3d 20 28 20 | 46 52 61 6e 64 28 29 20 |aze = ( |FRand() |
|000030e0| 3c 20 30 2e 31 20 29 3b | 0d 0a 09 09 09 09 72 65 |< 0.1 );|......re|
|000030f0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 09 09 09 |turn fal|se;.....|
|00003100| 7d 0d 0a 0d 0a 09 09 09 | 69 66 20 28 20 28 61 42 |}.......|if ( (aB|
|00003110| 6f 74 2e 45 6e 65 6d 79 | 20 21 3d 20 4e 6f 6e 65 |ot.Enemy| != None|
|00003120| 29 20 0d 0a 09 09 09 09 | 26 26 20 28 61 42 6f 74 |) ......|&& (aBot|
|00003130| 2e 45 6e 65 6d 79 2e 49 | 73 41 28 27 50 6c 61 79 |.Enemy.I|sA('Play|
|00003140| 65 72 50 61 77 6e 27 29 | 20 7c 7c 20 28 61 42 6f |erPawn')| || (aBo|
|00003150| 74 2e 45 6e 65 6d 79 2e | 49 73 41 28 27 42 6f 74 |t.Enemy.|IsA('Bot|
|00003160| 27 29 20 26 26 20 28 42 | 6f 74 28 61 42 6f 74 2e |') && (B|ot(aBot.|
|00003170| 45 6e 65 6d 79 29 2e 4f | 72 64 65 72 73 20 3d 3d |Enemy).O|rders ==|
|00003180| 20 27 41 74 74 61 63 6b | 27 29 29 29 0d 0a 09 09 | 'Attack|')))....|
|00003190| 09 09 26 26 20 28 28 28 | 61 42 6f 74 2e 45 6e 65 |..&& (((|aBot.Ene|
|000031a0| 6d 79 2e 52 65 67 69 6f | 6e 2e 5a 6f 6e 65 20 3d |my.Regio|n.Zone =|
|000031b0| 3d 20 46 72 69 65 6e 64 | 6c 79 46 6c 61 67 2e 48 |= Friend|lyFlag.H|
|000031c0| 6f 6d 65 42 61 73 65 2e | 52 65 67 69 6f 6e 2e 5a |omeBase.|Region.Z|
|000031d0| 6f 6e 65 29 20 26 26 20 | 28 45 6e 65 6d 79 46 6c |one) && |(EnemyFl|
|000031e0| 61 67 2e 48 6f 6d 65 42 | 61 73 65 2e 52 65 67 69 |ag.HomeB|ase.Regi|
|000031f0| 6f 6e 2e 5a 6f 6e 65 20 | 21 3d 20 46 72 69 65 6e |on.Zone |!= Frien|
|00003200| 64 6c 79 46 6c 61 67 2e | 48 6f 6d 65 42 61 73 65 |dlyFlag.|HomeBase|
|00003210| 2e 52 65 67 69 6f 6e 2e | 5a 6f 6e 65 29 29 20 0d |.Region.|Zone)) .|
|00003220| 0a 09 09 09 09 09 7c 7c | 20 28 56 53 69 7a 65 28 |......||| (VSize(|
|00003230| 61 42 6f 74 2e 45 6e 65 | 6d 79 2e 4c 6f 63 61 74 |aBot.Ene|my.Locat|
|00003240| 69 6f 6e 20 2d 20 46 72 | 69 65 6e 64 6c 79 46 6c |ion - Fr|iendlyFl|
|00003250| 61 67 2e 48 6f 6d 65 42 | 61 73 65 2e 4c 6f 63 61 |ag.HomeB|ase.Loca|
|00003260| 74 69 6f 6e 29 20 3c 20 | 30 2e 36 20 2a 20 56 53 |tion) < |0.6 * VS|
|00003270| 69 7a 65 28 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |ize(aBot|.Locatio|
|00003280| 6e 20 2d 20 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |n - Enem|yFlag.Ho|
|00003290| 6d 65 42 61 73 65 2e 4c | 6f 63 61 74 69 6f 6e 29 |meBase.L|ocation)|
|000032a0| 29 29 20 29 0d 0a 09 09 | 09 09 7b 0d 0a 09 09 09 |)) )....|..{.....|
|000032b0| 09 09 61 42 6f 74 2e 53 | 65 6e 64 54 65 61 6d 4d |..aBot.S|endTeamM|
|000032c0| 65 73 73 61 67 65 28 4e | 6f 6e 65 2c 20 27 4f 54 |essage(N|one, 'OT|
|000032d0| 48 45 52 27 2c 20 31 34 | 2c 20 31 35 29 3b 20 2f |HER', 14|, 15); /|
|000032e0| 2f 22 49 6e 63 6f 6d 69 | 6e 67 21 22 0d 0a 09 09 |/"Incomi|ng!"....|
|000032f0| 09 09 09 61 42 6f 74 2e | 4f 72 64 65 72 73 20 3d |...aBot.|Orders =|
|00003300| 20 27 46 72 65 65 6c 61 | 6e 63 65 27 3b 0d 0a 09 | 'Freela|nce';...|
|00003310| 09 09 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|00003320| 3b 0d 0a 09 09 09 09 7d | 0d 0a 0d 0a 09 09 09 69 |;......}|.......i|
|00003330| 66 20 28 20 45 6e 65 6d | 79 46 6c 61 67 2e 62 48 |f ( Enem|yFlag.bH|
|00003340| 6f 6d 65 20 29 0d 0a 09 | 09 09 09 46 69 6e 64 50 |ome )...|...FindP|
|00003350| 61 74 68 54 6f 42 61 73 | 65 28 61 42 6f 74 2c 20 |athToBas|e(aBot, |
|00003360| 45 6e 65 6d 79 46 6c 61 | 67 2e 48 6f 6d 65 42 61 |EnemyFla|g.HomeBa|
|00003370| 73 65 29 3b 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |se);....|.else...|
|00003380| 09 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00003390| 65 74 20 3d 20 61 42 6f | 74 2e 46 69 6e 64 50 61 |et = aBo|t.FindPa|
|000033a0| 74 68 54 6f 77 61 72 64 | 28 45 6e 65 6d 79 46 6c |thToward|(EnemyFl|
|000033b0| 61 67 29 3b 0d 0a 09 09 | 09 69 66 20 28 20 61 42 |ag);....|.if ( aB|
|000033c0| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 21 3d |ot.MoveT|arget !=|
|000033d0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 | None ).|....{...|
|000033e0| 09 09 09 53 65 74 41 74 | 74 72 61 63 74 69 6f 6e |...SetAt|traction|
|000033f0| 53 74 61 74 65 46 6f 72 | 28 61 42 6f 74 29 3b 0d |StateFor|(aBot);.|
|00003400| 0a 09 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00003410| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 09 65 6c 73 65 |;.....}.|....else|
|00003420| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 69 66 20 28 |.....{..|....if (|
|00003430| 20 61 42 6f 74 2e 62 56 | 65 72 62 6f 73 65 20 29 | aBot.bV|erbose )|
|00003440| 0d 0a 09 09 09 09 09 6c | 6f 67 28 61 42 6f 74 24 |.......l|og(aBot$|
|00003450| 22 20 6e 6f 20 70 61 74 | 68 20 74 6f 20 66 6c 61 |" no pat|h to fla|
|00003460| 67 22 29 3b 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |g");....|..return|
|00003470| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 7d 0d 0a 09 | false;.|....}...|
|00003480| 09 7d 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c |.}....re|turn fal|
|00003490| 73 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |se;...}.|....if (|
|000034a0| 20 28 62 4f 72 64 65 72 | 65 64 20 26 26 20 21 61 | (bOrder|ed && !a|
|000034b0| 42 6f 74 2e 4f 72 64 65 | 72 4f 62 6a 65 63 74 2e |Bot.Orde|rObject.|
|000034c0| 49 73 41 28 27 42 6f 74 | 27 29 29 20 7c 7c 20 28 |IsA('Bot|')) || (|
|000034d0| 61 42 6f 74 2e 57 65 61 | 70 6f 6e 20 3d 3d 20 4e |aBot.Wea|pon == N|
|000034e0| 6f 6e 65 29 20 7c 7c 20 | 28 61 42 6f 74 2e 57 65 |one) || |(aBot.We|
|000034f0| 61 70 6f 6e 2e 41 49 52 | 61 74 69 6e 67 20 3c 20 |apon.AIR|ating < |
|00003500| 30 2e 34 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |0.4) )..|..return|
|00003510| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 69 66 20 28 | false;.|....if (|
|00003520| 20 28 61 42 6f 74 2e 45 | 6e 65 6d 79 20 3d 3d 20 | (aBot.E|nemy == |
|00003530| 4e 6f 6e 65 29 20 26 26 | 20 28 61 42 6f 74 2e 4f |None) &&| (aBot.O|
|00003540| 72 64 65 72 73 20 21 3d | 20 27 44 65 66 65 6e 64 |rders !=| 'Defend|
|00003550| 27 29 20 29 0d 0a 09 7b | 0d 0a 09 09 44 69 73 74 |') )...{|....Dist|
|00003560| 20 3d 20 56 53 69 7a 65 | 28 61 42 6f 74 2e 4c 6f | = VSize|(aBot.Lo|
|00003570| 63 61 74 69 6f 6e 20 2d | 20 45 6e 65 6d 79 46 6c |cation -| EnemyFl|
|00003580| 61 67 2e 48 6f 6c 64 65 | 72 2e 4c 6f 63 61 74 69 |ag.Holde|r.Locati|
|00003590| 6f 6e 29 3b 0d 0a 09 09 | 69 66 20 28 20 28 44 69 |on);....|if ( (Di|
|000035a0| 73 74 20 3e 20 35 30 30 | 29 20 7c 7c 20 28 56 53 |st > 500|) || (VS|
|000035b0| 69 7a 65 28 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |ize(Enem|yFlag.Ho|
|000035c0| 6c 64 65 72 2e 56 65 6c | 6f 63 69 74 79 29 20 3e |lder.Vel|ocity) >|
|000035d0| 20 32 33 30 29 0d 0a 09 | 09 09 7c 7c 20 21 61 42 | 230)...|..|| !aB|
|000035e0| 6f 74 2e 4c 69 6e 65 4f | 66 53 69 67 68 74 54 6f |ot.LineO|fSightTo|
|000035f0| 28 45 6e 65 6d 79 46 6c | 61 67 2e 48 6f 6c 64 65 |(EnemyFl|ag.Holde|
|00003600| 72 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 61 42 |r) )....|{.....aB|
|00003610| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|00003620| 61 42 6f 74 2e 46 69 6e | 64 50 61 74 68 54 6f 77 |aBot.Fin|dPathTow|
|00003630| 61 72 64 28 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |ard(Enem|yFlag.Ho|
|00003640| 6c 64 65 72 29 3b 0d 0a | 09 09 09 69 66 20 28 20 |lder);..|...if ( |
|00003650| 21 61 42 6f 74 2e 49 73 | 49 6e 53 74 61 74 65 28 |!aBot.Is|InState(|
|00003660| 27 52 6f 61 6d 69 6e 67 | 27 29 20 29 0d 0a 09 09 |'Roaming|') )....|
|00003670| 09 7b 0d 0a 09 09 09 09 | 61 42 6f 74 2e 62 4e 6f |.{......|aBot.bNo|
|00003680| 43 6c 65 61 72 53 70 65 | 63 69 61 6c 20 3d 20 74 |ClearSpe|cial = t|
|00003690| 72 75 65 3b 0d 0a 09 09 | 09 09 61 42 6f 74 2e 54 |rue;....|..aBot.T|
|000036a0| 77 65 65 6e 54 6f 52 75 | 6e 6e 69 6e 67 28 30 2e |weenToRu|nning(0.|
|000036b0| 31 29 3b 0d 0a 09 09 09 | 09 61 42 6f 74 2e 47 6f |1);.....|.aBot.Go|
|000036c0| 74 6f 53 74 61 74 65 28 | 27 52 6f 61 6d 69 6e 67 |toState(|'Roaming|
|000036d0| 27 2c 20 27 53 70 65 63 | 69 61 6c 4e 61 76 69 67 |', 'Spec|ialNavig|
|000036e0| 27 29 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |');.....|.return |
|000036f0| 74 72 75 65 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |true;...|..}.....|
|00003700| 72 65 74 75 72 6e 20 28 | 61 42 6f 74 2e 4d 6f 76 |return (|aBot.Mov|
|00003710| 65 54 61 72 67 65 74 20 | 21 3d 20 4e 6f 6e 65 29 |eTarget |!= None)|
|00003720| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00003730| 09 09 7b 0d 0a 09 09 09 | 69 66 20 28 20 21 61 42 |..{.....|if ( !aB|
|00003740| 6f 74 2e 62 49 6e 69 74 | 4c 69 66 65 4d 65 73 73 |ot.bInit|LifeMess|
|00003750| 61 67 65 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |age )...|..{.....|
|00003760| 09 61 42 6f 74 2e 62 49 | 6e 69 74 4c 69 66 65 4d |.aBot.bI|nitLifeM|
|00003770| 65 73 73 61 67 65 20 3d | 20 74 72 75 65 3b 0d 0a |essage =| true;..|
|00003780| 09 09 09 09 61 42 6f 74 | 2e 53 65 6e 64 54 65 61 |....aBot|.SendTea|
|00003790| 6d 4d 65 73 73 61 67 65 | 28 45 6e 65 6d 79 46 6c |mMessage|(EnemyFl|
|000037a0| 61 67 2e 48 6f 6c 64 65 | 72 2e 50 6c 61 79 65 72 |ag.Holde|r.Player|
|000037b0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2c |Replicat|ionInfo,|
|000037c0| 20 27 4f 54 48 45 52 27 | 2c 20 33 2c 20 31 30 29 | 'OTHER'|, 3, 10)|
|000037d0| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 09 69 66 20 28 |;.....}.|....if (|
|000037e0| 20 46 52 61 6e 64 28 29 | 20 3c 20 30 2e 33 35 20 | FRand()| < 0.35 |
|000037f0| 29 0d 0a 09 09 09 09 61 | 42 6f 74 2e 47 6f 74 6f |)......a|Bot.Goto|
|00003800| 53 74 61 74 65 28 27 57 | 61 6e 64 65 72 69 6e 67 |State('W|andering|
|00003810| 27 29 3b 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |');.....|else....|
|00003820| 09 7b 0d 0a 09 09 09 09 | 61 42 6f 74 2e 43 61 6d |.{......|aBot.Cam|
|00003830| 70 54 69 6d 65 20 3d 20 | 31 2e 30 3b 0d 0a 09 09 |pTime = |1.0;....|
|00003840| 09 09 61 42 6f 74 2e 62 | 43 61 6d 70 4f 6e 6c 79 |..aBot.b|CampOnly|
|00003850| 4f 6e 63 65 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |Once = t|rue;....|
|00003860| 09 09 61 42 6f 74 2e 47 | 6f 74 6f 53 74 61 74 65 |..aBot.G|otoState|
|00003870| 28 27 52 6f 61 6d 69 6e | 67 27 2c 20 27 43 61 6d |('Roamin|g', 'Cam|
|00003880| 70 27 29 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 72 |p');....|.}.....r|
|00003890| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 7d |eturn tr|ue;....}|
|000038a0| 0d 0a 09 7d 0d 0a 09 72 | 65 74 75 72 6e 20 66 61 |...}...r|eturn fa|
|000038b0| 6c 73 65 3b 0d 0a 7d 09 | 09 0d 0a 0d 0a 66 75 6e |lse;..}.|.....fun|
|000038c0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 52 65 73 74 61 |ction bo|ol Resta|
|000038d0| 72 74 50 6c 61 79 65 72 | 28 50 61 77 6e 20 61 50 |rtPlayer|(Pawn aP|
|000038e0| 6c 61 79 65 72 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |layer)..|{...loca|
|000038f0| 6c 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |l Naviga|tionPoin|
|00003900| 74 20 4e 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |t N;...l|ocal int|
|00003910| 20 6e 75 6d 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c | num;...|local fl|
|00003920| 6f 61 74 20 74 6f 74 61 | 6c 57 65 69 67 68 74 2c |oat tota|lWeight,|
|00003930| 20 73 65 6c 65 63 74 69 | 6f 6e 2c 20 70 61 72 74 | selecti|on, part|
|00003940| 69 61 6c 57 65 69 67 68 | 74 3b 0d 0a 09 6c 6f 63 |ialWeigh|t;...loc|
|00003950| 61 6c 20 62 6f 6f 6c 20 | 62 52 65 73 75 6c 74 2c |al bool |bResult,|
|00003960| 20 62 50 6f 77 65 72 50 | 6c 61 79 3b 0d 0a 09 6c | bPowerP|lay;...l|
|00003970| 6f 63 61 6c 20 62 6f 74 | 20 42 3b 0d 0a 09 6c 6f |ocal bot| B;...lo|
|00003980| 63 61 6c 20 50 61 77 6e | 20 50 3b 0d 0a 09 0d 0a |cal Pawn| P;.....|
|00003990| 09 62 52 65 73 75 6c 74 | 20 3d 20 53 75 70 65 72 |.bResult| = Super|
|000039a0| 2e 52 65 73 74 61 72 74 | 50 6c 61 79 65 72 28 61 |.Restart|Player(a|
|000039b0| 50 6c 61 79 65 72 29 3b | 0d 0a 0d 0a 09 42 20 3d |Player);|.....B =|
|000039c0| 20 42 6f 74 28 61 50 6c | 61 79 65 72 29 3b 0d 0a | Bot(aPl|ayer);..|
|000039d0| 09 69 66 20 28 20 42 20 | 3d 3d 20 4e 6f 6e 65 20 |.if ( B |== None |
|000039e0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 62 52 65 73 |)....ret|urn bRes|
|000039f0| 75 6c 74 3b 0d 0a 0d 0a | 09 42 2e 41 6c 74 65 72 |ult;....|.B.Alter|
|00003a00| 6e 61 74 65 50 61 74 68 | 20 3d 20 4e 6f 6e 65 3b |natePath| = None;|
|00003a10| 0d 0a 09 0d 0a 09 69 66 | 20 28 20 42 2e 62 50 6f |......if| ( B.bPo|
|00003a20| 77 65 72 50 6c 61 79 20 | 7c 7c 20 28 42 6f 74 52 |werPlay ||| (BotR|
|00003a30| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 28 42 |eplicati|onInfo(B|
|00003a40| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003a50| 6f 6e 49 6e 66 6f 29 2e | 52 65 61 6c 4f 72 64 65 |onInfo).|RealOrde|
|00003a60| 72 73 20 3d 3d 20 27 44 | 65 66 65 6e 64 27 29 20 |rs == 'D|efend') |
|00003a70| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 20 69 66 20 62 |)...{...|.// if b|
|00003a80| 6f 74 20 6f 6e 6c 79 20 | 74 65 61 6d 20 61 6e 64 |ot only |team and|
|00003a90| 20 61 6c 72 65 61 64 79 | 20 6f 6e 65 20 64 65 66 | already| one def|
|00003aa0| 65 6e 64 65 72 2c 20 35 | 30 25 20 63 68 61 6e 63 |ender, 5|0% chanc|
|00003ab0| 65 20 6f 66 20 70 6f 77 | 65 72 70 6c 61 79 20 66 |e of pow|erplay f|
|00003ac0| 6f 72 20 74 68 69 73 20 | 67 75 79 20 69 66 20 64 |or this |guy if d|
|00003ad0| 65 66 65 6e 64 65 72 0d | 0a 09 09 69 66 20 28 20 |efender.|...if ( |
|00003ae0| 46 52 61 6e 64 28 29 20 | 3c 20 30 2e 35 20 29 0d |FRand() |< 0.5 ).|
|00003af0| 0a 09 09 7b 0d 0a 09 09 | 09 42 2e 62 50 6f 77 65 |...{....|.B.bPowe|
|00003b00| 72 50 6c 61 79 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |rPlay = |false;..|
|00003b10| 09 09 09 42 2e 53 65 74 | 4f 72 64 65 72 73 28 27 |...B.Set|Orders('|
|00003b20| 44 65 66 65 6e 64 27 2c | 20 4e 6f 6e 65 2c 20 74 |Defend',| None, t|
|00003b30| 72 75 65 29 3b 0d 0a 09 | 09 7d 0d 0a 09 09 65 6c |rue);...|.}....el|
|00003b40| 73 65 0d 0a 09 09 7b 0d | 0a 09 09 09 2f 2f 20 63 |se....{.|....// c|
|00003b50| 68 65 63 6b 20 66 6f 72 | 20 62 6f 74 20 6f 6e 6c |heck for| bot onl|
|00003b60| 79 20 74 65 61 6d 20 61 | 6e 64 20 61 6c 72 65 61 |y team a|nd alrea|
|00003b70| 64 79 20 61 20 76 61 6c | 69 64 20 64 65 66 65 6e |dy a val|id defen|
|00003b80| 64 65 72 0d 0a 09 09 09 | 66 6f 72 20 28 20 50 3d |der.....|for ( P=|
|00003b90| 4c 65 76 65 6c 2e 50 61 | 77 6e 4c 69 73 74 3b 20 |Level.Pa|wnList; |
|00003ba0| 50 21 3d 4e 6f 6e 65 3b | 20 50 3d 50 2e 4e 65 78 |P!=None;| P=P.Nex|
|00003bb0| 74 50 61 77 6e 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |tPawn ).|....{...|
|00003bc0| 09 09 09 69 66 20 28 20 | 50 2e 62 49 73 50 6c 61 |...if ( |P.bIsPla|
|00003bd0| 79 65 72 20 26 26 20 28 | 50 2e 50 6c 61 79 65 72 |yer && (|P.Player|
|00003be0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00003bf0| 54 65 61 6d 20 3d 3d 20 | 42 2e 50 6c 61 79 65 72 |Team == |B.Player|
|00003c00| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00003c10| 54 65 61 6d 29 20 29 0d | 0a 09 09 09 09 7b 0d 0a |Team) ).|.....{..|
|00003c20| 09 09 09 09 09 69 66 20 | 28 20 50 2e 49 73 41 28 |.....if |( P.IsA(|
|00003c30| 27 50 6c 61 79 65 72 50 | 61 77 6e 27 29 20 29 0d |'PlayerP|awn') ).|
|00003c40| 0a 09 09 09 09 09 7b 0d | 0a 09 09 09 09 09 09 62 |......{.|.......b|
|00003c50| 50 6f 77 65 72 50 6c 61 | 79 20 3d 20 66 61 6c 73 |PowerPla|y = fals|
|00003c60| 65 3b 0d 0a 09 09 09 09 | 09 09 62 72 65 61 6b 3b |e;......|..break;|
|00003c70| 0d 0a 09 09 09 09 09 7d | 0d 0a 09 09 09 09 09 65 |.......}|.......e|
|00003c80| 6c 73 65 20 69 66 20 28 | 20 50 2e 49 73 41 28 27 |lse if (| P.IsA('|
|00003c90| 42 6f 74 27 29 20 26 26 | 20 28 42 6f 74 28 50 29 |Bot') &&| (Bot(P)|
|00003ca0| 2e 4f 72 64 65 72 73 20 | 3d 3d 20 27 44 65 66 65 |.Orders |== 'Defe|
|00003cb0| 6e 64 27 29 20 29 0d 0a | 09 09 09 09 09 09 62 50 |nd') )..|......bP|
|00003cc0| 6f 77 65 72 50 6c 61 79 | 20 3d 20 74 72 75 65 3b |owerPlay| = true;|
|00003cd0| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 09 |......}.|....}...|
|00003ce0| 09 09 69 66 20 28 20 62 | 50 6f 77 65 72 50 6c 61 |..if ( b|PowerPla|
|00003cf0| 79 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 42 |y ).....|{......B|
|00003d00| 2e 62 50 6f 77 65 72 50 | 6c 61 79 20 3d 20 74 72 |.bPowerP|lay = tr|
|00003d10| 75 65 3b 0d 0a 09 09 09 | 09 42 2e 53 65 74 4f 72 |ue;.....|.B.SetOr|
|00003d20| 64 65 72 73 28 27 41 74 | 74 61 63 6b 27 2c 20 4e |ders('At|tack', N|
|00003d30| 6f 6e 65 2c 20 74 72 75 | 65 29 3b 0d 0a 09 09 09 |one, tru|e);.....|
|00003d40| 7d 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |}....}..|.}.....i|
|00003d50| 66 20 28 20 42 6f 74 52 | 65 70 6c 69 63 61 74 69 |f ( BotR|eplicati|
|00003d60| 6f 6e 49 6e 66 6f 28 42 | 2e 50 6c 61 79 65 72 52 |onInfo(B|.PlayerR|
|00003d70| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|00003d80| 52 65 61 6c 4f 72 64 65 | 72 73 20 21 3d 20 27 41 |RealOrde|rs != 'A|
|00003d90| 74 74 61 63 6b 27 20 29 | 0d 0a 09 09 72 65 74 75 |ttack' )|....retu|
|00003da0| 72 6e 20 62 52 65 73 75 | 6c 74 3b 0d 0a 0d 0a 09 |rn bResu|lt;.....|
|00003db0| 69 66 20 28 20 46 52 61 | 6e 64 28 29 20 3c 20 30 |if ( FRa|nd() < 0|
|00003dc0| 2e 38 20 29 0d 0a 09 7b | 0d 0a 09 09 66 6f 72 20 |.8 )...{|....for |
|00003dd0| 28 20 4e 3d 4c 65 76 65 | 6c 2e 4e 61 76 69 67 61 |( N=Leve|l.Naviga|
|00003de0| 74 69 6f 6e 50 6f 69 6e | 74 4c 69 73 74 3b 20 4e |tionPoin|tList; N|
|00003df0| 21 3d 4e 6f 6e 65 3b 20 | 4e 3d 4e 2e 6e 65 78 74 |!=None; |N=N.next|
|00003e00| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 20 |Navigati|onPoint |
|00003e10| 29 0d 0a 09 09 09 69 66 | 20 28 20 4e 2e 49 73 41 |).....if| ( N.IsA|
|00003e20| 28 27 41 6c 74 65 72 6e | 61 74 65 50 61 74 68 27 |('Altern|atePath'|
|00003e30| 29 20 26 26 20 28 41 6c | 74 65 72 6e 61 74 65 50 |) && (Al|ternateP|
|00003e40| 61 74 68 28 4e 29 2e 74 | 65 61 6d 20 21 3d 20 42 |ath(N).t|eam != B|
|00003e50| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003e60| 6f 6e 49 6e 66 6f 2e 74 | 65 61 6d 29 0d 0a 09 09 |onInfo.t|eam)....|
|00003e70| 09 09 26 26 20 21 41 6c | 74 65 72 6e 61 74 65 50 |..&& !Al|ternateP|
|00003e80| 61 74 68 28 4e 29 2e 62 | 52 65 74 75 72 6e 4f 6e |ath(N).b|ReturnOn|
|00003e90| 6c 79 20 29 0d 0a 09 09 | 09 09 54 6f 74 61 6c 57 |ly )....|..TotalW|
|00003ea0| 65 69 67 68 74 20 2b 3d | 20 41 6c 74 65 72 6e 61 |eight +=| Alterna|
|00003eb0| 74 65 50 61 74 68 28 4e | 29 2e 53 65 6c 65 63 74 |tePath(N|).Select|
|00003ec0| 69 6f 6e 57 65 69 67 68 | 74 3b 0d 0a 09 09 73 65 |ionWeigh|t;....se|
|00003ed0| 6c 65 63 74 69 6f 6e 20 | 3d 20 46 52 61 6e 64 28 |lection |= FRand(|
|00003ee0| 29 20 2a 20 54 6f 74 61 | 6c 57 65 69 67 68 74 3b |) * Tota|lWeight;|
|00003ef0| 0d 0a 09 09 66 6f 72 20 | 28 20 4e 3d 4c 65 76 65 |....for |( N=Leve|
|00003f00| 6c 2e 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |l.Naviga|tionPoin|
|00003f10| 74 4c 69 73 74 3b 20 4e | 21 3d 4e 6f 6e 65 3b 20 |tList; N|!=None; |
|00003f20| 4e 3d 4e 2e 6e 65 78 74 | 4e 61 76 69 67 61 74 69 |N=N.next|Navigati|
|00003f30| 6f 6e 50 6f 69 6e 74 20 | 29 0d 0a 09 09 09 69 66 |onPoint |).....if|
|00003f40| 20 28 20 4e 2e 49 73 41 | 28 27 41 6c 74 65 72 6e | ( N.IsA|('Altern|
|00003f50| 61 74 65 50 61 74 68 27 | 29 20 26 26 20 28 41 6c |atePath'|) && (Al|
|00003f60| 74 65 72 6e 61 74 65 50 | 61 74 68 28 4e 29 2e 74 |ternateP|ath(N).t|
|00003f70| 65 61 6d 20 21 3d 20 42 | 2e 50 6c 61 79 65 72 52 |eam != B|.PlayerR|
|00003f80| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 74 |eplicati|onInfo.t|
|00003f90| 65 61 6d 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |eam) )..|...{....|
|00003fa0| 09 09 42 2e 41 6c 74 65 | 72 6e 61 74 65 50 61 74 |..B.Alte|rnatePat|
|00003fb0| 68 20 3d 20 41 6c 74 65 | 72 6e 61 74 65 50 61 74 |h = Alte|rnatePat|
|00003fc0| 68 28 4e 29 3b 0d 0a 09 | 09 09 09 50 61 72 74 69 |h(N);...|...Parti|
|00003fd0| 61 6c 57 65 69 67 68 74 | 20 2b 3d 20 41 6c 74 65 |alWeight| += Alte|
|00003fe0| 72 6e 61 74 65 50 61 74 | 68 28 4e 29 2e 53 65 6c |rnatePat|h(N).Sel|
|00003ff0| 65 63 74 69 6f 6e 57 65 | 69 67 68 74 3b 0d 0a 09 |ectionWe|ight;...|
|00004000| 09 09 09 69 66 20 28 20 | 50 61 72 74 69 61 6c 57 |...if ( |PartialW|
|00004010| 65 69 67 68 74 20 3e 20 | 73 65 6c 65 63 74 69 6f |eight > |selectio|
|00004020| 6e 20 29 0d 0a 09 09 09 | 09 09 62 72 65 61 6b 3b |n ).....|..break;|
|00004030| 0d 0a 09 09 09 7d 0d 0a | 09 7d 0d 0a 09 72 65 74 |.....}..|.}...ret|
|00004040| 75 72 6e 20 62 52 65 73 | 75 6c 74 3b 0d 0a 7d 0d |urn bRes|ult;..}.|
|00004050| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 65 74 42 |...funct|ion SetB|
|00004060| 6f 74 4f 72 64 65 72 73 | 28 42 6f 74 20 4e 65 77 |otOrders|(Bot New|
|00004070| 42 6f 74 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Bot)..{.|..local |
|00004080| 50 61 77 6e 20 50 2c 20 | 4c 2c 20 4d 3b 0d 0a 09 |Pawn P, |L, M;...|
|00004090| 6c 6f 63 61 6c 20 69 6e | 74 20 6e 75 6d 3b 0d 0a |local in|t num;..|
|000040a0| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 41 76 61 |.local b|ool bAva|
|000040b0| 69 6c 61 62 6c 65 3b 0d | 0a 0d 0a 09 69 66 20 28 |ilable;.|....if (|
|000040c0| 20 43 75 72 72 65 6e 74 | 4f 72 64 65 72 73 5b 4e | Current|Orders[N|
|000040d0| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|000040e0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000040f0| 5d 20 3d 3d 20 27 46 72 | 65 65 6c 61 6e 63 65 27 |] == 'Fr|eelance'|
|00004100| 20 29 0d 0a 09 09 43 75 | 72 72 65 6e 74 4f 72 64 | )....Cu|rrentOrd|
|00004110| 65 72 73 5b 4e 65 77 42 | 6f 74 2e 50 6c 61 79 65 |ers[NewB|ot.Playe|
|00004120| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004130| 2e 54 65 61 6d 5d 20 3d | 20 27 41 74 74 61 63 6b |.Team] =| 'Attack|
|00004140| 27 3b 0d 0a 09 65 6c 73 | 65 20 69 66 20 28 20 43 |';...els|e if ( C|
|00004150| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|00004160| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004170| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|00004180| 3d 3d 20 27 44 65 66 65 | 6e 64 27 20 29 0d 0a 09 |== 'Defe|nd' )...|
|00004190| 09 43 75 72 72 65 6e 74 | 4f 72 64 65 72 73 5b 4e |.Current|Orders[N|
|000041a0| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|000041b0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000041c0| 5d 20 3d 20 27 46 72 65 | 65 6c 61 6e 63 65 27 3b |] = 'Fre|elance';|
|000041d0| 0d 0a 09 65 6c 73 65 20 | 0d 0a 09 7b 0d 0a 09 09 |...else |...{....|
|000041e0| 43 75 72 72 65 6e 74 4f | 72 64 65 72 73 5b 4e 65 |CurrentO|rders[Ne|
|000041f0| 77 42 6f 74 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |wBot.Pla|yerRepli|
|00004200| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 5d |cationIn|fo.Team]|
|00004210| 20 3d 20 27 44 65 66 65 | 6e 64 27 3b 09 09 0d 0a | = 'Defe|nd';....|
|00004220| 09 09 69 66 20 28 20 62 | 4e 6f 76 69 63 65 4d 6f |..if ( b|NoviceMo|
|00004230| 64 65 20 29 0d 0a 09 09 | 09 66 6f 72 20 28 20 50 |de )....|.for ( P|
|00004240| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|00004250| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 20 50 2e 4e | P!=None|; P= P.N|
|00004260| 65 78 74 50 61 77 6e 20 | 29 0d 0a 09 09 09 09 69 |extPawn |)......i|
|00004270| 66 20 28 20 50 2e 62 49 | 73 50 6c 61 79 65 72 20 |f ( P.bI|sPlayer |
|00004280| 26 26 20 28 50 20 21 3d | 20 4e 65 77 42 6f 74 29 |&& (P !=| NewBot)|
|00004290| 20 26 26 20 28 50 2e 50 | 6c 61 79 65 72 52 65 70 | && (P.P|layerRep|
|000042a0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|000042b0| 6d 20 3d 3d 20 4e 65 77 | 42 6f 74 2e 50 6c 61 79 |m == New|Bot.Play|
|000042c0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000042d0| 6f 2e 54 65 61 6d 29 0d | 0a 09 09 09 09 09 26 26 |o.Team).|......&&|
|000042e0| 20 50 2e 49 73 41 28 27 | 42 6f 74 27 29 20 26 26 | P.IsA('|Bot') &&|
|000042f0| 20 28 42 6f 74 52 65 70 | 6c 69 63 61 74 69 6f 6e | (BotRep|lication|
|00004300| 49 6e 66 6f 28 50 2e 50 | 6c 61 79 65 72 52 65 70 |Info(P.P|layerRep|
|00004310| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 29 2e 52 65 |lication|Info).Re|
|00004320| 61 6c 4f 72 64 65 72 73 | 20 3d 3d 20 27 44 65 66 |alOrders| == 'Def|
|00004330| 65 6e 64 27 29 20 26 26 | 20 28 46 52 61 6e 64 28 |end') &&| (FRand(|
|00004340| 29 20 3c 20 30 2e 35 29 | 20 29 0d 0a 09 09 09 09 |) < 0.5)| )......|
|00004350| 09 7b 09 0d 0a 09 09 09 | 09 09 09 43 75 72 72 65 |.{......|...Curre|
|00004360| 6e 74 4f 72 64 65 72 73 | 5b 4e 65 77 42 6f 74 2e |ntOrders|[NewBot.|
|00004370| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004380| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 20 3d 20 27 41 |nInfo.Te|am] = 'A|
|00004390| 74 74 61 63 6b 27 3b 0d | 0a 09 09 09 09 09 09 62 |ttack';.|.......b|
|000043a0| 72 65 61 6b 3b 0d 0a 09 | 09 09 09 09 7d 0d 0a 09 |reak;...|....}...|
|000043b0| 7d 09 09 0d 0a 0d 0a 09 | 69 66 20 28 20 28 28 43 |}.......|if ( ((C|
|000043c0| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|000043d0| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|000043e0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|000043f0| 3d 3d 20 27 41 74 74 61 | 63 6b 27 29 20 7c 7c 20 |== 'Atta|ck') || |
|00004400| 28 43 75 72 72 65 6e 74 | 4f 72 64 65 72 73 5b 4e |(Current|Orders[N|
|00004410| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|00004420| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00004430| 5d 20 3d 3d 20 27 46 72 | 65 65 6c 61 6e 63 65 27 |] == 'Fr|eelance'|
|00004440| 29 29 09 0d 0a 09 09 26 | 26 20 28 4e 75 6d 53 75 |)).....&|& (NumSu|
|00004450| 70 70 6f 72 74 69 6e 67 | 50 6c 61 79 65 72 20 3d |pporting|Player =|
|00004460| 3d 20 30 29 20 29 0d 0a | 09 7b 0d 0a 09 09 46 6f |= 0) )..|.{....Fo|
|00004470| 72 20 28 20 50 3d 4c 65 | 76 65 6c 2e 50 61 77 6e |r ( P=Le|vel.Pawn|
|00004480| 4c 69 73 74 3b 20 50 21 | 3d 4e 6f 6e 65 3b 20 50 |List; P!|=None; P|
|00004490| 3d 50 2e 4e 65 78 74 50 | 61 77 6e 20 29 0d 0a 09 |=P.NextP|awn )...|
|000044a0| 09 09 69 66 20 28 20 50 | 2e 49 73 41 28 27 50 6c |..if ( P|.IsA('Pl|
|000044b0| 61 79 65 72 50 61 77 6e | 27 29 20 26 26 20 28 50 |ayerPawn|') && (P|
|000044c0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000044d0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 4e |onInfo.T|eam == N|
|000044e0| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|000044f0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00004500| 29 0d 0a 09 09 09 09 26 | 26 20 21 50 2e 49 73 41 |)......&|& !P.IsA|
|00004510| 28 27 53 70 65 63 74 61 | 74 6f 72 27 29 20 29 0d |('Specta|tor') ).|
|00004520| 0a 09 09 7b 0d 0a 09 09 | 09 6e 75 6d 2b 2b 3b 0d |...{....|.num++;.|
|00004530| 0a 09 09 09 69 66 20 28 | 20 28 4c 20 3d 3d 20 4e |....if (| (L == N|
|00004540| 6f 6e 65 29 20 7c 7c 20 | 28 46 52 61 6e 64 28 29 |one) || |(FRand()|
|00004550| 20 3c 20 31 2e 30 2f 66 | 6c 6f 61 74 28 6e 75 6d | < 1.0/f|loat(num|
|00004560| 29 29 20 29 0d 0a 09 09 | 09 09 4c 20 3d 20 50 3b |)) )....|..L = P;|
|00004570| 0d 0a 09 09 7d 0d 0a 0d | 0a 09 09 69 66 20 28 20 |....}...|...if ( |
|00004580| 4c 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 7b |L != Non|e )....{|
|00004590| 0d 0a 09 09 09 4e 75 6d | 53 75 70 70 6f 72 74 69 |.....Num|Supporti|
|000045a0| 6e 67 50 6c 61 79 65 72 | 2b 2b 3b 0d 0a 09 09 09 |ngPlayer|++;.....|
|000045b0| 4e 65 77 42 6f 74 2e 53 | 65 74 4f 72 64 65 72 73 |NewBot.S|etOrders|
|000045c0| 28 27 46 6f 6c 6c 6f 77 | 27 2c 4c 2c 20 74 72 75 |('Follow|',L, tru|
|000045d0| 65 29 3b 0d 0a 09 09 09 | 72 65 74 75 72 6e 3b 0d |e);.....|return;.|
|000045e0| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 20 69 66 20 |...}....|else if |
|000045f0| 28 20 46 52 61 6e 64 28 | 29 20 3c 20 30 2e 38 20 |( FRand(|) < 0.8 |
|00004600| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 2f 2f 20 6e 6f |)....{..|...// no|
|00004610| 20 70 6c 61 79 65 72 73 | 20 6f 6e 20 74 68 69 73 | players| on this|
|00004620| 20 74 65 61 6d 20 2d 20 | 70 6f 73 73 69 62 6c 79 | team - |possibly|
|00004630| 20 73 75 70 70 6f 72 74 | 20 6f 74 68 65 72 20 62 | support| other b|
|00004640| 6f 74 0d 0a 09 09 09 6e | 75 6d 20 3d 20 30 3b 0d |ot.....n|um = 0;.|
|00004650| 0a 09 09 09 46 6f 72 20 | 28 20 50 3d 4c 65 76 65 |....For |( P=Leve|
|00004660| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00004670| 6f 6e 65 3b 20 50 3d 50 | 2e 4e 65 78 74 50 61 77 |one; P=P|.NextPaw|
|00004680| 6e 20 29 0d 0a 09 09 09 | 09 69 66 20 28 20 50 2e |n ).....|.if ( P.|
|00004690| 49 73 41 28 27 42 6f 74 | 27 29 20 26 26 20 28 50 |IsA('Bot|') && (P|
|000046a0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000046b0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 4e |onInfo.T|eam == N|
|000046c0| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|000046d0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|000046e0| 29 20 0d 0a 09 09 09 09 | 09 26 26 20 28 42 6f 74 |) ......|.&& (Bot|
|000046f0| 28 50 29 2e 4f 72 64 65 | 72 73 20 3d 3d 20 27 41 |(P).Orde|rs == 'A|
|00004700| 74 74 61 63 6b 27 29 20 | 29 0d 0a 09 09 09 7b 0d |ttack') |).....{.|
|00004710| 0a 09 09 09 09 6e 75 6d | 2b 2b 3b 0d 0a 09 09 09 |.....num|++;.....|
|00004720| 09 69 66 20 28 20 28 4c | 20 3d 3d 20 4e 6f 6e 65 |.if ( (L| == None|
|00004730| 29 20 7c 7c 20 28 46 52 | 61 6e 64 28 29 20 3c 20 |) || (FR|and() < |
|00004740| 31 2e 30 2f 66 6c 6f 61 | 74 28 6e 75 6d 29 29 20 |1.0/floa|t(num)) |
|00004750| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 2f |)......{|......./|
|00004760| 2f 20 6d 61 6b 65 20 73 | 75 72 65 20 50 20 64 6f |/ make s|ure P do|
|00004770| 65 73 6e 27 74 20 61 6c | 72 65 61 64 79 20 68 61 |esn't al|ready ha|
|00004780| 76 65 20 61 20 66 6f 6c | 6c 6f 77 65 72 0d 0a 09 |ve a fol|lower...|
|00004790| 09 09 09 09 62 41 76 61 | 69 6c 61 62 6c 65 20 3d |....bAva|ilable =|
|000047a0| 20 74 72 75 65 3b 0d 0a | 09 09 09 09 09 66 6f 72 | true;..|.....for|
|000047b0| 20 28 20 4d 3d 4c 65 76 | 65 6c 2e 50 61 77 6e 4c | ( M=Lev|el.PawnL|
|000047c0| 69 73 74 3b 20 4d 21 3d | 4e 6f 6e 65 3b 20 4d 3d |ist; M!=|None; M=|
|000047d0| 4d 2e 4e 65 78 74 50 61 | 77 6e 20 29 0d 0a 09 09 |M.NextPa|wn )....|
|000047e0| 09 09 09 09 69 66 20 28 | 20 4d 2e 49 73 41 28 27 |....if (| M.IsA('|
|000047f0| 42 6f 74 27 29 20 26 26 | 20 28 4d 2e 50 6c 61 79 |Bot') &&| (M.Play|
|00004800| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00004810| 6f 2e 54 65 61 6d 20 3d | 3d 20 4e 65 77 42 6f 74 |o.Team =|= NewBot|
|00004820| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00004830| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 29 20 0d 0a 09 |onInfo.T|eam) ...|
|00004840| 09 09 09 09 09 09 26 26 | 20 28 42 6f 74 28 4d 29 |......&&| (Bot(M)|
|00004850| 2e 4f 72 64 65 72 73 20 | 3d 3d 20 27 46 6f 6c 6c |.Orders |== 'Foll|
|00004860| 6f 77 27 29 20 26 26 20 | 28 42 6f 74 28 4d 29 2e |ow') && |(Bot(M).|
|00004870| 4f 72 64 65 72 4f 62 6a | 65 63 74 20 3d 3d 20 50 |OrderObj|ect == P|
|00004880| 29 20 29 0d 0a 09 09 09 | 09 09 09 09 62 41 76 61 |) ).....|....bAva|
|00004890| 69 6c 61 62 6c 65 20 3d | 20 66 61 6c 73 65 3b 0d |ilable =| false;.|
|000048a0| 0a 09 09 09 09 09 69 66 | 20 28 20 62 41 76 61 69 |......if| ( bAvai|
|000048b0| 6c 61 62 6c 65 20 29 0d | 0a 09 09 09 09 09 09 4c |lable ).|.......L|
|000048c0| 20 3d 20 50 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 | = P;...|...}....|
|000048d0| 09 7d 0d 0a 0d 0a 09 09 | 09 69 66 20 28 20 4c 20 |.}......|.if ( L |
|000048e0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 7b 0d |!= None |).....{.|
|000048f0| 0a 09 09 09 09 4e 65 77 | 42 6f 74 2e 53 65 74 4f |.....New|Bot.SetO|
|00004900| 72 64 65 72 73 28 27 46 | 6f 6c 6c 6f 77 27 2c 4c |rders('F|ollow',L|
|00004910| 2c 20 74 72 75 65 29 3b | 0d 0a 09 09 09 09 72 65 |, true);|......re|
|00004920| 74 75 72 6e 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 7d |turn;...|..}....}|
|00004930| 0d 0a 09 7d 0d 0a 09 0d | 0a 09 69 66 20 28 20 43 |...}....|..if ( C|
|00004940| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|00004950| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004960| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|00004970| 3d 3d 20 27 46 72 65 65 | 6c 61 6e 63 65 27 20 29 |== 'Free|lance' )|
|00004980| 0d 0a 09 09 4e 65 77 42 | 6f 74 2e 53 65 74 4f 72 |....NewB|ot.SetOr|
|00004990| 64 65 72 73 28 27 41 74 | 74 61 63 6b 27 2c 20 4e |ders('At|tack', N|
|000049a0| 6f 6e 65 2c 20 74 72 75 | 65 29 3b 0d 0a 09 65 6c |one, tru|e);...el|
|000049b0| 73 65 09 0d 0a 09 09 4e | 65 77 42 6f 74 2e 53 65 |se.....N|ewBot.Se|
|000049c0| 74 4f 72 64 65 72 73 28 | 43 75 72 72 65 6e 74 4f |tOrders(|CurrentO|
|000049d0| 72 64 65 72 73 5b 4e 65 | 77 42 6f 74 2e 50 6c 61 |rders[Ne|wBot.Pla|
|000049e0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000049f0| 66 6f 2e 54 65 61 6d 5d | 2c 20 4e 6f 6e 65 2c 20 |fo.Team]|, None, |
|00004a00| 74 72 75 65 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 |true);..|}....// |
|00004a10| 41 6c 6c 6f 77 54 72 61 | 6e 73 6c 6f 63 61 74 69 |AllowTra|nslocati|
|00004a20| 6f 6e 20 2d 20 72 65 74 | 75 72 6e 20 74 72 75 65 |on - ret|urn true|
|00004a30| 20 69 66 20 4f 74 68 65 | 72 20 63 61 6e 20 74 65 | if Othe|r can te|
|00004a40| 6c 65 70 6f 72 74 20 74 | 6f 20 44 65 73 74 0d 0a |leport t|o Dest..|
|00004a50| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 41 6c |function| bool Al|
|00004a60| 6c 6f 77 54 72 61 6e 73 | 6c 6f 63 61 74 69 6f 6e |lowTrans|location|
|00004a70| 28 50 61 77 6e 20 4f 74 | 68 65 72 2c 20 76 65 63 |(Pawn Ot|her, vec|
|00004a80| 74 6f 72 20 44 65 73 74 | 20 29 0d 0a 7b 0d 0a 09 |tor Dest| )..{...|
|00004a90| 69 66 20 28 20 4f 74 68 | 65 72 2e 50 6c 61 79 65 |if ( Oth|er.Playe|
|00004aa0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004ab0| 2e 48 61 73 46 6c 61 67 | 20 21 3d 20 4e 6f 6e 65 |.HasFlag| != None|
|00004ac0| 20 29 0d 0a 09 09 43 54 | 46 46 6c 61 67 28 4f 74 | )....CT|FFlag(Ot|
|00004ad0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00004ae0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 48 61 73 46 6c 61 |ationInf|o.HasFla|
|00004af0| 67 29 2e 44 72 6f 70 28 | 30 2e 35 20 2a 20 4f 74 |g).Drop(|0.5 * Ot|
|00004b00| 68 65 72 2e 56 65 6c 6f | 63 69 74 79 29 3b 0d 0a |her.Velo|city);..|
|00004b10| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00004b20| 0a 7d 0d 0a 0d 0a 2f 2f | 20 53 68 6f 75 6c 64 54 |.}....//| ShouldT|
|00004b30| 72 61 6e 73 6c 6f 63 61 | 74 65 20 2d 20 72 65 74 |ransloca|te - ret|
|00004b40| 75 72 6e 20 74 72 75 65 | 20 69 66 20 61 62 6f 74 |urn true| if abot|
|00004b50| 20 73 68 6f 75 6c 64 20 | 75 73 65 20 74 72 61 6e | should |use tran|
|00004b60| 73 6c 6f 63 61 74 69 6f | 6e 0d 0a 66 75 6e 63 74 |slocatio|n..funct|
|00004b70| 69 6f 6e 20 62 6f 6f 6c | 20 43 61 6e 54 72 61 6e |ion bool| CanTran|
|00004b80| 73 6c 6f 63 61 74 65 28 | 42 6f 74 20 61 42 6f 74 |slocate(|Bot aBot|
|00004b90| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 61 42 6f 74 |)..{...i|f ( aBot|
|00004ba0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00004bb0| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 20 21 |onInfo.H|asFlag !|
|00004bc0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 72 65 74 75 |= None )|....retu|
|00004bd0| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 72 65 |rn false|;.....re|
|00004be0| 74 75 72 6e 20 53 75 70 | 65 72 2e 43 61 6e 54 72 |turn Sup|er.CanTr|
|00004bf0| 61 6e 73 6c 6f 63 61 74 | 65 28 61 42 6f 74 29 3b |anslocat|e(aBot);|
|00004c00| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00004c10| 69 6e 74 20 52 65 64 75 | 63 65 44 61 6d 61 67 65 |int Redu|ceDamage|
|00004c20| 28 69 6e 74 20 44 61 6d | 61 67 65 2c 20 6e 61 6d |(int Dam|age, nam|
|00004c30| 65 20 44 61 6d 61 67 65 | 54 79 70 65 2c 20 70 61 |e Damage|Type, pa|
|00004c40| 77 6e 20 69 6e 6a 75 72 | 65 64 2c 20 70 61 77 6e |wn injur|ed, pawn|
|00004c50| 20 69 6e 73 74 69 67 61 | 74 65 64 42 79 29 0d 0a | instiga|tedBy)..|
|00004c60| 7b 0d 0a 09 69 66 20 28 | 20 28 69 6e 73 74 69 67 |{...if (| (instig|
|00004c70| 61 74 65 64 42 79 20 21 | 3d 20 4e 6f 6e 65 29 20 |atedBy !|= None) |
|00004c80| 0d 0a 09 09 26 26 20 28 | 69 6e 6a 75 72 65 64 2e |....&& (|injured.|
|00004c90| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004ca0| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 21 3d 20 69 6e |nInfo.Te|am != in|
|00004cb0| 73 74 69 67 61 74 65 64 | 42 79 2e 50 6c 61 79 65 |stigated|By.Playe|
|00004cc0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004cd0| 2e 54 65 61 6d 29 0d 0a | 09 09 26 26 20 69 6e 6a |.Team)..|..&& inj|
|00004ce0| 75 72 65 64 2e 49 73 41 | 28 27 42 6f 74 27 29 20 |ured.IsA|('Bot') |
|00004cf0| 0d 0a 09 09 26 26 20 28 | 28 69 6e 6a 75 72 65 64 |....&& (|(injured|
|00004d00| 2e 68 65 61 6c 74 68 20 | 3c 20 33 35 29 20 7c 7c |.health |< 35) |||
|00004d10| 20 28 69 6e 6a 75 72 65 | 64 2e 50 6c 61 79 65 72 | (injure|d.Player|
|00004d20| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004d30| 48 61 73 46 6c 61 67 20 | 21 3d 20 4e 6f 6e 65 29 |HasFlag |!= None)|
|00004d40| 29 20 29 0d 0a 09 09 09 | 42 6f 74 28 69 6e 6a 75 |) ).....|Bot(inju|
|00004d50| 72 65 64 29 2e 53 65 6e | 64 54 65 61 6d 4d 65 73 |red).Sen|dTeamMes|
|00004d60| 73 61 67 65 28 4e 6f 6e | 65 2c 20 27 4f 54 48 45 |sage(Non|e, 'OTHE|
|00004d70| 52 27 2c 20 34 2c 20 31 | 35 29 3b 0d 0a 0d 0a 09 |R', 4, 1|5);.....|
|00004d80| 72 65 74 75 72 6e 20 53 | 75 70 65 72 2e 52 65 64 |return S|uper.Red|
|00004d90| 75 63 65 44 61 6d 61 67 | 65 28 44 61 6d 61 67 65 |uceDamag|e(Damage|
|00004da0| 2c 20 44 61 6d 61 67 65 | 54 79 70 65 2c 20 69 6e |, Damage|Type, in|
|00004db0| 6a 75 72 65 64 2c 20 69 | 6e 73 74 69 67 61 74 65 |jured, i|nstigate|
|00004dc0| 64 42 79 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |dBy);..}|....func|
|00004dd0| 74 69 6f 6e 20 62 79 74 | 65 20 50 72 69 6f 72 69 |tion byt|e Priori|
|00004de0| 74 79 4f 62 6a 65 63 74 | 69 76 65 28 42 6f 74 20 |tyObject|ive(Bot |
|00004df0| 61 42 6f 74 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |aBot)..{|...local|
|00004e00| 20 43 54 46 46 6c 61 67 | 20 46 72 69 65 6e 64 6c | CTFFlag| Friendl|
|00004e10| 79 46 6c 61 67 3b 0d 0a | 0d 0a 09 46 72 69 65 6e |yFlag;..|...Frien|
|00004e20| 64 6c 79 46 6c 61 67 20 | 3d 20 43 54 46 52 65 70 |dlyFlag |= CTFRep|
|00004e30| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 47 61 6d |lication|Info(Gam|
|00004e40| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00004e50| 29 2e 46 6c 61 67 4c 69 | 73 74 5b 61 42 6f 74 2e |).FlagLi|st[aBot.|
|00004e60| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004e70| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 3b 20 0d 0a 0d |nInfo.Te|am]; ...|
|00004e80| 0a 09 69 66 20 28 20 61 | 42 6f 74 2e 50 6c 61 79 |..if ( a|Bot.Play|
|00004e90| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00004ea0| 6f 2e 48 61 73 46 6c 61 | 67 20 21 3d 20 4e 6f 6e |o.HasFla|g != Non|
|00004eb0| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |e )...{.|...if ( |
|00004ec0| 28 56 53 69 7a 65 28 61 | 42 6f 74 2e 4c 6f 63 61 |(VSize(a|Bot.Loca|
|00004ed0| 74 69 6f 6e 20 2d 20 46 | 72 69 65 6e 64 6c 79 46 |tion - F|riendlyF|
|00004ee0| 6c 61 67 2e 48 6f 6d 65 | 42 61 73 65 2e 4c 6f 63 |lag.Home|Base.Loc|
|00004ef0| 61 74 69 6f 6e 29 20 3c | 20 32 30 30 30 29 0d 0a |ation) <| 2000)..|
|00004f00| 09 09 09 26 26 20 61 42 | 6f 74 2e 4c 69 6e 65 4f |...&& aB|ot.LineO|
|00004f10| 66 53 69 67 68 74 54 6f | 28 46 72 69 65 6e 64 6c |fSightTo|(Friendl|
|00004f20| 79 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 29 20 |yFlag.Ho|meBase) |
|00004f30| 29 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 32 35 35 |).....re|turn 255|
|00004f40| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 20 32 3b 0d 0a |;....ret|urn 2;..|
|00004f50| 09 7d 0d 0a 0d 0a 09 69 | 66 20 28 20 46 72 69 65 |.}.....i|f ( Frie|
|00004f60| 6e 64 6c 79 46 6c 61 67 | 2e 48 6f 6c 64 65 72 20 |ndlyFlag|.Holder |
|00004f70| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |!= None |)....ret|
|00004f80| 75 72 6e 20 31 3b 0d 0a | 0d 0a 09 72 65 74 75 72 |urn 1;..|...retur|
|00004f90| 6e 20 30 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |n 0;..}.|...funct|
|00004fa0| 69 6f 6e 20 50 69 63 6b | 41 6d 62 75 73 68 53 70 |ion Pick|AmbushSp|
|00004fb0| 6f 74 46 6f 72 28 42 6f | 74 20 61 42 6f 74 29 0d |otFor(Bo|t aBot).|
|00004fc0| 0a 7b 0d 0a 09 69 66 20 | 28 20 43 68 65 63 6b 46 |.{...if |( CheckF|
|00004fd0| 6f 72 54 72 61 6e 73 6c | 6f 63 61 74 6f 72 73 28 |orTransl|ocators(|
|00004fe0| 61 42 6f 74 29 20 29 0d | 0a 09 7b 0d 0a 09 09 61 |aBot) ).|..{....a|
|00004ff0| 42 6f 74 2e 62 53 70 65 | 63 69 61 6c 41 6d 62 75 |Bot.bSpe|cialAmbu|
|00005000| 73 68 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 72 65 |sh = tru|e;....re|
|00005010| 74 75 72 6e 3b 0d 0a 09 | 7d 0d 0a 09 53 75 70 65 |turn;...|}...Supe|
|00005020| 72 2e 50 69 63 6b 41 6d | 62 75 73 68 53 70 6f 74 |r.PickAm|bushSpot|
|00005030| 46 6f 72 28 61 42 6f 74 | 29 3b 0d 0a 7d 0d 0a 0d |For(aBot|);..}...|
|00005040| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 43 |.functio|n bool C|
|00005050| 68 65 63 6b 46 6f 72 54 | 72 61 6e 73 6c 6f 63 61 |heckForT|ransloca|
|00005060| 74 6f 72 73 28 42 6f 74 | 20 61 42 6f 74 29 0d 0a |tors(Bot| aBot)..|
|00005070| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 54 72 61 6e 73 6c |{...loca|l Transl|
|00005080| 6f 63 61 74 6f 72 54 61 | 72 67 65 74 20 54 3b 0d |ocatorTa|rget T;.|
|00005090| 0a 0d 0a 09 2f 2f 20 63 | 68 65 63 6b 20 66 6f 72 |....// c|heck for|
|000050a0| 20 74 72 61 6e 73 6c 6f | 63 61 74 6f 72 73 20 6e | translo|cators n|
|000050b0| 65 61 72 20 62 61 73 65 | 0d 0a 09 46 6f 72 45 61 |ear base|...ForEa|
|000050c0| 63 68 20 41 6c 6c 41 63 | 74 6f 72 73 28 63 6c 61 |ch AllAc|tors(cla|
|000050d0| 73 73 27 54 72 61 6e 73 | 6c 6f 63 61 74 6f 72 54 |ss'Trans|locatorT|
|000050e0| 61 72 67 65 74 27 2c 20 | 54 29 0d 0a 09 09 69 66 |arget', |T)....if|
|000050f0| 20 28 20 43 68 65 63 6b | 54 68 69 73 54 72 61 6e | ( Check|ThisTran|
|00005100| 73 6c 6f 63 61 74 6f 72 | 28 61 42 6f 74 2c 20 54 |slocator|(aBot, T|
|00005110| 29 20 29 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 74 |) ).....|return t|
|00005120| 72 75 65 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |rue;....|.return |
|00005130| 66 61 6c 73 65 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |false;..|}....fun|
|00005140| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 43 68 65 63 6b |ction bo|ol Check|
|00005150| 54 68 69 73 54 72 61 6e | 73 6c 6f 63 61 74 6f 72 |ThisTran|slocator|
|00005160| 28 42 6f 74 20 61 42 6f | 74 2c 20 54 72 61 6e 73 |(Bot aBo|t, Trans|
|00005170| 6c 6f 63 61 74 6f 72 54 | 61 72 67 65 74 20 54 29 |locatorT|arget T)|
|00005180| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 46 6c 61 67 |..{...lo|cal Flag|
|00005190| 42 61 73 65 20 46 3b 0d | 0a 0d 0a 09 69 66 20 28 |Base F;.|....if (|
|000051a0| 20 61 42 6f 74 2e 57 65 | 61 70 6f 6e 2e 62 4d 65 | aBot.We|apon.bMe|
|000051b0| 6c 65 65 57 65 61 70 6f | 6e 20 29 0d 0a 09 09 72 |leeWeapo|n )....r|
|000051c0| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 09 46 |eturn fa|lse;...F|
|000051d0| 20 3d 20 43 54 46 52 65 | 70 6c 69 63 61 74 69 6f | = CTFRe|plicatio|
|000051e0| 6e 49 6e 66 6f 28 47 61 | 6d 65 52 65 70 6c 69 63 |nInfo(Ga|meReplic|
|000051f0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 46 6c 61 67 4c |ationInf|o).FlagL|
|00005200| 69 73 74 5b 61 42 6f 74 | 2e 50 6c 61 79 65 72 52 |ist[aBot|.PlayerR|
|00005210| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00005220| 65 61 6d 5d 2e 48 6f 6d | 65 42 61 73 65 3b 0d 0a |eam].Hom|eBase;..|
|00005230| 0d 0a 09 69 66 20 28 20 | 28 54 2e 52 65 67 69 6f |...if ( |(T.Regio|
|00005240| 6e 2e 5a 6f 6e 65 20 3d | 3d 20 46 2e 52 65 67 69 |n.Zone =|= F.Regi|
|00005250| 6f 6e 2e 5a 6f 6e 65 29 | 0d 0a 09 09 26 26 20 28 |on.Zone)|....&& (|
|00005260| 54 2e 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 6c 61 |T.Instig|ator.Pla|
|00005270| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00005280| 66 6f 2e 54 65 61 6d 20 | 21 3d 20 61 42 6f 74 2e |fo.Team |!= aBot.|
|00005290| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|000052a0| 6e 49 6e 66 6f 2e 54 65 | 61 6d 29 0d 0a 09 09 26 |nInfo.Te|am)....&|
|000052b0| 26 20 21 54 2e 44 69 73 | 72 75 70 74 65 64 28 29 |& !T.Dis|rupted()|
|000052c0| 0d 0a 09 09 26 26 20 28 | 56 53 69 7a 65 28 54 2e |....&& (|VSize(T.|
|000052d0| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 46 2e 4c 6f 63 |Location| - F.Loc|
|000052e0| 61 74 69 6f 6e 29 20 3c | 20 31 30 30 30 29 20 29 |ation) <| 1000) )|
|000052f0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 28 56 53 |...{....|if ( (VS|
|00005300| 69 7a 65 28 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |ize(aBot|.Locatio|
|00005310| 6e 20 2d 20 54 2e 4c 6f | 63 61 74 69 6f 6e 29 20 |n - T.Lo|cation) |
|00005320| 3c 20 38 35 30 29 0d 0a | 09 09 09 09 26 26 20 61 |< 850)..|....&& a|
|00005330| 42 6f 74 2e 4c 69 6e 65 | 4f 66 53 69 67 68 74 54 |Bot.Line|OfSightT|
|00005340| 6f 28 54 29 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |o(T) )..|..{.....|
|00005350| 61 42 6f 74 2e 41 6d 62 | 75 73 68 53 70 6f 74 20 |aBot.Amb|ushSpot |
|00005360| 3d 20 4e 6f 6e 65 3b 0d | 0a 09 09 09 61 42 6f 74 |= None;.|....aBot|
|00005370| 2e 53 68 6f 6f 74 54 61 | 72 67 65 74 28 54 29 3b |.ShootTa|rget(T);|
|00005380| 0d 0a 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00005390| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|000053a0| 09 09 7b 0d 0a 09 09 09 | 61 42 6f 74 2e 4d 6f 76 |..{.....|aBot.Mov|
|000053b0| 65 54 61 72 67 65 74 20 | 3d 20 61 42 6f 74 2e 46 |eTarget |= aBot.F|
|000053c0| 69 6e 64 50 61 74 68 54 | 6f 77 61 72 64 28 54 29 |indPathT|oward(T)|
|000053d0| 3b 0d 0a 09 09 09 69 66 | 20 28 20 61 42 6f 74 2e |;.....if| ( aBot.|
|000053e0| 4d 6f 76 65 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |MoveTarg|et != No|
|000053f0| 6e 65 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ne )....|.{......|
|00005400| 69 66 20 28 20 56 53 69 | 7a 65 28 61 42 6f 74 2e |if ( VSi|ze(aBot.|
|00005410| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 61 42 6f 74 2e |Location| - aBot.|
|00005420| 4d 6f 76 65 54 61 72 67 | 65 74 2e 4c 6f 63 61 74 |MoveTarg|et.Locat|
|00005430| 69 6f 6e 29 20 3c 20 31 | 2e 35 20 2a 20 61 42 6f |ion) < 1|.5 * aBo|
|00005440| 74 2e 43 6f 6c 6c 69 73 | 69 6f 6e 52 61 64 69 75 |t.Collis|ionRadiu|
|00005450| 73 20 29 0d 0a 09 09 09 | 09 7b 0d 0a 09 09 09 09 |s ).....|.{......|
|00005460| 09 61 42 6f 74 2e 43 61 | 6d 70 54 69 6d 65 20 3d |.aBot.Ca|mpTime =|
|00005470| 20 33 2e 30 3b 0d 0a 09 | 09 09 09 09 61 42 6f 74 | 3.0;...|....aBot|
|00005480| 2e 47 6f 74 6f 53 74 61 | 74 65 28 27 52 6f 61 6d |.GotoSta|te('Roam|
|00005490| 69 6e 67 27 2c 20 27 43 | 61 6d 70 27 29 3b 0d 0a |ing', 'C|amp');..|
|000054a0| 09 09 09 09 7d 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....}...|...aBot.|
|000054b0| 41 6d 62 75 73 68 53 70 | 6f 74 20 3d 20 4e 6f 6e |AmbushSp|ot = Non|
|000054c0| 65 3b 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 20 74 |e;......|return t|
|000054d0| 72 75 65 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 7d 0d |rue;....|.}....}.|
|000054e0| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 66 61 6c |..}...re|turn fal|
|000054f0| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 00 |se;..}..|... |
+--------+-------------------------+-------------------------+--------+--------+