home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 23.3 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 62 f4 02 2f 2f 3d 3d 3d |........|b..//===|
|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 54 |========|==..// T|
|00000060| 65 61 6d 47 61 6d 65 50 | 6c 75 73 2e 0d 0a 2f 2f |eamGameP|lus...//|
|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 | 3d 3d 3d 3d 3d 0d 0a 63 |========|=====..c|
|000000c0| 6c 61 73 73 20 54 65 61 | 6d 47 61 6d 65 50 6c 75 |lass Tea|mGamePlu|
|000000d0| 73 20 65 78 74 65 6e 64 | 73 20 44 65 61 74 68 4d |s extend|s DeathM|
|000000e0| 61 74 63 68 50 6c 75 73 | 0d 0a 09 63 6f 6e 66 69 |atchPlus|...confi|
|000000f0| 67 3b 0d 0a 0d 0a 23 65 | 78 65 63 20 4d 45 53 48 |g;....#e|xec MESH|
|00000100| 20 49 4d 50 4f 52 54 20 | 4d 45 53 48 3d 46 6c 61 | IMPORT |MESH=Fla|
|00000110| 67 31 4d 20 41 4e 49 56 | 46 49 4c 45 3d 4d 4f 44 |g1M ANIV|FILE=MOD|
|00000120| 45 4c 53 5c 66 6c 61 67 | 5f 61 2e 33 44 20 44 41 |ELS\flag|_a.3D DA|
|00000130| 54 41 46 49 4c 45 3d 4d | 4f 44 45 4c 53 5c 66 6c |TAFILE=M|ODELS\fl|
|00000140| 61 67 5f 64 2e 33 44 20 | 58 3d 30 20 59 3d 30 20 |ag_d.3D |X=0 Y=0 |
|00000150| 5a 3d 30 20 5a 65 72 6f | 54 65 78 3d 31 0d 0a 23 |Z=0 Zero|Tex=1..#|
|00000160| 65 78 65 63 20 4d 45 53 | 48 20 4f 52 49 47 49 4e |exec MES|H ORIGIN|
|00000170| 20 4d 45 53 48 3d 46 6c | 61 67 31 4d 20 58 3d 30 | MESH=Fl|ag1M X=0|
|00000180| 20 59 3d 31 30 30 20 5a | 3d 30 20 59 41 57 3d 31 | Y=100 Z|=0 YAW=1|
|00000190| 32 38 20 50 49 54 43 48 | 3d 30 20 52 4f 4c 4c 3d |28 PITCH|=0 ROLL=|
|000001a0| 2d 36 34 0d 0a 23 65 78 | 65 63 20 4d 45 53 48 20 |-64..#ex|ec MESH |
|000001b0| 53 45 51 55 45 4e 43 45 | 20 4d 45 53 48 3d 66 6c |SEQUENCE| MESH=fl|
|000001c0| 61 67 31 4d 20 53 45 51 | 3d 41 6c 6c 20 20 20 20 |ag1M SEQ|=All |
|000001d0| 53 54 41 52 54 46 52 41 | 4d 45 3d 30 20 20 4e 55 |STARTFRA|ME=0 NU|
|000001e0| 4d 46 52 41 4d 45 53 3d | 31 34 0d 0a 23 65 78 65 |MFRAMES=|14..#exe|
|000001f0| 63 20 4d 45 53 48 20 53 | 45 51 55 45 4e 43 45 20 |c MESH S|EQUENCE |
|00000200| 4d 45 53 48 3d 66 6c 61 | 67 31 4d 20 53 45 51 3d |MESH=fla|g1M SEQ=|
|00000210| 57 61 76 65 20 20 53 54 | 41 52 54 46 52 41 4d 45 |Wave ST|ARTFRAME|
|00000220| 3d 31 20 20 4e 55 4d 46 | 52 41 4d 45 53 3d 31 33 |=1 NUMF|RAMES=13|
|00000230| 0d 0a 23 65 78 65 63 20 | 54 45 58 54 55 52 45 20 |..#exec |TEXTURE |
|00000240| 49 4d 50 4f 52 54 20 4e | 41 4d 45 3d 4a 46 6c 61 |IMPORT N|AME=JFla|
|00000250| 67 31 31 20 46 49 4c 45 | 3d 4d 4f 44 45 4c 53 5c |g11 FILE|=MODELS\|
|00000260| 66 6c 61 67 5f 72 65 64 | 2e 50 43 58 20 47 52 4f |flag_red|.PCX GRO|
|00000270| 55 50 3d 53 6b 69 6e 73 | 0d 0a 23 65 78 65 63 20 |UP=Skins|..#exec |
|00000280| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000290| 41 4d 45 3d 4a 46 6c 61 | 67 31 32 20 46 49 4c 45 |AME=JFla|g12 FILE|
|000002a0| 3d 4d 4f 44 45 4c 53 5c | 66 6c 61 67 5f 62 6c 75 |=MODELS\|flag_blu|
|000002b0| 65 2e 50 43 58 20 47 52 | 4f 55 50 3d 53 6b 69 6e |e.PCX GR|OUP=Skin|
|000002c0| 73 0d 0a 23 65 78 65 63 | 20 54 45 58 54 55 52 45 |s..#exec| TEXTURE|
|000002d0| 20 49 4d 50 4f 52 54 20 | 4e 41 4d 45 3d 4a 46 6c | IMPORT |NAME=JFl|
|000002e0| 61 67 31 33 20 46 49 4c | 45 3d 4d 4f 44 45 4c 53 |ag13 FIL|E=MODELS|
|000002f0| 5c 66 6c 61 67 5f 67 72 | 65 65 6e 2e 50 43 58 20 |\flag_gr|een.PCX |
|00000300| 47 52 4f 55 50 3d 53 6b | 69 6e 73 0d 0a 23 65 78 |GROUP=Sk|ins..#ex|
|00000310| 65 63 20 54 45 58 54 55 | 52 45 20 49 4d 50 4f 52 |ec TEXTU|RE IMPOR|
|00000320| 54 20 4e 41 4d 45 3d 4a | 46 6c 61 67 31 34 20 46 |T NAME=J|Flag14 F|
|00000330| 49 4c 45 3d 4d 4f 44 45 | 4c 53 5c 66 6c 61 67 5f |ILE=MODE|LS\flag_|
|00000340| 79 65 6c 6c 6f 77 2e 50 | 43 58 20 47 52 4f 55 50 |yellow.P|CX GROUP|
|00000350| 3d 53 6b 69 6e 73 0d 0a | 23 65 78 65 63 20 54 45 |=Skins..|#exec TE|
|00000360| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000370| 45 3d 4a 46 6c 61 67 31 | 35 20 46 49 4c 45 3d 4d |E=JFlag1|5 FILE=M|
|00000380| 4f 44 45 4c 53 5c 66 6c | 61 67 33 2e 50 43 58 20 |ODELS\fl|ag3.PCX |
|00000390| 47 52 4f 55 50 3d 53 6b | 69 6e 73 0d 0a 23 65 78 |GROUP=Sk|ins..#ex|
|000003a0| 65 63 20 4d 45 53 48 4d | 41 50 20 53 43 41 4c 45 |ec MESHM|AP SCALE|
|000003b0| 20 4d 45 53 48 4d 41 50 | 3d 66 6c 61 67 31 4d 20 | MESHMAP|=flag1M |
|000003c0| 58 3d 30 2e 31 20 59 3d | 30 2e 31 20 5a 3d 30 2e |X=0.1 Y=|0.1 Z=0.|
|000003d0| 32 0d 0a 23 65 78 65 63 | 20 4d 45 53 48 4d 41 50 |2..#exec| MESHMAP|
|000003e0| 20 53 45 54 54 45 58 54 | 55 52 45 20 4d 45 53 48 | SETTEXT|URE MESH|
|000003f0| 4d 41 50 3d 66 6c 61 67 | 31 4d 20 4e 55 4d 3d 30 |MAP=flag|1M NUM=0|
|00000400| 20 54 45 58 54 55 52 45 | 3d 4a 66 6c 61 67 31 31 | TEXTURE|=Jflag11|
|00000410| 0d 0a 09 0d 0a 76 61 72 | 28 29 09 09 20 62 6f 6f |.....var|().. boo|
|00000420| 6c 20 20 20 62 53 70 61 | 77 6e 49 6e 54 65 61 6d |l bSpa|wnInTeam|
|00000430| 41 72 65 61 3b 0d 0a 76 | 61 72 28 29 09 09 20 62 |Area;..v|ar().. b|
|00000440| 6f 6f 6c 09 62 53 63 6f | 72 65 54 65 61 6d 4b 69 |ool.bSco|reTeamKi|
|00000450| 6c 6c 73 3b 0d 0a 76 61 | 72 28 29 20 63 6f 6e 66 |lls;..va|r() conf|
|00000460| 69 67 20 62 6f 6f 6c 09 | 62 4e 6f 54 65 61 6d 43 |ig bool.|bNoTeamC|
|00000470| 68 61 6e 67 65 73 3b 0d | 0a 76 61 72 09 09 09 20 |hanges;.|.var... |
|00000480| 69 6e 74 09 4e 75 6d 53 | 75 70 70 6f 72 74 69 6e |int.NumS|upportin|
|00000490| 67 50 6c 61 79 65 72 3b | 20 0d 0a 76 61 72 20 67 |gPlayer;| ..var g|
|000004a0| 6c 6f 62 61 6c 63 6f 6e | 66 69 67 09 20 62 6f 6f |lobalcon|fig. boo|
|000004b0| 6c 09 62 42 61 6c 61 6e | 63 65 54 65 61 6d 73 3b |l.bBalan|ceTeams;|
|000004c0| 09 2f 2f 20 62 6f 74 73 | 20 62 61 6c 61 6e 63 65 |.// bots| balance|
|000004d0| 20 74 65 61 6d 73 0d 0a | 76 61 72 20 67 6c 6f 62 | teams..|var glob|
|000004e0| 61 6c 63 6f 6e 66 69 67 | 09 20 62 6f 6f 6c 09 62 |alconfig|. bool.b|
|000004f0| 50 6c 61 79 65 72 73 42 | 61 6c 61 6e 63 65 54 65 |PlayersB|alanceTe|
|00000500| 61 6d 73 3b 09 2f 2f 20 | 70 6c 61 79 65 72 73 20 |ams;.// |players |
|00000510| 62 61 6c 61 6e 63 65 20 | 74 65 61 6d 73 0d 0a 76 |balance |teams..v|
|00000520| 61 72 09 09 09 20 62 6f | 6f 6c 09 62 42 61 6c 61 |ar... bo|ol.bBala|
|00000530| 6e 63 69 6e 67 3b 0d 0a | 76 61 72 28 29 20 63 6f |ncing;..|var() co|
|00000540| 6e 66 69 67 20 66 6c 6f | 61 74 20 20 46 72 69 65 |nfig flo|at Frie|
|00000550| 6e 64 6c 79 46 69 72 65 | 53 63 61 6c 65 3b 20 2f |ndlyFire|Scale; /|
|00000560| 2f 73 63 61 6c 65 20 66 | 72 69 65 6e 64 6c 79 20 |/scale f|riendly |
|00000570| 66 69 72 65 20 64 61 6d | 61 67 65 20 62 79 20 74 |fire dam|age by t|
|00000580| 68 69 73 20 76 61 6c 75 | 65 0d 0a 76 61 72 28 29 |his valu|e..var()|
|00000590| 20 63 6f 6e 66 69 67 20 | 69 6e 74 09 4d 61 78 54 | config |int.MaxT|
|000005a0| 65 61 6d 73 3b 20 2f 2f | 4d 61 78 69 6d 75 6d 20 |eams; //|Maximum |
|000005b0| 6e 75 6d 62 65 72 20 6f | 66 20 74 65 61 6d 73 20 |number o|f teams |
|000005c0| 61 6c 6c 6f 77 65 64 20 | 69 6e 20 28 75 70 20 74 |allowed |in (up t|
|000005d0| 6f 20 4d 61 78 41 6c 6c | 6f 77 65 64 54 65 61 6d |o MaxAll|owedTeam|
|000005e0| 73 29 0d 0a 76 61 72 09 | 09 09 20 69 6e 74 09 4d |s)..var.|.. int.M|
|000005f0| 61 78 41 6c 6c 6f 77 65 | 64 54 65 61 6d 73 3b 0d |axAllowe|dTeams;.|
|00000600| 0a 76 61 72 09 54 65 61 | 6d 49 6e 66 6f 20 54 65 |.var.Tea|mInfo Te|
|00000610| 61 6d 73 5b 34 5d 3b 20 | 2f 2f 20 52 65 64 2c 20 |ams[4]; |// Red, |
|00000620| 42 6c 75 65 2c 20 47 72 | 65 65 6e 2c 20 47 6f 6c |Blue, Gr|een, Gol|
|00000630| 64 0d 0a 76 61 72 28 29 | 20 63 6f 6e 66 69 67 20 |d..var()| config |
|00000640| 66 6c 6f 61 74 20 20 47 | 6f 61 6c 54 65 61 6d 53 |float G|oalTeamS|
|00000650| 63 6f 72 65 3b 20 2f 2f | 6c 69 6b 65 20 66 72 61 |core; //|like fra|
|00000660| 67 6c 69 6d 69 74 0d 0a | 76 61 72 28 29 20 63 6f |glimit..|var() co|
|00000670| 6e 66 69 67 20 69 6e 74 | 09 4d 61 78 54 65 61 6d |nfig int|.MaxTeam|
|00000680| 53 69 7a 65 3b 0d 0a 76 | 61 72 20 20 6c 6f 63 61 |Size;..v|ar loca|
|00000690| 6c 69 7a 65 64 20 73 74 | 72 69 6e 67 20 53 74 61 |lized st|ring Sta|
|000006a0| 72 74 55 70 54 65 61 6d | 4d 65 73 73 61 67 65 3b |rtUpTeam|Message;|
|000006b0| 0d 0a 76 61 72 20 20 6c | 6f 63 61 6c 69 7a 65 64 |..var l|ocalized|
|000006c0| 20 73 74 72 69 6e 67 20 | 54 65 61 6d 43 68 61 6e | string |TeamChan|
|000006d0| 67 65 4d 65 73 73 61 67 | 65 3b 0d 0a 76 61 72 20 |geMessag|e;..var |
|000006e0| 6c 6f 63 61 6c 69 7a 65 | 64 20 73 74 72 69 6e 67 |localize|d string|
|000006f0| 20 54 65 61 6d 43 6f 6c | 6f 72 5b 34 5d 3b 0d 0a | TeamCol|or[4];..|
|00000700| 0d 0a 76 61 72 09 09 69 | 6e 74 09 09 09 4e 65 78 |..var..i|nt...Nex|
|00000710| 74 42 6f 74 54 65 61 6d | 3b 0d 0a 76 61 72 20 62 |tBotTeam|;..var b|
|00000720| 79 74 65 20 54 45 41 4d | 5f 52 65 64 2c 20 54 45 |yte TEAM|_Red, TE|
|00000730| 41 4d 5f 42 6c 75 65 2c | 20 54 45 41 4d 5f 47 72 |AM_Blue,| TEAM_Gr|
|00000740| 65 65 6e 2c 20 54 45 41 | 4d 5f 47 6f 6c 64 3b 0d |een, TEA|M_Gold;.|
|00000750| 0a 76 61 72 20 6e 61 6d | 65 20 43 75 72 72 65 6e |.var nam|e Curren|
|00000760| 74 4f 72 64 65 72 73 5b | 34 5d 3b 0d 0a 76 61 72 |tOrders[|4];..var|
|00000770| 20 69 6e 74 20 50 6c 61 | 79 65 72 54 65 61 6d 4e | int Pla|yerTeamN|
|00000780| 75 6d 3b 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |um;....f|unction |
|00000790| 50 6f 73 74 42 65 67 69 | 6e 50 6c 61 79 28 29 0d |PostBegi|nPlay().|
|000007a0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|000007b0| 3b 0d 0a 09 66 6f 72 20 | 28 69 3d 30 3b 69 3c 34 |;...for |(i=0;i<4|
|000007c0| 3b 69 2b 2b 29 0d 0a 09 | 7b 0d 0a 09 09 54 65 61 |;i++)...|{....Tea|
|000007d0| 6d 73 5b 69 5d 20 3d 20 | 53 70 61 77 6e 28 63 6c |ms[i] = |Spawn(cl|
|000007e0| 61 73 73 27 54 65 61 6d | 49 6e 66 6f 27 29 3b 0d |ass'Team|Info');.|
|000007f0| 0a 09 09 54 65 61 6d 73 | 5b 69 5d 2e 53 69 7a 65 |...Teams|[i].Size|
|00000800| 20 3d 20 30 3b 0d 0a 09 | 09 54 65 61 6d 73 5b 69 | = 0;...|.Teams[i|
|00000810| 5d 2e 53 63 6f 72 65 20 | 3d 20 30 3b 0d 0a 09 09 |].Score |= 0;....|
|00000820| 54 65 61 6d 73 5b 69 5d | 2e 54 65 61 6d 4e 61 6d |Teams[i]|.TeamNam|
|00000830| 65 20 3d 20 54 65 61 6d | 43 6f 6c 6f 72 5b 69 5d |e = Team|Color[i]|
|00000840| 3b 0d 0a 09 09 54 65 61 | 6d 73 5b 69 5d 2e 54 65 |;....Tea|ms[i].Te|
|00000850| 61 6d 49 6e 64 65 78 20 | 3d 20 69 3b 0d 0a 09 09 |amIndex |= i;....|
|00000860| 54 6f 75 72 6e 61 6d 65 | 6e 74 47 61 6d 65 52 65 |Tourname|ntGameRe|
|00000870| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 47 61 |plicatio|nInfo(Ga|
|00000880| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00000890| 6f 29 2e 54 65 61 6d 73 | 5b 69 5d 20 3d 20 54 65 |o).Teams|[i] = Te|
|000008a0| 61 6d 73 5b 69 5d 3b 0d | 0a 09 7d 0d 0a 09 0d 0a |ams[i];.|..}.....|
|000008b0| 09 53 75 70 65 72 2e 50 | 6f 73 74 42 65 67 69 6e |.Super.P|ostBegin|
|000008c0| 50 6c 61 79 28 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |Play();.|....if (|
|000008d0| 20 62 52 61 74 65 64 47 | 61 6d 65 20 29 0d 0a 09 | bRatedG|ame )...|
|000008e0| 7b 0d 0a 09 09 46 72 69 | 65 6e 64 6c 79 46 69 72 |{....Fri|endlyFir|
|000008f0| 65 53 63 61 6c 65 20 3d | 20 30 3b 0d 0a 09 09 4d |eScale =| 0;....M|
|00000900| 61 78 54 65 61 6d 73 20 | 3d 20 32 3b 0d 0a 09 7d |axTeams |= 2;...}|
|00000910| 0d 0a 7d 0d 0a 0d 0a 65 | 76 65 6e 74 20 49 6e 69 |..}....e|vent Ini|
|00000920| 74 47 61 6d 65 28 20 73 | 74 72 69 6e 67 20 4f 70 |tGame( s|tring Op|
|00000930| 74 69 6f 6e 73 2c 20 6f | 75 74 20 73 74 72 69 6e |tions, o|ut strin|
|00000940| 67 20 45 72 72 6f 72 20 | 29 0d 0a 7b 0d 0a 09 53 |g Error |)..{...S|
|00000950| 75 70 65 72 2e 49 6e 69 | 74 47 61 6d 65 28 4f 70 |uper.Ini|tGame(Op|
|00000960| 74 69 6f 6e 73 2c 20 45 | 72 72 6f 72 29 3b 0d 0a |tions, E|rror);..|
|00000970| 09 4d 61 78 54 65 61 6d | 73 20 3d 20 4d 69 6e 28 |.MaxTeam|s = Min(|
|00000980| 4d 61 78 54 65 61 6d 73 | 2c 4d 61 78 41 6c 6c 6f |MaxTeams|,MaxAllo|
|00000990| 77 65 64 54 65 61 6d 73 | 29 3b 0d 0a 0d 0a 09 69 |wedTeams|);.....i|
|000009a0| 66 20 28 20 21 62 52 65 | 71 75 69 72 65 52 65 61 |f ( !bRe|quireRea|
|000009b0| 64 79 20 26 26 20 28 4c | 65 76 65 6c 2e 4e 65 74 |dy && (L|evel.Net|
|000009c0| 4d 6f 64 65 20 21 3d 20 | 4e 4d 5f 53 74 61 6e 64 |Mode != |NM_Stand|
|000009d0| 61 6c 6f 6e 65 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |alone) )|...{....|
|000009e0| 62 52 65 71 75 69 72 65 | 52 65 61 64 79 20 3d 20 |bRequire|Ready = |
|000009f0| 74 72 75 65 3b 0d 0a 09 | 09 62 4e 65 74 52 65 61 |true;...|.bNetRea|
|00000a00| 64 79 20 3d 20 74 72 75 | 65 3b 0d 0a 09 7d 0d 0a |dy = tru|e;...}..|
|00000a10| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 49 6e |}....fun|ction In|
|00000a20| 69 74 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |itGameRe|plicatio|
|00000a30| 6e 49 6e 66 6f 28 29 0d | 0a 7b 0d 0a 09 53 75 70 |nInfo().|.{...Sup|
|00000a40| 65 72 2e 49 6e 69 74 47 | 61 6d 65 52 65 70 6c 69 |er.InitG|ameRepli|
|00000a50| 63 61 74 69 6f 6e 49 6e | 66 6f 28 29 3b 0d 0a 0d |cationIn|fo();...|
|00000a60| 0a 09 54 6f 75 72 6e 61 | 6d 65 6e 74 47 61 6d 65 |..Tourna|mentGame|
|00000a70| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|00000a80| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00000a90| 6e 66 6f 29 2e 47 6f 61 | 6c 54 65 61 6d 53 63 6f |nfo).Goa|lTeamSco|
|00000aa0| 72 65 20 3d 20 47 6f 61 | 6c 54 65 61 6d 53 63 6f |re = Goa|lTeamSco|
|00000ab0| 72 65 3b 0d 0a 7d 0d 0a | 0d 0a 2f 2f 20 53 65 74 |re;..}..|..// Set|
|00000ac0| 20 67 61 6d 65 20 73 65 | 74 74 69 6e 67 73 20 62 | game se|ttings b|
|00000ad0| 61 73 65 64 20 6f 6e 20 | 6c 61 64 64 65 72 20 69 |ased on |ladder i|
|00000ae0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 0a 2f 2f 20 |nformati|on...// |
|00000af0| 43 61 6c 6c 65 64 20 77 | 68 65 6e 20 52 61 74 65 |Called w|hen Rate|
|00000b00| 64 50 6c 61 79 65 72 20 | 6c 6f 67 73 20 69 6e 2e |dPlayer |logs in.|
|00000b10| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 49 6e 69 74 52 |..functi|on InitR|
|00000b20| 61 74 65 64 47 61 6d 65 | 28 4c 61 64 64 65 72 49 |atedGame|(LadderI|
|00000b30| 6e 76 65 6e 74 6f 72 79 | 20 4c 61 64 64 65 72 4f |nventory| LadderO|
|00000b40| 62 6a 2c 20 50 6c 61 79 | 65 72 50 61 77 6e 20 4c |bj, Play|erPawn L|
|00000b50| 61 64 64 65 72 50 6c 61 | 79 65 72 29 0d 0a 7b 0d |adderPla|yer)..{.|
|00000b60| 0a 09 6c 6f 63 61 6c 20 | 63 6c 61 73 73 3c 52 61 |..local |class<Ra|
|00000b70| 74 65 64 4d 61 74 63 68 | 49 6e 66 6f 3e 20 52 4d |tedMatch|Info> RM|
|00000b80| 49 3b 0d 0a 09 6c 6f 63 | 61 6c 20 57 65 61 70 6f |I;...loc|al Weapo|
|00000b90| 6e 20 57 3b 0d 0a 0d 0a | 09 47 6f 61 6c 54 65 61 |n W;....|.GoalTea|
|00000ba0| 6d 53 63 6f 72 65 20 3d | 20 4c 61 64 64 65 72 4f |mScore =| LadderO|
|00000bb0| 62 6a 2e 43 75 72 72 65 | 6e 74 4c 61 64 64 65 72 |bj.Curre|ntLadder|
|00000bc0| 2e 44 65 66 61 75 6c 74 | 2e 47 6f 61 6c 54 65 61 |.Default|.GoalTea|
|00000bd0| 6d 53 63 6f 72 65 5b 49 | 44 6e 75 6d 5d 3b 0d 0a |mScore[I|Dnum];..|
|00000be0| 09 53 75 70 65 72 2e 49 | 6e 69 74 52 61 74 65 64 |.Super.I|nitRated|
|00000bf0| 47 61 6d 65 28 4c 61 64 | 64 65 72 4f 62 6a 2c 20 |Game(Lad|derObj, |
|00000c00| 4c 61 64 64 65 72 50 6c | 61 79 65 72 29 3b 09 0d |LadderPl|ayer);..|
|00000c10| 0a 09 62 43 6f 6f 70 57 | 65 61 70 6f 6e 4d 6f 64 |..bCoopW|eaponMod|
|00000c20| 65 20 3d 20 74 72 75 65 | 3b 0d 0a 09 46 72 69 65 |e = true|;...Frie|
|00000c30| 6e 64 6c 79 46 69 72 65 | 53 63 61 6c 65 20 3d 20 |ndlyFire|Scale = |
|00000c40| 30 2e 30 3b 0d 0a 09 4d | 61 78 54 65 61 6d 73 20 |0.0;...M|axTeams |
|00000c50| 3d 20 32 3b 0d 0a 09 46 | 6f 72 45 61 63 68 20 41 |= 2;...F|orEach A|
|00000c60| 6c 6c 41 63 74 6f 72 73 | 28 63 6c 61 73 73 27 57 |llActors|(class'W|
|00000c70| 65 61 70 6f 6e 27 2c 20 | 57 29 0d 0a 09 09 57 2e |eapon', |W)....W.|
|00000c80| 53 65 74 57 65 61 70 6f | 6e 53 74 61 79 28 29 3b |SetWeapo|nStay();|
|00000c90| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000ca0| 43 68 65 63 6b 52 65 61 | 64 79 28 29 0d 0a 7b 0d |CheckRea|dy()..{.|
|00000cb0| 0a 09 69 66 20 28 20 28 | 54 69 6d 65 4c 69 6d 69 |..if ( (|TimeLimi|
|00000cc0| 74 20 3d 3d 20 30 29 20 | 26 26 20 28 47 6f 61 6c |t == 0) |&& (Goal|
|00000cd0| 54 65 61 6d 53 63 6f 72 | 65 20 3d 3d 20 30 29 20 |TeamScor|e == 0) |
|00000ce0| 29 0d 0a 09 7b 0d 0a 09 | 09 54 69 6d 65 4c 69 6d |)...{...|.TimeLim|
|00000cf0| 69 74 20 3d 20 32 30 3b | 0d 0a 09 09 52 65 6d 61 |it = 20;|....Rema|
|00000d00| 69 6e 69 6e 67 54 69 6d | 65 20 3d 20 36 30 20 2a |iningTim|e = 60 *|
|00000d10| 20 54 69 6d 65 4c 69 6d | 69 74 3b 0d 0a 09 7d 0d | TimeLim|it;...}.|
|00000d20| 0a 7d 0d 0a 0d 0a 65 76 | 65 6e 74 20 50 6f 73 74 |.}....ev|ent Post|
|00000d30| 4c 6f 67 69 6e 28 20 70 | 6c 61 79 65 72 70 61 77 |Login( p|layerpaw|
|00000d40| 6e 20 4e 65 77 50 6c 61 | 79 65 72 20 29 0d 0a 7b |n NewPla|yer )..{|
|00000d50| 0d 0a 09 53 75 70 65 72 | 2e 50 6f 73 74 4c 6f 67 |...Super|.PostLog|
|00000d60| 69 6e 28 4e 65 77 50 6c | 61 79 65 72 29 3b 0d 0a |in(NewPl|ayer);..|
|00000d70| 0d 0a 09 69 66 20 28 20 | 4c 65 76 65 6c 2e 4e 65 |...if ( |Level.Ne|
|00000d80| 74 4d 6f 64 65 20 21 3d | 20 4e 4d 5f 53 74 61 6e |tMode !=| NM_Stan|
|00000d90| 64 61 6c 6f 6e 65 20 29 | 0d 0a 09 09 4e 65 77 50 |dalone )|....NewP|
|00000da0| 6c 61 79 65 72 2e 43 6c | 69 65 6e 74 43 68 61 6e |layer.Cl|ientChan|
|00000db0| 67 65 54 65 61 6d 28 4e | 65 77 50 6c 61 79 65 72 |geTeam(N|ewPlayer|
|00000dc0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000dd0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 29 3b 0d 0a 7d |onInfo.T|eam);..}|
|00000de0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4c 6f 67 |....func|tion Log|
|00000df0| 47 61 6d 65 50 61 72 61 | 6d 65 74 65 72 73 28 53 |GamePara|meters(S|
|00000e00| 74 61 74 4c 6f 67 20 53 | 74 61 74 4c 6f 67 29 0d |tatLog S|tatLog).|
|00000e10| 0a 7b 0d 0a 09 69 66 20 | 28 53 74 61 74 4c 6f 67 |.{...if |(StatLog|
|00000e20| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 72 65 74 | == None|)....ret|
|00000e30| 75 72 6e 3b 0d 0a 09 0d | 0a 09 53 75 70 65 72 2e |urn;....|..Super.|
|00000e40| 4c 6f 67 47 61 6d 65 50 | 61 72 61 6d 65 74 65 72 |LogGameP|arameter|
|00000e50| 73 28 53 74 61 74 4c 6f | 67 29 3b 0d 0a 0d 0a 09 |s(StatLo|g);.....|
|00000e60| 53 74 61 74 4c 6f 67 2e | 4c 6f 67 45 76 65 6e 74 |StatLog.|LogEvent|
|00000e70| 53 74 72 69 6e 67 28 53 | 74 61 74 4c 6f 67 2e 47 |String(S|tatLog.G|
|00000e80| 65 74 54 69 6d 65 53 74 | 61 6d 70 28 29 24 43 68 |etTimeSt|amp()$Ch|
|00000e90| 72 28 39 29 24 22 67 61 | 6d 65 22 24 43 68 72 28 |r(9)$"ga|me"$Chr(|
|00000ea0| 39 29 24 22 47 6f 61 6c | 54 65 61 6d 53 63 6f 72 |9)$"Goal|TeamScor|
|00000eb0| 65 22 24 43 68 72 28 39 | 29 24 69 6e 74 28 47 6f |e"$Chr(9|)$int(Go|
|00000ec0| 61 6c 54 65 61 6d 53 63 | 6f 72 65 29 29 3b 0d 0a |alTeamSc|ore));..|
|00000ed0| 09 53 74 61 74 4c 6f 67 | 2e 4c 6f 67 45 76 65 6e |.StatLog|.LogEven|
|00000ee0| 74 53 74 72 69 6e 67 28 | 53 74 61 74 4c 6f 67 2e |tString(|StatLog.|
|00000ef0| 47 65 74 54 69 6d 65 53 | 74 61 6d 70 28 29 24 43 |GetTimeS|tamp()$C|
|00000f00| 68 72 28 39 29 24 22 67 | 61 6d 65 22 24 43 68 72 |hr(9)$"g|ame"$Chr|
|00000f10| 28 39 29 24 22 46 72 69 | 65 6e 64 6c 79 46 69 72 |(9)$"Fri|endlyFir|
|00000f20| 65 53 63 61 6c 65 22 24 | 43 68 72 28 39 29 24 46 |eScale"$|Chr(9)$F|
|00000f30| 72 69 65 6e 64 6c 79 46 | 69 72 65 53 63 61 6c 65 |riendlyF|ireScale|
|00000f40| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00000f50| 6e 20 62 6f 6f 6c 20 53 | 65 74 45 6e 64 43 61 6d |n bool S|etEndCam|
|00000f60| 73 28 73 74 72 69 6e 67 | 20 52 65 61 73 6f 6e 29 |s(string| Reason)|
|00000f70| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 54 65 61 6d |..{...lo|cal Team|
|00000f80| 49 6e 66 6f 20 42 65 73 | 74 54 65 61 6d 3b 0d 0a |Info Bes|tTeam;..|
|00000f90| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 09 |.local i|nt i;...|
|00000fa0| 6c 6f 63 61 6c 20 70 61 | 77 6e 20 50 2c 20 42 65 |local pa|wn P, Be|
|00000fb0| 73 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 50 6c 61 79 |st;...lo|cal Play|
|00000fc0| 65 72 50 61 77 6e 20 70 | 6c 61 79 65 72 3b 0d 0a |erPawn p|layer;..|
|00000fd0| 0d 0a 09 2f 2f 20 66 69 | 6e 64 20 69 6e 64 69 76 |...// fi|nd indiv|
|00000fe0| 69 64 75 61 6c 20 77 69 | 6e 6e 65 72 0d 0a 09 66 |idual wi|nner...f|
|00000ff0| 6f 72 20 28 20 50 3d 4c | 65 76 65 6c 2e 50 61 77 |or ( P=L|evel.Paw|
|00001000| 6e 4c 69 73 74 3b 20 50 | 21 3d 4e 6f 6e 65 3b 20 |nList; P|!=None; |
|00001010| 50 3d 50 2e 6e 65 78 74 | 50 61 77 6e 20 29 0d 0a |P=P.next|Pawn )..|
|00001020| 09 09 69 66 20 28 20 50 | 2e 62 49 73 50 6c 61 79 |..if ( P|.bIsPlay|
|00001030| 65 72 20 26 26 20 28 28 | 42 65 73 74 20 3d 3d 20 |er && ((|Best == |
|00001040| 4e 6f 6e 65 29 20 7c 7c | 20 28 50 2e 50 6c 61 79 |None) ||| (P.Play|
|00001050| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001060| 6f 2e 53 63 6f 72 65 20 | 3e 20 42 65 73 74 2e 50 |o.Score |> Best.P|
|00001070| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00001080| 49 6e 66 6f 2e 53 63 6f | 72 65 29 29 20 29 0d 0a |Info.Sco|re)) )..|
|00001090| 09 09 09 42 65 73 74 20 | 3d 20 50 3b 0d 0a 0d 0a |...Best |= P;....|
|000010a0| 09 2f 2f 20 66 69 6e 64 | 20 77 69 6e 6e 65 72 0d |.// find| winner.|
|000010b0| 0a 09 42 65 73 74 54 65 | 61 6d 20 3d 20 54 65 61 |..BestTe|am = Tea|
|000010c0| 6d 73 5b 30 5d 3b 0d 0a | 09 66 6f 72 20 28 20 69 |ms[0];..|.for ( i|
|000010d0| 3d 31 3b 20 69 3c 4d 61 | 78 54 65 61 6d 73 3b 20 |=1; i<Ma|xTeams; |
|000010e0| 69 2b 2b 20 29 0d 0a 09 | 09 69 66 20 28 20 54 65 |i++ )...|.if ( Te|
|000010f0| 61 6d 73 5b 69 5d 2e 53 | 63 6f 72 65 20 3e 20 42 |ams[i].S|core > B|
|00001100| 65 73 74 54 65 61 6d 2e | 53 63 6f 72 65 20 29 0d |estTeam.|Score ).|
|00001110| 0a 09 09 09 42 65 73 74 | 54 65 61 6d 20 3d 20 54 |....Best|Team = T|
|00001120| 65 61 6d 73 5b 69 5d 3b | 0d 0a 0d 0a 09 66 6f 72 |eams[i];|.....for|
|00001130| 20 28 20 69 3d 30 3b 20 | 69 3c 4d 61 78 54 65 61 | ( i=0; |i<MaxTea|
|00001140| 6d 73 3b 20 69 2b 2b 20 | 29 0d 0a 09 09 69 66 20 |ms; i++ |)....if |
|00001150| 28 20 28 42 65 73 74 54 | 65 61 6d 2e 54 65 61 6d |( (BestT|eam.Team|
|00001160| 49 6e 64 65 78 20 21 3d | 20 69 29 20 26 26 20 28 |Index !=| i) && (|
|00001170| 42 65 73 74 54 65 61 6d | 2e 53 63 6f 72 65 20 3d |BestTeam|.Score =|
|00001180| 3d 20 54 65 61 6d 73 5b | 69 5d 2e 53 63 6f 72 65 |= Teams[|i].Score|
|00001190| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 42 72 6f |) )....{|.....Bro|
|000011a0| 61 64 63 61 73 74 4c 6f | 63 61 6c 69 7a 65 64 4d |adcastLo|calizedM|
|000011b0| 65 73 73 61 67 65 28 20 | 63 6c 61 73 73 27 44 65 |essage( |class'De|
|000011c0| 61 74 68 4d 61 74 63 68 | 4d 65 73 73 61 67 65 27 |athMatch|Message'|
|000011d0| 2c 20 30 20 29 3b 0d 0a | 09 09 09 72 65 74 75 72 |, 0 );..|...retur|
|000011e0| 6e 20 66 61 6c 73 65 3b | 0d 0a 09 09 7d 09 09 0d |n false;|....}...|
|000011f0| 0a 0d 0a 09 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |....Game|Replicat|
|00001200| 69 6f 6e 49 6e 66 6f 2e | 47 61 6d 65 45 6e 64 65 |ionInfo.|GameEnde|
|00001210| 64 43 6f 6d 6d 65 6e 74 | 73 20 3d 20 42 65 73 74 |dComment|s = Best|
|00001220| 54 65 61 6d 2e 54 65 61 | 6d 4e 61 6d 65 40 47 61 |Team.Tea|mName@Ga|
|00001230| 6d 65 45 6e 64 65 64 4d | 65 73 73 61 67 65 3b 0d |meEndedM|essage;.|
|00001240| 0a 0d 0a 09 45 6e 64 54 | 69 6d 65 20 3d 20 4c 65 |....EndT|ime = Le|
|00001250| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 20 |vel.Time|Seconds |
|00001260| 2b 20 33 2e 30 3b 0d 0a | 09 66 6f 72 20 28 20 50 |+ 3.0;..|.for ( P|
|00001270| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|00001280| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 50 2e 6e 65 | P!=None|; P=P.ne|
|00001290| 78 74 50 61 77 6e 20 29 | 0d 0a 09 7b 0d 0a 09 09 |xtPawn )|...{....|
|000012a0| 70 6c 61 79 65 72 20 3d | 20 50 6c 61 79 65 72 50 |player =| PlayerP|
|000012b0| 61 77 6e 28 50 29 3b 0d | 0a 09 09 69 66 20 28 20 |awn(P);.|...if ( |
|000012c0| 50 6c 61 79 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |Player !|= None )|
|000012d0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 69 66 20 28 21 62 |....{...|..if (!b|
|000012e0| 54 75 74 6f 72 69 61 6c | 47 61 6d 65 29 0d 0a 09 |Tutorial|Game)...|
|000012f0| 09 09 7b 0d 0a 09 09 09 | 09 69 66 20 28 20 70 6c |..{.....|.if ( pl|
|00001300| 61 79 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ayer.Pla|yerRepli|
|00001310| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00001320| 3d 3d 20 42 65 73 74 54 | 65 61 6d 2e 54 65 61 6d |== BestT|eam.Team|
|00001330| 49 6e 64 65 78 20 29 0d | 0a 09 09 09 09 09 70 6c |Index ).|......pl|
|00001340| 61 79 65 72 2e 43 6c 69 | 65 6e 74 50 6c 61 79 53 |ayer.Cli|entPlayS|
|00001350| 6f 75 6e 64 28 73 6f 75 | 6e 64 27 41 6e 6e 6f 75 |ound(sou|nd'Annou|
|00001360| 6e 63 65 72 2e 57 69 6e | 6e 65 72 27 2c 20 54 72 |ncer.Win|ner', Tr|
|00001370| 75 65 2c 20 74 72 75 65 | 29 3b 0d 0a 09 09 09 09 |ue, true|);......|
|00001380| 65 6c 73 65 20 69 66 20 | 28 20 21 50 6c 61 79 65 |else if |( !Playe|
|00001390| 72 2e 49 73 41 28 27 53 | 70 65 63 74 61 74 6f 72 |r.IsA('S|pectator|
|000013a0| 27 29 20 29 0d 0a 09 09 | 09 09 09 70 6c 61 79 65 |') )....|...playe|
|000013b0| 72 2e 43 6c 69 65 6e 74 | 50 6c 61 79 53 6f 75 6e |r.Client|PlaySoun|
|000013c0| 64 28 73 6f 75 6e 64 27 | 41 6e 6e 6f 75 6e 63 65 |d(sound'|Announce|
|000013d0| 72 2e 4c 6f 73 74 4d 61 | 74 63 68 27 2c 20 54 72 |r.LostMa|tch', Tr|
|000013e0| 75 65 2c 20 74 72 75 65 | 29 3b 0d 0a 09 09 09 7d |ue, true|);.....}|
|000013f0| 0d 0a 09 09 09 70 6c 61 | 79 65 72 2e 62 42 65 68 |.....pla|yer.bBeh|
|00001400| 69 6e 64 56 69 65 77 20 | 3d 20 74 72 75 65 3b 0d |indView |= true;.|
|00001410| 0a 09 09 09 69 66 20 28 | 20 50 6c 61 79 65 72 20 |....if (| Player |
|00001420| 3d 3d 20 42 65 73 74 20 | 29 0d 0a 09 09 09 09 50 |== Best |)......P|
|00001430| 6c 61 79 65 72 2e 56 69 | 65 77 54 61 72 67 65 74 |layer.Vi|ewTarget|
|00001440| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 09 09 09 65 6c 73 | = None;|.....els|
|00001450| 65 0d 0a 09 09 09 09 50 | 6c 61 79 65 72 2e 56 69 |e......P|layer.Vi|
|00001460| 65 77 54 61 72 67 65 74 | 20 3d 20 42 65 73 74 3b |ewTarget| = Best;|
|00001470| 0d 0a 09 09 09 70 6c 61 | 79 65 72 2e 43 6c 69 65 |.....pla|yer.Clie|
|00001480| 6e 74 47 61 6d 65 45 6e | 64 65 64 28 29 3b 0d 0a |ntGameEn|ded();..|
|00001490| 09 09 7d 0d 0a 09 09 50 | 2e 47 6f 74 6f 53 74 61 |..}....P|.GotoSta|
|000014a0| 74 65 28 27 47 61 6d 65 | 45 6e 64 65 64 27 29 3b |te('Game|Ended');|
|000014b0| 0d 0a 09 7d 0d 0a 09 43 | 61 6c 63 45 6e 64 53 74 |...}...C|alcEndSt|
|000014c0| 61 74 73 28 29 3b 0d 0a | 09 72 65 74 75 72 6e 20 |ats();..|.return |
|000014d0| 74 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 2d 2d |true;..}|....//--|
|000014e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000014f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001520| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 2f 2f |--------|----..//|
|00001530| 20 50 6c 61 79 65 72 20 | 73 74 61 72 74 20 66 75 | Player |start fu|
|00001540| 6e 63 74 69 6f 6e 73 0d | 0a 0d 0a 66 75 6e 63 74 |nctions.|...funct|
|00001550| 69 6f 6e 20 50 6c 61 79 | 53 74 61 72 74 55 70 4d |ion Play|StartUpM|
|00001560| 65 73 73 61 67 65 28 50 | 6c 61 79 65 72 50 61 77 |essage(P|layerPaw|
|00001570| 6e 20 4e 65 77 50 6c 61 | 79 65 72 29 0d 0a 7b 0d |n NewPla|yer)..{.|
|00001580| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00001590| 09 6c 6f 63 61 6c 20 63 | 6f 6c 6f 72 20 57 68 69 |.local c|olor Whi|
|000015a0| 74 65 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 09 4e 65 77 |teColor;|.....New|
|000015b0| 50 6c 61 79 65 72 2e 43 | 6c 65 61 72 50 72 6f 67 |Player.C|learProg|
|000015c0| 72 65 73 73 4d 65 73 73 | 61 67 65 73 28 29 3b 0d |ressMess|ages();.|
|000015d0| 0a 0d 0a 09 2f 2f 20 47 | 61 6d 65 4e 61 6d 65 0d |....// G|ameName.|
|000015e0| 0a 09 4e 65 77 50 6c 61 | 79 65 72 2e 53 65 74 50 |..NewPla|yer.SetP|
|000015f0| 72 6f 67 72 65 73 73 4d | 65 73 73 61 67 65 28 47 |rogressM|essage(G|
|00001600| 61 6d 65 4e 61 6d 65 2c | 20 69 2b 2b 29 3b 0d 0a |ameName,| i++);..|
|00001610| 09 69 66 20 28 20 62 52 | 65 71 75 69 72 65 52 65 |.if ( bR|equireRe|
|00001620| 61 64 79 20 26 26 20 28 | 4c 65 76 65 6c 2e 4e 65 |ady && (|Level.Ne|
|00001630| 74 4d 6f 64 65 20 21 3d | 20 4e 4d 5f 53 74 61 6e |tMode !=| NM_Stan|
|00001640| 64 61 6c 6f 6e 65 29 20 | 29 0d 0a 09 09 4e 65 77 |dalone) |)....New|
|00001650| 50 6c 61 79 65 72 2e 53 | 65 74 50 72 6f 67 72 65 |Player.S|etProgre|
|00001660| 73 73 4d 65 73 73 61 67 | 65 28 54 6f 75 72 6e 65 |ssMessag|e(Tourne|
|00001670| 79 4d 65 73 73 61 67 65 | 2c 20 69 2b 2b 29 3b 0d |yMessage|, i++);.|
|00001680| 0a 09 65 6c 73 65 0d 0a | 09 09 4e 65 77 50 6c 61 |..else..|..NewPla|
|00001690| 79 65 72 2e 53 65 74 50 | 72 6f 67 72 65 73 73 4d |yer.SetP|rogressM|
|000016a0| 65 73 73 61 67 65 28 53 | 74 61 72 74 55 70 4d 65 |essage(S|tartUpMe|
|000016b0| 73 73 61 67 65 2c 20 69 | 2b 2b 29 3b 0d 0a 0d 0a |ssage, i|++);....|
|000016c0| 09 69 66 20 28 20 47 6f | 61 6c 54 65 61 6d 53 63 |.if ( Go|alTeamSc|
|000016d0| 6f 72 65 20 3e 20 30 20 | 29 0d 0a 09 09 4e 65 77 |ore > 0 |)....New|
|000016e0| 50 6c 61 79 65 72 2e 53 | 65 74 50 72 6f 67 72 65 |Player.S|etProgre|
|000016f0| 73 73 4d 65 73 73 61 67 | 65 28 69 6e 74 28 47 6f |ssMessag|e(int(Go|
|00001700| 61 6c 54 65 61 6d 53 63 | 6f 72 65 29 40 47 61 6d |alTeamSc|ore)@Gam|
|00001710| 65 47 6f 61 6c 2c 20 69 | 2b 2b 29 3b 0d 0a 0d 0a |eGoal, i|++);....|
|00001720| 09 69 66 20 28 20 4e 65 | 77 50 6c 61 79 65 72 2e |.if ( Ne|wPlayer.|
|00001730| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001740| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 3c 20 34 20 29 |nInfo.Te|am < 4 )|
|00001750| 0d 0a 09 7b 0d 0a 09 09 | 4e 65 77 50 6c 61 79 65 |...{....|NewPlaye|
|00001760| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 43 6f 6c |r.SetPro|gressCol|
|00001770| 6f 72 28 63 6c 61 73 73 | 27 43 68 61 6c 6c 65 6e |or(class|'Challen|
|00001780| 67 65 54 65 61 6d 48 55 | 44 27 2e 44 65 66 61 75 |geTeamHU|D'.Defau|
|00001790| 6c 74 2e 54 65 61 6d 43 | 6f 6c 6f 72 5b 4e 65 77 |lt.TeamC|olor[New|
|000017a0| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|000017b0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|000017c0| 6d 5d 2c 20 69 29 3b 0d | 0a 09 09 4e 65 77 50 6c |m], i);.|...NewPl|
|000017d0| 61 79 65 72 2e 53 65 74 | 50 72 6f 67 72 65 73 73 |ayer.Set|Progress|
|000017e0| 4d 65 73 73 61 67 65 28 | 53 74 61 72 74 75 70 54 |Message(|StartupT|
|000017f0| 65 61 6d 4d 65 73 73 61 | 67 65 40 54 65 61 6d 73 |eamMessa|ge@Teams|
|00001800| 5b 4e 65 77 50 6c 61 79 | 65 72 2e 50 6c 61 79 65 |[NewPlay|er.Playe|
|00001810| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001820| 2e 54 65 61 6d 5d 2e 54 | 65 61 6d 4e 61 6d 65 24 |.Team].T|eamName$|
|00001830| 22 2e 22 2c 20 69 2b 2b | 29 3b 0d 0a 09 09 57 68 |".", i++|);....Wh|
|00001840| 69 74 65 43 6f 6c 6f 72 | 2e 52 20 3d 20 32 35 35 |iteColor|.R = 255|
|00001850| 3b 0d 0a 09 09 57 68 69 | 74 65 43 6f 6c 6f 72 2e |;....Whi|teColor.|
|00001860| 47 20 3d 20 32 35 35 3b | 0d 0a 09 09 57 68 69 74 |G = 255;|....Whit|
|00001870| 65 43 6f 6c 6f 72 2e 42 | 20 3d 20 32 35 35 3b 0d |eColor.B| = 255;.|
|00001880| 0a 09 09 4e 65 77 50 6c | 61 79 65 72 2e 53 65 74 |...NewPl|ayer.Set|
|00001890| 50 72 6f 67 72 65 73 73 | 43 6f 6c 6f 72 28 57 68 |Progress|Color(Wh|
|000018a0| 69 74 65 43 6f 6c 6f 72 | 2c 20 69 29 3b 0d 0a 09 |iteColor|, i);...|
|000018b0| 09 69 66 20 28 20 21 62 | 52 61 74 65 64 47 61 6d |.if ( !b|RatedGam|
|000018c0| 65 20 29 0d 0a 09 09 09 | 4e 65 77 50 6c 61 79 65 |e ).....|NewPlaye|
|000018d0| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 4d 65 73 |r.SetPro|gressMes|
|000018e0| 73 61 67 65 28 54 65 61 | 6d 43 68 61 6e 67 65 4d |sage(Tea|mChangeM|
|000018f0| 65 73 73 61 67 65 2c 20 | 69 2b 2b 29 3b 0d 0a 09 |essage, |i++);...|
|00001900| 7d 0d 0a 0d 0a 09 69 66 | 20 28 20 4c 65 76 65 6c |}.....if| ( Level|
|00001910| 2e 4e 65 74 4d 6f 64 65 | 20 3d 3d 20 4e 4d 5f 53 |.NetMode| == NM_S|
|00001920| 74 61 6e 64 61 6c 6f 6e | 65 20 29 0d 0a 09 09 4e |tandalon|e )....N|
|00001930| 65 77 50 6c 61 79 65 72 | 2e 53 65 74 50 72 6f 67 |ewPlayer|.SetProg|
|00001940| 72 65 73 73 4d 65 73 73 | 61 67 65 28 53 69 6e 67 |ressMess|age(Sing|
|00001950| 6c 65 57 61 69 74 69 6e | 67 4d 65 73 73 61 67 65 |leWaitin|gMessage|
|00001960| 2c 20 69 2b 2b 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |, i++);.|.}....fu|
|00001970| 6e 63 74 69 6f 6e 20 70 | 6c 61 79 65 72 70 61 77 |nction p|layerpaw|
|00001980| 6e 20 4c 6f 67 69 6e 0d | 0a 28 0d 0a 09 73 74 72 |n Login.|.(...str|
|00001990| 69 6e 67 20 50 6f 72 74 | 61 6c 2c 0d 0a 09 73 74 |ing Port|al,...st|
|000019a0| 72 69 6e 67 20 4f 70 74 | 69 6f 6e 73 2c 0d 0a 09 |ring Opt|ions,...|
|000019b0| 6f 75 74 20 73 74 72 69 | 6e 67 20 45 72 72 6f 72 |out stri|ng Error|
|000019c0| 2c 0d 0a 09 63 6c 61 73 | 73 3c 70 6c 61 79 65 72 |,...clas|s<player|
|000019d0| 70 61 77 6e 3e 20 53 70 | 61 77 6e 43 6c 61 73 73 |pawn> Sp|awnClass|
|000019e0| 0d 0a 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |..)..{..|.local P|
|000019f0| 6c 61 79 65 72 50 61 77 | 6e 20 6e 65 77 50 6c 61 |layerPaw|n newPla|
|00001a00| 79 65 72 3b 0d 0a 09 6c | 6f 63 61 6c 20 4e 61 76 |yer;...l|ocal Nav|
|00001a10| 69 67 61 74 69 6f 6e 50 | 6f 69 6e 74 20 53 74 61 |igationP|oint Sta|
|00001a20| 72 74 53 70 6f 74 3b 0d | 0a 0d 0a 09 6e 65 77 50 |rtSpot;.|....newP|
|00001a30| 6c 61 79 65 72 20 3d 20 | 53 75 70 65 72 2e 4c 6f |layer = |Super.Lo|
|00001a40| 67 69 6e 28 50 6f 72 74 | 61 6c 2c 20 4f 70 74 69 |gin(Port|al, Opti|
|00001a50| 6f 6e 73 2c 20 45 72 72 | 6f 72 2c 20 53 70 61 77 |ons, Err|or, Spaw|
|00001a60| 6e 43 6c 61 73 73 29 3b | 0d 0a 09 69 66 20 28 20 |nClass);|...if ( |
|00001a70| 6e 65 77 50 6c 61 79 65 | 72 20 3d 3d 20 4e 6f 6e |newPlaye|r == Non|
|00001a80| 65 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 4e 6f 6e |e)....re|turn Non|
|00001a90| 65 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 62 53 70 61 |e;.....i|f ( bSpa|
|00001aa0| 77 6e 49 6e 54 65 61 6d | 41 72 65 61 20 29 0d 0a |wnInTeam|Area )..|
|00001ab0| 09 7b 0d 0a 09 09 53 74 | 61 72 74 53 70 6f 74 20 |.{....St|artSpot |
|00001ac0| 3d 20 46 69 6e 64 50 6c | 61 79 65 72 53 74 61 72 |= FindPl|ayerStar|
|00001ad0| 74 28 4e 65 77 50 6c 61 | 79 65 72 2c 32 35 35 2c |t(NewPla|yer,255,|
|00001ae0| 20 50 6f 72 74 61 6c 29 | 3b 0d 0a 09 09 69 66 20 | Portal)|;....if |
|00001af0| 28 20 53 74 61 72 74 53 | 70 6f 74 20 21 3d 20 4e |( StartS|pot != N|
|00001b00| 6f 6e 65 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 4e |one )...|.{.....N|
|00001b10| 65 77 50 6c 61 79 65 72 | 2e 53 65 74 4c 6f 63 61 |ewPlayer|.SetLoca|
|00001b20| 74 69 6f 6e 28 53 74 61 | 72 74 53 70 6f 74 2e 4c |tion(Sta|rtSpot.L|
|00001b30| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 09 4e 65 |ocation)|;.....Ne|
|00001b40| 77 50 6c 61 79 65 72 2e | 53 65 74 52 6f 74 61 74 |wPlayer.|SetRotat|
|00001b50| 69 6f 6e 28 53 74 61 72 | 74 53 70 6f 74 2e 52 6f |ion(Star|tSpot.Ro|
|00001b60| 74 61 74 69 6f 6e 29 3b | 0d 0a 09 09 09 4e 65 77 |tation);|.....New|
|00001b70| 50 6c 61 79 65 72 2e 56 | 69 65 77 52 6f 74 61 74 |Player.V|iewRotat|
|00001b80| 69 6f 6e 20 3d 20 53 74 | 61 72 74 53 70 6f 74 2e |ion = St|artSpot.|
|00001b90| 52 6f 74 61 74 69 6f 6e | 3b 0d 0a 09 09 09 4e 65 |Rotation|;.....Ne|
|00001ba0| 77 50 6c 61 79 65 72 2e | 43 6c 69 65 6e 74 53 65 |wPlayer.|ClientSe|
|00001bb0| 74 52 6f 74 61 74 69 6f | 6e 28 4e 65 77 50 6c 61 |tRotatio|n(NewPla|
|00001bc0| 79 65 72 2e 52 6f 74 61 | 74 69 6f 6e 29 3b 0d 0a |yer.Rota|tion);..|
|00001bd0| 09 09 09 53 74 61 72 74 | 53 70 6f 74 2e 50 6c 61 |...Start|Spot.Pla|
|00001be0| 79 54 65 6c 65 70 6f 72 | 74 45 66 66 65 63 74 28 |yTelepor|tEffect(|
|00001bf0| 20 4e 65 77 50 6c 61 79 | 65 72 2c 20 74 72 75 65 | NewPlay|er, true|
|00001c00| 20 29 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 50 | );....}|...}...P|
|00001c10| 6c 61 79 65 72 54 65 61 | 6d 4e 75 6d 20 3d 20 4e |layerTea|mNum = N|
|00001c20| 65 77 50 6c 61 79 65 72 | 2e 50 6c 61 79 65 72 52 |ewPlayer|.PlayerR|
|00001c30| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00001c40| 65 61 6d 3b 0d 0a 09 09 | 0d 0a 09 72 65 74 75 72 |eam;....|...retur|
|00001c50| 6e 20 6e 65 77 50 6c 61 | 79 65 72 3b 0d 0a 7d 0d |n newPla|yer;..}.|
|00001c60| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4c 6f 67 6f |...funct|ion Logo|
|00001c70| 75 74 28 70 61 77 6e 20 | 45 78 69 74 69 6e 67 29 |ut(pawn |Exiting)|
|00001c80| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 4c 6f 67 6f |..{...Su|per.Logo|
|00001c90| 75 74 28 45 78 69 74 69 | 6e 67 29 3b 0d 0a 09 69 |ut(Exiti|ng);...i|
|00001ca0| 66 20 28 20 45 78 69 74 | 69 6e 67 2e 49 73 41 28 |f ( Exit|ing.IsA(|
|00001cb0| 27 53 70 65 63 74 61 74 | 6f 72 27 29 20 7c 7c 20 |'Spectat|or') || |
|00001cc0| 45 78 69 74 69 6e 67 2e | 49 73 41 28 27 43 6f 6d |Exiting.|IsA('Com|
|00001cd0| 6d 61 6e 64 65 72 27 29 | 20 29 0d 0a 09 09 72 65 |mander')| )....re|
|00001ce0| 74 75 72 6e 3b 0d 0a 20 | 20 20 20 54 65 61 6d 73 |turn;.. | Teams|
|00001cf0| 5b 45 78 69 74 69 6e 67 | 2e 50 6c 61 79 65 72 52 |[Exiting|.PlayerR|
|00001d00| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00001d10| 65 61 6d 5d 2e 53 69 7a | 65 2d 2d 3b 0d 0a 09 43 |eam].Siz|e--;...C|
|00001d20| 6c 65 61 72 4f 72 64 65 | 72 73 28 45 78 69 74 69 |learOrde|rs(Exiti|
|00001d30| 6e 67 29 3b 0d 0a 09 69 | 66 20 28 20 21 62 47 61 |ng);...i|f ( !bGa|
|00001d40| 6d 65 45 6e 64 65 64 20 | 26 26 20 62 42 61 6c 61 |meEnded |&& bBala|
|00001d50| 6e 63 65 54 65 61 6d 73 | 20 26 26 20 21 62 52 61 |nceTeams| && !bRa|
|00001d60| 74 65 64 47 61 6d 65 20 | 29 0d 0a 09 09 52 65 42 |tedGame |)....ReB|
|00001d70| 61 6c 61 6e 63 65 28 29 | 3b 0d 0a 7d 0d 0a 0d 0a |alance()|;..}....|
|00001d80| 2f 2f 20 46 69 6e 64 20 | 61 20 74 65 61 6d 20 67 |// Find |a team g|
|00001d90| 69 76 65 6e 20 69 74 73 | 20 6e 61 6d 65 0d 0a 66 |iven its| name..f|
|00001da0| 75 6e 63 74 69 6f 6e 20 | 62 79 74 65 20 46 69 6e |unction |byte Fin|
|00001db0| 64 54 65 61 6d 42 79 4e | 61 6d 65 28 20 73 74 72 |dTeamByN|ame( str|
|00001dc0| 69 6e 67 20 54 65 61 6d | 4e 61 6d 65 20 29 0d 0a |ing Team|Name )..|
|00001dd0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 62 79 74 65 20 69 |{...loca|l byte i|
|00001de0| 3b 0d 0a 0d 0a 09 66 6f | 72 20 28 20 69 3d 30 3b |;.....fo|r ( i=0;|
|00001df0| 20 69 3c 4d 61 78 54 65 | 61 6d 73 3b 20 69 2b 2b | i<MaxTe|ams; i++|
|00001e00| 20 29 0d 0a 09 09 69 66 | 20 28 20 54 65 61 6d 73 | )....if| ( Teams|
|00001e10| 5b 69 5d 2e 54 65 61 6d | 4e 61 6d 65 20 3d 3d 20 |[i].Team|Name == |
|00001e20| 54 65 61 6d 4e 61 6d 65 | 20 29 0d 0a 09 09 09 72 |TeamName| ).....r|
|00001e30| 65 74 75 72 6e 20 69 3b | 0d 0a 0d 0a 09 72 65 74 |eturn i;|.....ret|
|00001e40| 75 72 6e 20 32 35 35 3b | 20 2f 2f 20 4e 6f 20 54 |urn 255;| // No T|
|00001e50| 65 61 6d 0d 0a 7d 0d 0a | 0d 0a 2f 2f 20 72 65 62 |eam..}..|..// reb|
|00001e60| 61 6c 61 6e 63 65 20 74 | 65 61 6d 73 20 61 66 74 |alance t|eams aft|
|00001e70| 65 72 20 70 6c 61 79 65 | 72 20 63 68 61 6e 67 65 |er playe|r change|
|00001e80| 73 20 74 65 61 6d 73 20 | 6f 72 20 6c 65 61 76 65 |s teams |or leave|
|00001e90| 73 0d 0a 2f 2f 20 66 69 | 6e 64 20 62 69 67 67 65 |s..// fi|nd bigge|
|00001ea0| 73 74 20 61 6e 64 20 73 | 6d 61 6c 6c 65 73 74 20 |st and s|mallest |
|00001eb0| 74 65 61 6d 73 2e 20 20 | 49 66 20 32 20 61 70 61 |teams. |If 2 apa|
|00001ec0| 72 74 2c 20 6d 6f 76 65 | 20 62 6f 74 20 66 72 6f |rt, move| bot fro|
|00001ed0| 6d 20 62 69 67 67 65 73 | 74 20 74 6f 20 73 6d 61 |m bigges|t to sma|
|00001ee0| 6c 6c 65 73 74 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |llest...|.functio|
|00001ef0| 6e 20 52 65 42 61 6c 61 | 6e 63 65 28 29 0d 0a 7b |n ReBala|nce()..{|
|00001f00| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 62 69 67 |...local| int big|
|00001f10| 2c 20 73 6d 61 6c 6c 2c | 20 69 2c 20 62 69 67 73 |, small,| i, bigs|
|00001f20| 69 7a 65 2c 20 73 6d 61 | 6c 6c 73 69 7a 65 3b 0d |ize, sma|llsize;.|
|00001f30| 0a 09 6c 6f 63 61 6c 20 | 50 61 77 6e 20 50 2c 20 |..local |Pawn P, |
|00001f40| 41 3b 0d 0a 09 6c 6f 63 | 61 6c 20 42 6f 74 20 42 |A;...loc|al Bot B|
|00001f50| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 62 42 61 6c 61 |;.....if| ( bBala|
|00001f60| 6e 63 69 6e 67 20 7c 7c | 20 28 4e 75 6d 42 6f 74 |ncing ||| (NumBot|
|00001f70| 73 20 3d 3d 20 30 29 20 | 29 0d 0a 09 09 72 65 74 |s == 0) |)....ret|
|00001f80| 75 72 6e 3b 0d 0a 0d 0a | 09 62 69 67 20 3d 20 30 |urn;....|.big = 0|
|00001f90| 3b 0d 0a 09 73 6d 61 6c | 6c 20 3d 20 30 3b 0d 0a |;...smal|l = 0;..|
|00001fa0| 09 62 69 67 73 69 7a 65 | 20 3d 20 54 65 61 6d 73 |.bigsize| = Teams|
|00001fb0| 5b 30 5d 2e 53 69 7a 65 | 3b 0d 0a 09 73 6d 61 6c |[0].Size|;...smal|
|00001fc0| 6c 73 69 7a 65 20 3d 20 | 54 65 61 6d 73 5b 30 5d |lsize = |Teams[0]|
|00001fd0| 2e 53 69 7a 65 3b 0d 0a | 09 66 6f 72 20 28 20 69 |.Size;..|.for ( i|
|00001fe0| 3d 31 3b 20 69 3c 4d 61 | 78 54 65 61 6d 73 3b 20 |=1; i<Ma|xTeams; |
|00001ff0| 69 2b 2b 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |i++ )...|{....if |
|00002000| 28 20 54 65 61 6d 73 5b | 69 5d 2e 53 69 7a 65 20 |( Teams[|i].Size |
|00002010| 3e 20 62 69 67 73 69 7a | 65 20 29 0d 0a 09 09 7b |> bigsiz|e )....{|
|00002020| 0d 0a 09 09 09 62 69 67 | 20 3d 20 69 3b 0d 0a 09 |.....big| = i;...|
|00002030| 09 09 62 69 67 73 69 7a | 65 20 3d 20 54 65 61 6d |..bigsiz|e = Team|
|00002040| 73 5b 69 5d 2e 53 69 7a | 65 3b 0d 0a 09 09 7d 0d |s[i].Siz|e;....}.|
|00002050| 0a 09 09 65 6c 73 65 20 | 69 66 20 28 20 54 65 61 |...else |if ( Tea|
|00002060| 6d 73 5b 69 5d 2e 53 69 | 7a 65 20 3c 20 73 6d 61 |ms[i].Si|ze < sma|
|00002070| 6c 6c 73 69 7a 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |llsize )|....{...|
|00002080| 09 09 73 6d 61 6c 6c 20 | 3d 20 69 3b 0d 0a 09 09 |..small |= i;....|
|00002090| 09 73 6d 61 6c 6c 73 69 | 7a 65 20 3d 20 54 65 61 |.smallsi|ze = Tea|
|000020a0| 6d 73 5b 69 5d 2e 53 69 | 7a 65 3b 0d 0a 09 09 7d |ms[i].Si|ze;....}|
|000020b0| 0d 0a 09 7d 0d 0a 09 0d | 0a 09 62 42 61 6c 61 6e |...}....|..bBalan|
|000020c0| 63 69 6e 67 20 3d 20 74 | 72 75 65 3b 0d 0a 09 77 |cing = t|rue;...w|
|000020d0| 68 69 6c 65 20 28 20 62 | 69 67 73 69 7a 65 20 2d |hile ( b|igsize -|
|000020e0| 20 73 6d 61 6c 6c 73 69 | 7a 65 20 3e 20 31 20 29 | smallsi|ze > 1 )|
|000020f0| 0d 0a 09 7b 0d 0a 09 09 | 66 6f 72 20 28 20 50 3d |...{....|for ( P=|
|00002100| 4c 65 76 65 6c 2e 50 61 | 77 6e 4c 69 73 74 3b 20 |Level.Pa|wnList; |
|00002110| 50 21 3d 4e 6f 6e 65 3b | 20 50 3d 50 2e 4e 65 78 |P!=None;| P=P.Nex|
|00002120| 74 50 61 77 6e 20 29 0d | 0a 09 09 09 69 66 20 28 |tPawn ).|....if (|
|00002130| 20 50 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 | P.bIsPl|ayer && |
|00002140| 28 50 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |(P.Playe|rReplica|
|00002150| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 3d 3d |tionInfo|.Team ==|
|00002160| 20 62 69 67 29 0d 0a 09 | 09 09 09 26 26 20 50 2e | big)...|...&& P.|
|00002170| 49 73 41 28 27 42 6f 74 | 27 29 20 29 0d 0a 09 09 |IsA('Bot|') )....|
|00002180| 09 7b 0d 0a 09 09 09 09 | 42 20 3d 20 42 6f 74 28 |.{......|B = Bot(|
|00002190| 50 29 3b 0d 0a 09 09 09 | 09 62 72 65 61 6b 3b 0d |P);.....|.break;.|
|000021a0| 0a 09 09 09 7d 0d 0a 09 | 09 69 66 20 28 20 42 20 |....}...|.if ( B |
|000021b0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|000021c0| 09 09 09 42 2e 48 65 61 | 6c 74 68 20 3d 20 30 3b |...B.Hea|lth = 0;|
|000021d0| 0d 0a 09 09 09 42 2e 44 | 69 65 64 28 20 4e 6f 6e |.....B.D|ied( Non|
|000021e0| 65 2c 20 27 53 75 69 63 | 69 64 65 64 27 2c 20 42 |e, 'Suic|ided', B|
|000021f0| 2e 4c 6f 63 61 74 69 6f | 6e 20 29 3b 0d 0a 09 09 |.Locatio|n );....|
|00002200| 09 62 69 67 73 69 7a 65 | 2d 2d 3b 0d 0a 09 09 09 |.bigsize|--;.....|
|00002210| 73 6d 61 6c 6c 73 69 7a | 65 2b 2b 3b 0d 0a 09 09 |smallsiz|e++;....|
|00002220| 09 43 68 61 6e 67 65 54 | 65 61 6d 28 42 2c 20 73 |.ChangeT|eam(B, s|
|00002230| 6d 61 6c 6c 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 |mall);..|..}....e|
|00002240| 6c 73 65 0d 0a 09 09 09 | 42 72 65 61 6b 3b 0d 0a |lse.....|Break;..|
|00002250| 09 7d 0d 0a 09 62 42 61 | 6c 61 6e 63 69 6e 67 20 |.}...bBa|lancing |
|00002260| 3d 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 2f 2f 20 |= false;|.....// |
|00002270| 72 65 2d 61 73 73 69 67 | 6e 20 6f 72 64 65 72 73 |re-assig|n orders|
|00002280| 20 74 6f 20 66 6f 6c 6c | 6f 77 65 72 20 62 6f 74 | to foll|ower bot|
|00002290| 73 20 77 69 74 68 20 6e | 6f 20 6c 65 61 64 65 72 |s with n|o leader|
|000022a0| 73 0d 0a 09 66 6f 72 20 | 28 20 50 3d 4c 65 76 65 |s...for |( P=Leve|
|000022b0| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|000022c0| 6f 6e 65 3b 20 50 3d 50 | 2e 4e 65 78 74 50 61 77 |one; P=P|.NextPaw|
|000022d0| 6e 20 29 0d 0a 09 09 69 | 66 20 28 20 50 2e 62 49 |n )....i|f ( P.bI|
|000022e0| 73 50 6c 61 79 65 72 20 | 26 26 20 50 2e 49 73 41 |sPlayer |&& P.IsA|
|000022f0| 28 27 42 6f 74 27 29 20 | 26 26 20 28 42 6f 74 52 |('Bot') |&& (BotR|
|00002300| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 28 50 |eplicati|onInfo(P|
|00002310| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00002320| 6f 6e 49 6e 66 6f 29 2e | 52 65 61 6c 4f 72 64 65 |onInfo).|RealOrde|
|00002330| 72 73 20 3d 3d 20 27 46 | 6f 6c 6c 6f 77 27 29 20 |rs == 'F|ollow') |
|00002340| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 41 20 3d 20 50 |)....{..|...A = P|
|00002350| 61 77 6e 28 42 6f 74 28 | 50 29 2e 4f 72 64 65 72 |awn(Bot(|P).Order|
|00002360| 4f 62 6a 65 63 74 29 3b | 0d 0a 09 09 09 69 66 20 |Object);|.....if |
|00002370| 28 20 28 41 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |( (A == |None) |||
|00002380| 20 41 2e 62 44 65 6c 65 | 74 65 4d 65 20 7c 7c 20 | A.bDele|teMe || |
|00002390| 21 41 2e 62 49 73 50 6c | 61 79 65 72 20 7c 7c 20 |!A.bIsPl|ayer || |
|000023a0| 28 41 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |(A.Playe|rReplica|
|000023b0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 21 3d |tionInfo|.Team !=|
|000023c0| 20 50 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 | P.Playe|rReplica|
|000023d0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 20 29 |tionInfo|.Team) )|
|000023e0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 42 6f 74 28 |.....{..|....Bot(|
|000023f0| 50 29 2e 4f 72 64 65 72 | 4f 62 6a 65 63 74 20 3d |P).Order|Object =|
|00002400| 20 4e 6f 6e 65 3b 0d 0a | 09 09 09 09 53 65 74 42 | None;..|....SetB|
|00002410| 6f 74 4f 72 64 65 72 73 | 28 42 6f 74 28 50 29 29 |otOrders|(Bot(P))|
|00002420| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 0d 0a |;.....}.|...}....|
|00002430| 7d 0d 0a 09 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4e |}.....fu|nction N|
|00002440| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 20 46 |avigatio|nPoint F|
|00002450| 69 6e 64 50 6c 61 79 65 | 72 53 74 61 72 74 28 20 |indPlaye|rStart( |
|00002460| 50 61 77 6e 20 50 6c 61 | 79 65 72 2c 20 6f 70 74 |Pawn Pla|yer, opt|
|00002470| 69 6f 6e 61 6c 20 62 79 | 74 65 20 49 6e 54 65 61 |ional by|te InTea|
|00002480| 6d 2c 20 6f 70 74 69 6f | 6e 61 6c 20 73 74 72 69 |m, optio|nal stri|
|00002490| 6e 67 20 69 6e 63 6f 6d | 69 6e 67 4e 61 6d 65 20 |ng incom|ingName |
|000024a0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 50 6c 61 |)..{...l|ocal Pla|
|000024b0| 79 65 72 53 74 61 72 74 | 20 44 65 73 74 2c 20 43 |yerStart| Dest, C|
|000024c0| 61 6e 64 69 64 61 74 65 | 5b 31 36 5d 2c 20 42 65 |andidate|[16], Be|
|000024d0| 73 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |st;...lo|cal floa|
|000024e0| 74 20 53 63 6f 72 65 5b | 31 36 5d 2c 20 42 65 73 |t Score[|16], Bes|
|000024f0| 74 53 63 6f 72 65 2c 20 | 4e 65 78 74 44 69 73 74 |tScore, |NextDist|
|00002500| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 70 61 77 6e 20 4f |;...loca|l pawn O|
|00002510| 74 68 65 72 50 6c 61 79 | 65 72 3b 0d 0a 09 6c 6f |therPlay|er;...lo|
|00002520| 63 61 6c 20 69 6e 74 20 | 69 2c 20 6e 75 6d 3b 0d |cal int |i, num;.|
|00002530| 0a 09 6c 6f 63 61 6c 20 | 54 65 6c 65 70 6f 72 74 |..local |Teleport|
|00002540| 65 72 20 54 65 6c 3b 0d | 0a 09 6c 6f 63 61 6c 20 |er Tel;.|..local |
|00002550| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 20 |Navigati|onPoint |
|00002560| 4e 3b 0d 0a 09 6c 6f 63 | 61 6c 20 61 63 74 6f 72 |N;...loc|al actor|
|00002570| 20 48 69 74 41 63 74 6f | 72 3b 0d 0a 09 6c 6f 63 | HitActo|r;...loc|
|00002580| 61 6c 20 76 65 63 74 6f | 72 20 48 69 74 4c 6f 63 |al vecto|r HitLoc|
|00002590| 61 74 69 6f 6e 2c 20 48 | 69 74 4e 6f 72 6d 61 6c |ation, H|itNormal|
|000025a0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 62 79 74 65 20 54 |;...loca|l byte T|
|000025b0| 65 61 6d 3b 0d 0a 0d 0a | 09 69 66 20 28 20 62 53 |eam;....|.if ( bS|
|000025c0| 74 61 72 74 4d 61 74 63 | 68 20 26 26 20 28 50 6c |tartMatc|h && (Pl|
|000025d0| 61 79 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |ayer != |None) &&|
|000025e0| 20 50 6c 61 79 65 72 2e | 49 73 41 28 27 54 6f 75 | Player.|IsA('Tou|
|000025f0| 72 6e 61 6d 65 6e 74 50 | 6c 61 79 65 72 27 29 20 |rnamentP|layer') |
|00002600| 0d 0a 09 09 26 26 20 28 | 4c 65 76 65 6c 2e 4e 65 |....&& (|Level.Ne|
|00002610| 74 4d 6f 64 65 20 3d 3d | 20 4e 4d 5f 53 74 61 6e |tMode ==| NM_Stan|
|00002620| 64 61 6c 6f 6e 65 29 0d | 0a 09 09 26 26 20 28 54 |dalone).|...&& (T|
|00002630| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 28 |ournamen|tPlayer(|
|00002640| 50 6c 61 79 65 72 29 2e | 53 74 61 72 74 53 70 6f |Player).|StartSpo|
|00002650| 74 20 21 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 09 |t != Non|e) )....|
|00002660| 72 65 74 75 72 6e 20 54 | 6f 75 72 6e 61 6d 65 6e |return T|ournamen|
|00002670| 74 50 6c 61 79 65 72 28 | 50 6c 61 79 65 72 29 2e |tPlayer(|Player).|
|00002680| 53 74 61 72 74 53 70 6f | 74 3b 0d 0a 0d 0a 09 69 |StartSpo|t;.....i|
|00002690| 66 20 28 20 28 50 6c 61 | 79 65 72 20 21 3d 20 4e |f ( (Pla|yer != N|
|000026a0| 6f 6e 65 29 20 26 26 20 | 28 50 6c 61 79 65 72 2e |one) && |(Player.|
|000026b0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|000026c0| 6e 49 6e 66 6f 20 21 3d | 20 4e 6f 6e 65 29 20 29 |nInfo !=| None) )|
|000026d0| 0d 0a 09 09 54 65 61 6d | 20 3d 20 50 6c 61 79 65 |....Team| = Playe|
|000026e0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|000026f0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 3b 0d 0a 09 |ionInfo.|Team;...|
|00002700| 65 6c 73 65 0d 0a 09 09 | 54 65 61 6d 20 3d 20 49 |else....|Team = I|
|00002710| 6e 54 65 61 6d 3b 0d 0a | 0d 0a 09 69 66 28 20 69 |nTeam;..|...if( i|
|00002720| 6e 63 6f 6d 69 6e 67 4e | 61 6d 65 21 3d 22 22 20 |ncomingN|ame!="" |
|00002730| 29 0d 0a 09 09 66 6f 72 | 65 61 63 68 20 41 6c 6c |)....for|each All|
|00002740| 41 63 74 6f 72 73 28 20 | 63 6c 61 73 73 20 27 54 |Actors( |class 'T|
|00002750| 65 6c 65 70 6f 72 74 65 | 72 27 2c 20 54 65 6c 20 |eleporte|r', Tel |
|00002760| 29 0d 0a 09 09 09 69 66 | 28 20 73 74 72 69 6e 67 |).....if|( string|
|00002770| 28 54 65 6c 2e 54 61 67 | 29 7e 3d 69 6e 63 6f 6d |(Tel.Tag|)~=incom|
|00002780| 69 6e 67 4e 61 6d 65 20 | 29 0d 0a 09 09 09 09 72 |ingName |)......r|
|00002790| 65 74 75 72 6e 20 54 65 | 6c 3b 0d 0a 0d 0a 09 69 |eturn Te|l;.....i|
|000027a0| 66 20 28 20 54 65 61 6d | 20 3d 3d 20 32 35 35 20 |f ( Team| == 255 |
|000027b0| 29 0d 0a 09 09 54 65 61 | 6d 20 3d 20 30 3b 0d 0a |)....Tea|m = 0;..|
|000027c0| 09 09 09 09 0d 0a 09 2f | 2f 63 68 6f 6f 73 65 20 |......./|/choose |
|000027d0| 63 61 6e 64 69 64 61 74 | 65 73 09 0d 0a 09 66 6f |candidat|es....fo|
|000027e0| 72 20 28 20 4e 3d 4c 65 | 76 65 6c 2e 4e 61 76 69 |r ( N=Le|vel.Navi|
|000027f0| 67 61 74 69 6f 6e 50 6f | 69 6e 74 4c 69 73 74 3b |gationPo|intList;|
|00002800| 20 4e 21 3d 4e 6f 6e 65 | 3b 20 4e 3d 4e 2e 6e 65 | N!=None|; N=N.ne|
|00002810| 78 74 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |xtNaviga|tionPoin|
|00002820| 74 20 29 0d 0a 09 7b 0d | 0a 09 09 44 65 73 74 20 |t )...{.|...Dest |
|00002830| 3d 20 50 6c 61 79 65 72 | 53 74 61 72 74 28 4e 29 |= Player|Start(N)|
|00002840| 3b 0d 0a 09 09 69 66 20 | 28 20 28 44 65 73 74 20 |;....if |( (Dest |
|00002850| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 44 65 73 74 |!= None)| && Dest|
|00002860| 2e 62 45 6e 61 62 6c 65 | 64 0d 0a 09 09 09 26 26 |.bEnable|d.....&&|
|00002870| 20 28 21 62 53 70 61 77 | 6e 49 6e 54 65 61 6d 41 | (!bSpaw|nInTeamA|
|00002880| 72 65 61 20 7c 7c 20 28 | 54 65 61 6d 20 3d 3d 20 |rea || (|Team == |
|00002890| 44 65 73 74 2e 54 65 61 | 6d 4e 75 6d 62 65 72 29 |Dest.Tea|mNumber)|
|000028a0| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |) )....{|.....if |
|000028b0| 28 6e 75 6d 3c 31 36 29 | 0d 0a 09 09 09 09 43 61 |(num<16)|......Ca|
|000028c0| 6e 64 69 64 61 74 65 5b | 6e 75 6d 5d 20 3d 20 44 |ndidate[|num] = D|
|000028d0| 65 73 74 3b 0d 0a 09 09 | 09 65 6c 73 65 20 69 66 |est;....|.else if|
|000028e0| 20 28 52 61 6e 64 28 6e | 75 6d 29 20 3c 20 31 36 | (Rand(n|um) < 16|
|000028f0| 29 0d 0a 09 09 09 09 43 | 61 6e 64 69 64 61 74 65 |)......C|andidate|
|00002900| 5b 52 61 6e 64 28 31 36 | 29 5d 20 3d 20 44 65 73 |[Rand(16|)] = Des|
|00002910| 74 3b 0d 0a 09 09 09 6e | 75 6d 2b 2b 3b 0d 0a 09 |t;.....n|um++;...|
|00002920| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 6e |.}...}..|...if (n|
|00002930| 75 6d 20 3d 3d 20 30 20 | 29 0d 0a 09 7b 0d 0a 09 |um == 0 |)...{...|
|00002940| 09 6c 6f 67 28 22 44 69 | 64 6e 27 74 20 66 69 6e |.log("Di|dn't fin|
|00002950| 64 20 61 6e 79 20 70 6c | 61 79 65 72 20 73 74 61 |d any pl|ayer sta|
|00002960| 72 74 73 20 69 6e 20 6c | 69 73 74 20 66 6f 72 20 |rts in l|ist for |
|00002970| 74 65 61 6d 22 40 54 65 | 61 6d 40 22 21 21 21 22 |team"@Te|am@"!!!"|
|00002980| 29 3b 20 0d 0a 09 09 66 | 6f 72 65 61 63 68 20 41 |); ....f|oreach A|
|00002990| 6c 6c 41 63 74 6f 72 73 | 28 20 63 6c 61 73 73 27 |llActors|( class'|
|000029a0| 50 6c 61 79 65 72 53 74 | 61 72 74 27 2c 20 44 65 |PlayerSt|art', De|
|000029b0| 73 74 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 69 66 |st )....|{.....if|
|000029c0| 20 28 6e 75 6d 3c 31 36 | 29 0d 0a 09 09 09 09 43 | (num<16|)......C|
|000029d0| 61 6e 64 69 64 61 74 65 | 5b 6e 75 6d 5d 20 3d 20 |andidate|[num] = |
|000029e0| 44 65 73 74 3b 0d 0a 09 | 09 09 65 6c 73 65 20 69 |Dest;...|..else i|
|000029f0| 66 20 28 52 61 6e 64 28 | 6e 75 6d 29 20 3c 20 31 |f (Rand(|num) < 1|
|00002a00| 36 29 0d 0a 09 09 09 09 | 43 61 6e 64 69 64 61 74 |6)......|Candidat|
|00002a10| 65 5b 52 61 6e 64 28 31 | 36 29 5d 20 3d 20 44 65 |e[Rand(1|6)] = De|
|00002a20| 73 74 3b 0d 0a 09 09 09 | 6e 75 6d 2b 2b 3b 0d 0a |st;.....|num++;..|
|00002a30| 09 09 7d 0d 0a 09 09 69 | 66 20 28 20 6e 75 6d 20 |..}....i|f ( num |
|00002a40| 3d 3d 20 30 20 29 0d 0a | 09 09 09 72 65 74 75 72 |== 0 )..|...retur|
|00002a50| 6e 20 4e 6f 6e 65 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |n None;.|..}.....|
|00002a60| 69 66 20 28 6e 75 6d 3e | 31 36 29 20 0d 0a 09 09 |if (num>|16) ....|
|00002a70| 6e 75 6d 20 3d 20 31 36 | 3b 0d 0a 09 0d 0a 09 2f |num = 16|;....../|
|00002a80| 2f 61 73 73 65 73 73 20 | 63 61 6e 64 69 64 61 74 |/assess |candidat|
|00002a90| 65 73 0d 0a 09 66 6f 72 | 20 28 69 3d 30 3b 69 3c |es...for| (i=0;i<|
|00002aa0| 6e 75 6d 3b 69 2b 2b 29 | 0d 0a 09 7b 0d 0a 09 09 |num;i++)|...{....|
|00002ab0| 69 66 20 28 20 43 61 6e | 64 69 64 61 74 65 5b 69 |if ( Can|didate[i|
|00002ac0| 5d 20 3d 3d 20 4c 61 73 | 74 53 74 61 72 74 53 70 |] == Las|tStartSp|
|00002ad0| 6f 74 20 29 0d 0a 09 09 | 09 53 63 6f 72 65 5b 69 |ot )....|.Score[i|
|00002ae0| 5d 20 3d 20 2d 36 30 30 | 30 2e 30 3b 0d 0a 09 09 |] = -600|0.0;....|
|00002af0| 65 6c 73 65 0d 0a 09 09 | 09 53 63 6f 72 65 5b 69 |else....|.Score[i|
|00002b00| 5d 20 3d 20 34 30 30 30 | 20 2a 20 46 52 61 6e 64 |] = 4000| * FRand|
|00002b10| 28 29 3b 20 2f 2f 72 61 | 6e 64 6f 6d 69 7a 65 0d |(); //ra|ndomize.|
|00002b20| 0a 09 7d 09 09 0d 0a 09 | 0d 0a 09 66 6f 72 20 28 |..}.....|...for (|
|00002b30| 20 4f 74 68 65 72 50 6c | 61 79 65 72 3d 4c 65 76 | OtherPl|ayer=Lev|
|00002b40| 65 6c 2e 50 61 77 6e 4c | 69 73 74 3b 20 4f 74 68 |el.PawnL|ist; Oth|
|00002b50| 65 72 50 6c 61 79 65 72 | 21 3d 4e 6f 6e 65 3b 20 |erPlayer|!=None; |
|00002b60| 4f 74 68 65 72 50 6c 61 | 79 65 72 3d 4f 74 68 65 |OtherPla|yer=Othe|
|00002b70| 72 50 6c 61 79 65 72 2e | 4e 65 78 74 50 61 77 6e |rPlayer.|NextPawn|
|00002b80| 29 09 0d 0a 09 09 69 66 | 20 28 20 4f 74 68 65 72 |).....if| ( Other|
|00002b90| 50 6c 61 79 65 72 2e 62 | 49 73 50 6c 61 79 65 72 |Player.b|IsPlayer|
|00002ba0| 20 26 26 20 28 4f 74 68 | 65 72 50 6c 61 79 65 72 | && (Oth|erPlayer|
|00002bb0| 2e 48 65 61 6c 74 68 20 | 3e 20 30 29 20 26 26 20 |.Health |> 0) && |
|00002bc0| 21 4f 74 68 65 72 50 6c | 61 79 65 72 2e 49 73 41 |!OtherPl|ayer.IsA|
|00002bd0| 28 27 53 70 65 63 74 61 | 74 6f 72 27 29 20 29 0d |('Specta|tor') ).|
|00002be0| 0a 09 09 09 66 6f 72 20 | 28 69 3d 30 3b 20 69 3c |....for |(i=0; i<|
|00002bf0| 6e 75 6d 3b 20 69 2b 2b | 29 0d 0a 09 09 09 09 69 |num; i++|)......i|
|00002c00| 66 20 28 20 4f 74 68 65 | 72 50 6c 61 79 65 72 2e |f ( Othe|rPlayer.|
|00002c10| 52 65 67 69 6f 6e 2e 5a | 6f 6e 65 20 3d 3d 20 43 |Region.Z|one == C|
|00002c20| 61 6e 64 69 64 61 74 65 | 5b 69 5d 2e 52 65 67 69 |andidate|[i].Regi|
|00002c30| 6f 6e 2e 5a 6f 6e 65 20 | 29 20 0d 0a 09 09 09 09 |on.Zone |) ......|
|00002c40| 7b 0d 0a 09 09 09 09 09 | 53 63 6f 72 65 5b 69 5d |{.......|Score[i]|
|00002c50| 20 2d 3d 20 31 35 30 30 | 3b 0d 0a 09 09 09 09 09 | -= 1500|;.......|
|00002c60| 4e 65 78 74 44 69 73 74 | 20 3d 20 56 53 69 7a 65 |NextDist| = VSize|
|00002c70| 28 4f 74 68 65 72 50 6c | 61 79 65 72 2e 4c 6f 63 |(OtherPl|ayer.Loc|
|00002c80| 61 74 69 6f 6e 20 2d 20 | 43 61 6e 64 69 64 61 74 |ation - |Candidat|
|00002c90| 65 5b 69 5d 2e 4c 6f 63 | 61 74 69 6f 6e 29 3b 0d |e[i].Loc|ation);.|
|00002ca0| 0a 09 09 09 09 09 69 66 | 20 28 4e 65 78 74 44 69 |......if| (NextDi|
|00002cb0| 73 74 20 3c 20 32 20 2a | 20 28 43 6f 6c 6c 69 73 |st < 2 *| (Collis|
|00002cc0| 69 6f 6e 52 61 64 69 75 | 73 20 2b 20 43 6f 6c 6c |ionRadiu|s + Coll|
|00002cd0| 69 73 69 6f 6e 48 65 69 | 67 68 74 29 29 0d 0a 09 |isionHei|ght))...|
|00002ce0| 09 09 09 09 09 53 63 6f | 72 65 5b 69 5d 20 2d 3d |.....Sco|re[i] -=|
|00002cf0| 20 31 30 30 30 30 30 30 | 2e 30 3b 0d 0a 09 09 09 | 1000000|.0;.....|
|00002d00| 09 09 65 6c 73 65 20 69 | 66 20 28 20 28 4e 65 78 |..else i|f ( (Nex|
|00002d10| 74 44 69 73 74 20 3c 20 | 32 30 30 30 29 20 26 26 |tDist < |2000) &&|
|00002d20| 20 28 4f 74 68 65 72 50 | 6c 61 79 65 72 2e 50 6c | (OtherP|layer.Pl|
|00002d30| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00002d40| 6e 66 6f 2e 54 65 61 6d | 20 21 3d 20 54 65 61 6d |nfo.Team| != Team|
|00002d50| 29 20 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |) ).....|..{.....|
|00002d60| 09 09 09 48 69 74 41 63 | 74 6f 72 20 3d 20 54 72 |...HitAc|tor = Tr|
|00002d70| 61 63 65 28 48 69 74 4c | 6f 63 61 74 69 6f 6e 2c |ace(HitL|ocation,|
|00002d80| 20 48 69 74 4e 6f 72 6d | 61 6c 2c 20 43 61 6e 64 | HitNorm|al, Cand|
|00002d90| 69 64 61 74 65 5b 69 5d | 2e 4c 6f 63 61 74 69 6f |idate[i]|.Locatio|
|00002da0| 6e 2c 20 4f 74 68 65 72 | 50 6c 61 79 65 72 2e 4c |n, Other|Player.L|
|00002db0| 6f 63 61 74 69 6f 6e 2c | 20 66 61 6c 73 65 29 3b |ocation,| false);|
|00002dc0| 0d 0a 09 09 09 09 09 09 | 69 66 20 28 20 48 69 74 |........|if ( Hit|
|00002dd0| 41 63 74 6f 72 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |Actor ==| None ).|
|00002de0| 0a 09 09 09 09 09 09 09 | 53 63 6f 72 65 5b 69 5d |........|Score[i]|
|00002df0| 20 2d 3d 20 28 31 30 30 | 30 30 2e 30 20 2d 20 4e | -= (100|00.0 - N|
|00002e00| 65 78 74 44 69 73 74 29 | 3b 0d 0a 09 09 09 09 09 |extDist)|;.......|
|00002e10| 7d 0d 0a 09 09 09 09 7d | 0d 0a 09 0d 0a 09 42 65 |}......}|......Be|
|00002e20| 73 74 53 63 6f 72 65 20 | 3d 20 53 63 6f 72 65 5b |stScore |= Score[|
|00002e30| 30 5d 3b 0d 0a 09 42 65 | 73 74 20 3d 20 43 61 6e |0];...Be|st = Can|
|00002e40| 64 69 64 61 74 65 5b 30 | 5d 3b 0d 0a 09 66 6f 72 |didate[0|];...for|
|00002e50| 20 28 69 3d 31 3b 20 69 | 3c 6e 75 6d 3b 20 69 2b | (i=1; i|<num; i+|
|00002e60| 2b 29 0d 0a 09 09 69 66 | 20 28 53 63 6f 72 65 5b |+)....if| (Score[|
|00002e70| 69 5d 20 3e 20 42 65 73 | 74 53 63 6f 72 65 29 0d |i] > Bes|tScore).|
|00002e80| 0a 09 09 7b 0d 0a 09 09 | 09 42 65 73 74 53 63 6f |...{....|.BestSco|
|00002e90| 72 65 20 3d 20 53 63 6f | 72 65 5b 69 5d 3b 0d 0a |re = Sco|re[i];..|
|00002ea0| 09 09 09 42 65 73 74 20 | 3d 20 43 61 6e 64 69 64 |...Best |= Candid|
|00002eb0| 61 74 65 5b 69 5d 3b 0d | 0a 09 09 7d 0d 0a 09 4c |ate[i];.|...}...L|
|00002ec0| 61 73 74 53 74 61 72 74 | 53 70 6f 74 20 3d 20 42 |astStart|Spot = B|
|00002ed0| 65 73 74 3b 0d 0a 09 09 | 09 09 0d 0a 09 72 65 74 |est;....|.....ret|
|00002ee0| 75 72 6e 20 42 65 73 74 | 3b 0d 0a 7d 0d 0a 0d 0a |urn Best|;..}....|
|00002ef0| 2f 2f 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |//------|--------|
|00002f00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002f40| 2d 2d 2d 2d 2d 2d 2d 0d | 0a 2f 2f 20 4c 65 76 65 |-------.|.// Leve|
|00002f50| 6c 20 67 61 6d 65 70 6c | 61 79 20 6d 6f 64 69 66 |l gamepl|ay modif|
|00002f60| 69 63 61 74 69 6f 6e 0d | 0a 0d 0a 2f 2f 55 73 65 |ication.|...//Use|
|00002f70| 20 72 65 64 75 63 65 20 | 64 61 6d 61 67 65 20 66 | reduce |damage f|
|00002f80| 6f 72 20 74 65 61 6d 70 | 6c 61 79 20 6d 6f 64 69 |or teamp|lay modi|
|00002f90| 66 69 63 61 74 69 6f 6e | 73 2c 20 65 74 63 2e 0d |fication|s, etc..|
|00002fa0| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 52 65 |.functio|n int Re|
|00002fb0| 64 75 63 65 44 61 6d 61 | 67 65 28 69 6e 74 20 44 |duceDama|ge(int D|
|00002fc0| 61 6d 61 67 65 2c 20 6e | 61 6d 65 20 44 61 6d 61 |amage, n|ame Dama|
|00002fd0| 67 65 54 79 70 65 2c 20 | 70 61 77 6e 20 69 6e 6a |geType, |pawn inj|
|00002fe0| 75 72 65 64 2c 20 70 61 | 77 6e 20 69 6e 73 74 69 |ured, pa|wn insti|
|00002ff0| 67 61 74 65 64 42 79 29 | 0d 0a 7b 0d 0a 09 44 61 |gatedBy)|..{...Da|
|00003000| 6d 61 67 65 20 3d 20 53 | 75 70 65 72 2e 52 65 64 |mage = S|uper.Red|
|00003010| 75 63 65 44 61 6d 61 67 | 65 28 44 61 6d 61 67 65 |uceDamag|e(Damage|
|00003020| 2c 20 44 61 6d 61 67 65 | 54 79 70 65 2c 20 69 6e |, Damage|Type, in|
|00003030| 6a 75 72 65 64 2c 20 69 | 6e 73 74 69 67 61 74 65 |jured, i|nstigate|
|00003040| 64 42 79 29 3b 0d 0a 09 | 0d 0a 09 69 66 20 28 20 |dBy);...|...if ( |
|00003050| 69 6e 73 74 69 67 61 74 | 65 64 42 79 20 3d 3d 20 |instigat|edBy == |
|00003060| 4e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |None )..|..return|
|00003070| 20 44 61 6d 61 67 65 3b | 0d 0a 0d 0a 09 69 66 20 | Damage;|.....if |
|00003080| 28 20 28 69 6e 73 74 69 | 67 61 74 65 64 42 79 20 |( (insti|gatedBy |
|00003090| 21 3d 20 69 6e 6a 75 72 | 65 64 29 20 26 26 20 69 |!= injur|ed) && i|
|000030a0| 6e 6a 75 72 65 64 2e 62 | 49 73 50 6c 61 79 65 72 |njured.b|IsPlayer|
|000030b0| 20 26 26 20 69 6e 73 74 | 69 67 61 74 65 64 42 79 | && inst|igatedBy|
|000030c0| 2e 62 49 73 50 6c 61 79 | 65 72 20 0d 0a 09 09 26 |.bIsPlay|er ....&|
|000030d0| 26 20 28 69 6e 6a 75 72 | 65 64 2e 50 6c 61 79 65 |& (injur|ed.Playe|
|000030e0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000030f0| 2e 54 65 61 6d 20 3d 3d | 20 69 6e 73 74 69 67 61 |.Team ==| instiga|
|00003100| 74 65 64 42 79 2e 50 6c | 61 79 65 72 52 65 70 6c |tedBy.Pl|ayerRepl|
|00003110| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00003120| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |) )...{.|...if ( |
|00003130| 69 6e 6a 75 72 65 64 2e | 49 73 41 28 27 42 6f 74 |injured.|IsA('Bot|
|00003140| 27 29 20 29 0d 0a 09 09 | 09 42 6f 74 28 49 6e 6a |') )....|.Bot(Inj|
|00003150| 75 72 65 64 29 2e 59 65 | 6c 6c 41 74 28 69 6e 73 |ured).Ye|llAt(ins|
|00003160| 74 69 67 61 74 65 64 42 | 79 29 3b 0d 0a 09 09 72 |tigatedB|y);....r|
|00003170| 65 74 75 72 6e 20 28 44 | 61 6d 61 67 65 20 2a 20 |eturn (D|amage * |
|00003180| 46 72 69 65 6e 64 6c 79 | 46 69 72 65 53 63 61 6c |Friendly|FireScal|
|00003190| 65 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 0d 0a |e);...}.|..else..|
|000031a0| 09 09 72 65 74 75 72 6e | 20 44 61 6d 61 67 65 3b |..return| Damage;|
|000031b0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000031c0| 53 63 6f 72 65 4b 69 6c | 6c 28 70 61 77 6e 20 4b |ScoreKil|l(pawn K|
|000031d0| 69 6c 6c 65 72 2c 20 70 | 61 77 6e 20 4f 74 68 65 |iller, p|awn Othe|
|000031e0| 72 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 20 28 4b 69 |r)..{...|if ( (Ki|
|000031f0| 6c 6c 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |ller == |None) |||
|00003200| 20 28 4b 69 6c 6c 65 72 | 20 3d 3d 20 4f 74 68 65 | (Killer| == Othe|
|00003210| 72 29 20 7c 7c 20 21 4f | 74 68 65 72 2e 62 49 73 |r) || !O|ther.bIs|
|00003220| 50 6c 61 79 65 72 20 7c | 7c 20 21 4b 69 6c 6c 65 |Player ||| !Kille|
|00003230| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 0d 0a 09 09 |r.bIsPla|yer ....|
|00003240| 7c 7c 20 28 4b 69 6c 6c | 65 72 2e 50 6c 61 79 65 ||| (Kill|er.Playe|
|00003250| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00003260| 2e 54 65 61 6d 20 21 3d | 20 4f 74 68 65 72 2e 50 |.Team !=| Other.P|
|00003270| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003280| 49 6e 66 6f 2e 54 65 61 | 6d 29 20 29 0d 0a 09 09 |Info.Tea|m) )....|
|00003290| 53 75 70 65 72 2e 53 63 | 6f 72 65 4b 69 6c 6c 28 |Super.Sc|oreKill(|
|000032a0| 4b 69 6c 6c 65 72 2c 20 | 4f 74 68 65 72 29 3b 0d |Killer, |Other);.|
|000032b0| 0a 0d 0a 09 69 66 20 28 | 20 21 62 53 63 6f 72 65 |....if (| !bScore|
|000032c0| 54 65 61 6d 4b 69 6c 6c | 73 20 29 0d 0a 09 09 72 |TeamKill|s )....r|
|000032d0| 65 74 75 72 6e 3b 0d 0a | 09 69 66 20 28 20 4f 74 |eturn;..|.if ( Ot|
|000032e0| 68 65 72 2e 62 49 73 50 | 6c 61 79 65 72 20 26 26 |her.bIsP|layer &&|
|000032f0| 20 28 28 4b 69 6c 6c 65 | 72 20 3d 3d 20 4e 6f 6e | ((Kille|r == Non|
|00003300| 65 29 20 7c 7c 20 4b 69 | 6c 6c 65 72 2e 62 49 73 |e) || Ki|ller.bIs|
|00003310| 50 6c 61 79 65 72 29 20 | 29 0d 0a 09 7b 0d 0a 09 |Player) |)...{...|
|00003320| 09 69 66 20 28 20 28 4b | 69 6c 6c 65 72 20 3d 3d |.if ( (K|iller ==|
|00003330| 20 4f 74 68 65 72 29 20 | 7c 7c 20 28 4b 69 6c 6c | Other) ||| (Kill|
|00003340| 65 72 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |er == No|ne) )...|
|00003350| 09 09 54 65 61 6d 73 5b | 4f 74 68 65 72 2e 50 6c |..Teams[|Other.Pl|
|00003360| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003370| 6e 66 6f 2e 54 65 61 6d | 5d 2e 53 63 6f 72 65 20 |nfo.Team|].Score |
|00003380| 2d 3d 20 31 3b 0d 0a 09 | 09 65 6c 73 65 20 69 66 |-= 1;...|.else if|
|00003390| 20 28 20 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 | ( Kille|r.Player|
|000033a0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000033b0| 54 65 61 6d 20 21 3d 20 | 4f 74 68 65 72 2e 50 6c |Team != |Other.Pl|
|000033c0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000033d0| 6e 66 6f 2e 54 65 61 6d | 20 29 0d 0a 09 09 09 54 |nfo.Team| ).....T|
|000033e0| 65 61 6d 73 5b 4b 69 6c | 6c 65 72 2e 50 6c 61 79 |eams[Kil|ler.Play|
|000033f0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00003400| 6f 2e 54 65 61 6d 5d 2e | 53 63 6f 72 65 20 2b 3d |o.Team].|Score +=|
|00003410| 20 31 3b 0d 0a 09 09 65 | 6c 73 65 20 69 66 20 28 | 1;....e|lse if (|
|00003420| 20 46 72 69 65 6e 64 6c | 79 46 69 72 65 53 63 61 | Friendl|yFireSca|
|00003430| 6c 65 20 3e 20 30 20 29 | 0d 0a 09 09 7b 0d 0a 09 |le > 0 )|....{...|
|00003440| 09 09 54 65 61 6d 73 5b | 4f 74 68 65 72 2e 50 6c |..Teams[|Other.Pl|
|00003450| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003460| 6e 66 6f 2e 54 65 61 6d | 5d 2e 53 63 6f 72 65 20 |nfo.Team|].Score |
|00003470| 2d 3d 20 31 3b 0d 0a 09 | 09 09 4b 69 6c 6c 65 72 |-= 1;...|..Killer|
|00003480| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003490| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 2d 3d 20 |onInfo.S|core -= |
|000034a0| 31 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |1;....}.|..}.....|
|000034b0| 69 66 20 28 20 28 62 4f | 76 65 72 54 69 6d 65 20 |if ( (bO|verTime |
|000034c0| 7c 7c 20 28 47 6f 61 6c | 54 65 61 6d 53 63 6f 72 ||| (Goal|TeamScor|
|000034d0| 65 20 3e 20 30 29 29 20 | 26 26 20 4b 69 6c 6c 65 |e > 0)) |&& Kille|
|000034e0| 72 2e 62 49 73 50 6c 61 | 79 65 72 0d 0a 09 09 26 |r.bIsPla|yer....&|
|000034f0| 26 20 28 54 65 61 6d 73 | 5b 6b 69 6c 6c 65 72 2e |& (Teams|[killer.|
|00003500| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003510| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 2e 53 63 6f 72 |nInfo.Te|am].Scor|
|00003520| 65 20 3e 3d 20 47 6f 61 | 6c 54 65 61 6d 53 63 6f |e >= Goa|lTeamSco|
|00003530| 72 65 29 20 29 0d 0a 09 | 09 45 6e 64 47 61 6d 65 |re) )...|.EndGame|
|00003540| 28 22 74 65 61 6d 73 63 | 6f 72 65 6c 69 6d 69 74 |("teamsc|orelimit|
|00003550| 22 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |");..}..|..functi|
|00003560| 6f 6e 20 62 6f 6f 6c 20 | 43 68 61 6e 67 65 54 65 |on bool |ChangeTe|
|00003570| 61 6d 28 50 61 77 6e 20 | 4f 74 68 65 72 2c 20 69 |am(Pawn |Other, i|
|00003580| 6e 74 20 4e 65 77 54 65 | 61 6d 29 0d 0a 7b 0d 0a |nt NewTe|am)..{..|
|00003590| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 2c 20 73 2c |.local i|nt i, s,|
|000035a0| 20 44 65 73 69 72 65 64 | 54 65 61 6d 3b 0d 0a 09 | Desired|Team;...|
|000035b0| 6c 6f 63 61 6c 20 70 61 | 77 6e 20 41 50 6c 61 79 |local pa|wn APlay|
|000035c0| 65 72 3b 0d 0a 09 6c 6f | 63 61 6c 20 74 65 61 6d |er;...lo|cal team|
|000035d0| 69 6e 66 6f 20 53 6d 61 | 6c 6c 65 73 74 54 65 61 |info Sma|llestTea|
|000035e0| 6d 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 62 52 61 74 |m;.....i|f ( bRat|
|000035f0| 65 64 47 61 6d 65 20 26 | 26 20 28 4f 74 68 65 72 |edGame &|& (Other|
|00003600| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003610| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 21 3d 20 32 |onInfo.T|eam != 2|
|00003620| 35 35 29 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |55) )...|.return |
|00003630| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 66 6f 72 28 20 |false;..|...for( |
|00003640| 69 3d 30 3b 20 69 3c 4d | 61 78 54 65 61 6d 73 3b |i=0; i<M|axTeams;|
|00003650| 20 69 2b 2b 20 29 0d 0a | 09 09 69 66 20 28 20 28 | i++ )..|..if ( (|
|00003660| 54 65 61 6d 73 5b 69 5d | 2e 53 69 7a 65 20 3c 20 |Teams[i]|.Size < |
|00003670| 4d 61 78 54 65 61 6d 53 | 69 7a 65 29 20 0d 0a 09 |MaxTeamS|ize) ...|
|00003680| 09 09 09 26 26 20 28 28 | 53 6d 61 6c 6c 65 73 74 |...&& ((|Smallest|
|00003690| 54 65 61 6d 20 3d 3d 20 | 4e 6f 6e 65 29 20 7c 7c |Team == |None) |||
|000036a0| 20 28 53 6d 61 6c 6c 65 | 73 74 54 65 61 6d 2e 53 | (Smalle|stTeam.S|
|000036b0| 69 7a 65 20 3e 20 54 65 | 61 6d 73 5b 69 5d 2e 53 |ize > Te|ams[i].S|
|000036c0| 69 7a 65 29 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |ize)) ).|...{....|
|000036d0| 09 73 20 3d 20 69 3b 0d | 0a 09 09 09 53 6d 61 6c |.s = i;.|....Smal|
|000036e0| 6c 65 73 74 54 65 61 6d | 20 3d 20 54 65 61 6d 73 |lestTeam| = Teams|
|000036f0| 5b 69 5d 3b 0d 0a 09 09 | 7d 0d 0a 0d 0a 09 69 66 |[i];....|}.....if|
|00003700| 20 28 20 62 50 6c 61 79 | 65 72 73 42 61 6c 61 6e | ( bPlay|ersBalan|
|00003710| 63 65 54 65 61 6d 73 20 | 26 26 0d 0a 09 09 09 28 |ceTeams |&&.....(|
|00003720| 28 4e 65 77 54 65 61 6d | 20 3e 3d 20 4d 61 78 54 |(NewTeam| >= MaxT|
|00003730| 65 61 6d 73 29 0d 0a 09 | 09 09 7c 7c 20 28 54 65 |eams)...|..|| (Te|
|00003740| 61 6d 73 5b 4e 65 77 54 | 65 61 6d 5d 2e 53 69 7a |ams[NewT|eam].Siz|
|00003750| 65 20 3e 20 53 6d 61 6c | 6c 65 73 74 54 65 61 6d |e > Smal|lestTeam|
|00003760| 2e 53 69 7a 65 29 29 20 | 29 0d 0a 09 7b 09 0d 0a |.Size)) |)...{...|
|00003770| 09 09 4f 74 68 65 72 2e | 50 6c 61 79 65 72 52 65 |..Other.|PlayerRe|
|00003780| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00003790| 61 6d 20 3d 20 32 35 35 | 3b 0d 0a 09 09 4e 65 77 |am = 255|;....New|
|000037a0| 54 65 61 6d 20 3d 20 32 | 35 35 3b 0d 0a 09 7d 0d |Team = 2|55;...}.|
|000037b0| 0a 0d 0a 09 69 66 20 28 | 20 28 4e 65 77 54 65 61 |....if (| (NewTea|
|000037c0| 6d 20 3d 3d 20 32 35 35 | 29 20 7c 7c 20 28 4e 65 |m == 255|) || (Ne|
|000037d0| 77 54 65 61 6d 20 3e 3d | 20 4d 61 78 54 65 61 6d |wTeam >=| MaxTeam|
|000037e0| 73 29 20 29 0d 0a 09 09 | 4e 65 77 54 65 61 6d 20 |s) )....|NewTeam |
|000037f0| 3d 20 73 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4f 74 |= s;....|.if ( Ot|
|00003800| 68 65 72 2e 49 73 41 28 | 27 53 70 65 63 74 61 74 |her.IsA(|'Spectat|
|00003810| 6f 72 27 29 20 29 0d 0a | 09 7b 0d 0a 09 09 4f 74 |or') )..|.{....Ot|
|00003820| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00003830| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 3d |ationInf|o.Team =|
|00003840| 20 32 35 35 3b 0d 0a 09 | 09 69 66 20 28 4c 6f 63 | 255;...|.if (Loc|
|00003850| 61 6c 4c 6f 67 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |alLog !=| None)..|
|00003860| 09 09 09 4c 6f 63 61 6c | 4c 6f 67 2e 4c 6f 67 54 |...Local|Log.LogT|
|00003870| 65 61 6d 43 68 61 6e 67 | 65 28 4f 74 68 65 72 29 |eamChang|e(Other)|
|00003880| 3b 0d 0a 09 09 69 66 20 | 28 57 6f 72 6c 64 4c 6f |;....if |(WorldLo|
|00003890| 67 20 21 3d 20 4e 6f 6e | 65 29 0d 0a 09 09 09 57 |g != Non|e).....W|
|000038a0| 6f 72 6c 64 4c 6f 67 2e | 4c 6f 67 54 65 61 6d 43 |orldLog.|LogTeamC|
|000038b0| 68 61 6e 67 65 28 4f 74 | 68 65 72 29 3b 0d 0a 09 |hange(Ot|her);...|
|000038c0| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|000038d0| 7d 0d 0a 09 69 66 20 28 | 20 4f 74 68 65 72 2e 49 |}...if (| Other.I|
|000038e0| 73 41 28 27 43 6f 6d 6d | 61 6e 64 65 72 27 29 20 |sA('Comm|ander') |
|000038f0| 29 0d 0a 09 7b 0d 0a 09 | 09 4f 74 68 65 72 2e 50 |)...{...|.Other.P|
|00003900| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003910| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 20 4e 65 77 54 |Info.Tea|m = NewT|
|00003920| 65 61 6d 3b 0d 0a 09 09 | 69 66 20 28 4c 6f 63 61 |eam;....|if (Loca|
|00003930| 6c 4c 6f 67 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |lLog != |None)...|
|00003940| 09 09 4c 6f 63 61 6c 4c | 6f 67 2e 4c 6f 67 54 65 |..LocalL|og.LogTe|
|00003950| 61 6d 43 68 61 6e 67 65 | 28 4f 74 68 65 72 29 3b |amChange|(Other);|
|00003960| 0d 0a 09 09 69 66 20 28 | 57 6f 72 6c 64 4c 6f 67 |....if (|WorldLog|
|00003970| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 57 6f | != None|).....Wo|
|00003980| 72 6c 64 4c 6f 67 2e 4c | 6f 67 54 65 61 6d 43 68 |rldLog.L|ogTeamCh|
|00003990| 61 6e 67 65 28 4f 74 68 | 65 72 29 3b 0d 0a 09 09 |ange(Oth|er);....|
|000039a0| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 7d |return t|rue;...}|
|000039b0| 0d 0a 09 69 66 20 28 20 | 28 4f 74 68 65 72 2e 50 |...if ( |(Other.P|
|000039c0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000039d0| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 4e 65 77 |Info.Tea|m == New|
|000039e0| 54 65 61 6d 29 20 26 26 | 20 62 4e 6f 54 65 61 6d |Team) &&| bNoTeam|
|000039f0| 43 68 61 6e 67 65 73 20 | 29 0d 0a 09 09 72 65 74 |Changes |)....ret|
|00003a00| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 69 |urn fals|e;.....i|
|00003a10| 66 20 28 20 4f 74 68 65 | 72 2e 49 73 41 28 27 54 |f ( Othe|r.IsA('T|
|00003a20| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 27 |ournamen|tPlayer'|
|00003a30| 29 20 29 0d 0a 09 09 54 | 6f 75 72 6e 61 6d 65 6e |) )....T|ournamen|
|00003a40| 74 50 6c 61 79 65 72 28 | 4f 74 68 65 72 29 2e 53 |tPlayer(|Other).S|
|00003a50| 74 61 72 74 53 70 6f 74 | 20 3d 20 4e 6f 6e 65 3b |tartSpot| = None;|
|00003a60| 0d 0a 0d 0a 09 69 66 20 | 28 20 4f 74 68 65 72 2e |.....if |( Other.|
|00003a70| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00003a80| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 21 3d 20 32 35 |nInfo.Te|am != 25|
|00003a90| 35 20 29 0d 0a 09 7b 0d | 0a 09 09 43 6c 65 61 72 |5 )...{.|...Clear|
|00003aa0| 4f 72 64 65 72 73 28 4f | 74 68 65 72 29 3b 0d 0a |Orders(O|ther);..|
|00003ab0| 09 09 54 65 61 6d 73 5b | 4f 74 68 65 72 2e 50 6c |..Teams[|Other.Pl|
|00003ac0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003ad0| 6e 66 6f 2e 54 65 61 6d | 5d 2e 53 69 7a 65 2d 2d |nfo.Team|].Size--|
|00003ae0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 69 66 20 28 54 65 |;...}...|..if (Te|
|00003af0| 61 6d 73 5b 4e 65 77 54 | 65 61 6d 5d 2e 53 69 7a |ams[NewT|eam].Siz|
|00003b00| 65 20 3c 20 4d 61 78 54 | 65 61 6d 53 69 7a 65 29 |e < MaxT|eamSize)|
|00003b10| 0d 0a 09 7b 0d 0a 09 09 | 41 64 64 54 6f 54 65 61 |...{....|AddToTea|
|00003b20| 6d 28 4e 65 77 54 65 61 | 6d 2c 20 4f 74 68 65 72 |m(NewTea|m, Other|
|00003b30| 29 3b 0d 0a 09 09 72 65 | 74 75 72 6e 20 74 72 75 |);....re|turn tru|
|00003b40| 65 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 20 |e;...}..|...if ( |
|00003b50| 28 53 6d 61 6c 6c 65 73 | 74 54 65 61 6d 20 21 3d |(Smalles|tTeam !=|
|00003b60| 20 4e 6f 6e 65 29 20 26 | 26 20 28 53 6d 61 6c 6c | None) &|& (Small|
|00003b70| 65 73 74 54 65 61 6d 2e | 53 69 7a 65 20 3c 20 4d |estTeam.|Size < M|
|00003b80| 61 78 54 65 61 6d 53 69 | 7a 65 29 20 29 0d 0a 09 |axTeamSi|ze) )...|
|00003b90| 7b 0d 0a 09 09 41 64 64 | 54 6f 54 65 61 6d 28 73 |{....Add|ToTeam(s|
|00003ba0| 2c 20 4f 74 68 65 72 29 | 3b 0d 0a 09 09 72 65 74 |, Other)|;....ret|
|00003bb0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 0d |urn true|;...}...|
|00003bc0| 0a 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00003bd0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 41 |.}....fu|nction A|
|00003be0| 64 64 54 6f 54 65 61 6d | 28 20 69 6e 74 20 6e 75 |ddToTeam|( int nu|
|00003bf0| 6d 2c 20 50 61 77 6e 20 | 4f 74 68 65 72 20 29 0d |m, Pawn |Other ).|
|00003c00| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 74 65 61 6d 69 |.{...loc|al teami|
|00003c10| 6e 66 6f 20 61 54 65 61 | 6d 3b 0d 0a 09 6c 6f 63 |nfo aTea|m;...loc|
|00003c20| 61 6c 20 50 61 77 6e 20 | 50 3b 0d 0a 09 6c 6f 63 |al Pawn |P;...loc|
|00003c30| 61 6c 20 62 6f 6f 6c 20 | 62 53 75 63 63 65 73 73 |al bool |bSuccess|
|00003c40| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |;...loca|l string|
|00003c50| 20 53 6b 69 6e 4e 61 6d | 65 2c 20 46 61 63 65 4e | SkinNam|e, FaceN|
|00003c60| 61 6d 65 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4f 74 |ame;....|.if ( Ot|
|00003c70| 68 65 72 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |her == N|one )...|
|00003c80| 7b 0d 0a 09 09 6c 6f 67 | 28 22 41 64 64 65 64 20 |{....log|("Added |
|00003c90| 6e 6f 6e 65 20 74 6f 20 | 74 65 61 6d 21 21 21 22 |none to |team!!!"|
|00003ca0| 29 3b 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |);....re|turn;...|
|00003cb0| 7d 0d 0a 0d 0a 09 61 54 | 65 61 6d 20 3d 20 54 65 |}.....aT|eam = Te|
|00003cc0| 61 6d 73 5b 6e 75 6d 5d | 3b 0d 0a 0d 0a 09 61 54 |ams[num]|;.....aT|
|00003cd0| 65 61 6d 2e 53 69 7a 65 | 2b 2b 3b 0d 0a 09 4f 74 |eam.Size|++;...Ot|
|00003ce0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00003cf0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 20 3d |ationInf|o.Team =|
|00003d00| 20 6e 75 6d 3b 0d 0a 09 | 4f 74 68 65 72 2e 50 6c | num;...|Other.Pl|
|00003d10| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003d20| 6e 66 6f 2e 54 65 61 6d | 4e 61 6d 65 20 3d 20 61 |nfo.Team|Name = a|
|00003d30| 54 65 61 6d 2e 54 65 61 | 6d 4e 61 6d 65 3b 0d 0a |Team.Tea|mName;..|
|00003d40| 09 69 66 20 28 4c 6f 63 | 61 6c 4c 6f 67 20 21 3d |.if (Loc|alLog !=|
|00003d50| 20 4e 6f 6e 65 29 0d 0a | 09 09 4c 6f 63 61 6c 4c | None)..|..LocalL|
|00003d60| 6f 67 2e 4c 6f 67 54 65 | 61 6d 43 68 61 6e 67 65 |og.LogTe|amChange|
|00003d70| 28 4f 74 68 65 72 29 3b | 0d 0a 09 69 66 20 28 57 |(Other);|...if (W|
|00003d80| 6f 72 6c 64 4c 6f 67 20 | 21 3d 20 4e 6f 6e 65 29 |orldLog |!= None)|
|00003d90| 0d 0a 09 09 57 6f 72 6c | 64 4c 6f 67 2e 4c 6f 67 |....Worl|dLog.Log|
|00003da0| 54 65 61 6d 43 68 61 6e | 67 65 28 4f 74 68 65 72 |TeamChan|ge(Other|
|00003db0| 29 3b 0d 0a 09 62 53 75 | 63 63 65 73 73 20 3d 20 |);...bSu|ccess = |
|00003dc0| 66 61 6c 73 65 3b 0d 0a | 09 69 66 20 28 20 4f 74 |false;..|.if ( Ot|
|00003dd0| 68 65 72 2e 49 73 41 28 | 27 50 6c 61 79 65 72 50 |her.IsA(|'PlayerP|
|00003de0| 61 77 6e 27 29 20 29 0d | 0a 09 7b 0d 0a 09 09 4f |awn') ).|..{....O|
|00003df0| 74 68 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ther.Pla|yerRepli|
|00003e00| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 49 |cationIn|fo.TeamI|
|00003e10| 44 20 3d 20 30 3b 0d 0a | 09 09 50 6c 61 79 65 72 |D = 0;..|..Player|
|00003e20| 50 61 77 6e 28 4f 74 68 | 65 72 29 2e 43 6c 69 65 |Pawn(Oth|er).Clie|
|00003e30| 6e 74 43 68 61 6e 67 65 | 54 65 61 6d 28 4f 74 68 |ntChange|Team(Oth|
|00003e40| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00003e50| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 3b 0d |tionInfo|.Team);.|
|00003e60| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 09 4f 74 |..}...el|se....Ot|
|00003e70| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00003e80| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 49 44 |ationInf|o.TeamID|
|00003e90| 20 3d 20 31 3b 0d 0a 0d | 0a 09 77 68 69 6c 65 20 | = 1;...|..while |
|00003ea0| 28 20 21 62 53 75 63 63 | 65 73 73 20 29 0d 0a 09 |( !bSucc|ess )...|
|00003eb0| 7b 0d 0a 09 09 62 53 75 | 63 63 65 73 73 20 3d 20 |{....bSu|ccess = |
|00003ec0| 74 72 75 65 3b 0d 0a 09 | 09 66 6f 72 20 28 20 50 |true;...|.for ( P|
|00003ed0| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|00003ee0| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 50 2e 6e 65 | P!=None|; P=P.ne|
|00003ef0| 78 74 50 61 77 6e 20 29 | 0d 0a 20 20 20 20 20 20 |xtPawn )|.. |
|00003f00| 20 20 20 20 20 20 69 66 | 20 28 20 50 2e 62 49 73 | if| ( P.bIs|
|00003f10| 50 6c 61 79 65 72 20 26 | 26 20 28 50 20 21 3d 20 |Player &|& (P != |
|00003f20| 4f 74 68 65 72 29 20 0d | 0a 09 09 09 09 26 26 20 |Other) .|.....&& |
|00003f30| 28 50 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |(P.Playe|rReplica|
|00003f40| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 3d 3d |tionInfo|.Team ==|
|00003f50| 20 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 | Other.P|layerRep|
|00003f60| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00003f70| 6d 29 20 0d 0a 09 09 09 | 09 26 26 20 28 50 2e 50 |m) .....|.&& (P.P|
|00003f80| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00003f90| 49 6e 66 6f 2e 54 65 61 | 6d 49 64 20 3d 3d 20 4f |Info.Tea|mId == O|
|00003fa0| 74 68 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ther.Pla|yerRepli|
|00003fb0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 49 |cationIn|fo.TeamI|
|00003fc0| 64 29 20 29 0d 0a 09 09 | 09 09 62 53 75 63 63 65 |d) )....|..bSucce|
|00003fd0| 73 73 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 09 69 |ss = fal|se;....i|
|00003fe0| 66 20 28 20 21 62 53 75 | 63 63 65 73 73 20 29 0d |f ( !bSu|ccess ).|
|00003ff0| 0a 09 09 09 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |....Othe|r.Player|
|00004000| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004010| 54 65 61 6d 49 44 2b 2b | 3b 0d 0a 09 7d 0d 0a 0d |TeamID++|;...}...|
|00004020| 0a 09 42 72 6f 61 64 63 | 61 73 74 4c 6f 63 61 6c |..Broadc|astLocal|
|00004030| 69 7a 65 64 4d 65 73 73 | 61 67 65 28 20 63 6c 61 |izedMess|age( cla|
|00004040| 73 73 27 44 65 61 74 68 | 4d 61 74 63 68 4d 65 73 |ss'Death|MatchMes|
|00004050| 73 61 67 65 27 2c 20 33 | 2c 20 4f 74 68 65 72 2e |sage', 3|, Other.|
|00004060| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00004070| 6e 49 6e 66 6f 2c 20 4e | 6f 6e 65 2c 20 61 54 65 |nInfo, N|one, aTe|
|00004080| 61 6d 20 29 3b 0d 0a 0d | 0a 09 4f 74 68 65 72 2e |am );...|..Other.|
|00004090| 73 74 61 74 69 63 2e 47 | 65 74 4d 75 6c 74 69 53 |static.G|etMultiS|
|000040a0| 6b 69 6e 28 4f 74 68 65 | 72 2c 20 53 6b 69 6e 4e |kin(Othe|r, SkinN|
|000040b0| 61 6d 65 2c 20 46 61 63 | 65 4e 61 6d 65 29 3b 0d |ame, Fac|eName);.|
|000040c0| 0a 09 4f 74 68 65 72 2e | 73 74 61 74 69 63 2e 53 |..Other.|static.S|
|000040d0| 65 74 4d 75 6c 74 69 53 | 6b 69 6e 28 4f 74 68 65 |etMultiS|kin(Othe|
|000040e0| 72 2c 20 53 6b 69 6e 4e | 61 6d 65 2c 20 46 61 63 |r, SkinN|ame, Fac|
|000040f0| 65 4e 61 6d 65 2c 20 6e | 75 6d 29 3b 0d 0a 0d 0a |eName, n|um);....|
|00004100| 09 69 66 20 28 20 62 42 | 61 6c 61 6e 63 65 54 65 |.if ( bB|alanceTe|
|00004110| 61 6d 73 20 26 26 20 21 | 62 52 61 74 65 64 47 61 |ams && !|bRatedGa|
|00004120| 6d 65 20 29 0d 0a 09 09 | 52 65 42 61 6c 61 6e 63 |me )....|ReBalanc|
|00004130| 65 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |e();..}.|...funct|
|00004140| 69 6f 6e 20 62 6f 6f 6c | 20 43 61 6e 53 70 65 63 |ion bool| CanSpec|
|00004150| 74 61 74 65 28 20 70 61 | 77 6e 20 56 69 65 77 65 |tate( pa|wn Viewe|
|00004160| 72 2c 20 61 63 74 6f 72 | 20 56 69 65 77 54 61 72 |r, actor| ViewTar|
|00004170| 67 65 74 20 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |get )..{|...if ( |
|00004180| 56 69 65 77 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Viewer.P|layerRep|
|00004190| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 49 73 |lication|Info.bIs|
|000041a0| 53 70 65 63 74 61 74 6f | 72 20 26 26 20 28 56 69 |Spectato|r && (Vi|
|000041b0| 65 77 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ewer.Pla|yerRepli|
|000041c0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|000041d0| 3d 3d 20 32 35 35 29 20 | 29 0d 0a 09 09 72 65 74 |== 255) |)....ret|
|000041e0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 72 65 74 75 |urn true|;...retu|
|000041f0| 72 6e 20 28 20 28 50 61 | 77 6e 28 56 69 65 77 54 |rn ( (Pa|wn(ViewT|
|00004200| 61 72 67 65 74 29 20 21 | 3d 20 4e 6f 6e 65 29 20 |arget) !|= None) |
|00004210| 26 26 20 50 61 77 6e 28 | 56 69 65 77 54 61 72 67 |&& Pawn(|ViewTarg|
|00004220| 65 74 29 2e 62 49 73 50 | 6c 61 79 65 72 20 0d 0a |et).bIsP|layer ..|
|00004230| 09 09 26 26 20 28 50 61 | 77 6e 28 56 69 65 77 54 |..&& (Pa|wn(ViewT|
|00004240| 61 72 67 65 74 29 2e 50 | 6c 61 79 65 72 52 65 70 |arget).P|layerRep|
|00004250| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00004260| 6d 20 3d 3d 20 56 69 65 | 77 65 72 2e 50 6c 61 79 |m == Vie|wer.Play|
|00004270| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00004280| 6f 2e 54 65 61 6d 29 20 | 29 3b 0d 0a 7d 0d 0a 0d |o.Team) |);..}...|
|00004290| 0a 66 75 6e 63 74 69 6f | 6e 20 54 65 61 6d 49 6e |.functio|n TeamIn|
|000042a0| 66 6f 20 47 65 74 54 65 | 61 6d 28 69 6e 74 20 54 |fo GetTe|am(int T|
|000042b0| 65 61 6d 4e 75 6d 20 29 | 0d 0a 7b 0d 0a 09 69 66 |eamNum )|..{...if|
|000042c0| 20 28 20 54 65 61 6d 4e | 75 6d 20 3c 20 41 72 72 | ( TeamN|um < Arr|
|000042d0| 61 79 43 6f 75 6e 74 28 | 54 65 61 6d 73 29 20 29 |ayCount(|Teams) )|
|000042e0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 54 65 61 6d 73 |....retu|rn Teams|
|000042f0| 5b 54 65 61 6d 4e 75 6d | 5d 3b 0d 0a 09 65 6c 73 |[TeamNum|];...els|
|00004300| 65 20 72 65 74 75 72 6e | 20 4e 6f 6e 65 3b 0d 0a |e return| None;..|
|00004310| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|00004320| 6f 6c 20 49 73 4f 6e 54 | 65 61 6d 28 50 61 77 6e |ol IsOnT|eam(Pawn|
|00004330| 20 4f 74 68 65 72 2c 20 | 69 6e 74 20 54 65 61 6d | Other, |int Team|
|00004340| 4e 75 6d 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 4f |Num)..{.|..if ( O|
|00004350| 74 68 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ther.Pla|yerRepli|
|00004360| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00004370| 3d 3d 20 54 65 61 6d 4e | 75 6d 20 29 0d 0a 09 09 |== TeamN|um )....|
|00004380| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 0d 0a |return t|rue;....|
|00004390| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|000043a0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|000043b0| 6f 6c 20 41 64 64 42 6f | 74 28 29 0d 0a 7b 0d 0a |ol AddBo|t()..{..|
|000043c0| 09 6c 6f 63 61 6c 20 62 | 6f 74 20 4e 65 77 42 6f |.local b|ot NewBo|
|000043d0| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 4e 61 76 69 67 |t;...loc|al Navig|
|000043e0| 61 74 69 6f 6e 50 6f 69 | 6e 74 20 53 74 61 72 74 |ationPoi|nt Start|
|000043f0| 53 70 6f 74 2c 20 4f 6c | 64 53 74 61 72 74 53 70 |Spot, Ol|dStartSp|
|00004400| 6f 74 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |ot;...lo|cal int |
|00004410| 44 65 73 69 72 65 64 54 | 65 61 6d 2c 20 69 2c 20 |DesiredT|eam, i, |
|00004420| 4d 69 6e 53 69 7a 65 3b | 0d 0a 0d 0a 09 4e 65 77 |MinSize;|.....New|
|00004430| 42 6f 74 20 3d 20 53 70 | 61 77 6e 42 6f 74 28 53 |Bot = Sp|awnBot(S|
|00004440| 74 61 72 74 53 70 6f 74 | 29 3b 0d 0a 09 69 66 20 |tartSpot|);...if |
|00004450| 28 20 4e 65 77 42 6f 74 | 20 3d 3d 20 4e 6f 6e 65 |( NewBot| == None|
|00004460| 20 29 0d 0a 09 7b 0d 0a | 09 09 6c 6f 67 28 22 46 | )...{..|..log("F|
|00004470| 61 69 6c 65 64 20 74 6f | 20 73 70 61 77 6e 20 62 |ailed to| spawn b|
|00004480| 6f 74 22 29 3b 0d 0a 09 | 09 72 65 74 75 72 6e 20 |ot");...|.return |
|00004490| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |false;..|.}.....i|
|000044a0| 66 20 28 20 62 42 61 6c | 61 6e 63 65 54 65 61 6d |f ( bBal|anceTeam|
|000044b0| 73 20 26 26 20 21 62 52 | 61 74 65 64 47 61 6d 65 |s && !bR|atedGame|
|000044c0| 20 29 0d 0a 09 7b 0d 0a | 09 09 4d 69 6e 53 69 7a | )...{..|..MinSiz|
|000044d0| 65 20 3d 20 54 65 61 6d | 73 5b 30 5d 2e 53 69 7a |e = Team|s[0].Siz|
|000044e0| 65 3b 0d 0a 09 09 44 65 | 73 69 72 65 64 54 65 61 |e;....De|siredTea|
|000044f0| 6d 20 3d 20 30 3b 0d 0a | 09 09 66 6f 72 20 28 20 |m = 0;..|..for ( |
|00004500| 69 3d 31 3b 20 69 3c 4d | 61 78 54 65 61 6d 73 3b |i=1; i<M|axTeams;|
|00004510| 20 69 2b 2b 20 29 0d 0a | 09 09 09 69 66 20 28 20 | i++ )..|...if ( |
|00004520| 54 65 61 6d 73 5b 69 5d | 2e 53 69 7a 65 20 3c 20 |Teams[i]|.Size < |
|00004530| 4d 69 6e 53 69 7a 65 20 | 29 0d 0a 09 09 09 7b 0d |MinSize |).....{.|
|00004540| 0a 09 09 09 09 4d 69 6e | 53 69 7a 65 20 3d 20 54 |.....Min|Size = T|
|00004550| 65 61 6d 73 5b 69 5d 2e | 53 69 7a 65 3b 0d 0a 09 |eams[i].|Size;...|
|00004560| 09 09 09 44 65 73 69 72 | 65 64 54 65 61 6d 20 3d |...Desir|edTeam =|
|00004570| 20 69 3b 0d 0a 09 09 09 | 7d 09 0d 0a 09 7d 0d 0a | i;.....|}....}..|
|00004580| 09 65 6c 73 65 0d 0a 09 | 09 44 65 73 69 72 65 64 |.else...|.Desired|
|00004590| 54 65 61 6d 20 3d 20 4e | 65 77 42 6f 74 2e 50 6c |Team = N|ewBot.Pl|
|000045a0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000045b0| 6e 66 6f 2e 54 65 61 6d | 3b 0d 0a 09 4e 65 77 42 |nfo.Team|;...NewB|
|000045c0| 6f 74 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ot.Playe|rReplica|
|000045d0| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 20 3d 20 |tionInfo|.Team = |
|000045e0| 32 35 35 3b 0d 0a 09 69 | 66 20 28 20 28 44 65 73 |255;...i|f ( (Des|
|000045f0| 69 72 65 64 54 65 61 6d | 20 3d 3d 20 32 35 35 29 |iredTeam| == 255)|
|00004600| 20 7c 7c 20 21 43 68 61 | 6e 67 65 54 65 61 6d 28 | || !Cha|ngeTeam(|
|00004610| 4e 65 77 42 6f 74 2c 20 | 44 65 73 69 72 65 64 54 |NewBot, |DesiredT|
|00004620| 65 61 6d 29 20 29 0d 0a | 09 7b 0d 0a 09 09 43 68 |eam) )..|.{....Ch|
|00004630| 61 6e 67 65 54 65 61 6d | 28 4e 65 77 42 6f 74 2c |angeTeam|(NewBot,|
|00004640| 20 4e 65 78 74 42 6f 74 | 54 65 61 6d 29 3b 0d 0a | NextBot|Team);..|
|00004650| 09 09 4e 65 78 74 42 6f | 74 54 65 61 6d 2b 2b 3b |..NextBo|tTeam++;|
|00004660| 0d 0a 09 09 69 66 20 28 | 20 4e 65 78 74 42 6f 74 |....if (| NextBot|
|00004670| 54 65 61 6d 20 3e 3d 20 | 4d 61 78 54 65 61 6d 73 |Team >= |MaxTeams|
|00004680| 20 29 0d 0a 09 09 09 4e | 65 78 74 42 6f 74 54 65 | ).....N|extBotTe|
|00004690| 61 6d 20 3d 20 30 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |am = 0;.|..}.....|
|000046a0| 69 66 20 28 20 62 53 70 | 61 77 6e 49 6e 54 65 61 |if ( bSp|awnInTea|
|000046b0| 6d 41 72 65 61 20 29 0d | 0a 09 7b 0d 0a 09 09 4f |mArea ).|..{....O|
|000046c0| 6c 64 53 74 61 72 74 53 | 70 6f 74 20 3d 20 53 74 |ldStartS|pot = St|
|000046d0| 61 72 74 53 70 6f 74 3b | 0d 0a 09 09 53 74 61 72 |artSpot;|....Star|
|000046e0| 74 53 70 6f 74 20 3d 20 | 46 69 6e 64 50 6c 61 79 |tSpot = |FindPlay|
|000046f0| 65 72 53 74 61 72 74 28 | 4e 65 77 42 6f 74 2c 32 |erStart(|NewBot,2|
|00004700| 35 35 29 3b 0d 0a 09 09 | 69 66 20 28 20 53 74 61 |55);....|if ( Sta|
|00004710| 72 74 53 70 6f 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |rtSpot !|= None )|
|00004720| 0d 0a 09 09 7b 0d 0a 09 | 09 09 4e 65 77 42 6f 74 |....{...|..NewBot|
|00004730| 2e 53 65 74 4c 6f 63 61 | 74 69 6f 6e 28 53 74 61 |.SetLoca|tion(Sta|
|00004740| 72 74 53 70 6f 74 2e 4c | 6f 63 61 74 69 6f 6e 29 |rtSpot.L|ocation)|
|00004750| 3b 0d 0a 09 09 09 4e 65 | 77 42 6f 74 2e 53 65 74 |;.....Ne|wBot.Set|
|00004760| 52 6f 74 61 74 69 6f 6e | 28 53 74 61 72 74 53 70 |Rotation|(StartSp|
|00004770| 6f 74 2e 52 6f 74 61 74 | 69 6f 6e 29 3b 0d 0a 09 |ot.Rotat|ion);...|
|00004780| 09 09 4e 65 77 42 6f 74 | 2e 56 69 65 77 52 6f 74 |..NewBot|.ViewRot|
|00004790| 61 74 69 6f 6e 20 3d 20 | 53 74 61 72 74 53 70 6f |ation = |StartSpo|
|000047a0| 74 2e 52 6f 74 61 74 69 | 6f 6e 3b 0d 0a 09 09 09 |t.Rotati|on;.....|
|000047b0| 4e 65 77 42 6f 74 2e 53 | 65 74 52 6f 74 61 74 69 |NewBot.S|etRotati|
|000047c0| 6f 6e 28 4e 65 77 42 6f | 74 2e 52 6f 74 61 74 69 |on(NewBo|t.Rotati|
|000047d0| 6f 6e 29 3b 0d 0a 09 09 | 09 53 74 61 72 74 53 70 |on);....|.StartSp|
|000047e0| 6f 74 2e 50 6c 61 79 54 | 65 6c 65 70 6f 72 74 45 |ot.PlayT|eleportE|
|000047f0| 66 66 65 63 74 28 20 4e | 65 77 42 6f 74 2c 20 74 |ffect( N|ewBot, t|
|00004800| 72 75 65 20 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 |rue );..|..}....e|
|00004810| 6c 73 65 0d 0a 09 09 09 | 53 74 61 72 74 53 70 6f |lse.....|StartSpo|
|00004820| 74 20 3d 20 4f 6c 64 53 | 74 61 72 74 53 70 6f 74 |t = OldS|tartSpot|
|00004830| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 53 74 61 72 74 53 |;...}...|..StartS|
|00004840| 70 6f 74 2e 50 6c 61 79 | 54 65 6c 65 70 6f 72 74 |pot.Play|Teleport|
|00004850| 45 66 66 65 63 74 28 4e | 65 77 42 6f 74 2c 20 74 |Effect(N|ewBot, t|
|00004860| 72 75 65 29 3b 0d 0a 0d | 0a 09 53 65 74 42 6f 74 |rue);...|..SetBot|
|00004870| 4f 72 64 65 72 73 28 4e | 65 77 42 6f 74 29 3b 0d |Orders(N|ewBot);.|
|00004880| 0a 0d 0a 09 2f 2f 20 4c | 6f 67 20 69 74 2e 0d 0a |....// L|og it...|
|00004890| 09 69 66 20 28 4c 6f 63 | 61 6c 4c 6f 67 20 21 3d |.if (Loc|alLog !=|
|000048a0| 20 4e 6f 6e 65 29 0d 0a | 09 7b 0d 0a 09 09 4c 6f | None)..|.{....Lo|
|000048b0| 63 61 6c 4c 6f 67 2e 4c | 6f 67 50 6c 61 79 65 72 |calLog.L|ogPlayer|
|000048c0| 43 6f 6e 6e 65 63 74 28 | 4e 65 77 42 6f 74 29 3b |Connect(|NewBot);|
|000048d0| 0d 0a 09 09 4c 6f 63 61 | 6c 4c 6f 67 2e 46 6c 75 |....Loca|lLog.Flu|
|000048e0| 73 68 4c 6f 67 28 29 3b | 0d 0a 09 7d 0d 0a 09 69 |shLog();|...}...i|
|000048f0| 66 20 28 57 6f 72 6c 64 | 4c 6f 67 20 21 3d 20 4e |f (World|Log != N|
|00004900| 6f 6e 65 29 0d 0a 09 7b | 0d 0a 09 09 57 6f 72 6c |one)...{|....Worl|
|00004910| 64 4c 6f 67 2e 4c 6f 67 | 50 6c 61 79 65 72 43 6f |dLog.Log|PlayerCo|
|00004920| 6e 6e 65 63 74 28 4e 65 | 77 42 6f 74 29 3b 0d 0a |nnect(Ne|wBot);..|
|00004930| 09 09 57 6f 72 6c 64 4c | 6f 67 2e 46 6c 75 73 68 |..WorldL|og.Flush|
|00004940| 4c 6f 67 28 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |Log();..|.}.....r|
|00004950| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 7d 0d 0a |eturn tr|ue;..}..|
|00004960| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 65 74 42 6f |..functi|on SetBo|
|00004970| 74 4f 72 64 65 72 73 28 | 42 6f 74 20 4e 65 77 42 |tOrders(|Bot NewB|
|00004980| 6f 74 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |ot)..{..|.local P|
|00004990| 61 77 6e 20 50 2c 20 4c | 3b 0d 0a 09 6c 6f 63 61 |awn P, L|;...loca|
|000049a0| 6c 20 69 6e 74 20 6e 75 | 6d 2c 20 74 6f 74 61 6c |l int nu|m, total|
|000049b0| 3b 0d 0a 0d 0a 09 2f 2f | 20 6f 6e 6c 79 20 66 6f |;.....//| only fo|
|000049c0| 6c 6c 6f 77 20 70 6c 61 | 79 65 72 73 2c 20 69 66 |llow pla|yers, if|
|000049d0| 20 74 68 65 72 65 20 61 | 72 65 20 61 6e 79 0d 0a | there a|re any..|
|000049e0| 09 69 66 20 28 20 28 4e | 75 6d 53 75 70 70 6f 72 |.if ( (N|umSuppor|
|000049f0| 74 69 6e 67 50 6c 61 79 | 65 72 20 3d 3d 20 30 29 |tingPlay|er == 0)|
|00004a00| 0d 0a 09 09 20 7c 7c 20 | 28 4e 75 6d 53 75 70 70 |.... || |(NumSupp|
|00004a10| 6f 72 74 69 6e 67 50 6c | 61 79 65 72 20 3c 20 54 |ortingPl|ayer < T|
|00004a20| 65 61 6d 73 5b 4e 65 77 | 42 6f 74 2e 50 6c 61 79 |eams[New|Bot.Play|
|00004a30| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00004a40| 6f 2e 54 65 61 6d 5d 2e | 53 69 7a 65 2f 32 20 2d |o.Team].|Size/2 -|
|00004a50| 20 31 29 20 29 20 0d 0a | 09 7b 0d 0a 09 09 46 6f | 1) ) ..|.{....Fo|
|00004a60| 72 20 28 20 50 3d 4c 65 | 76 65 6c 2e 50 61 77 6e |r ( P=Le|vel.Pawn|
|00004a70| 4c 69 73 74 3b 20 50 21 | 3d 4e 6f 6e 65 3b 20 50 |List; P!|=None; P|
|00004a80| 3d 20 50 2e 4e 65 78 74 | 50 61 77 6e 20 29 0d 0a |= P.Next|Pawn )..|
|00004a90| 09 09 09 69 66 20 28 20 | 50 2e 49 73 41 28 27 50 |...if ( |P.IsA('P|
|00004aa0| 6c 61 79 65 72 50 61 77 | 6e 27 29 20 26 26 20 28 |layerPaw|n') && (|
|00004ab0| 50 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |P.Player|Replicat|
|00004ac0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 3d 3d 20 |ionInfo.|Team == |
|00004ad0| 4e 65 77 42 6f 74 2e 50 | 6c 61 79 65 72 52 65 70 |NewBot.P|layerRep|
|00004ae0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00004af0| 6d 29 0d 0a 09 09 09 09 | 26 26 20 21 50 2e 49 73 |m)......|&& !P.Is|
|00004b00| 41 28 27 53 70 65 63 74 | 61 74 6f 72 27 29 20 29 |A('Spect|ator') )|
|00004b10| 0d 0a 09 09 7b 0d 0a 09 | 09 09 6e 75 6d 2b 2b 3b |....{...|..num++;|
|00004b20| 0d 0a 09 09 09 69 66 20 | 28 20 28 4c 20 3d 3d 20 |.....if |( (L == |
|00004b30| 4e 6f 6e 65 29 20 7c 7c | 20 28 46 52 61 6e 64 28 |None) ||| (FRand(|
|00004b40| 29 20 3c 20 31 2e 30 2f | 66 6c 6f 61 74 28 6e 75 |) < 1.0/|float(nu|
|00004b50| 6d 29 29 20 29 0d 0a 09 | 09 09 09 4c 20 3d 20 50 |m)) )...|...L = P|
|00004b60| 3b 0d 0a 09 09 7d 0d 0a | 0d 0a 09 09 69 66 20 28 |;....}..|....if (|
|00004b70| 20 4c 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 | L != No|ne )....|
|00004b80| 7b 0d 0a 09 09 09 4e 75 | 6d 53 75 70 70 6f 72 74 |{.....Nu|mSupport|
|00004b90| 69 6e 67 50 6c 61 79 65 | 72 2b 2b 3b 0d 0a 09 09 |ingPlaye|r++;....|
|00004ba0| 09 4e 65 77 42 6f 74 2e | 53 65 74 4f 72 64 65 72 |.NewBot.|SetOrder|
|00004bb0| 73 28 27 46 6f 6c 6c 6f | 77 27 2c 4c 2c 74 72 75 |s('Follo|w',L,tru|
|00004bc0| 65 29 3b 0d 0a 09 09 09 | 72 65 74 75 72 6e 3b 0d |e);.....|return;.|
|00004bd0| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 09 6e 75 6d 20 3d |...}...}|...num =|
|00004be0| 20 30 3b 0d 0a 09 46 6f | 72 20 28 20 50 3d 4c 65 | 0;...Fo|r ( P=Le|
|00004bf0| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|00004c00| 3d 4e 6f 6e 65 3b 20 50 | 3d 20 50 2e 4e 65 78 74 |=None; P|= P.Next|
|00004c10| 50 61 77 6e 20 29 0d 0a | 09 09 69 66 20 28 20 50 |Pawn )..|..if ( P|
|00004c20| 2e 62 49 73 50 6c 61 79 | 65 72 20 26 26 20 28 50 |.bIsPlay|er && (P|
|00004c30| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00004c40| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 4e |onInfo.T|eam == N|
|00004c50| 65 77 42 6f 74 2e 50 6c | 61 79 65 72 52 65 70 6c |ewBot.Pl|ayerRepl|
|00004c60| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00004c70| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 74 6f 74 |) )....{|.....tot|
|00004c80| 61 6c 2b 2b 3b 0d 0a 09 | 09 09 69 66 20 28 20 28 |al++;...|..if ( (|
|00004c90| 50 20 21 3d 20 4e 65 77 | 42 6f 74 29 20 26 26 20 |P != New|Bot) && |
|00004ca0| 50 2e 49 73 41 28 27 42 | 6f 74 27 29 20 26 26 20 |P.IsA('B|ot') && |
|00004cb0| 28 42 6f 74 28 50 29 2e | 4f 72 64 65 72 73 20 3d |(Bot(P).|Orders =|
|00004cc0| 3d 20 27 46 72 65 65 4c | 61 6e 63 65 27 29 20 29 |= 'FreeL|ance') )|
|00004cd0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 6e 75 6d 2b |.....{..|....num+|
|00004ce0| 2b 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 28 4c 20 |+;......|if ( (L |
|00004cf0| 3d 3d 20 4e 6f 6e 65 29 | 20 7c 7c 20 28 46 52 61 |== None)| || (FRa|
|00004d00| 6e 64 28 29 20 3c 20 31 | 2f 66 6c 6f 61 74 28 6e |nd() < 1|/float(n|
|00004d10| 75 6d 29 29 20 29 0d 0a | 09 09 09 09 09 4c 20 3d |um)) )..|.....L =|
|00004d20| 20 50 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a | P;.....|}....}..|
|00004d30| 09 09 09 09 0d 0a 09 69 | 66 20 28 20 28 4c 20 21 |.......i|f ( (L !|
|00004d40| 3d 20 4e 6f 6e 65 29 20 | 26 26 20 28 46 52 61 6e |= None) |&& (FRan|
|00004d50| 64 28 29 20 3c 20 66 6c | 6f 61 74 28 6e 75 6d 29 |d() < fl|oat(num)|
|00004d60| 2f 66 6c 6f 61 74 28 74 | 6f 74 61 6c 29 29 20 29 |/float(t|otal)) )|
|00004d70| 0d 0a 09 7b 0d 0a 09 09 | 4e 65 77 42 6f 74 2e 53 |...{....|NewBot.S|
|00004d80| 65 74 4f 72 64 65 72 73 | 28 27 46 6f 6c 6c 6f 77 |etOrders|('Follow|
|00004d90| 27 2c 4c 2c 74 72 75 65 | 29 3b 0d 0a 09 09 72 65 |',L,true|);....re|
|00004da0| 74 75 72 6e 3b 0d 0a 09 | 7d 0d 0a 09 4e 65 77 42 |turn;...|}...NewB|
|00004db0| 6f 74 2e 53 65 74 4f 72 | 64 65 72 73 28 27 46 72 |ot.SetOr|ders('Fr|
|00004dc0| 65 65 6c 61 6e 63 65 27 | 2c 20 4e 6f 6e 65 2c 74 |eelance'|, None,t|
|00004dd0| 72 75 65 29 3b 0d 0a 7d | 09 09 09 09 20 0d 0a 0d |rue);..}|.... ...|
|00004de0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 79 74 65 20 41 |.functio|n byte A|
|00004df0| 73 73 65 73 73 42 6f 74 | 41 74 74 69 74 75 64 65 |ssessBot|Attitude|
|00004e00| 28 42 6f 74 20 61 42 6f | 74 2c 20 50 61 77 6e 20 |(Bot aBo|t, Pawn |
|00004e10| 4f 74 68 65 72 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |Other)..|{...if (|
|00004e20| 20 28 4f 74 68 65 72 2e | 62 49 73 50 6c 61 79 65 | (Other.|bIsPlaye|
|00004e30| 72 20 26 26 20 28 61 42 | 6f 74 2e 50 6c 61 79 65 |r && (aB|ot.Playe|
|00004e40| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004e50| 2e 54 65 61 6d 20 3d 3d | 20 4f 74 68 65 72 2e 50 |.Team ==| Other.P|
|00004e60| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004e70| 49 6e 66 6f 2e 54 65 61 | 6d 29 29 0d 0a 09 09 7c |Info.Tea|m))....||
|00004e80| 7c 20 28 4f 74 68 65 72 | 2e 49 73 41 28 27 54 65 || (Other|.IsA('Te|
|00004e90| 61 6d 43 61 6e 6e 6f 6e | 27 29 20 0d 0a 09 09 09 |amCannon|') .....|
|00004ea0| 26 26 20 28 53 74 61 74 | 69 6f 6e 61 72 79 50 61 |&& (Stat|ionaryPa|
|00004eb0| 77 6e 28 4f 74 68 65 72 | 29 2e 53 61 6d 65 54 65 |wn(Other|).SameTe|
|00004ec0| 61 6d 41 73 28 61 42 6f | 74 2e 50 6c 61 79 65 72 |amAs(aBo|t.Player|
|00004ed0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004ee0| 54 65 61 6d 29 29 29 20 | 29 20 0d 0a 09 09 72 65 |Team))) |) ....re|
|00004ef0| 74 75 72 6e 20 33 3b 0d | 0a 09 65 6c 73 65 20 0d |turn 3;.|..else .|
|00004f00| 0a 09 09 72 65 74 75 72 | 6e 20 53 75 70 65 72 2e |...retur|n Super.|
|00004f10| 41 73 73 65 73 73 42 6f | 74 41 74 74 69 74 75 64 |AssessBo|tAttitud|
|00004f20| 65 28 61 42 6f 74 2c 20 | 4f 74 68 65 72 29 3b 0d |e(aBot, |Other);.|
|00004f30| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 41 |.}....fu|nction A|
|00004f40| 63 74 6f 72 20 53 65 74 | 44 65 66 65 6e 73 65 46 |ctor Set|DefenseF|
|00004f50| 6f 72 28 42 6f 74 20 61 | 42 6f 74 29 0d 0a 7b 0d |or(Bot a|Bot)..{.|
|00004f60| 0a 09 72 65 74 75 72 6e | 20 4e 6f 6e 65 3b 0d 0a |..return| None;..|
|00004f70| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|00004f80| 6f 6c 20 46 69 6e 64 53 | 70 65 63 69 61 6c 41 74 |ol FindS|pecialAt|
|00004f90| 74 72 61 63 74 69 6f 6e | 46 6f 72 28 42 6f 74 20 |traction|For(Bot |
|00004fa0| 61 42 6f 74 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |aBot)..{|...retur|
|00004fb0| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 66 |n false;|..}....f|
|00004fc0| 75 6e 63 74 69 6f 6e 20 | 53 65 74 41 74 74 72 61 |unction |SetAttra|
|00004fd0| 63 74 69 6f 6e 53 74 61 | 74 65 46 6f 72 28 42 6f |ctionSta|teFor(Bo|
|00004fe0| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 69 66 20 |t aBot).|.{...if |
|00004ff0| 28 20 61 42 6f 74 2e 45 | 6e 65 6d 79 20 21 3d 20 |( aBot.E|nemy != |
|00005000| 4e 6f 6e 65 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |None )..|.{....if|
|00005010| 20 28 20 21 61 42 6f 74 | 2e 49 73 49 6e 53 74 61 | ( !aBot|.IsInSta|
|00005020| 74 65 28 27 46 61 6c 6c | 42 61 63 6b 27 29 20 29 |te('Fall|Back') )|
|00005030| 0d 0a 09 09 7b 0d 0a 09 | 09 09 61 42 6f 74 2e 62 |....{...|..aBot.b|
|00005040| 4e 6f 43 6c 65 61 72 53 | 70 65 63 69 61 6c 20 3d |NoClearS|pecial =|
|00005050| 20 74 72 75 65 3b 0d 0a | 09 09 09 61 42 6f 74 2e | true;..|...aBot.|
|00005060| 54 77 65 65 6e 54 6f 52 | 75 6e 6e 69 6e 67 28 30 |TweenToR|unning(0|
|00005070| 2e 31 29 3b 0d 0a 09 09 | 09 61 42 6f 74 2e 47 6f |.1);....|.aBot.Go|
|00005080| 74 6f 53 74 61 74 65 28 | 27 46 61 6c 6c 42 61 63 |toState(|'FallBac|
|00005090| 6b 27 2c 27 53 70 65 63 | 69 61 6c 4e 61 76 69 67 |k','Spec|ialNavig|
|000050a0| 27 29 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 65 |');....}|...}...e|
|000050b0| 6c 73 65 20 69 66 20 28 | 20 21 61 42 6f 74 2e 49 |lse if (| !aBot.I|
|000050c0| 73 49 6e 53 74 61 74 65 | 28 27 52 6f 61 6d 69 6e |sInState|('Roamin|
|000050d0| 67 27 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 61 42 6f |g') )...|{....aBo|
|000050e0| 74 2e 62 4e 6f 43 6c 65 | 61 72 53 70 65 63 69 61 |t.bNoCle|arSpecia|
|000050f0| 6c 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 61 42 6f |l = true|;....aBo|
|00005100| 74 2e 54 77 65 65 6e 54 | 6f 52 75 6e 6e 69 6e 67 |t.TweenT|oRunning|
|00005110| 28 30 2e 31 29 3b 0d 0a | 09 09 61 42 6f 74 2e 47 |(0.1);..|..aBot.G|
|00005120| 6f 74 6f 53 74 61 74 65 | 28 27 52 6f 61 6d 69 6e |otoState|('Roamin|
|00005130| 67 27 2c 20 27 53 70 65 | 63 69 61 6c 4e 61 76 69 |g', 'Spe|cialNavi|
|00005140| 67 27 29 3b 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 66 |g');...}|..}....f|
|00005150| 75 6e 63 74 69 6f 6e 20 | 50 69 63 6b 41 6d 62 75 |unction |PickAmbu|
|00005160| 73 68 53 70 6f 74 46 6f | 72 28 42 6f 74 20 61 42 |shSpotFo|r(Bot aB|
|00005170| 6f 74 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 4e |ot)..{..|.local N|
|00005180| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 20 4e |avigatio|nPoint N|
|00005190| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 61 63 74 6f 72 20 |;...loca|l actor |
|000051a0| 48 69 74 41 63 74 6f 72 | 3b 0d 0a 09 6c 6f 63 61 |HitActor|;...loca|
|000051b0| 6c 20 76 65 63 74 6f 72 | 20 48 69 74 4c 6f 63 61 |l vector| HitLoca|
|000051c0| 74 69 6f 6e 2c 20 48 69 | 74 4e 6f 72 6d 61 6c 3b |tion, Hi|tNormal;|
|000051d0| 0d 0a 0d 0a 09 66 6f 72 | 20 28 20 4e 3d 4c 65 76 |.....for| ( N=Lev|
|000051e0| 65 6c 2e 4e 61 76 69 67 | 61 74 69 6f 6e 50 6f 69 |el.Navig|ationPoi|
|000051f0| 6e 74 4c 69 73 74 3b 20 | 4e 21 3d 4e 6f 6e 65 3b |ntList; |N!=None;|
|00005200| 20 4e 3d 4e 2e 4e 65 78 | 74 4e 61 76 69 67 61 74 | N=N.Nex|tNavigat|
|00005210| 69 6f 6e 50 6f 69 6e 74 | 20 29 0d 0a 09 09 69 66 |ionPoint| )....if|
|00005220| 20 28 20 4e 2e 49 73 41 | 28 27 41 6d 62 75 73 68 | ( N.IsA|('Ambush|
|00005230| 70 6f 69 6e 74 27 29 20 | 26 26 20 21 4e 2e 74 61 |point') |&& !N.ta|
|00005240| 6b 65 6e 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |ken )...|.{.....i|
|00005250| 66 20 28 20 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |f ( aBot|.Orders |
|00005260| 3d 3d 20 27 44 65 66 65 | 6e 64 27 20 29 0d 0a 09 |== 'Defe|nd' )...|
|00005270| 09 09 7b 0d 0a 09 09 09 | 09 69 66 20 28 20 4e 2e |..{.....|.if ( N.|
|00005280| 49 73 41 28 27 44 65 66 | 65 6e 73 65 50 6f 69 6e |IsA('Def|ensePoin|
|00005290| 74 27 29 20 26 26 20 28 | 44 65 66 65 6e 73 65 50 |t') && (|DefenseP|
|000052a0| 6f 69 6e 74 28 4e 29 2e | 74 65 61 6d 20 3d 3d 20 |oint(N).|team == |
|000052b0| 61 42 6f 74 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |aBot.Pla|yerRepli|
|000052c0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 74 65 61 6d 29 |cationIn|fo.team)|
|000052d0| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|000052e0| 69 66 20 28 20 28 44 65 | 66 65 6e 73 65 50 6f 69 |if ( (De|fensePoi|
|000052f0| 6e 74 28 61 42 6f 74 2e | 41 6d 62 75 73 68 73 70 |nt(aBot.|Ambushsp|
|00005300| 6f 74 29 20 3d 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |ot) == N|one)....|
|00005310| 09 09 09 09 7c 7c 20 28 | 44 65 66 65 6e 73 65 50 |....|| (|DefenseP|
|00005320| 6f 69 6e 74 28 4e 29 2e | 70 72 69 6f 72 69 74 79 |oint(N).|priority|
|00005330| 20 3e 20 44 65 66 65 6e | 73 65 50 6f 69 6e 74 28 | > Defen|sePoint(|
|00005340| 61 42 6f 74 2e 41 6d 62 | 75 73 68 73 70 6f 74 29 |aBot.Amb|ushspot)|
|00005350| 2e 70 72 69 6f 72 69 74 | 79 29 20 29 0d 0a 09 09 |.priorit|y) )....|
|00005360| 09 09 09 09 61 42 6f 74 | 2e 41 6d 62 75 73 68 73 |....aBot|.Ambushs|
|00005370| 70 6f 74 20 3d 20 41 6d | 62 75 73 68 70 6f 69 6e |pot = Am|bushpoin|
|00005380| 74 28 4e 29 3b 0d 0a 09 | 09 09 09 09 65 6c 73 65 |t(N);...|....else|
|00005390| 20 69 66 20 28 20 28 44 | 65 66 65 6e 73 65 50 6f | if ( (D|efensePo|
|000053a0| 69 6e 74 28 4e 29 2e 70 | 72 69 6f 72 69 74 79 20 |int(N).p|riority |
|000053b0| 3d 3d 20 44 65 66 65 6e | 73 65 50 6f 69 6e 74 28 |== Defen|sePoint(|
|000053c0| 61 42 6f 74 2e 41 6d 62 | 75 73 68 73 70 6f 74 29 |aBot.Amb|ushspot)|
|000053d0| 2e 70 72 69 6f 72 69 74 | 79 29 0d 0a 09 09 09 09 |.priorit|y)......|
|000053e0| 09 09 26 26 20 28 46 52 | 61 6e 64 28 29 20 3c 20 |..&& (FR|and() < |
|000053f0| 30 2e 34 29 20 29 20 0d | 0a 09 09 09 09 09 09 61 |0.4) ) .|.......a|
|00005400| 42 6f 74 2e 41 6d 62 75 | 73 68 73 70 6f 74 20 3d |Bot.Ambu|shspot =|
|00005410| 20 41 6d 62 75 73 68 70 | 6f 69 6e 74 28 4e 29 3b | Ambushp|oint(N);|
|00005420| 0d 0a 09 09 09 09 7d 09 | 09 0d 0a 09 09 09 09 65 |......}.|.......e|
|00005430| 6c 73 65 20 69 66 20 28 | 20 44 65 66 65 6e 73 65 |lse if (| Defense|
|00005440| 50 6f 69 6e 74 28 61 42 | 6f 74 2e 41 6d 62 75 73 |Point(aB|ot.Ambus|
|00005450| 68 53 70 6f 74 29 20 3d | 3d 20 4e 6f 6e 65 20 29 |hSpot) =|= None )|
|00005460| 0d 0a 09 09 09 09 7b 0d | 0a 09 09 09 09 09 69 66 |......{.|......if|
|00005470| 20 28 20 56 53 69 7a 65 | 28 4e 2e 4c 6f 63 61 74 | ( VSize|(N.Locat|
|00005480| 69 6f 6e 20 2d 20 61 42 | 6f 74 2e 4f 72 64 65 72 |ion - aB|ot.Order|
|00005490| 4f 62 6a 65 63 74 2e 4c | 6f 63 61 74 69 6f 6e 29 |Object.L|ocation)|
|000054a0| 20 3e 20 31 35 30 30 20 | 29 0d 0a 09 09 09 09 09 | > 1500 |).......|
|000054b0| 09 48 69 74 41 63 74 6f | 72 20 3d 20 61 42 6f 74 |.HitActo|r = aBot|
|000054c0| 3b 0d 0a 09 09 09 09 09 | 65 6c 73 65 0d 0a 09 09 |;.......|else....|
|000054d0| 09 09 09 09 48 69 74 41 | 63 74 6f 72 20 3d 20 54 |....HitA|ctor = T|
|000054e0| 72 61 63 65 28 48 69 74 | 4c 6f 63 61 74 69 6f 6e |race(Hit|Location|
|000054f0| 2c 20 48 69 74 4e 6f 72 | 6d 61 6c 2c 20 61 42 6f |, HitNor|mal, aBo|
|00005500| 74 2e 4f 72 64 65 72 4f | 62 6a 65 63 74 2e 4c 6f |t.OrderO|bject.Lo|
|00005510| 63 61 74 69 6f 6e 20 2c | 20 4e 2e 4c 6f 63 61 74 |cation ,| N.Locat|
|00005520| 69 6f 6e 2c 20 66 61 6c | 73 65 29 3b 0d 0a 09 09 |ion, fal|se);....|
|00005530| 09 09 09 69 66 20 28 20 | 28 48 69 74 41 63 74 6f |...if ( |(HitActo|
|00005540| 72 20 3d 3d 20 4e 6f 6e | 65 29 0d 0a 09 09 09 09 |r == Non|e)......|
|00005550| 09 09 26 26 20 28 28 61 | 42 6f 74 2e 41 6d 62 75 |..&& ((a|Bot.Ambu|
|00005560| 73 68 73 70 6f 74 20 3d | 3d 20 4e 6f 6e 65 29 20 |shspot =|= None) |
|00005570| 7c 7c 20 28 46 52 61 6e | 64 28 29 20 3c 20 30 2e ||| (FRan|d() < 0.|
|00005580| 35 29 29 20 29 0d 0a 09 | 09 09 09 09 09 09 61 42 |5)) )...|......aB|
|00005590| 6f 74 2e 41 6d 62 75 73 | 68 73 70 6f 74 20 3d 20 |ot.Ambus|hspot = |
|000055a0| 41 6d 62 75 73 68 70 6f | 69 6e 74 28 4e 29 3b 0d |Ambushpo|int(N);.|
|000055b0| 0a 09 09 09 09 7d 0d 0a | 09 09 09 7d 0d 0a 09 09 |.....}..|...}....|
|000055c0| 09 65 6c 73 65 20 69 66 | 20 28 20 28 61 42 6f 74 |.else if| ( (aBot|
|000055d0| 2e 41 6d 62 75 73 68 53 | 70 6f 74 20 3d 3d 20 4e |.AmbushS|pot == N|
|000055e0| 6f 6e 65 29 0d 0a 09 09 | 09 09 7c 7c 20 28 56 53 |one)....|..|| (VS|
|000055f0| 69 7a 65 28 61 42 6f 74 | 2e 4c 6f 63 61 74 69 6f |ize(aBot|.Locatio|
|00005600| 6e 20 2d 20 61 42 6f 74 | 2e 41 6d 62 75 73 68 73 |n - aBot|.Ambushs|
|00005610| 70 6f 74 2e 4c 6f 63 61 | 74 69 6f 6e 29 0d 0a 09 |pot.Loca|tion)...|
|00005620| 09 09 09 09 20 3e 20 56 | 53 69 7a 65 28 61 42 6f |.... > V|Size(aBo|
|00005630| 74 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 4e 2e 4c |t.Locati|on - N.L|
|00005640| 6f 63 61 74 69 6f 6e 29 | 29 20 29 0d 0a 09 09 09 |ocation)|) ).....|
|00005650| 09 61 42 6f 74 2e 41 6d | 62 75 73 68 73 70 6f 74 |.aBot.Am|bushspot|
|00005660| 20 3d 20 41 6d 62 75 73 | 68 70 6f 69 6e 74 28 4e | = Ambus|hpoint(N|
|00005670| 29 3b 0d 0a 09 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |);....}.|.}....fu|
|00005680| 6e 63 74 69 6f 6e 20 62 | 79 74 65 20 50 72 69 6f |nction b|yte Prio|
|00005690| 72 69 74 79 4f 62 6a 65 | 63 74 69 76 65 28 42 6f |rityObje|ctive(Bo|
|000056a0| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 72 65 74 |t aBot).|.{...ret|
|000056b0| 75 72 6e 20 30 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |urn 0;..|}....fun|
|000056c0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 75 63 63 65 |ction bo|ol Succe|
|000056d0| 73 73 66 75 6c 47 61 6d | 65 28 29 0d 0a 7b 0d 0a |ssfulGam|e()..{..|
|000056e0| 09 6c 6f 63 61 6c 20 54 | 65 61 6d 49 6e 66 6f 20 |.local T|eamInfo |
|000056f0| 42 65 73 74 54 65 61 6d | 3b 0d 0a 09 6c 6f 63 61 |BestTeam|;...loca|
|00005700| 6c 20 69 6e 74 20 69 3b | 0d 0a 09 42 65 73 74 54 |l int i;|...BestT|
|00005710| 65 61 6d 20 3d 20 54 65 | 61 6d 73 5b 30 5d 3b 0d |eam = Te|ams[0];.|
|00005720| 0a 09 66 6f 72 20 28 20 | 69 3d 31 3b 20 69 3c 4d |..for ( |i=1; i<M|
|00005730| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|00005740| 09 09 69 66 20 28 20 54 | 65 61 6d 73 5b 69 5d 2e |..if ( T|eams[i].|
|00005750| 53 63 6f 72 65 20 3e 20 | 42 65 73 74 54 65 61 6d |Score > |BestTeam|
|00005760| 2e 53 63 6f 72 65 20 29 | 0d 0a 09 09 09 42 65 73 |.Score )|.....Bes|
|00005770| 74 54 65 61 6d 20 3d 20 | 54 65 61 6d 73 5b 69 5d |tTeam = |Teams[i]|
|00005780| 3b 0d 0a 0d 0a 09 62 46 | 75 6c 66 69 6c 6c 65 64 |;.....bF|ulfilled|
|00005790| 53 70 65 63 69 61 6c 20 | 3d 20 54 72 75 65 3b 20 |Special |= True; |
|000057a0| 2f 2f 20 4f 76 65 72 72 | 69 64 65 20 61 6e 64 20 |// Overr|ide and |
|000057b0| 69 6d 70 6c 65 6d 65 6e | 74 20 69 66 20 79 6f 75 |implemen|t if you|
|000057c0| 20 68 61 76 65 20 61 20 | 73 70 65 63 69 61 6c 20 | have a |special |
|000057d0| 63 6f 6e 64 69 74 69 6f | 6e 2e 0d 0a 09 69 66 20 |conditio|n....if |
|000057e0| 28 42 65 73 74 54 65 61 | 6d 2e 54 65 61 6d 49 6e |(BestTea|m.TeamIn|
|000057f0| 64 65 78 20 3d 3d 20 52 | 61 74 65 64 50 6c 61 79 |dex == R|atedPlay|
|00005800| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00005810| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 0d 0a |tionInfo|.Team)..|
|00005820| 09 09 72 65 74 75 72 6e | 20 28 20 62 46 75 6c 66 |..return| ( bFulf|
|00005830| 69 6c 6c 65 64 53 70 65 | 63 69 61 6c 20 26 26 20 |illedSpe|cial && |
|00005840| 28 42 65 73 74 54 65 61 | 6d 2e 53 63 6f 72 65 20 |(BestTea|m.Score |
|00005850| 3e 3d 20 47 6f 61 6c 54 | 65 61 6d 53 63 6f 72 65 |>= GoalT|eamScore|
|00005860| 29 20 29 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 72 |) );...e|lse....r|
|00005870| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 7d 0d |eturn fa|lse;..}.|
|00005880| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 43 6c 65 61 |...funct|ion Clea|
|00005890| 72 4f 72 64 65 72 73 28 | 50 61 77 6e 20 4c 65 61 |rOrders(|Pawn Lea|
|000058a0| 76 69 6e 67 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ving)..{|...local|
|000058b0| 20 50 61 77 6e 20 50 3b | 0d 0a 0d 0a 09 66 6f 72 | Pawn P;|.....for|
|000058c0| 20 28 20 50 3d 4c 65 76 | 65 6c 2e 50 61 77 6e 4c | ( P=Lev|el.PawnL|
|000058d0| 69 73 74 3b 20 50 21 3d | 4e 6f 6e 65 3b 20 50 3d |ist; P!=|None; P=|
|000058e0| 50 2e 4e 65 78 74 50 61 | 77 6e 20 29 0d 0a 09 09 |P.NextPa|wn )....|
|000058f0| 69 66 20 28 20 50 2e 49 | 73 41 28 27 42 6f 74 27 |if ( P.I|sA('Bot'|
|00005900| 29 20 26 26 20 28 42 6f | 74 28 50 29 2e 4f 72 64 |) && (Bo|t(P).Ord|
|00005910| 65 72 4f 62 6a 65 63 74 | 20 3d 3d 20 4c 65 61 76 |erObject| == Leav|
|00005920| 69 6e 67 29 20 29 0d 0a | 09 09 09 42 6f 74 28 50 |ing) )..|...Bot(P|
|00005930| 29 2e 53 65 74 4f 72 64 | 65 72 73 28 27 46 72 65 |).SetOrd|ers('Fre|
|00005940| 65 6c 61 6e 63 65 27 2c | 20 4e 6f 6e 65 29 3b 0d |elance',| None);.|
|00005950| 0a 7d 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |.}..func|tion boo|
|00005960| 6c 20 57 61 69 74 46 6f | 72 50 6f 69 6e 74 28 62 |l WaitFo|rPoint(b|
|00005970| 6f 74 20 61 42 6f 74 29 | 0d 0a 7b 0d 0a 09 72 65 |ot aBot)|..{...re|
|00005980| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |turn fal|se;..}..|
|00005990| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|000059a0| 53 65 6e 64 42 6f 74 54 | 6f 47 6f 61 6c 28 42 6f |SendBotT|oGoal(Bo|
|000059b0| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 72 65 74 |t aBot).|.{...ret|
|000059c0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 7d 0d 0a 0d |urn fals|e;..}...|
|000059d0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 48 |.functio|n bool H|
|000059e0| 61 6e 64 6c 65 54 69 65 | 55 70 28 42 6f 74 20 42 |andleTie|Up(Bot B|
|000059f0| 75 6d 70 65 72 2c 20 42 | 6f 74 20 42 75 6d 70 65 |umper, B|ot Bumpe|
|00005a00| 65 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 66 |e)..{...|return f|
|00005a10| 61 6c 73 65 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 2d 2d |alse;..}|....//--|
|00005a20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 2f 2f |--------|----..//|
|00005a70| 20 47 61 6d 65 20 51 75 | 65 72 79 69 6e 67 2e 0d | Game Qu|erying..|
|00005a80| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 73 74 72 69 |...funct|ion stri|
|00005a90| 6e 67 20 47 65 74 52 75 | 6c 65 73 28 29 0d 0a 7b |ng GetRu|les()..{|
|00005aa0| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00005ab0| 52 65 73 75 6c 74 53 65 | 74 3b 0d 0a 09 52 65 73 |ResultSe|t;...Res|
|00005ac0| 75 6c 74 53 65 74 20 3d | 20 53 75 70 65 72 28 54 |ultSet =| Super(T|
|00005ad0| 6f 75 72 6e 61 6d 65 6e | 74 47 61 6d 65 49 6e 66 |ournamen|tGameInf|
|00005ae0| 6f 29 2e 47 65 74 52 75 | 6c 65 73 28 29 3b 0d 0a |o).GetRu|les();..|
|00005af0| 0d 0a 09 2f 2f 20 54 69 | 6d 65 6c 69 6d 69 74 2e |...// Ti|melimit.|
|00005b00| 0d 0a 09 52 65 73 75 6c | 74 53 65 74 20 3d 20 52 |...Resul|tSet = R|
|00005b10| 65 73 75 6c 74 53 65 74 | 24 22 5c 5c 74 69 6d 65 |esultSet|$"\\time|
|00005b20| 6c 69 6d 69 74 5c 5c 22 | 24 54 69 6d 65 4c 69 6d |limit\\"|$TimeLim|
|00005b30| 69 74 3b 0d 0a 09 09 0d | 0a 09 2f 2f 20 46 72 61 |it;.....|..// Fra|
|00005b40| 67 6c 69 6d 69 74 0d 0a | 09 52 65 73 75 6c 74 53 |glimit..|.ResultS|
|00005b50| 65 74 20 3d 20 52 65 73 | 75 6c 74 53 65 74 24 22 |et = Res|ultSet$"|
|00005b60| 5c 5c 67 6f 61 6c 74 65 | 61 6d 73 63 6f 72 65 5c |\\goalte|amscore\|
|00005b70| 5c 22 24 69 6e 74 28 47 | 6f 61 6c 54 65 61 6d 53 |\"$int(G|oalTeamS|
|00005b80| 63 6f 72 65 29 3b 0d 0a | 09 09 0d 0a 09 2f 2f 20 |core);..|.....// |
|00005b90| 4d 69 6e 50 6c 61 79 65 | 72 73 0d 0a 09 52 65 73 |MinPlaye|rs...Res|
|00005ba0| 75 6c 74 73 65 74 20 3d | 20 52 65 73 75 6c 74 53 |ultset =| ResultS|
|00005bb0| 65 74 24 22 5c 5c 6d 69 | 6e 70 6c 61 79 65 72 73 |et$"\\mi|nplayers|
|00005bc0| 5c 5c 22 24 4d 69 6e 50 | 6c 61 79 65 72 73 3b 0d |\\"$MinP|layers;.|
|00005bd0| 0a 0d 0a 09 2f 2f 20 43 | 68 61 6e 67 65 20 4c 65 |....// C|hange Le|
|00005be0| 76 65 6c 73 0d 0a 09 52 | 65 73 75 6c 74 73 65 74 |vels...R|esultset|
|00005bf0| 20 3d 20 52 65 73 75 6c | 74 53 65 74 24 22 5c 5c | = Resul|tSet$"\\|
|00005c00| 63 68 61 6e 67 65 6c 65 | 76 65 6c 73 5c 5c 22 24 |changele|vels\\"$|
|00005c10| 62 43 68 61 6e 67 65 4c | 65 76 65 6c 73 3b 0d 0a |bChangeL|evels;..|
|00005c20| 0d 0a 09 2f 2f 20 4d 61 | 78 20 54 65 61 6d 73 0d |...// Ma|x Teams.|
|00005c30| 0a 09 52 65 73 75 6c 74 | 53 65 74 20 3d 20 52 65 |..Result|Set = Re|
|00005c40| 73 75 6c 74 53 65 74 24 | 22 5c 5c 6d 61 78 74 65 |sultSet$|"\\maxte|
|00005c50| 61 6d 73 5c 5c 22 24 4d | 61 78 54 65 61 6d 73 3b |ams\\"$M|axTeams;|
|00005c60| 0d 0a 0d 0a 09 2f 2f 20 | 42 61 6c 61 6e 63 65 20 |.....// |Balance |
|00005c70| 54 65 61 6d 73 0d 0a 09 | 52 65 73 75 6c 74 53 65 |Teams...|ResultSe|
|00005c80| 74 20 3d 20 52 65 73 75 | 6c 74 53 65 74 24 22 5c |t = Resu|ltSet$"\|
|00005c90| 5c 62 61 6c 61 6e 63 65 | 74 65 61 6d 73 5c 5c 22 |\balance|teams\\"|
|00005ca0| 24 62 42 61 6c 61 6e 63 | 65 54 65 61 6d 73 3b 0d |$bBalanc|eTeams;.|
|00005cb0| 0a 0d 0a 09 2f 2f 20 46 | 72 69 65 6e 64 6c 79 46 |....// F|riendlyF|
|00005cc0| 69 72 65 0d 0a 09 52 65 | 73 75 6c 74 53 65 74 20 |ire...Re|sultSet |
|00005cd0| 3d 20 52 65 73 75 6c 74 | 53 65 74 24 22 5c 5c 66 |= Result|Set$"\\f|
|00005ce0| 72 69 65 6e 64 6c 79 66 | 69 72 65 5c 5c 22 24 69 |riendlyf|ire\\"$i|
|00005cf0| 6e 74 28 46 72 69 65 6e | 64 6c 79 46 69 72 65 53 |nt(Frien|dlyFireS|
|00005d00| 63 61 6c 65 2a 31 30 30 | 29 24 22 25 22 3b 0d 0a |cale*100|)$"%";..|
|00005d10| 09 0d 0a 09 72 65 74 75 | 72 6e 20 52 65 73 75 6c |....retu|rn Resul|
|00005d20| 74 53 65 74 3b 0d 0a 7d | 0d 0a 0d 0a 00 |tSet;..}|..... |
+--------+-------------------------+-------------------------+--------+--------+