home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 39.1 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 | 4d f1 04 2f 2f 3d 3d 3d |........|M..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 44 |========|==..// D|
|00000060| 65 61 74 68 4d 61 74 63 | 68 50 6c 75 73 2e 0d 0a |eathMatc|hPlus...|
|00000070| 2f 2f 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 3d 3d 0d |========|=======.|
|000000c0| 0a 63 6c 61 73 73 20 44 | 65 61 74 68 4d 61 74 63 |.class D|eathMatc|
|000000d0| 68 50 6c 75 73 20 65 78 | 74 65 6e 64 73 20 54 6f |hPlus ex|tends To|
|000000e0| 75 72 6e 61 6d 65 6e 74 | 47 61 6d 65 49 6e 66 6f |urnament|GameInfo|
|000000f0| 0d 0a 09 63 6f 6e 66 69 | 67 3b 0d 0a 0d 0a 2f 2f |...confi|g;....//|
|00000100| 20 53 6f 75 6e 64 73 0d | 0a 23 65 78 65 63 20 4f | Sounds.|.#exec O|
|00000110| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 2e 2e 5c |BJ LOAD |FILE=..\|
|00000120| 53 6f 75 6e 64 73 5c 41 | 6e 6e 6f 75 6e 63 65 72 |Sounds\A|nnouncer|
|00000130| 2e 75 61 78 0d 0a 0d 0a | 76 61 72 28 29 20 67 6c |.uax....|var() gl|
|00000140| 6f 62 61 6c 63 6f 6e 66 | 69 67 20 69 6e 74 20 20 |obalconf|ig int |
|00000150| 4d 69 6e 50 6c 61 79 65 | 72 73 3b 09 09 2f 2f 20 |MinPlaye|rs;..// |
|00000160| 62 6f 74 73 20 66 69 6c | 6c 20 69 6e 20 74 6f 20 |bots fil|l in to |
|00000170| 67 75 61 72 61 6e 74 65 | 65 20 74 68 69 73 20 6c |guarante|e this l|
|00000180| 65 76 65 6c 20 69 6e 20 | 6e 65 74 20 67 61 6d 65 |evel in |net game|
|00000190| 20 0d 0a 76 61 72 28 29 | 20 67 6c 6f 62 61 6c 63 | ..var()| globalc|
|000001a0| 6f 6e 66 69 67 20 66 6c | 6f 61 74 20 41 69 72 43 |onfig fl|oat AirC|
|000001b0| 6f 6e 74 72 6f 6c 3b 20 | 0d 0a 76 61 72 28 29 20 |ontrol; |..var() |
|000001c0| 63 6f 6e 66 69 67 20 69 | 6e 74 09 46 72 61 67 4c |config i|nt.FragL|
|000001d0| 69 6d 69 74 3b 20 0d 0a | 76 61 72 28 29 20 63 6f |imit; ..|var() co|
|000001e0| 6e 66 69 67 20 69 6e 74 | 09 54 69 6d 65 4c 69 6d |nfig int|.TimeLim|
|000001f0| 69 74 3b 20 2f 2f 20 74 | 69 6d 65 20 6c 69 6d 69 |it; // t|ime limi|
|00000200| 74 20 69 6e 20 6d 69 6e | 75 74 65 73 0d 0a 76 61 |t in min|utes..va|
|00000210| 72 28 29 20 67 6c 6f 62 | 61 6c 63 6f 6e 66 69 67 |r() glob|alconfig|
|00000220| 20 62 6f 6f 6c 20 62 43 | 68 61 6e 67 65 4c 65 76 | bool bC|hangeLev|
|00000230| 65 6c 73 3b 0d 0a 76 61 | 72 28 29 20 67 6c 6f 62 |els;..va|r() glob|
|00000240| 61 6c 63 6f 6e 66 69 67 | 20 62 6f 6f 6c 20 62 48 |alconfig| bool bH|
|00000250| 61 72 64 43 6f 72 65 4d | 6f 64 65 3b 0d 0a 76 61 |ardCoreM|ode;..va|
|00000260| 72 20 20 20 62 6f 6f 6c | 09 09 09 20 20 20 20 62 |r bool|... b|
|00000270| 43 68 61 6c 6c 65 6e 67 | 65 4d 6f 64 65 3b 0d 0a |Challeng|eMode;..|
|00000280| 76 61 72 28 29 20 67 6c | 6f 62 61 6c 63 6f 6e 66 |var() gl|obalconf|
|00000290| 69 67 20 62 6f 6f 6c 20 | 62 4d 65 67 61 53 70 65 |ig bool |bMegaSpe|
|000002a0| 65 64 3b 0d 0a 76 61 72 | 28 29 20 67 6c 6f 62 61 |ed;..var|() globa|
|000002b0| 6c 63 6f 6e 66 69 67 20 | 62 6f 6f 6c 09 62 41 6c |lconfig |bool.bAl|
|000002c0| 74 53 63 6f 72 69 6e 67 | 3b 0d 0a 76 61 72 28 29 |tScoring|;..var()|
|000002d0| 20 63 6f 6e 66 69 67 20 | 62 6f 6f 6c 09 62 4d 75 | config |bool.bMu|
|000002e0| 6c 74 69 57 65 61 70 6f | 6e 53 74 61 79 3b 0d 0a |ltiWeapo|nStay;..|
|000002f0| 0d 0a 76 61 72 09 09 62 | 6f 6f 6c 09 62 44 6f 6e |..var..b|ool.bDon|
|00000300| 74 52 65 73 74 61 72 74 | 3b 0d 0a 76 61 72 09 09 |tRestart|;..var..|
|00000310| 62 6f 6f 6c 09 62 41 6c | 72 65 61 64 79 43 68 61 |bool.bAl|readyCha|
|00000320| 6e 67 65 64 3b 0d 0a 76 | 61 72 09 09 62 6f 6f 6c |nged;..v|ar..bool|
|00000330| 09 62 46 69 72 73 74 42 | 6c 6f 6f 64 3b 0d 0a 0d |.bFirstB|lood;...|
|00000340| 0a 76 61 72 28 29 20 67 | 6c 6f 62 61 6c 63 6f 6e |.var() g|lobalcon|
|00000350| 66 69 67 20 62 6f 6f 6c | 20 62 54 6f 75 72 6e 61 |fig bool| bTourna|
|00000360| 6d 65 6e 74 3b 0d 0a 76 | 61 72 20 20 62 6f 6f 6c |ment;..v|ar bool|
|00000370| 20 62 52 65 71 75 69 72 | 65 52 65 61 64 79 3b 0d | bRequir|eReady;.|
|00000380| 0a 76 61 72 28 29 20 67 | 6c 6f 62 61 6c 63 6f 6e |.var() g|lobalcon|
|00000390| 66 69 67 20 62 6f 6f 6c | 20 62 4e 6f 76 69 63 65 |fig bool| bNovice|
|000003a0| 4d 6f 64 65 3b 0d 0a 76 | 61 72 28 29 20 67 6c 6f |Mode;..v|ar() glo|
|000003b0| 62 61 6c 63 6f 6e 66 69 | 67 20 62 6f 6f 6c 20 62 |balconfi|g bool b|
|000003c0| 4e 6f 4d 61 74 75 72 65 | 4c 61 6e 67 75 61 67 65 |NoMature|Language|
|000003d0| 3b 0d 0a 76 61 72 28 29 | 20 67 6c 6f 62 61 6c 63 |;..var()| globalc|
|000003e0| 6f 6e 66 69 67 20 69 6e | 74 20 4e 65 74 57 61 69 |onfig in|t NetWai|
|000003f0| 74 3b 20 2f 2f 20 74 69 | 6d 65 20 74 6f 20 77 61 |t; // ti|me to wa|
|00000400| 69 74 20 66 6f 72 20 70 | 6c 61 79 65 72 73 20 69 |it for p|layers i|
|00000410| 6e 20 6e 65 74 67 61 6d | 65 73 20 77 2f 20 62 4e |n netgam|es w/ bN|
|00000420| 65 74 52 65 61 64 79 20 | 28 74 79 70 69 63 61 6c |etReady |(typical|
|00000430| 6c 79 20 74 65 61 6d 20 | 67 61 6d 65 73 29 0d 0a |ly team |games)..|
|00000440| 76 61 72 20 63 6f 6e 66 | 69 67 20 62 6f 6f 6c 20 |var conf|ig bool |
|00000450| 62 55 73 65 54 72 61 6e | 73 6c 6f 63 61 74 6f 72 |bUseTran|slocator|
|00000460| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 4a 75 6d |;..var b|ool bJum|
|00000470| 70 4d 61 74 63 68 3b 0d | 0a 76 61 72 20 62 6f 6f |pMatch;.|.var boo|
|00000480| 6c 20 62 54 68 72 65 65 | 50 6c 75 73 3b 0d 0a 76 |l bThree|Plus;..v|
|00000490| 61 72 20 62 6f 6f 6c 20 | 62 46 75 6c 66 69 6c 6c |ar bool |bFulfill|
|000004a0| 65 64 53 70 65 63 69 61 | 6c 3b 0d 0a 76 61 72 20 |edSpecia|l;..var |
|000004b0| 62 6f 6f 6c 09 62 4e 65 | 74 52 65 61 64 79 3b 0d |bool.bNe|tReady;.|
|000004c0| 0a 76 61 72 20 62 6f 6f | 6c 20 62 52 61 74 65 64 |.var boo|l bRated|
|000004d0| 54 72 61 6e 73 6c 6f 63 | 61 74 6f 72 3b 0d 0a 76 |Transloc|ator;..v|
|000004e0| 61 72 20 62 6f 6f 6c 20 | 62 53 74 61 72 74 4d 61 |ar bool |bStartMa|
|000004f0| 74 63 68 3b 0d 0a 0d 0a | 76 61 72 09 69 6e 74 20 |tch;....|var.int |
|00000500| 52 65 6d 61 69 6e 69 6e | 67 54 69 6d 65 2c 20 45 |Remainin|gTime, E|
|00000510| 6c 61 70 73 65 64 54 69 | 6d 65 3b 0d 0a 76 61 72 |lapsedTi|me;..var|
|00000520| 20 69 6e 74 20 43 6f 75 | 6e 74 44 6f 77 6e 2c 20 | int Cou|ntDown, |
|00000530| 53 74 61 72 74 43 6f 75 | 6e 74 3b 0d 0a 76 61 72 |StartCou|nt;..var|
|00000540| 20 6c 6f 63 61 6c 69 7a | 65 64 20 73 74 72 69 6e | localiz|ed strin|
|00000550| 67 20 53 74 61 72 74 55 | 70 4d 65 73 73 61 67 65 |g StartU|pMessage|
|00000560| 3b 0d 0a 76 61 72 20 6c | 6f 63 61 6c 69 7a 65 64 |;..var l|ocalized|
|00000570| 20 73 74 72 69 6e 67 20 | 54 6f 75 72 6e 65 79 4d | string |TourneyM|
|00000580| 65 73 73 61 67 65 3b 0d | 0a 76 61 72 20 6c 6f 63 |essage;.|.var loc|
|00000590| 61 6c 69 7a 65 64 20 73 | 74 72 69 6e 67 20 57 61 |alized s|tring Wa|
|000005a0| 69 74 69 6e 67 4d 65 73 | 73 61 67 65 31 3b 0d 0a |itingMes|sage1;..|
|000005b0| 76 61 72 20 6c 6f 63 61 | 6c 69 7a 65 64 20 73 74 |var loca|lized st|
|000005c0| 72 69 6e 67 20 57 61 69 | 74 69 6e 67 4d 65 73 73 |ring Wai|tingMess|
|000005d0| 61 67 65 32 3b 0d 0a 76 | 61 72 20 6c 6f 63 61 6c |age2;..v|ar local|
|000005e0| 69 7a 65 64 20 73 74 72 | 69 6e 67 20 52 65 61 64 |ized str|ing Read|
|000005f0| 79 4d 65 73 73 61 67 65 | 3b 0d 0a 76 61 72 20 6c |yMessage|;..var l|
|00000600| 6f 63 61 6c 69 7a 65 64 | 20 73 74 72 69 6e 67 20 |ocalized| string |
|00000610| 4e 6f 74 52 65 61 64 79 | 4d 65 73 73 61 67 65 3b |NotReady|Message;|
|00000620| 0d 0a 76 61 72 20 6c 6f | 63 61 6c 69 7a 65 64 20 |..var lo|calized |
|00000630| 73 74 72 69 6e 67 20 43 | 6f 75 6e 74 44 6f 77 6e |string C|ountDown|
|00000640| 4d 65 73 73 61 67 65 3b | 0d 0a 76 61 72 20 6c 6f |Message;|..var lo|
|00000650| 63 61 6c 69 7a 65 64 20 | 73 74 72 69 6e 67 20 53 |calized |string S|
|00000660| 74 61 72 74 4d 65 73 73 | 61 67 65 3b 0d 0a 76 61 |tartMess|age;..va|
|00000670| 72 20 6c 6f 63 61 6c 69 | 7a 65 64 20 73 74 72 69 |r locali|zed stri|
|00000680| 6e 67 20 47 61 6d 65 45 | 6e 64 65 64 4d 65 73 73 |ng GameE|ndedMess|
|00000690| 61 67 65 3b 0d 0a 76 61 | 72 20 6c 6f 63 61 6c 69 |age;..va|r locali|
|000006a0| 7a 65 64 20 73 74 72 69 | 6e 67 20 53 69 6e 67 6c |zed stri|ng Singl|
|000006b0| 65 57 61 69 74 69 6e 67 | 4d 65 73 73 61 67 65 3b |eWaiting|Message;|
|000006c0| 0d 0a 76 61 72 20 6c 6f | 63 61 6c 69 7a 65 64 20 |..var lo|calized |
|000006d0| 73 74 72 69 6e 67 20 67 | 61 6d 65 67 6f 61 6c 3b |string g|amegoal;|
|000006e0| 0d 0a 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 4c 61 |....var |float La|
|000006f0| 73 74 54 61 75 6e 74 54 | 69 6d 65 3b 0d 0a 76 61 |stTauntT|ime;..va|
|00000700| 72 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |r Naviga|tionPoin|
|00000710| 74 20 4c 61 73 74 53 74 | 61 72 74 53 70 6f 74 3b |t LastSt|artSpot;|
|00000720| 0d 0a 76 61 72 28 29 20 | 63 6f 6e 66 69 67 20 69 |..var() |config i|
|00000730| 6e 74 09 4d 61 78 43 6f | 6d 6d 61 6e 64 65 72 73 |nt.MaxCo|mmanders|
|00000740| 3b 0d 0a 76 61 72 20 69 | 6e 74 20 20 20 4e 75 6d |;..var i|nt Num|
|00000750| 43 6f 6d 6d 61 6e 64 65 | 72 73 3b 0d 0a 0d 0a 76 |Commande|rs;....v|
|00000760| 61 72 20 62 6f 6f 6c 20 | 62 54 75 74 6f 72 69 61 |ar bool |bTutoria|
|00000770| 6c 47 61 6d 65 3b 0d 0a | 0d 0a 2f 2f 20 42 6f 74 |lGame;..|..// Bot|
|00000780| 20 72 65 6c 61 74 65 64 | 20 69 6e 66 6f 0d 0a 76 | related| info..v|
|00000790| 61 72 20 20 20 69 6e 74 | 09 09 09 09 4e 75 6d 42 |ar int|....NumB|
|000007a0| 6f 74 73 3b 0d 0a 76 61 | 72 09 20 20 69 6e 74 09 |ots;..va|r. int.|
|000007b0| 09 09 09 52 65 6d 61 69 | 6e 69 6e 67 42 6f 74 73 |...Remai|ningBots|
|000007c0| 3b 0d 0a 76 61 72 09 20 | 20 69 6e 74 09 09 09 09 |;..var. | int....|
|000007d0| 4c 61 73 74 54 61 75 6e | 74 5b 34 5d 3b 0d 0a 76 |LastTaun|t[4];..v|
|000007e0| 61 72 28 29 20 67 6c 6f | 62 61 6c 63 6f 6e 66 69 |ar() glo|balconfi|
|000007f0| 67 20 69 6e 74 09 49 6e | 69 74 69 61 6c 42 6f 74 |g int.In|itialBot|
|00000800| 73 3b 0d 0a 76 61 72 09 | 43 68 61 6c 6c 65 6e 67 |s;..var.|Challeng|
|00000810| 65 42 6f 74 49 6e 66 6f | 09 42 6f 74 43 6f 6e 66 |eBotInfo|.BotConf|
|00000820| 69 67 3b 0d 0a 76 61 72 | 20 6c 6f 63 61 6c 69 7a |ig;..var| localiz|
|00000830| 65 64 20 73 74 72 69 6e | 67 09 4e 6f 4e 61 6d 65 |ed strin|g.NoName|
|00000840| 43 68 61 6e 67 65 2c 20 | 4f 76 65 72 74 69 6d 65 |Change, |Overtime|
|00000850| 4d 65 73 73 61 67 65 3b | 0d 0a 76 61 72 20 63 6c |Message;|..var cl|
|00000860| 61 73 73 3c 43 68 61 6c | 6c 65 6e 67 65 42 6f 74 |ass<Chal|lengeBot|
|00000870| 49 6e 66 6f 3e 09 09 42 | 6f 74 43 6f 6e 66 69 67 |Info>..B|otConfig|
|00000880| 54 79 70 65 3b 0d 0a 0d | 0a 2f 2f 20 50 6c 61 79 |Type;...|.// Play|
|00000890| 65 72 20 72 61 74 69 6e | 67 20 76 61 72 69 61 62 |er ratin|g variab|
|000008a0| 6c 65 73 20 66 6f 72 20 | 73 69 6e 67 6c 65 20 70 |les for |single p|
|000008b0| 6c 61 79 65 72 20 72 61 | 74 65 64 20 67 61 6d 65 |layer ra|ted game|
|000008c0| 73 0d 0a 76 61 72 20 66 | 6c 6f 61 74 20 50 6c 61 |s..var f|loat Pla|
|000008d0| 79 65 72 52 61 74 69 6e | 67 2c 20 41 76 67 4f 70 |yerRatin|g, AvgOp|
|000008e0| 70 6f 6e 65 6e 74 52 61 | 74 69 6e 67 3b 0d 0a 76 |ponentRa|ting;..v|
|000008f0| 61 72 20 69 6e 74 20 4e | 75 6d 4f 70 70 2c 20 57 |ar int N|umOpp, W|
|00000900| 69 6e 43 6f 75 6e 74 2c | 20 4c 6f 73 65 43 6f 75 |inCount,| LoseCou|
|00000910| 6e 74 3b 0d 0a 76 61 72 | 20 50 6c 61 79 65 72 50 |nt;..var| PlayerP|
|00000920| 61 77 6e 20 52 61 74 65 | 64 50 6c 61 79 65 72 3b |awn Rate|dPlayer;|
|00000930| 0d 0a 76 61 72 20 69 6e | 74 20 49 44 6e 75 6d 3b |..var in|t IDnum;|
|00000940| 0d 0a 76 61 72 20 52 61 | 74 65 64 4d 61 74 63 68 |..var Ra|tedMatch|
|00000950| 49 6e 66 6f 20 52 61 74 | 65 64 4d 61 74 63 68 43 |Info Rat|edMatchC|
|00000960| 6f 6e 66 69 67 3b 0d 0a | 76 61 72 20 66 6c 6f 61 |onfig;..|var floa|
|00000970| 74 20 45 6e 64 54 69 6d | 65 3b 0d 0a 76 61 72 20 |t EndTim|e;..var |
|00000980| 69 6e 74 20 4c 61 64 64 | 65 72 54 79 70 65 49 6e |int Ladd|erTypeIn|
|00000990| 64 65 78 3b 0d 0a 0d 0a | 76 61 72 20 4c 61 64 64 |dex;....|var Ladd|
|000009a0| 65 72 49 6e 76 65 6e 74 | 6f 72 79 20 52 61 74 65 |erInvent|ory Rate|
|000009b0| 64 47 61 6d 65 4c 61 64 | 64 65 72 4f 62 6a 3b 0d |dGameLad|derObj;.|
|000009c0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 6f 73 74 |...funct|ion Post|
|000009d0| 42 65 67 69 6e 50 6c 61 | 79 28 29 0d 0a 7b 0d 0a |BeginPla|y()..{..|
|000009e0| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 4e 65 |.local s|tring Ne|
|000009f0| 78 74 50 6c 61 79 65 72 | 43 6c 61 73 73 3b 0d 0a |xtPlayer|Class;..|
|00000a00| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00000a10| 0a 09 69 66 20 28 20 62 | 41 6c 74 65 72 6e 61 74 |..if ( b|Alternat|
|00000a20| 65 4d 6f 64 65 20 29 0d | 0a 09 7b 0d 0a 09 09 62 |eMode ).|..{....b|
|00000a30| 56 65 72 79 4c 6f 77 47 | 6f 72 65 20 3d 20 74 72 |VeryLowG|ore = tr|
|00000a40| 75 65 3b 0d 0a 09 09 62 | 4c 6f 77 47 6f 72 65 20 |ue;....b|LowGore |
|00000a50| 3d 20 74 72 75 65 3b 0d | 0a 09 7d 0d 0a 09 42 6f |= true;.|..}...Bo|
|00000a60| 74 43 6f 6e 66 69 67 20 | 3d 20 73 70 61 77 6e 28 |tConfig |= spawn(|
|00000a70| 42 6f 74 43 6f 6e 66 69 | 67 54 79 70 65 29 3b 0d |BotConfi|gType);.|
|00000a80| 0a 09 69 66 20 28 20 4c | 65 76 65 6c 2e 4e 65 74 |..if ( L|evel.Net|
|00000a90| 4d 6f 64 65 20 3d 3d 20 | 4e 4d 5f 53 74 61 6e 64 |Mode == |NM_Stand|
|00000aa0| 61 6c 6f 6e 65 20 29 0d | 0a 09 09 52 65 6d 61 69 |alone ).|...Remai|
|00000ab0| 6e 69 6e 67 42 6f 74 73 | 20 3d 20 49 6e 69 74 69 |ningBots| = Initi|
|00000ac0| 61 6c 42 6f 74 73 3b 0d | 0a 09 65 6c 73 65 0d 0a |alBots;.|..else..|
|00000ad0| 09 09 52 65 6d 61 69 6e | 69 6e 67 42 6f 74 73 20 |..Remain|ingBots |
|00000ae0| 3d 20 30 3b 0d 0a 09 53 | 75 70 65 72 2e 50 6f 73 |= 0;...S|uper.Pos|
|00000af0| 74 42 65 67 69 6e 50 6c | 61 79 28 29 3b 0d 0a 09 |tBeginPl|ay();...|
|00000b00| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00000b10| 6e 66 6f 2e 52 65 6d 61 | 69 6e 69 6e 67 54 69 6d |nfo.Rema|iningTim|
|00000b20| 65 20 3d 20 52 65 6d 61 | 69 6e 69 6e 67 54 69 6d |e = Rema|iningTim|
|00000b30| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00000b40| 6e 20 50 72 65 43 61 63 | 68 65 52 65 66 65 72 65 |n PreCac|heRefere|
|00000b50| 6e 63 65 73 28 29 0d 0a | 7b 0d 0a 09 2f 2f 6e 65 |nces()..|{...//ne|
|00000b60| 76 65 72 20 63 61 6c 6c | 65 64 20 2d 20 68 65 72 |ver call|ed - her|
|00000b70| 65 20 74 6f 20 66 6f 72 | 63 65 20 70 72 65 63 61 |e to for|ce preca|
|00000b80| 63 68 69 6e 67 20 6f 66 | 20 6d 65 73 68 65 73 0d |ching of| meshes.|
|00000b90| 0a 09 73 70 61 77 6e 28 | 63 6c 61 73 73 27 54 4d |..spawn(|class'TM|
|00000ba0| 61 6c 65 32 27 29 3b 0d | 0a 09 73 70 61 77 6e 28 |ale2');.|..spawn(|
|00000bb0| 63 6c 61 73 73 27 49 6d | 70 61 63 74 48 61 6d 6d |class'Im|pactHamm|
|00000bc0| 65 72 27 29 3b 0d 0a 09 | 73 70 61 77 6e 28 63 6c |er');...|spawn(cl|
|00000bd0| 61 73 73 27 54 72 61 6e | 73 6c 6f 63 61 74 6f 72 |ass'Tran|slocator|
|00000be0| 27 29 3b 0d 0a 09 73 70 | 61 77 6e 28 63 6c 61 73 |');...sp|awn(clas|
|00000bf0| 73 27 45 6e 66 6f 72 63 | 65 72 27 29 3b 0d 0a 09 |s'Enforc|er');...|
|00000c00| 73 70 61 77 6e 28 63 6c | 61 73 73 27 53 68 6f 63 |spawn(cl|ass'Shoc|
|00000c10| 6b 52 69 66 6c 65 27 29 | 3b 0d 0a 09 73 70 61 77 |kRifle')|;...spaw|
|00000c20| 6e 28 63 6c 61 73 73 27 | 50 75 6c 73 65 47 75 6e |n(class'|PulseGun|
|00000c30| 27 29 3b 0d 0a 09 73 70 | 61 77 6e 28 63 6c 61 73 |');...sp|awn(clas|
|00000c40| 73 27 4d 69 6e 69 67 75 | 6e 32 27 29 3b 0d 0a 09 |s'Minigu|n2');...|
|00000c50| 73 70 61 77 6e 28 63 6c | 61 73 73 27 55 54 5f 45 |spawn(cl|ass'UT_E|
|00000c60| 69 67 68 74 62 61 6c 6c | 27 29 3b 0d 0a 7d 0d 0a |ightball|');..}..|
|00000c70| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 43 68 65 63 6b |..functi|on Check|
|00000c80| 52 65 61 64 79 28 29 0d | 0a 7b 0d 0a 09 69 66 20 |Ready().|.{...if |
|00000c90| 28 20 28 46 72 61 67 4c | 69 6d 69 74 20 3d 3d 20 |( (FragL|imit == |
|00000ca0| 30 29 20 26 26 20 28 54 | 69 6d 65 4c 69 6d 69 74 |0) && (T|imeLimit|
|00000cb0| 20 3d 3d 20 30 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 | == 0) )|...{....|
|00000cc0| 54 69 6d 65 4c 69 6d 69 | 74 20 3d 20 32 30 3b 0d |TimeLimi|t = 20;.|
|00000cd0| 0a 09 09 52 65 6d 61 69 | 6e 69 6e 67 54 69 6d 65 |...Remai|ningTime|
|00000ce0| 20 3d 20 36 30 20 2a 20 | 54 69 6d 65 4c 69 6d 69 | = 60 * |TimeLimi|
|00000cf0| 74 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 2f 2f 0d |t;...}..|}....//.|
|00000d00| 0a 2f 2f 20 53 65 74 20 | 67 61 6d 65 70 6c 61 79 |.// Set |gameplay|
|00000d10| 20 73 70 65 65 64 2e 0d | 0a 2f 2f 0d 0a 66 75 6e | speed..|.//..fun|
|00000d20| 63 74 69 6f 6e 20 53 65 | 74 47 61 6d 65 53 70 65 |ction Se|tGameSpe|
|00000d30| 65 64 28 20 46 6c 6f 61 | 74 20 54 20 29 0d 0a 7b |ed( Floa|t T )..{|
|00000d40| 0d 0a 09 47 61 6d 65 53 | 70 65 65 64 20 3d 20 46 |...GameS|peed = F|
|00000d50| 4d 61 78 28 54 2c 20 30 | 2e 31 29 3b 0d 0a 09 69 |Max(T, 0|.1);...i|
|00000d60| 66 20 28 20 62 48 61 72 | 64 43 6f 72 65 4d 6f 64 |f ( bHar|dCoreMod|
|00000d70| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |e )...{.|...if ( |
|00000d80| 62 43 68 61 6c 6c 65 6e | 67 65 4d 6f 64 65 20 29 |bChallen|geMode )|
|00000d90| 0d 0a 09 09 09 4c 65 76 | 65 6c 2e 54 69 6d 65 44 |.....Lev|el.TimeD|
|00000da0| 69 6c 61 74 69 6f 6e 20 | 3d 20 31 2e 32 35 20 2a |ilation |= 1.25 *|
|00000db0| 20 47 61 6d 65 53 70 65 | 65 64 3b 0d 0a 09 09 65 | GameSpe|ed;....e|
|00000dc0| 6c 73 65 0d 0a 09 09 09 | 4c 65 76 65 6c 2e 54 69 |lse.....|Level.Ti|
|00000dd0| 6d 65 44 69 6c 61 74 69 | 6f 6e 20 3d 20 31 2e 31 |meDilati|on = 1.1|
|00000de0| 20 2a 20 47 61 6d 65 53 | 70 65 65 64 3b 0d 0a 09 | * GameS|peed;...|
|00000df0| 7d 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 4c 65 76 65 |}...else|....Leve|
|00000e00| 6c 2e 54 69 6d 65 44 69 | 6c 61 74 69 6f 6e 20 3d |l.TimeDi|lation =|
|00000e10| 20 47 61 6d 65 53 70 65 | 65 64 3b 0d 0a 09 53 65 | GameSpe|ed;...Se|
|00000e20| 74 54 69 6d 65 72 28 4c | 65 76 65 6c 2e 54 69 6d |tTimer(L|evel.Tim|
|00000e30| 65 44 69 6c 61 74 69 6f | 6e 2c 20 74 72 75 65 29 |eDilatio|n, true)|
|00000e40| 3b 0d 0a 09 53 61 76 65 | 43 6f 6e 66 69 67 28 29 |;...Save|Config()|
|00000e50| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000e60| 20 50 6c 61 79 54 65 6c | 65 70 6f 72 74 45 66 66 | PlayTel|eportEff|
|00000e70| 65 63 74 28 20 61 63 74 | 6f 72 20 49 6e 63 6f 6d |ect( act|or Incom|
|00000e80| 69 6e 67 2c 20 62 6f 6f | 6c 20 62 4f 75 74 2c 20 |ing, boo|l bOut, |
|00000e90| 62 6f 6f 6c 20 62 53 6f | 75 6e 64 29 0d 0a 7b 0d |bool bSo|und)..{.|
|00000ea0| 0a 20 09 6c 6f 63 61 6c | 20 55 54 54 65 6c 65 70 |. .local| UTTelep|
|00000eb0| 6f 72 74 45 66 66 65 63 | 74 20 50 54 45 3b 0d 0a |ortEffec|t PTE;..|
|00000ec0| 0d 0a 09 69 66 20 28 20 | 62 52 65 71 75 69 72 65 |...if ( |bRequire|
|00000ed0| 52 65 61 64 79 20 26 26 | 20 28 43 6f 75 6e 74 64 |Ready &&| (Countd|
|00000ee0| 6f 77 6e 20 3e 20 30 29 | 20 29 0d 0a 09 09 72 65 |own > 0)| )....re|
|00000ef0| 74 75 72 6e 3b 0d 0a 0d | 0a 09 69 66 20 28 20 49 |turn;...|..if ( I|
|00000f00| 6e 63 6f 6d 69 6e 67 2e | 62 49 73 50 61 77 6e 20 |ncoming.|bIsPawn |
|00000f10| 26 26 20 28 49 6e 63 6f | 6d 69 6e 67 2e 4d 65 73 |&& (Inco|ming.Mes|
|00000f20| 68 20 21 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 7b |h != Non|e) )...{|
|00000f30| 0d 0a 09 09 69 66 20 28 | 20 62 53 6f 75 6e 64 20 |....if (| bSound |
|00000f40| 29 0d 0a 09 09 7b 0d 0a | 20 09 09 09 50 54 45 20 |)....{..| ...PTE |
|00000f50| 3d 20 53 70 61 77 6e 28 | 63 6c 61 73 73 27 55 54 |= Spawn(|class'UT|
|00000f60| 54 65 6c 65 70 6f 72 74 | 45 66 66 65 63 74 27 2c |Teleport|Effect',|
|00000f70| 2c 2c 20 49 6e 63 6f 6d | 69 6e 67 2e 4c 6f 63 61 |,, Incom|ing.Loca|
|00000f80| 74 69 6f 6e 2c 20 49 6e | 63 6f 6d 69 6e 67 2e 52 |tion, In|coming.R|
|00000f90| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 20 09 09 09 50 |otation)|;.. ...P|
|00000fa0| 54 45 2e 49 6e 69 74 69 | 61 6c 69 7a 65 28 50 61 |TE.Initi|alize(Pa|
|00000fb0| 77 6e 28 49 6e 63 6f 6d | 69 6e 67 29 2c 20 62 4f |wn(Incom|ing), bO|
|00000fc0| 75 74 29 3b 0d 0a 09 09 | 09 49 6e 63 6f 6d 69 6e |ut);....|.Incomin|
|00000fd0| 67 2e 50 6c 61 79 53 6f | 75 6e 64 28 73 6f 75 6e |g.PlaySo|und(soun|
|00000fe0| 64 27 52 65 73 70 32 41 | 27 2c 2c 20 31 30 2e 30 |d'Resp2A|',, 10.0|
|00000ff0| 29 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 7d 0d 0a |);....}.|..}..}..|
|00001000| 0d 0a 2f 2f 20 50 61 72 | 73 65 20 6f 70 74 69 6f |..// Par|se optio|
|00001010| 6e 73 20 66 6f 72 20 74 | 68 69 73 20 67 61 6d 65 |ns for t|his game|
|00001020| 2e 2e 2e 0d 0a 65 76 65 | 6e 74 20 49 6e 69 74 47 |.....eve|nt InitG|
|00001030| 61 6d 65 28 20 73 74 72 | 69 6e 67 20 4f 70 74 69 |ame( str|ing Opti|
|00001040| 6f 6e 73 2c 20 6f 75 74 | 20 73 74 72 69 6e 67 20 |ons, out| string |
|00001050| 45 72 72 6f 72 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |Error ).|.{...loc|
|00001060| 61 6c 20 73 74 72 69 6e | 67 20 49 6e 4f 70 74 3b |al strin|g InOpt;|
|00001070| 0d 0a 0d 0a 09 53 75 70 | 65 72 2e 49 6e 69 74 47 |.....Sup|er.InitG|
|00001080| 61 6d 65 28 4f 70 74 69 | 6f 6e 73 2c 20 45 72 72 |ame(Opti|ons, Err|
|00001090| 6f 72 29 3b 0d 0a 0d 0a | 09 52 65 6d 61 69 6e 69 |or);....|.Remaini|
|000010a0| 6e 67 54 69 6d 65 20 3d | 20 36 30 20 2a 20 54 69 |ngTime =| 60 * Ti|
|000010b0| 6d 65 4c 69 6d 69 74 3b | 0d 0a 09 53 65 74 47 61 |meLimit;|...SetGa|
|000010c0| 6d 65 53 70 65 65 64 28 | 47 61 6d 65 53 70 65 65 |meSpeed(|GameSpee|
|000010d0| 64 29 3b 0d 0a 09 46 72 | 61 67 4c 69 6d 69 74 20 |d);...Fr|agLimit |
|000010e0| 3d 20 47 65 74 49 6e 74 | 4f 70 74 69 6f 6e 28 20 |= GetInt|Option( |
|000010f0| 4f 70 74 69 6f 6e 73 2c | 20 22 46 72 61 67 4c 69 |Options,| "FragLi|
|00001100| 6d 69 74 22 2c 20 46 72 | 61 67 4c 69 6d 69 74 20 |mit", Fr|agLimit |
|00001110| 29 3b 0d 0a 09 54 69 6d | 65 4c 69 6d 69 74 20 3d |);...Tim|eLimit =|
|00001120| 20 47 65 74 49 6e 74 4f | 70 74 69 6f 6e 28 20 4f | GetIntO|ption( O|
|00001130| 70 74 69 6f 6e 73 2c 20 | 22 54 69 6d 65 4c 69 6d |ptions, |"TimeLim|
|00001140| 69 74 22 2c 20 54 69 6d | 65 4c 69 6d 69 74 20 29 |it", Tim|eLimit )|
|00001150| 3b 0d 0a 09 4d 61 78 43 | 6f 6d 6d 61 6e 64 65 72 |;...MaxC|ommander|
|00001160| 73 20 3d 20 47 65 74 49 | 6e 74 4f 70 74 69 6f 6e |s = GetI|ntOption|
|00001170| 28 20 4f 70 74 69 6f 6e | 73 2c 20 22 4d 61 78 43 |( Option|s, "MaxC|
|00001180| 6f 6d 6d 61 6e 64 65 72 | 73 22 2c 20 4d 61 78 43 |ommander|s", MaxC|
|00001190| 6f 6d 6d 61 6e 64 65 72 | 73 20 29 3b 0d 0a 0d 0a |ommander|s );....|
|000011a0| 09 49 6e 4f 70 74 20 3d | 20 50 61 72 73 65 4f 70 |.InOpt =| ParseOp|
|000011b0| 74 69 6f 6e 28 20 4f 70 | 74 69 6f 6e 73 2c 20 22 |tion( Op|tions, "|
|000011c0| 43 6f 6f 70 57 65 61 70 | 6f 6e 4d 6f 64 65 22 29 |CoopWeap|onMode")|
|000011d0| 3b 0d 0a 09 69 66 20 28 | 20 49 6e 4f 70 74 20 21 |;...if (| InOpt !|
|000011e0| 3d 20 22 22 20 29 0d 0a | 09 7b 0d 0a 09 09 6c 6f |= "" )..|.{....lo|
|000011f0| 67 28 22 43 6f 6f 70 57 | 65 61 70 6f 6e 4d 6f 64 |g("CoopW|eaponMod|
|00001200| 65 3a 20 22 24 62 6f 6f | 6c 28 49 6e 4f 70 74 29 |e: "$boo|l(InOpt)|
|00001210| 29 3b 0d 0a 09 09 62 43 | 6f 6f 70 57 65 61 70 6f |);....bC|oopWeapo|
|00001220| 6e 4d 6f 64 65 20 3d 20 | 62 6f 6f 6c 28 49 6e 4f |nMode = |bool(InO|
|00001230| 70 74 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 49 44 6e |pt);...}|.....IDn|
|00001240| 75 6d 20 3d 20 2d 31 3b | 0d 0a 09 49 44 6e 75 6d |um = -1;|...IDnum|
|00001250| 20 3d 20 47 65 74 49 6e | 74 4f 70 74 69 6f 6e 28 | = GetIn|tOption(|
|00001260| 20 4f 70 74 69 6f 6e 73 | 2c 20 22 54 6f 75 72 6e | Options|, "Tourn|
|00001270| 61 6d 65 6e 74 22 2c 20 | 49 44 6e 75 6d 20 29 3b |ament", |IDnum );|
|00001280| 0d 0a 09 69 66 20 28 20 | 49 44 6e 75 6d 20 3e 20 |...if ( |IDnum > |
|00001290| 30 20 29 0d 0a 09 7b 0d | 0a 09 09 62 52 61 74 65 |0 )...{.|...bRate|
|000012a0| 64 47 61 6d 65 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |dGame = |true;...|
|000012b0| 09 54 69 6d 65 4c 69 6d | 69 74 20 3d 20 30 3b 0d |.TimeLim|it = 0;.|
|000012c0| 0a 09 09 52 65 6d 61 69 | 6e 69 6e 67 54 69 6d 65 |...Remai|ningTime|
|000012d0| 20 3d 20 30 3b 0d 0a 09 | 7d 0d 0a 09 69 66 20 28 | = 0;...|}...if (|
|000012e0| 20 62 54 6f 75 72 6e 61 | 6d 65 6e 74 20 29 20 0d | bTourna|ment ) .|
|000012f0| 0a 09 7b 0d 0a 09 09 62 | 52 65 71 75 69 72 65 52 |..{....b|RequireR|
|00001300| 65 61 64 79 20 3d 20 74 | 72 75 65 3b 0d 0a 09 09 |eady = t|rue;....|
|00001310| 43 68 65 63 6b 52 65 61 | 64 79 28 29 3b 0d 0a 09 |CheckRea|dy();...|
|00001320| 7d 0d 0a 09 69 66 20 28 | 20 4c 65 76 65 6c 2e 4e |}...if (| Level.N|
|00001330| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 53 74 61 |etMode =|= NM_Sta|
|00001340| 6e 64 41 6c 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |ndAlone |)...{...|
|00001350| 09 62 52 65 71 75 69 72 | 65 52 65 61 64 79 20 3d |.bRequir|eReady =|
|00001360| 20 74 72 75 65 3b 0d 0a | 09 09 43 6f 75 6e 74 44 | true;..|..CountD|
|00001370| 6f 77 6e 20 3d 20 31 3b | 0d 0a 09 7d 0d 0a 09 69 |own = 1;|...}...i|
|00001380| 66 20 28 20 62 4d 65 67 | 61 53 70 65 65 64 20 29 |f ( bMeg|aSpeed )|
|00001390| 0d 0a 09 09 41 69 72 43 | 6f 6e 74 72 6f 6c 20 3d |....AirC|ontrol =|
|000013a0| 20 30 2e 36 35 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 | 0.65;..|}....// |
|000013b0| 53 65 74 20 67 61 6d 65 | 20 73 65 74 74 69 6e 67 |Set game| setting|
|000013c0| 73 20 62 61 73 65 64 20 | 6f 6e 20 6c 61 64 64 65 |s based |on ladde|
|000013d0| 72 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 0d 0a |r inform|ation...|
|000013e0| 2f 2f 20 43 61 6c 6c 65 | 64 20 77 68 65 6e 20 52 |// Calle|d when R|
|000013f0| 61 74 65 64 50 6c 61 79 | 65 72 20 6c 6f 67 73 20 |atedPlay|er logs |
|00001400| 69 6e 2e 0d 0a 66 75 6e | 63 74 69 6f 6e 20 49 6e |in...fun|ction In|
|00001410| 69 74 52 61 74 65 64 47 | 61 6d 65 28 4c 61 64 64 |itRatedG|ame(Ladd|
|00001420| 65 72 49 6e 76 65 6e 74 | 6f 72 79 20 4c 61 64 64 |erInvent|ory Ladd|
|00001430| 65 72 4f 62 6a 2c 20 50 | 6c 61 79 65 72 50 61 77 |erObj, P|layerPaw|
|00001440| 6e 20 4c 61 64 64 65 72 | 50 6c 61 79 65 72 29 0d |n Ladder|Player).|
|00001450| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 63 6c 61 73 73 |.{...loc|al class|
|00001460| 3c 52 61 74 65 64 4d 61 | 74 63 68 49 6e 66 6f 3e |<RatedMa|tchInfo>|
|00001470| 20 52 4d 49 3b 0d 0a 09 | 6c 6f 63 61 6c 20 57 65 | RMI;...|local We|
|00001480| 61 70 6f 6e 20 57 3b 0d | 0a 0d 0a 09 46 72 61 67 |apon W;.|....Frag|
|00001490| 4c 69 6d 69 74 20 3d 20 | 4c 61 64 64 65 72 4f 62 |Limit = |LadderOb|
|000014a0| 6a 2e 43 75 72 72 65 6e | 74 4c 61 64 64 65 72 2e |j.Curren|tLadder.|
|000014b0| 44 65 66 61 75 6c 74 2e | 46 72 61 67 4c 69 6d 69 |Default.|FragLimi|
|000014c0| 74 73 5b 49 44 6e 75 6d | 5d 3b 0d 0a 09 52 61 74 |ts[IDnum|];...Rat|
|000014d0| 65 64 47 61 6d 65 4c 61 | 64 64 65 72 4f 62 6a 20 |edGameLa|dderObj |
|000014e0| 3d 20 4c 61 64 64 65 72 | 4f 62 6a 3b 0d 0a 09 69 |= Ladder|Obj;...i|
|000014f0| 66 20 28 4c 61 64 64 65 | 72 4f 62 6a 2e 43 75 72 |f (Ladde|rObj.Cur|
|00001500| 72 65 6e 74 4c 61 64 64 | 65 72 2e 44 65 66 61 75 |rentLadd|er.Defau|
|00001510| 6c 74 2e 54 69 6d 65 4c | 69 6d 69 74 73 5b 49 44 |lt.TimeL|imits[ID|
|00001520| 6e 75 6d 5d 20 3e 20 30 | 29 0d 0a 09 09 54 69 6d |num] > 0|)....Tim|
|00001530| 65 4c 69 6d 69 74 20 3d | 20 4c 61 64 64 65 72 4f |eLimit =| LadderO|
|00001540| 62 6a 2e 43 75 72 72 65 | 6e 74 4c 61 64 64 65 72 |bj.Curre|ntLadder|
|00001550| 2e 44 65 66 61 75 6c 74 | 2e 54 69 6d 65 4c 69 6d |.Default|.TimeLim|
|00001560| 69 74 73 5b 49 44 6e 75 | 6d 5d 3b 0d 0a 09 62 4a |its[IDnu|m];...bJ|
|00001570| 75 6d 70 4d 61 74 63 68 | 20 3d 20 66 61 6c 73 65 |umpMatch| = false|
|00001580| 3b 0d 0a 09 62 48 61 72 | 64 43 6f 72 65 4d 6f 64 |;...bHar|dCoreMod|
|00001590| 65 20 3d 20 74 72 75 65 | 3b 0d 0a 09 62 52 65 71 |e = true|;...bReq|
|000015a0| 75 69 72 65 52 65 61 64 | 79 20 3d 20 74 72 75 65 |uireRead|y = true|
|000015b0| 3b 0d 0a 09 62 4d 65 67 | 61 53 70 65 65 64 20 3d |;...bMeg|aSpeed =|
|000015c0| 20 66 61 6c 73 65 3b 0d | 0a 09 43 6f 75 6e 74 44 | false;.|..CountD|
|000015d0| 6f 77 6e 20 3d 20 31 3b | 0d 0a 09 62 52 61 74 65 |own = 1;|...bRate|
|000015e0| 64 47 61 6d 65 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |dGame = |true;...|
|000015f0| 62 43 6f 6f 70 57 65 61 | 70 6f 6e 4d 6f 64 65 20 |bCoopWea|ponMode |
|00001600| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 62 55 73 65 54 |= false;|...bUseT|
|00001610| 72 61 6e 73 6c 6f 63 61 | 74 6f 72 20 3d 20 62 52 |ransloca|tor = bR|
|00001620| 61 74 65 64 54 72 61 6e | 73 6c 6f 63 61 74 6f 72 |atedTran|slocator|
|00001630| 3b 0d 0a 09 46 6f 72 45 | 61 63 68 20 41 6c 6c 41 |;...ForE|ach AllA|
|00001640| 63 74 6f 72 73 28 63 6c | 61 73 73 27 57 65 61 70 |ctors(cl|ass'Weap|
|00001650| 6f 6e 27 2c 20 57 29 0d | 0a 09 09 57 2e 62 57 65 |on', W).|...W.bWe|
|00001660| 61 70 6f 6e 53 74 61 79 | 20 3d 20 66 61 6c 73 65 |aponStay| = false|
|00001670| 3b 0d 0a 0d 0a 09 52 61 | 74 65 64 50 6c 61 79 65 |;.....Ra|tedPlaye|
|00001680| 72 20 3d 20 4c 61 64 64 | 65 72 50 6c 61 79 65 72 |r = Ladd|erPlayer|
|00001690| 3b 20 0d 0a 0d 0a 09 2f | 2f 20 53 65 74 20 75 70 |; ...../|/ Set up|
|000016a0| 20 52 61 74 65 64 42 6f | 74 43 6f 6e 66 69 67 20 | RatedBo|tConfig |
|000016b0| 66 6f 72 20 74 68 69 73 | 20 67 61 6d 65 0d 0a 09 |for this| game...|
|000016c0| 42 6f 74 43 6f 6e 66 69 | 67 2e 62 41 64 6a 75 73 |BotConfi|g.bAdjus|
|000016d0| 74 53 6b 69 6c 6c 20 3d | 20 66 61 6c 73 65 3b 0d |tSkill =| false;.|
|000016e0| 0a 09 52 4d 49 20 3d 20 | 4c 61 64 64 65 72 4f 62 |..RMI = |LadderOb|
|000016f0| 6a 2e 43 75 72 72 65 6e | 74 4c 61 64 64 65 72 2e |j.Curren|tLadder.|
|00001700| 53 74 61 74 69 63 2e 47 | 65 74 4d 61 74 63 68 43 |Static.G|etMatchC|
|00001710| 6f 6e 66 69 67 54 79 70 | 65 28 49 44 6e 75 6d 29 |onfigTyp|e(IDnum)|
|00001720| 3b 0d 0a 09 52 61 74 65 | 64 4d 61 74 63 68 43 6f |;...Rate|dMatchCo|
|00001730| 6e 66 69 67 20 3d 20 73 | 70 61 77 6e 28 52 4d 49 |nfig = s|pawn(RMI|
|00001740| 29 3b 0d 0a 09 52 65 6d | 61 69 6e 69 6e 67 42 6f |);...Rem|ainingBo|
|00001750| 74 73 20 3d 20 52 61 74 | 65 64 4d 61 74 63 68 43 |ts = Rat|edMatchC|
|00001760| 6f 6e 66 69 67 2e 4e 75 | 6d 42 6f 74 73 3b 20 0d |onfig.Nu|mBots; .|
|00001770| 0a 09 44 69 66 66 69 63 | 75 6c 74 79 20 3d 20 4c |..Diffic|ulty = L|
|00001780| 61 64 64 65 72 4f 62 6a | 2e 54 6f 75 72 6e 61 6d |adderObj|.Tournam|
|00001790| 65 6e 74 44 69 66 66 69 | 63 75 6c 74 79 20 2b 20 |entDiffi|culty + |
|000017a0| 52 61 74 65 64 4d 61 74 | 63 68 43 6f 6e 66 69 67 |RatedMat|chConfig|
|000017b0| 2e 4d 6f 64 69 66 69 65 | 64 44 69 66 66 69 63 75 |.Modifie|dDifficu|
|000017c0| 6c 74 79 3b 0d 0a 09 69 | 66 20 28 20 44 69 66 66 |lty;...i|f ( Diff|
|000017d0| 69 63 75 6c 74 79 20 3e | 3d 20 34 20 29 0d 0a 09 |iculty >|= 4 )...|
|000017e0| 7b 0d 0a 09 09 62 4e 6f | 76 69 63 65 4d 6f 64 65 |{....bNo|viceMode|
|000017f0| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 44 69 66 | = false|;....Dif|
|00001800| 66 69 63 75 6c 74 79 20 | 3d 20 44 69 66 66 69 63 |ficulty |= Diffic|
|00001810| 75 6c 74 79 20 2d 20 34 | 3b 0d 0a 09 7d 0d 0a 09 |ulty - 4|;...}...|
|00001820| 65 6c 73 65 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |else...{|....if (|
|00001830| 20 44 69 66 66 69 63 75 | 6c 74 79 20 3e 20 33 20 | Difficu|lty > 3 |
|00001840| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 44 69 66 66 69 |)....{..|...Diffi|
|00001850| 63 75 6c 74 79 20 3d 20 | 33 3b 0d 0a 09 09 09 62 |culty = |3;.....b|
|00001860| 54 68 72 65 65 50 6c 75 | 73 20 3d 20 74 72 75 65 |ThreePlu|s = true|
|00001870| 3b 0d 0a 09 09 7d 0d 0a | 09 09 62 4e 6f 76 69 63 |;....}..|..bNovic|
|00001880| 65 4d 6f 64 65 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |eMode = |true;...|
|00001890| 7d 0d 0a 0d 0a 09 2f 2f | 20 55 70 64 61 74 65 20 |}.....//| Update |
|000018a0| 47 52 49 0d 0a 09 49 6e | 69 74 47 61 6d 65 52 65 |GRI...In|itGameRe|
|000018b0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 29 3b |plicatio|nInfo();|
|000018c0| 0d 0a 0d 0a 09 2f 2f 20 | 55 70 64 61 74 65 20 4c |.....// |Update L|
|000018d0| 6f 67 67 65 64 20 49 6e | 66 6f 0d 0a 09 69 66 20 |ogged In|fo...if |
|000018e0| 28 62 4c 6f 63 61 6c 4c | 6f 67 20 26 26 20 62 4c |(bLocalL|og && bL|
|000018f0| 6f 67 67 69 6e 67 47 61 | 6d 65 29 0d 0a 09 7b 0d |oggingGa|me)...{.|
|00001900| 0a 09 09 4c 6f 67 47 61 | 6d 65 50 61 72 61 6d 65 |...LogGa|meParame|
|00001910| 74 65 72 73 28 4c 6f 63 | 61 6c 4c 6f 67 29 3b 0d |ters(Loc|alLog);.|
|00001920| 0a 09 7d 0d 0a 09 69 66 | 20 28 62 57 6f 72 6c 64 |..}...if| (bWorld|
|00001930| 4c 6f 67 20 26 26 20 62 | 4c 6f 67 67 69 6e 67 47 |Log && b|LoggingG|
|00001940| 61 6d 65 29 0d 0a 09 7b | 0d 0a 09 09 4c 6f 67 47 |ame)...{|....LogG|
|00001950| 61 6d 65 50 61 72 61 6d | 65 74 65 72 73 28 57 6f |ameParam|eters(Wo|
|00001960| 72 6c 64 4c 6f 67 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |rldLog);|...}....|
|00001970| 09 50 6c 61 79 53 74 61 | 72 74 75 70 4d 65 73 73 |.PlaySta|rtupMess|
|00001980| 61 67 65 28 4c 61 64 64 | 65 72 50 6c 61 79 65 72 |age(Ladd|erPlayer|
|00001990| 29 3b 0d 0a 09 4c 61 64 | 64 65 72 50 6c 61 79 65 |);...Lad|derPlaye|
|000019a0| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 54 69 6d |r.SetPro|gressTim|
|000019b0| 65 28 36 29 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2a 20 41 |e(6);..}|..../* A|
|000019c0| 63 63 65 70 74 49 6e 76 | 65 6e 74 6f 72 79 28 29 |cceptInv|entory()|
|000019d0| 0d 0a 45 78 61 6d 69 6e | 65 20 74 68 65 20 70 61 |..Examin|e the pa|
|000019e0| 73 73 65 64 20 70 6c 61 | 79 65 72 27 73 20 69 6e |ssed pla|yer's in|
|000019f0| 76 65 6e 74 6f 72 79 2c | 20 61 6e 64 20 61 63 63 |ventory,| and acc|
|00001a00| 65 70 74 20 6f 72 20 64 | 69 73 63 61 72 64 20 65 |ept or d|iscard e|
|00001a10| 61 63 68 20 69 74 65 6d | 0d 0a 2a 20 41 63 63 65 |ach item|..* Acce|
|00001a20| 70 74 49 6e 76 65 6e 74 | 6f 72 79 20 6e 65 65 64 |ptInvent|ory need|
|00001a30| 73 20 74 6f 20 67 72 61 | 63 65 66 75 6c 6c 79 20 |s to gra|cefully |
|00001a40| 68 61 6e 64 6c 65 20 74 | 68 65 20 63 61 73 65 20 |handle t|he case |
|00001a50| 6f 66 20 73 6f 6d 65 20 | 69 6e 76 65 6e 74 6f 72 |of some |inventor|
|00001a60| 79 0d 0a 62 65 69 6e 67 | 20 61 63 63 65 70 74 65 |y..being| accepte|
|00001a70| 64 20 62 75 74 20 6f 74 | 68 65 72 20 69 6e 76 65 |d but ot|her inve|
|00001a80| 6e 74 6f 72 79 20 6e 6f | 74 20 62 65 69 6e 67 20 |ntory no|t being |
|00001a90| 61 63 63 65 70 74 65 64 | 20 28 73 75 63 68 20 61 |accepted| (such a|
|00001aa0| 73 20 74 68 65 20 64 65 | 66 61 75 6c 74 0d 0a 77 |s the de|fault..w|
|00001ab0| 65 61 70 6f 6e 29 2e 20 | 20 54 68 65 72 65 20 61 |eapon). | There a|
|00001ac0| 72 65 20 73 65 76 65 72 | 61 6c 20 74 68 69 6e 67 |re sever|al thing|
|00001ad0| 73 20 74 68 61 74 20 63 | 61 6e 20 67 6f 20 77 72 |s that c|an go wr|
|00001ae0| 6f 6e 67 3a 20 41 20 77 | 65 61 70 6f 6e 27 73 0d |ong: A w|eapon's.|
|00001af0| 0a 41 6d 6d 6f 54 79 70 | 65 20 6e 6f 74 20 62 65 |.AmmoTyp|e not be|
|00001b00| 69 6e 67 20 61 63 63 65 | 70 74 65 64 20 62 75 74 |ing acce|pted but|
|00001b10| 20 74 68 65 20 77 65 61 | 70 6f 6e 20 62 65 69 6e | the wea|pon bein|
|00001b20| 67 20 61 63 63 65 70 74 | 65 64 20 2d 2d 20 74 68 |g accept|ed -- th|
|00001b30| 65 20 77 65 61 70 6f 6e | 0d 0a 73 68 6f 75 6c 64 |e weapon|..should|
|00001b40| 20 62 65 20 6b 69 6c 6c | 65 64 20 6f 66 66 2e 20 | be kill|ed off. |
|00001b50| 4f 72 20 74 68 65 20 70 | 6c 61 79 65 72 27 73 20 |Or the p|layer's |
|00001b60| 73 65 6c 65 63 74 65 64 | 20 69 6e 76 65 6e 74 6f |selected| invento|
|00001b70| 72 79 20 69 74 65 6d 2c | 20 61 63 74 69 76 65 0d |ry item,| active.|
|00001b80| 0a 77 65 61 70 6f 6e 2c | 20 65 74 63 2e 20 6e 6f |.weapon,| etc. no|
|00001b90| 74 20 62 65 69 6e 67 20 | 61 63 63 65 70 74 65 64 |t being |accepted|
|00001ba0| 2c 20 6c 65 61 76 69 6e | 67 20 74 68 65 20 70 6c |, leavin|g the pl|
|00001bb0| 61 79 65 72 20 77 65 61 | 70 6f 6e 6c 65 73 73 20 |ayer wea|ponless |
|00001bc0| 6f 72 20 6c 65 61 76 69 | 6e 67 0d 0a 74 68 65 20 |or leavi|ng..the |
|00001bd0| 48 55 44 20 69 6e 76 65 | 6e 74 6f 72 79 20 72 65 |HUD inve|ntory re|
|00001be0| 6e 64 65 72 69 6e 67 20 | 6d 65 73 73 65 64 20 75 |ndering |messed u|
|00001bf0| 70 20 28 41 63 63 65 70 | 74 49 6e 76 65 6e 74 6f |p (Accep|tInvento|
|00001c00| 72 79 20 73 68 6f 75 6c | 64 20 70 69 63 6b 20 61 |ry shoul|d pick a|
|00001c10| 6e 6f 74 68 65 72 0d 0a | 61 70 70 6c 69 63 61 62 |nother..|applicab|
|00001c20| 6c 65 20 77 65 61 70 6f | 6e 2f 69 74 65 6d 20 61 |le weapo|n/item a|
|00001c30| 73 20 63 75 72 72 65 6e | 74 29 2e 0d 0a 2a 2f 0d |s curren|t)...*/.|
|00001c40| 0a 66 75 6e 63 74 69 6f | 6e 20 41 63 63 65 70 74 |.functio|n Accept|
|00001c50| 49 6e 76 65 6e 74 6f 72 | 79 28 70 61 77 6e 20 50 |Inventor|y(pawn P|
|00001c60| 6c 61 79 65 72 50 61 77 | 6e 29 0d 0a 7b 0d 0a 09 |layerPaw|n)..{...|
|00001c70| 6c 6f 63 61 6c 20 69 6e | 76 65 6e 74 6f 72 79 20 |local in|ventory |
|00001c80| 49 6e 76 3b 0d 0a 09 6c | 6f 63 61 6c 20 4c 61 64 |Inv;...l|ocal Lad|
|00001c90| 64 65 72 49 6e 76 65 6e | 74 6f 72 79 20 4c 61 64 |derInven|tory Lad|
|00001ca0| 64 65 72 4f 62 6a 3b 0d | 0a 0d 0a 09 2f 2f 20 44 |derObj;.|....// D|
|00001cb0| 65 61 74 68 4d 61 74 63 | 68 50 6c 75 73 20 61 63 |eathMatc|hPlus ac|
|00001cc0| 63 65 70 74 73 20 4c 61 | 64 64 65 72 49 6e 76 65 |cepts La|dderInve|
|00001cd0| 6e 74 6f 72 79 0d 0a 09 | 66 6f 72 28 20 49 6e 76 |ntory...|for( Inv|
|00001ce0| 3d 50 6c 61 79 65 72 50 | 61 77 6e 2e 49 6e 76 65 |=PlayerP|awn.Inve|
|00001cf0| 6e 74 6f 72 79 3b 20 49 | 6e 76 21 3d 4e 6f 6e 65 |ntory; I|nv!=None|
|00001d00| 3b 20 49 6e 76 3d 49 6e | 76 2e 49 6e 76 65 6e 74 |; Inv=In|v.Invent|
|00001d10| 6f 72 79 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |ory )...|{....if |
|00001d20| 28 49 6e 76 2e 49 73 41 | 28 27 4c 61 64 64 65 72 |(Inv.IsA|('Ladder|
|00001d30| 49 6e 76 65 6e 74 6f 72 | 79 27 29 29 0d 0a 09 09 |Inventor|y'))....|
|00001d40| 7b 0d 0a 09 09 09 4c 61 | 64 64 65 72 4f 62 6a 20 |{.....La|dderObj |
|00001d50| 3d 20 4c 61 64 64 65 72 | 49 6e 76 65 6e 74 6f 72 |= Ladder|Inventor|
|00001d60| 79 28 49 6e 76 29 3b 0d | 0a 09 09 7d 20 0d 0a 09 |y(Inv);.|...} ...|
|00001d70| 09 65 6c 73 65 20 09 0d | 0a 09 09 09 49 6e 76 2e |.else ..|....Inv.|
|00001d80| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 09 7d 0d 0a |Destroy(|);...}..|
|00001d90| 09 50 6c 61 79 65 72 50 | 61 77 6e 2e 57 65 61 70 |.PlayerP|awn.Weap|
|00001da0| 6f 6e 20 3d 20 4e 6f 6e | 65 3b 0d 0a 09 50 6c 61 |on = Non|e;...Pla|
|00001db0| 79 65 72 50 61 77 6e 2e | 53 65 6c 65 63 74 65 64 |yerPawn.|Selected|
|00001dc0| 49 74 65 6d 20 3d 20 4e | 6f 6e 65 3b 0d 0a 09 41 |Item = N|one;...A|
|00001dd0| 64 64 44 65 66 61 75 6c | 74 49 6e 76 65 6e 74 6f |ddDefaul|tInvento|
|00001de0| 72 79 28 20 50 6c 61 79 | 65 72 50 61 77 6e 20 29 |ry( Play|erPawn )|
|00001df0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00001e00| 20 62 6f 6f 6c 20 53 65 | 74 45 6e 64 43 61 6d 73 | bool Se|tEndCams|
|00001e10| 28 73 74 72 69 6e 67 20 | 52 65 61 73 6f 6e 29 0d |(string |Reason).|
|00001e20| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 70 61 77 6e 20 |.{...loc|al pawn |
|00001e30| 50 2c 20 42 65 73 74 3b | 0d 0a 09 6c 6f 63 61 6c |P, Best;|...local|
|00001e40| 20 50 6c 61 79 65 72 50 | 61 77 6e 20 50 6c 61 79 | PlayerP|awn Play|
|00001e50| 65 72 3b 0d 0a 0d 0a 09 | 2f 2f 20 66 69 6e 64 20 |er;.....|// find |
|00001e60| 69 6e 64 69 76 69 64 75 | 61 6c 20 77 69 6e 6e 65 |individu|al winne|
|00001e70| 72 0d 0a 09 66 6f 72 20 | 28 20 50 3d 4c 65 76 65 |r...for |( P=Leve|
|00001e80| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00001e90| 6f 6e 65 3b 20 50 3d 50 | 2e 6e 65 78 74 50 61 77 |one; P=P|.nextPaw|
|00001ea0| 6e 20 29 0d 0a 09 09 69 | 66 20 28 20 50 2e 62 49 |n )....i|f ( P.bI|
|00001eb0| 73 50 6c 61 79 65 72 20 | 26 26 20 28 28 42 65 73 |sPlayer |&& ((Bes|
|00001ec0| 74 20 3d 3d 20 4e 6f 6e | 65 29 20 7c 7c 20 28 50 |t == Non|e) || (P|
|00001ed0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001ee0| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 3e 20 42 |onInfo.S|core > B|
|00001ef0| 65 73 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |est.Play|erReplic|
|00001f00| 61 74 69 6f 6e 49 6e 66 | 6f 2e 53 63 6f 72 65 29 |ationInf|o.Score)|
|00001f10| 29 20 29 0d 0a 09 09 09 | 42 65 73 74 20 3d 20 50 |) ).....|Best = P|
|00001f20| 3b 0d 0a 0d 0a 09 2f 2f | 20 63 68 65 63 6b 20 66 |;.....//| check f|
|00001f30| 6f 72 20 74 69 65 0d 0a | 09 66 6f 72 20 28 20 50 |or tie..|.for ( P|
|00001f40| 3d 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b |=Level.P|awnList;|
|00001f50| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 50 2e 6e 65 | P!=None|; P=P.ne|
|00001f60| 78 74 50 61 77 6e 20 29 | 0d 0a 09 09 69 66 20 28 |xtPawn )|....if (|
|00001f70| 20 50 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 | P.bIsPl|ayer && |
|00001f80| 28 42 65 73 74 20 21 3d | 20 50 29 20 26 26 20 28 |(Best !=| P) && (|
|00001f90| 50 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |P.Player|Replicat|
|00001fa0| 69 6f 6e 49 6e 66 6f 2e | 53 63 6f 72 65 20 3d 3d |ionInfo.|Score ==|
|00001fb0| 20 42 65 73 74 2e 50 6c | 61 79 65 72 52 65 70 6c | Best.Pl|ayerRepl|
|00001fc0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 53 63 6f 72 |icationI|nfo.Scor|
|00001fd0| 65 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 42 72 |e) )....|{.....Br|
|00001fe0| 6f 61 64 63 61 73 74 4c | 6f 63 61 6c 69 7a 65 64 |oadcastL|ocalized|
|00001ff0| 4d 65 73 73 61 67 65 28 | 20 63 6c 61 73 73 27 44 |Message(| class'D|
|00002000| 65 61 74 68 4d 61 74 63 | 68 4d 65 73 73 61 67 65 |eathMatc|hMessage|
|00002010| 27 2c 20 30 20 29 3b 0d | 0a 09 09 09 72 65 74 75 |', 0 );.|....retu|
|00002020| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 09 09 7d 09 09 |rn false|;....}..|
|00002030| 0d 0a 0d 0a 09 45 6e 64 | 54 69 6d 65 20 3d 20 4c |.....End|Time = L|
|00002040| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00002050| 20 2b 20 33 2e 30 3b 0d | 0a 09 47 61 6d 65 52 65 | + 3.0;.|..GameRe|
|00002060| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 47 61 |plicatio|nInfo.Ga|
|00002070| 6d 65 45 6e 64 65 64 43 | 6f 6d 6d 65 6e 74 73 20 |meEndedC|omments |
|00002080| 3d 20 42 65 73 74 2e 50 | 6c 61 79 65 72 52 65 70 |= Best.P|layerRep|
|00002090| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 50 6c 61 |lication|Info.Pla|
|000020a0| 79 65 72 4e 61 6d 65 40 | 47 61 6d 65 45 6e 64 65 |yerName@|GameEnde|
|000020b0| 64 4d 65 73 73 61 67 65 | 3b 0d 0a 09 6c 6f 67 28 |dMessage|;...log(|
|000020c0| 20 22 47 61 6d 65 20 65 | 6e 64 65 64 20 61 74 20 | "Game e|nded at |
|000020d0| 22 24 45 6e 64 54 69 6d | 65 29 3b 0d 0a 09 66 6f |"$EndTim|e);...fo|
|000020e0| 72 20 28 20 50 3d 4c 65 | 76 65 6c 2e 50 61 77 6e |r ( P=Le|vel.Pawn|
|000020f0| 4c 69 73 74 3b 20 50 21 | 3d 4e 6f 6e 65 3b 20 50 |List; P!|=None; P|
|00002100| 3d 50 2e 6e 65 78 74 50 | 61 77 6e 20 29 0d 0a 09 |=P.nextP|awn )...|
|00002110| 7b 0d 0a 09 09 50 6c 61 | 79 65 72 20 3d 20 50 6c |{....Pla|yer = Pl|
|00002120| 61 79 65 72 50 61 77 6e | 28 50 29 3b 0d 0a 09 09 |ayerPawn|(P);....|
|00002130| 69 66 20 28 20 50 6c 61 | 79 65 72 20 21 3d 20 4e |if ( Pla|yer != N|
|00002140| 6f 6e 65 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |one )...|.{.....i|
|00002150| 66 20 28 21 62 54 75 74 | 6f 72 69 61 6c 47 61 6d |f (!bTut|orialGam|
|00002160| 65 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 69 66 |e).....{|......if|
|00002170| 20 28 20 70 6c 61 79 65 | 72 20 3d 3d 20 42 65 73 | ( playe|r == Bes|
|00002180| 74 20 29 0d 0a 09 09 09 | 09 09 50 6c 61 79 65 72 |t ).....|..Player|
|00002190| 2e 43 6c 69 65 6e 74 50 | 6c 61 79 53 6f 75 6e 64 |.ClientP|laySound|
|000021a0| 28 73 6f 75 6e 64 27 41 | 6e 6e 6f 75 6e 63 65 72 |(sound'A|nnouncer|
|000021b0| 2e 57 69 6e 6e 65 72 27 | 2c 20 54 72 75 65 29 3b |.Winner'|, True);|
|000021c0| 0d 0a 09 09 09 09 65 6c | 73 65 20 69 66 20 28 20 |......el|se if ( |
|000021d0| 21 50 6c 61 79 65 72 2e | 49 73 41 28 27 53 70 65 |!Player.|IsA('Spe|
|000021e0| 63 74 61 74 6f 72 27 29 | 20 29 20 0d 0a 09 09 09 |ctator')| ) .....|
|000021f0| 09 09 50 6c 61 79 65 72 | 2e 43 6c 69 65 6e 74 50 |..Player|.ClientP|
|00002200| 6c 61 79 53 6f 75 6e 64 | 28 73 6f 75 6e 64 27 41 |laySound|(sound'A|
|00002210| 6e 6e 6f 75 6e 63 65 72 | 2e 4c 6f 73 74 4d 61 74 |nnouncer|.LostMat|
|00002220| 63 68 27 2c 20 54 72 75 | 65 29 3b 0d 0a 09 09 09 |ch', Tru|e);.....|
|00002230| 7d 0d 0a 09 09 09 50 6c | 61 79 65 72 2e 62 42 65 |}.....Pl|ayer.bBe|
|00002240| 68 69 6e 64 56 69 65 77 | 20 3d 20 74 72 75 65 3b |hindView| = true;|
|00002250| 0d 0a 09 09 09 69 66 20 | 28 20 50 6c 61 79 65 72 |.....if |( Player|
|00002260| 20 3d 3d 20 42 65 73 74 | 20 29 0d 0a 09 09 09 09 | == Best| )......|
|00002270| 50 6c 61 79 65 72 2e 56 | 69 65 77 54 61 72 67 65 |Player.V|iewTarge|
|00002280| 74 20 3d 20 4e 6f 6e 65 | 3b 0d 0a 09 09 09 65 6c |t = None|;.....el|
|00002290| 73 65 0d 0a 09 09 09 09 | 50 6c 61 79 65 72 2e 56 |se......|Player.V|
|000022a0| 69 65 77 54 61 72 67 65 | 74 20 3d 20 42 65 73 74 |iewTarge|t = Best|
|000022b0| 3b 0d 0a 09 09 09 50 6c | 61 79 65 72 2e 43 6c 69 |;.....Pl|ayer.Cli|
|000022c0| 65 6e 74 47 61 6d 65 45 | 6e 64 65 64 28 29 3b 0d |entGameE|nded();.|
|000022d0| 0a 09 09 7d 0d 0a 09 09 | 50 2e 47 6f 74 6f 53 74 |...}....|P.GotoSt|
|000022e0| 61 74 65 28 27 47 61 6d | 65 45 6e 64 65 64 27 29 |ate('Gam|eEnded')|
|000022f0| 3b 0d 0a 09 7d 0d 0a 09 | 43 61 6c 63 45 6e 64 53 |;...}...|CalcEndS|
|00002300| 74 61 74 73 28 29 3b 0d | 0a 09 72 65 74 75 72 6e |tats();.|..return|
|00002310| 20 74 72 75 65 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e | true;..|}....fun|
|00002320| 63 74 69 6f 6e 20 4e 6f | 74 69 66 79 53 70 72 65 |ction No|tifySpre|
|00002330| 65 28 50 61 77 6e 20 4f | 74 68 65 72 2c 20 69 6e |e(Pawn O|ther, in|
|00002340| 74 20 6e 75 6d 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |t num)..|{...loca|
|00002350| 6c 20 50 61 77 6e 20 50 | 3b 0d 0a 0d 0a 09 69 66 |l Pawn P|;.....if|
|00002360| 20 28 20 6e 75 6d 20 3d | 3d 20 35 20 29 0d 0a 09 | ( num =|= 5 )...|
|00002370| 09 6e 75 6d 20 3d 20 30 | 3b 0d 0a 09 65 6c 73 65 |.num = 0|;...else|
|00002380| 20 69 66 20 28 20 6e 75 | 6d 20 3d 3d 20 31 30 20 | if ( nu|m == 10 |
|00002390| 29 0d 0a 09 09 6e 75 6d | 20 3d 20 31 3b 0d 0a 09 |)....num| = 1;...|
|000023a0| 65 6c 73 65 20 69 66 20 | 28 20 6e 75 6d 20 3d 3d |else if |( num ==|
|000023b0| 20 31 35 20 29 0d 0a 09 | 09 6e 75 6d 20 3d 20 32 | 15 )...|.num = 2|
|000023c0| 3b 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 6e 75 |;...else| if ( nu|
|000023d0| 6d 20 3d 3d 20 32 30 20 | 29 0d 0a 09 09 6e 75 6d |m == 20 |)....num|
|000023e0| 20 3d 20 33 3b 0d 0a 09 | 65 6c 73 65 20 69 66 20 | = 3;...|else if |
|000023f0| 28 20 6e 75 6d 20 3d 3d | 20 32 35 20 29 0d 0a 09 |( num ==| 25 )...|
|00002400| 09 6e 75 6d 20 3d 20 34 | 3b 0d 0a 09 65 6c 73 65 |.num = 4|;...else|
|00002410| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 |....retu|rn;.....|
|00002420| 66 6f 72 20 28 20 50 3d | 4c 65 76 65 6c 2e 50 61 |for ( P=|Level.Pa|
|00002430| 77 6e 4c 69 73 74 3b 20 | 50 21 3d 4e 6f 6e 65 3b |wnList; |P!=None;|
|00002440| 20 50 3d 50 2e 4e 65 78 | 74 50 61 77 6e 20 29 0d | P=P.Nex|tPawn ).|
|00002450| 0a 09 09 69 66 20 28 20 | 50 2e 49 73 41 28 27 54 |...if ( |P.IsA('T|
|00002460| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 27 |ournamen|tPlayer'|
|00002470| 29 20 29 0d 0a 09 09 09 | 50 2e 52 65 63 65 69 76 |) ).....|P.Receiv|
|00002480| 65 4c 6f 63 61 6c 69 7a | 65 64 4d 65 73 73 61 67 |eLocaliz|edMessag|
|00002490| 65 28 20 63 6c 61 73 73 | 27 4b 69 6c 6c 69 6e 67 |e( class|'Killing|
|000024a0| 53 70 72 65 65 4d 65 73 | 73 61 67 65 27 2c 20 4e |SpreeMes|sage', N|
|000024b0| 75 6d 2c 20 4f 74 68 65 | 72 2e 50 6c 61 79 65 72 |um, Othe|r.Player|
|000024c0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 20 |Replicat|ionInfo |
|000024d0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|000024e0| 6e 20 45 6e 64 53 70 72 | 65 65 28 50 61 77 6e 20 |n EndSpr|ee(Pawn |
|000024f0| 4b 69 6c 6c 65 72 2c 20 | 50 61 77 6e 20 4f 74 68 |Killer, |Pawn Oth|
|00002500| 65 72 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |er)..{..|.local P|
|00002510| 61 77 6e 20 50 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |awn P;..|...if ( |
|00002520| 21 4f 74 68 65 72 2e 62 | 49 73 50 6c 61 79 65 72 |!Other.b|IsPlayer|
|00002530| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 | )....re|turn;...|
|00002540| 66 6f 72 20 28 20 50 3d | 4c 65 76 65 6c 2e 50 61 |for ( P=|Level.Pa|
|00002550| 77 6e 4c 69 73 74 3b 20 | 50 21 3d 4e 6f 6e 65 3b |wnList; |P!=None;|
|00002560| 20 50 3d 50 2e 4e 65 78 | 74 50 61 77 6e 20 29 0d | P=P.Nex|tPawn ).|
|00002570| 0a 09 09 69 66 20 28 20 | 50 2e 49 73 41 28 27 54 |...if ( |P.IsA('T|
|00002580| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 27 |ournamen|tPlayer'|
|00002590| 29 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |) )....{|.....if |
|000025a0| 28 20 28 4b 69 6c 6c 65 | 72 20 3d 3d 20 4e 6f 6e |( (Kille|r == Non|
|000025b0| 65 29 20 7c 7c 20 21 4b | 69 6c 6c 65 72 2e 62 49 |e) || !K|iller.bI|
|000025c0| 73 50 6c 61 79 65 72 20 | 29 0d 0a 09 09 09 09 54 |sPlayer |)......T|
|000025d0| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 28 |ournamen|tPlayer(|
|000025e0| 50 29 2e 45 6e 64 53 70 | 72 65 65 28 4e 6f 6e 65 |P).EndSp|ree(None|
|000025f0| 2c 20 4f 74 68 65 72 2e | 50 6c 61 79 65 72 52 65 |, Other.|PlayerRe|
|00002600| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 29 3b 0d |plicatio|nInfo);.|
|00002610| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 54 6f |....else|......To|
|00002620| 75 72 6e 61 6d 65 6e 74 | 50 6c 61 79 65 72 28 50 |urnament|Player(P|
|00002630| 29 2e 45 6e 64 53 70 72 | 65 65 28 4b 69 6c 6c 65 |).EndSpr|ee(Kille|
|00002640| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00002650| 69 6f 6e 49 6e 66 6f 2c | 20 4f 74 68 65 72 2e 50 |ionInfo,| Other.P|
|00002660| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002670| 49 6e 66 6f 29 3b 0d 0a | 09 09 7d 0d 0a 7d 0d 0a |Info);..|..}..}..|
|00002680| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 63 6f 72 65 |..functi|on Score|
|00002690| 4b 69 6c 6c 28 70 61 77 | 6e 20 4b 69 6c 6c 65 72 |Kill(paw|n Killer|
|000026a0| 2c 20 70 61 77 6e 20 4f | 74 68 65 72 29 0d 0a 7b |, pawn O|ther)..{|
|000026b0| 0d 0a 09 53 75 70 65 72 | 2e 53 63 6f 72 65 4b 69 |...Super|.ScoreKi|
|000026c0| 6c 6c 28 4b 69 6c 6c 65 | 72 2c 20 4f 74 68 65 72 |ll(Kille|r, Other|
|000026d0| 29 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 62 41 6c 74 |);.....i|f ( bAlt|
|000026e0| 53 63 6f 72 69 6e 67 20 | 26 26 20 28 4b 69 6c 6c |Scoring |&& (Kill|
|000026f0| 65 72 20 21 3d 20 4f 74 | 68 65 72 29 20 26 26 20 |er != Ot|her) && |
|00002700| 28 6b 69 6c 6c 65 72 20 | 21 3d 20 4e 6f 6e 65 29 |(killer |!= None)|
|00002710| 20 29 0d 0a 09 09 4f 74 | 68 65 72 2e 50 6c 61 79 | )....Ot|her.Play|
|00002720| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00002730| 6f 2e 53 63 6f 72 65 20 | 2d 3d 20 31 3b 0d 0a 7d |o.Score |-= 1;..}|
|00002740| 0d 0a 0d 0a 2f 2f 20 4d | 6f 6e 69 74 6f 72 20 6b |....// M|onitor k|
|00002750| 69 6c 6c 65 64 20 6d 65 | 73 73 61 67 65 73 20 66 |illed me|ssages f|
|00002760| 6f 72 20 66 72 61 67 6c | 69 6d 69 74 0d 0a 66 75 |or fragl|imit..fu|
|00002770| 6e 63 74 69 6f 6e 20 4b | 69 6c 6c 65 64 28 70 61 |nction K|illed(pa|
|00002780| 77 6e 20 6b 69 6c 6c 65 | 72 2c 20 70 61 77 6e 20 |wn kille|r, pawn |
|00002790| 4f 74 68 65 72 2c 20 6e | 61 6d 65 20 64 61 6d 61 |Other, n|ame dama|
|000027a0| 67 65 54 79 70 65 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |geType).|.{...loc|
|000027b0| 61 6c 20 69 6e 74 20 4e | 65 78 74 54 61 75 6e 74 |al int N|extTaunt|
|000027c0| 2c 20 69 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |, i;...l|ocal boo|
|000027d0| 6c 20 62 41 75 74 6f 54 | 61 75 6e 74 2c 20 62 45 |l bAutoT|aunt, bE|
|000027e0| 6e 64 4f 76 65 72 54 69 | 6d 65 3b 0d 0a 09 6c 6f |ndOverTi|me;...lo|
|000027f0| 63 61 6c 20 50 61 77 6e | 20 50 2c 20 42 65 73 74 |cal Pawn| P, Best|
|00002800| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 28 64 61 6d 61 |;.....if| ( (dama|
|00002810| 67 65 54 79 70 65 20 3d | 3d 20 27 44 65 63 61 70 |geType =|= 'Decap|
|00002820| 69 74 61 74 65 64 27 29 | 20 26 26 20 28 4b 69 6c |itated')| && (Kil|
|00002830| 6c 65 72 20 21 3d 20 4f | 74 68 65 72 29 20 26 26 |ler != O|ther) &&|
|00002840| 20 28 4b 69 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 | (Killer| != None|
|00002850| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 4c |) )...{.|...if (L|
|00002860| 65 76 65 6c 2e 47 61 6d | 65 2e 4c 6f 63 61 6c 4c |evel.Gam|e.LocalL|
|00002870| 6f 67 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 09 |og != No|ne).....|
|00002880| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 4c 6f 63 61 6c |Level.Ga|me.Local|
|00002890| 4c 6f 67 2e 4c 6f 67 53 | 70 65 63 69 61 6c 45 76 |Log.LogS|pecialEv|
|000028a0| 65 6e 74 28 22 68 65 61 | 64 73 68 6f 74 22 2c 20 |ent("hea|dshot", |
|000028b0| 4b 69 6c 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Killer.P|layerRep|
|000028c0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 50 6c 61 |lication|Info.Pla|
|000028d0| 79 65 72 49 44 2c 20 4f | 74 68 65 72 2e 50 6c 61 |yerID, O|ther.Pla|
|000028e0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000028f0| 66 6f 2e 50 6c 61 79 65 | 72 49 44 29 3b 0d 0a 09 |fo.Playe|rID);...|
|00002900| 09 69 66 20 28 4c 65 76 | 65 6c 2e 47 61 6d 65 2e |.if (Lev|el.Game.|
|00002910| 57 6f 72 6c 64 4c 6f 67 | 20 21 3d 20 4e 6f 6e 65 |WorldLog| != None|
|00002920| 29 0d 0a 09 09 09 4c 65 | 76 65 6c 2e 47 61 6d 65 |).....Le|vel.Game|
|00002930| 2e 57 6f 72 6c 64 4c 6f | 67 2e 4c 6f 67 53 70 65 |.WorldLo|g.LogSpe|
|00002940| 63 69 61 6c 45 76 65 6e | 74 28 22 68 65 61 64 73 |cialEven|t("heads|
|00002950| 68 6f 74 22 2c 20 4b 69 | 6c 6c 65 72 2e 50 6c 61 |hot", Ki|ller.Pla|
|00002960| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002970| 66 6f 2e 50 6c 61 79 65 | 72 49 44 2c 20 4f 74 68 |fo.Playe|rID, Oth|
|00002980| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00002990| 74 69 6f 6e 49 6e 66 6f | 2e 50 6c 61 79 65 72 49 |tionInfo|.PlayerI|
|000029a0| 44 29 3b 0d 0a 09 09 4b | 69 6c 6c 65 72 2e 52 65 |D);....K|iller.Re|
|000029b0| 63 65 69 76 65 4c 6f 63 | 61 6c 69 7a 65 64 4d 65 |ceiveLoc|alizedMe|
|000029c0| 73 73 61 67 65 28 20 63 | 6c 61 73 73 27 44 65 63 |ssage( c|lass'Dec|
|000029d0| 61 70 69 74 61 74 69 6f | 6e 4d 65 73 73 61 67 65 |apitatio|nMessage|
|000029e0| 27 20 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 53 75 70 |' );...}|.....Sup|
|000029f0| 65 72 2e 4b 69 6c 6c 65 | 64 28 6b 69 6c 6c 65 72 |er.Kille|d(killer|
|00002a00| 2c 20 4f 74 68 65 72 2c | 20 64 61 6d 61 67 65 54 |, Other,| damageT|
|00002a10| 79 70 65 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 4f |ype);...|..if ( O|
|00002a20| 74 68 65 72 2e 53 70 72 | 65 65 20 3e 20 34 20 29 |ther.Spr|ee > 4 )|
|00002a30| 0d 0a 09 09 45 6e 64 53 | 70 72 65 65 28 4b 69 6c |....EndS|pree(Kil|
|00002a40| 6c 65 72 2c 20 4f 74 68 | 65 72 29 3b 20 0d 0a 09 |ler, Oth|er); ...|
|00002a50| 4f 74 68 65 72 2e 53 70 | 72 65 65 20 3d 20 30 3b |Other.Sp|ree = 0;|
|00002a60| 0d 0a 0d 0a 09 69 66 20 | 28 20 28 6b 69 6c 6c 65 |.....if |( (kille|
|00002a70| 72 20 3d 3d 20 4e 6f 6e | 65 29 20 7c 7c 20 28 4f |r == Non|e) || (O|
|00002a80| 74 68 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 29 0d |ther == |None) ).|
|00002a90| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 69 66 20 |...retur|n;...if |
|00002aa0| 28 20 21 62 46 69 72 73 | 74 42 6c 6f 6f 64 20 29 |( !bFirs|tBlood )|
|00002ab0| 0d 0a 09 09 69 66 20 28 | 20 4b 69 6c 6c 65 72 2e |....if (| Killer.|
|00002ac0| 62 49 73 50 6c 61 79 65 | 72 20 26 26 20 28 4b 69 |bIsPlaye|r && (Ki|
|00002ad0| 6c 6c 65 72 20 21 3d 20 | 4f 74 68 65 72 29 20 29 |ller != |Other) )|
|00002ae0| 0d 0a 09 09 09 69 66 20 | 28 21 53 65 6c 66 2e 49 |.....if |(!Self.I|
|00002af0| 73 41 28 27 54 72 61 69 | 6e 69 6e 67 44 4d 27 29 |sA('Trai|ningDM')|
|00002b00| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 62 46 69 |).....{.|.....bFi|
|00002b10| 72 73 74 42 6c 6f 6f 64 | 20 3d 20 54 72 75 65 3b |rstBlood| = True;|
|00002b20| 0d 0a 09 09 09 09 42 72 | 6f 61 64 63 61 73 74 4c |......Br|oadcastL|
|00002b30| 6f 63 61 6c 69 7a 65 64 | 4d 65 73 73 61 67 65 28 |ocalized|Message(|
|00002b40| 20 63 6c 61 73 73 27 46 | 69 72 73 74 42 6c 6f 6f | class'F|irstBloo|
|00002b50| 64 4d 65 73 73 61 67 65 | 27 2c 20 30 2c 20 4b 69 |dMessage|', 0, Ki|
|00002b60| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00002b70| 63 61 74 69 6f 6e 49 6e | 66 6f 20 29 3b 0d 0a 09 |cationIn|fo );...|
|00002b80| 09 09 7d 0d 0a 0d 0a 09 | 69 66 20 28 20 21 62 54 |..}.....|if ( !bT|
|00002b90| 65 61 6d 47 61 6d 65 20 | 29 0d 0a 09 7b 0d 0a 09 |eamGame |)...{...|
|00002ba0| 09 69 66 20 28 20 62 4f | 76 65 72 54 69 6d 65 20 |.if ( bO|verTime |
|00002bb0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 62 45 6e 64 4f |)....{..|...bEndO|
|00002bc0| 76 65 72 54 69 6d 65 20 | 3d 20 74 72 75 65 3b 0d |verTime |= true;.|
|00002bd0| 0a 09 09 09 2f 2f 63 68 | 65 63 6b 20 66 6f 72 20 |....//ch|eck for |
|00002be0| 63 6c 65 61 72 20 77 69 | 6e 6e 65 72 20 6e 6f 77 |clear wi|nner now|
|00002bf0| 0d 0a 09 09 09 2f 2f 20 | 66 69 6e 64 20 69 6e 64 |.....// |find ind|
|00002c00| 69 76 69 64 75 61 6c 20 | 77 69 6e 6e 65 72 0d 0a |ividual |winner..|
|00002c10| 09 09 09 66 6f 72 20 28 | 20 50 3d 4c 65 76 65 6c |...for (| P=Level|
|00002c20| 2e 50 61 77 6e 4c 69 73 | 74 3b 20 50 21 3d 4e 6f |.PawnLis|t; P!=No|
|00002c30| 6e 65 3b 20 50 3d 50 2e | 6e 65 78 74 50 61 77 6e |ne; P=P.|nextPawn|
|00002c40| 20 29 0d 0a 09 09 09 09 | 69 66 20 28 20 50 2e 62 | )......|if ( P.b|
|00002c50| 49 73 50 6c 61 79 65 72 | 20 26 26 20 28 28 42 65 |IsPlayer| && ((Be|
|00002c60| 73 74 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |st == No|ne) || (|
|00002c70| 50 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |P.Player|Replicat|
|00002c80| 69 6f 6e 49 6e 66 6f 2e | 53 63 6f 72 65 20 3e 20 |ionInfo.|Score > |
|00002c90| 42 65 73 74 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |Best.Pla|yerRepli|
|00002ca0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 53 63 6f 72 65 |cationIn|fo.Score|
|00002cb0| 29 29 20 29 0d 0a 09 09 | 09 09 09 42 65 73 74 20 |)) )....|...Best |
|00002cc0| 3d 20 50 3b 0d 0a 0d 0a | 09 09 09 2f 2f 20 63 68 |= P;....|...// ch|
|00002cd0| 65 63 6b 20 66 6f 72 20 | 74 69 65 0d 0a 09 09 09 |eck for |tie.....|
|00002ce0| 66 6f 72 20 28 20 50 3d | 4c 65 76 65 6c 2e 50 61 |for ( P=|Level.Pa|
|00002cf0| 77 6e 4c 69 73 74 3b 20 | 50 21 3d 4e 6f 6e 65 3b |wnList; |P!=None;|
|00002d00| 20 50 3d 50 2e 6e 65 78 | 74 50 61 77 6e 20 29 0d | P=P.nex|tPawn ).|
|00002d10| 0a 09 09 09 09 69 66 20 | 28 20 50 2e 62 49 73 50 |.....if |( P.bIsP|
|00002d20| 6c 61 79 65 72 20 26 26 | 20 28 42 65 73 74 20 21 |layer &&| (Best !|
|00002d30| 3d 20 50 29 20 26 26 20 | 28 50 2e 50 6c 61 79 65 |= P) && |(P.Playe|
|00002d40| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002d50| 2e 53 63 6f 72 65 20 3d | 3d 20 42 65 73 74 2e 50 |.Score =|= Best.P|
|00002d60| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00002d70| 49 6e 66 6f 2e 53 63 6f | 72 65 29 20 29 0d 0a 09 |Info.Sco|re) )...|
|00002d80| 09 09 09 09 62 45 6e 64 | 4f 76 65 72 54 69 6d 65 |....bEnd|OverTime|
|00002d90| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 09 09 | = false|;.......|
|00002da0| 69 66 20 28 20 62 45 6e | 64 4f 76 65 72 54 69 6d |if ( bEn|dOverTim|
|00002db0| 65 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 69 |e ).....|{......i|
|00002dc0| 66 20 28 20 28 46 72 61 | 67 4c 69 6d 69 74 20 3e |f ( (Fra|gLimit >|
|00002dd0| 20 30 29 20 26 26 20 28 | 42 65 73 74 2e 50 6c 61 | 0) && (|Best.Pla|
|00002de0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002df0| 66 6f 2e 53 63 6f 72 65 | 20 3e 3d 20 46 72 61 67 |fo.Score| >= Frag|
|00002e00| 4c 69 6d 69 74 29 20 29 | 0d 0a 09 09 09 09 09 45 |Limit) )|.......E|
|00002e10| 6e 64 47 61 6d 65 28 22 | 66 72 61 67 6c 69 6d 69 |ndGame("|fraglimi|
|00002e20| 74 22 29 3b 0d 0a 09 09 | 09 09 65 6c 73 65 0d 0a |t");....|..else..|
|00002e30| 09 09 09 09 09 45 6e 64 | 47 61 6d 65 28 22 74 69 |.....End|Game("ti|
|00002e40| 6d 65 6c 69 6d 69 74 22 | 29 3b 0d 0a 09 09 09 7d |melimit"|);.....}|
|00002e50| 0d 0a 09 09 7d 0d 0a 09 | 09 65 6c 73 65 20 69 66 |....}...|.else if|
|00002e60| 20 28 20 28 46 72 61 67 | 4c 69 6d 69 74 20 3e 20 | ( (Frag|Limit > |
|00002e70| 30 29 20 26 26 20 28 6b | 69 6c 6c 65 72 2e 50 6c |0) && (k|iller.Pl|
|00002e80| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00002e90| 6e 66 6f 2e 53 63 6f 72 | 65 20 3e 3d 20 46 72 61 |nfo.Scor|e >= Fra|
|00002ea0| 67 4c 69 6d 69 74 29 20 | 29 0d 0a 09 09 09 45 6e |gLimit) |).....En|
|00002eb0| 64 47 61 6d 65 28 22 66 | 72 61 67 6c 69 6d 69 74 |dGame("f|raglimit|
|00002ec0| 22 29 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |");...}.|....if (|
|00002ed0| 20 42 6f 74 43 6f 6e 66 | 69 67 2e 62 41 64 6a 75 | BotConf|ig.bAdju|
|00002ee0| 73 74 53 6b 69 6c 6c 20 | 26 26 20 28 6b 69 6c 6c |stSkill |&& (kill|
|00002ef0| 65 72 2e 49 73 41 28 27 | 50 6c 61 79 65 72 50 61 |er.IsA('|PlayerPa|
|00002f00| 77 6e 27 29 20 7c 7c 20 | 4f 74 68 65 72 2e 49 73 |wn') || |Other.Is|
|00002f10| 41 28 27 50 6c 61 79 65 | 72 50 61 77 6e 27 29 29 |A('Playe|rPawn'))|
|00002f20| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 6b | )...{..|..if ( k|
|00002f30| 69 6c 6c 65 72 2e 49 73 | 41 28 27 42 6f 74 27 29 |iller.Is|A('Bot')|
|00002f40| 20 29 0d 0a 09 09 09 42 | 6f 74 28 6b 69 6c 6c 65 | ).....B|ot(kille|
|00002f50| 72 29 2e 41 64 6a 75 73 | 74 53 6b 69 6c 6c 28 74 |r).Adjus|tSkill(t|
|00002f60| 72 75 65 29 3b 0d 0a 09 | 09 69 66 20 28 20 4f 74 |rue);...|.if ( Ot|
|00002f70| 68 65 72 2e 49 73 41 28 | 27 42 6f 74 27 29 20 29 |her.IsA(|'Bot') )|
|00002f80| 0d 0a 09 09 09 42 6f 74 | 28 4f 74 68 65 72 29 2e |.....Bot|(Other).|
|00002f90| 41 64 6a 75 73 74 53 6b | 69 6c 6c 28 66 61 6c 73 |AdjustSk|ill(fals|
|00002fa0| 65 29 3b 0d 0a 09 7d 0d | 0a 09 09 0d 0a 09 69 66 |e);...}.|......if|
|00002fb0| 20 28 20 4f 74 68 65 72 | 2e 62 49 73 50 6c 61 79 | ( Other|.bIsPlay|
|00002fc0| 65 72 20 26 26 20 28 4b | 69 6c 6c 65 72 20 21 3d |er && (K|iller !=|
|00002fd0| 20 4e 6f 6e 65 29 20 26 | 26 20 4b 69 6c 6c 65 72 | None) &|& Killer|
|00002fe0| 2e 62 49 73 50 6c 61 79 | 65 72 20 26 26 20 28 4b |.bIsPlay|er && (K|
|00002ff0| 69 6c 6c 65 72 20 21 3d | 20 4f 74 68 65 72 29 20 |iller !=| Other) |
|00003000| 0d 0a 09 09 26 26 20 28 | 21 62 54 65 61 6d 47 61 |....&& (|!bTeamGa|
|00003010| 6d 65 20 7c 7c 20 28 4f | 74 68 65 72 2e 50 6c 61 |me || (O|ther.Pla|
|00003020| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003030| 66 6f 2e 54 65 61 6d 20 | 21 3d 20 4b 69 6c 6c 65 |fo.Team |!= Kille|
|00003040| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00003050| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 29 29 20 29 |ionInfo.|Team)) )|
|00003060| 0d 0a 09 7b 0d 0a 09 09 | 4b 69 6c 6c 65 72 2e 53 |...{....|Killer.S|
|00003070| 70 72 65 65 2b 2b 3b 0d | 0a 09 09 69 66 20 28 20 |pree++;.|...if ( |
|00003080| 4b 69 6c 6c 65 72 2e 53 | 70 72 65 65 20 3e 20 34 |Killer.S|pree > 4|
|00003090| 20 29 0d 0a 09 09 09 4e | 6f 74 69 66 79 53 70 72 | ).....N|otifySpr|
|000030a0| 65 65 28 4b 69 6c 6c 65 | 72 2c 20 4b 69 6c 6c 65 |ee(Kille|r, Kille|
|000030b0| 72 2e 53 70 72 65 65 29 | 3b 0d 0a 09 7d 20 0d 0a |r.Spree)|;...} ..|
|000030c0| 0d 0a 09 62 41 75 74 6f | 54 61 75 6e 74 20 3d 20 |...bAuto|Taunt = |
|000030d0| 28 28 54 6f 75 72 6e 61 | 6d 65 6e 74 50 6c 61 79 |((Tourna|mentPlay|
|000030e0| 65 72 28 4b 69 6c 6c 65 | 72 29 20 21 3d 20 4e 6f |er(Kille|r) != No|
|000030f0| 6e 65 29 20 26 26 20 54 | 6f 75 72 6e 61 6d 65 6e |ne) && T|ournamen|
|00003100| 74 50 6c 61 79 65 72 28 | 4b 69 6c 6c 65 72 29 2e |tPlayer(|Killer).|
|00003110| 62 41 75 74 6f 54 61 75 | 6e 74 29 3b 0d 0a 09 69 |bAutoTau|nt);...i|
|00003120| 66 20 28 20 28 28 42 6f | 74 28 4b 69 6c 6c 65 72 |f ( ((Bo|t(Killer|
|00003130| 29 20 21 3d 20 4e 6f 6e | 65 29 20 7c 7c 20 62 41 |) != Non|e) || bA|
|00003140| 75 74 6f 54 61 75 6e 74 | 29 0d 0a 09 09 26 26 20 |utoTaunt|)....&& |
|00003150| 28 4b 69 6c 6c 65 72 20 | 21 3d 20 4f 74 68 65 72 |(Killer |!= Other|
|00003160| 29 20 26 26 20 28 44 61 | 6d 61 67 65 54 79 70 65 |) && (Da|mageType|
|00003170| 20 21 3d 20 27 67 69 62 | 62 65 64 27 29 20 26 26 | != 'gib|bed') &&|
|00003180| 20 28 4b 69 6c 6c 65 72 | 2e 48 65 61 6c 74 68 20 | (Killer|.Health |
|00003190| 3e 20 30 29 0d 0a 09 09 | 26 26 20 28 4c 65 76 65 |> 0)....|&& (Leve|
|000031a0| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 2d 20 |l.TimeSe|conds - |
|000031b0| 4c 61 73 74 54 61 75 6e | 74 54 69 6d 65 20 3e 20 |LastTaun|tTime > |
|000031c0| 33 29 20 29 0d 0a 09 7b | 0d 0a 09 09 4c 61 73 74 |3) )...{|....Last|
|000031d0| 54 61 75 6e 74 54 69 6d | 65 20 3d 20 4c 65 76 65 |TauntTim|e = Leve|
|000031e0| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 3b 0d 0a |l.TimeSe|conds;..|
|000031f0| 09 09 4e 65 78 74 54 61 | 75 6e 74 20 3d 20 52 61 |..NextTa|unt = Ra|
|00003200| 6e 64 28 63 6c 61 73 73 | 3c 43 68 61 6c 6c 65 6e |nd(class|<Challen|
|00003210| 67 65 56 6f 69 63 65 50 | 61 63 6b 3e 28 4b 69 6c |geVoiceP|ack>(Kil|
|00003220| 6c 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ler.Play|erReplic|
|00003230| 61 74 69 6f 6e 49 6e 66 | 6f 2e 56 6f 69 63 65 54 |ationInf|o.VoiceT|
|00003240| 79 70 65 29 2e 44 65 66 | 61 75 6c 74 2e 4e 75 6d |ype).Def|ault.Num|
|00003250| 54 61 75 6e 74 73 29 3b | 0d 0a 09 09 66 6f 72 20 |Taunts);|....for |
|00003260| 28 20 69 3d 30 3b 20 69 | 3c 34 3b 20 69 2b 2b 20 |( i=0; i|<4; i++ |
|00003270| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |)....{..|...if ( |
|00003280| 4e 65 78 74 54 61 75 6e | 74 20 3d 3d 20 4c 61 73 |NextTaun|t == Las|
|00003290| 74 54 61 75 6e 74 5b 69 | 5d 20 29 0d 0a 09 09 09 |tTaunt[i|] ).....|
|000032a0| 09 4e 65 78 74 54 61 75 | 6e 74 20 3d 20 52 61 6e |.NextTau|nt = Ran|
|000032b0| 64 28 63 6c 61 73 73 3c | 43 68 61 6c 6c 65 6e 67 |d(class<|Challeng|
|000032c0| 65 56 6f 69 63 65 50 61 | 63 6b 3e 28 4b 69 6c 6c |eVoicePa|ck>(Kill|
|000032d0| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|000032e0| 74 69 6f 6e 49 6e 66 6f | 2e 56 6f 69 63 65 54 79 |tionInfo|.VoiceTy|
|000032f0| 70 65 29 2e 44 65 66 61 | 75 6c 74 2e 4e 75 6d 54 |pe).Defa|ult.NumT|
|00003300| 61 75 6e 74 73 29 3b 0d | 0a 09 09 09 69 66 20 28 |aunts);.|....if (|
|00003310| 20 69 20 3e 20 30 20 29 | 0d 0a 09 09 09 09 4c 61 | i > 0 )|......La|
|00003320| 73 74 54 61 75 6e 74 5b | 69 2d 31 5d 20 3d 20 4c |stTaunt[|i-1] = L|
|00003330| 61 73 74 54 61 75 6e 74 | 5b 69 5d 3b 0d 0a 09 09 |astTaunt|[i];....|
|00003340| 7d 09 0d 0a 09 09 4c 61 | 73 74 54 61 75 6e 74 5b |}.....La|stTaunt[|
|00003350| 33 5d 20 3d 20 4e 65 78 | 74 54 61 75 6e 74 3b 0d |3] = Nex|tTaunt;.|
|00003360| 0a 09 09 69 66 20 28 20 | 62 41 75 74 6f 54 61 75 |...if ( |bAutoTau|
|00003370| 6e 74 20 29 0d 0a 09 20 | 09 09 6b 69 6c 6c 65 72 |nt )... |..killer|
|00003380| 2e 53 65 6e 64 47 6c 6f | 62 61 6c 4d 65 73 73 61 |.SendGlo|balMessa|
|00003390| 67 65 28 4e 6f 6e 65 2c | 20 27 41 55 54 4f 54 41 |ge(None,| 'AUTOTA|
|000033a0| 55 4e 54 27 2c 20 4e 65 | 78 74 54 61 75 6e 74 2c |UNT', Ne|xtTaunt,|
|000033b0| 20 35 29 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 20 | 5);....|else... |
|000033c0| 09 09 6b 69 6c 6c 65 72 | 2e 53 65 6e 64 47 6c 6f |..killer|.SendGlo|
|000033d0| 62 61 6c 4d 65 73 73 61 | 67 65 28 4e 6f 6e 65 2c |balMessa|ge(None,|
|000033e0| 20 27 54 41 55 4e 54 27 | 2c 20 4e 65 78 74 54 61 | 'TAUNT'|, NextTa|
|000033f0| 75 6e 74 2c 20 35 29 3b | 0d 0a 09 7d 0d 0a 09 69 |unt, 5);|...}...i|
|00003400| 66 20 28 20 62 52 61 74 | 65 64 47 61 6d 65 20 29 |f ( bRat|edGame )|
|00003410| 0d 0a 09 09 52 61 74 65 | 56 73 28 4f 74 68 65 72 |....Rate|Vs(Other|
|00003420| 2c 20 4b 69 6c 6c 65 72 | 29 3b 0d 0a 7d 0d 0a 0d |, Killer|);..}...|
|00003430| 0a 65 76 65 6e 74 20 70 | 6c 61 79 65 72 70 61 77 |.event p|layerpaw|
|00003440| 6e 20 4c 6f 67 69 6e 0d | 0a 28 0d 0a 09 73 74 72 |n Login.|.(...str|
|00003450| 69 6e 67 20 50 6f 72 74 | 61 6c 2c 0d 0a 09 73 74 |ing Port|al,...st|
|00003460| 72 69 6e 67 20 4f 70 74 | 69 6f 6e 73 2c 0d 0a 09 |ring Opt|ions,...|
|00003470| 6f 75 74 20 73 74 72 69 | 6e 67 20 45 72 72 6f 72 |out stri|ng Error|
|00003480| 2c 0d 0a 09 63 6c 61 73 | 73 3c 70 6c 61 79 65 72 |,...clas|s<player|
|00003490| 70 61 77 6e 3e 20 53 70 | 61 77 6e 43 6c 61 73 73 |pawn> Sp|awnClass|
|000034a0| 0d 0a 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 70 |..)..{..|.local p|
|000034b0| 6c 61 79 65 72 70 61 77 | 6e 20 4e 65 77 50 6c 61 |layerpaw|n NewPla|
|000034c0| 79 65 72 3b 0d 0a 0d 0a | 09 69 66 20 28 20 28 4c |yer;....|.if ( (L|
|000034d0| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 21 3d 20 |evel.Net|Mode != |
|000034e0| 4e 4d 5f 53 74 61 6e 64 | 61 6c 6f 6e 65 29 20 26 |NM_Stand|alone) &|
|000034f0| 26 20 28 4e 75 6d 43 6f | 6d 6d 61 6e 64 65 72 73 |& (NumCo|mmanders|
|00003500| 20 3e 3d 20 4d 61 78 43 | 6f 6d 6d 61 6e 64 65 72 | >= MaxC|ommander|
|00003510| 73 29 20 26 26 20 43 6c | 61 73 73 49 73 43 68 69 |s) && Cl|assIsChi|
|00003520| 6c 64 4f 66 28 53 70 61 | 77 6e 43 6c 61 73 73 2c |ldOf(Spa|wnClass,|
|00003530| 20 63 6c 61 73 73 27 43 | 6f 6d 6d 61 6e 64 65 72 | class'C|ommander|
|00003540| 27 29 20 29 0d 0a 09 7b | 0d 0a 09 09 45 72 72 6f |') )...{|....Erro|
|00003550| 72 3d 22 4d 61 78 20 63 | 6f 6d 6d 61 6e 64 65 72 |r="Max c|ommander|
|00003560| 73 20 22 24 4d 61 78 43 | 6f 6d 6d 61 6e 64 65 72 |s "$MaxC|ommander|
|00003570| 73 24 22 20 65 78 63 65 | 65 64 65 64 22 3b 0d 0a |s$" exce|eded";..|
|00003580| 09 09 72 65 74 75 72 6e | 20 4e 6f 6e 65 3b 0d 0a |..return| None;..|
|00003590| 09 7d 0d 0a 0d 0a 09 4e | 65 77 50 6c 61 79 65 72 |.}.....N|ewPlayer|
|000035a0| 20 3d 20 53 75 70 65 72 | 2e 4c 6f 67 69 6e 28 50 | = Super|.Login(P|
|000035b0| 6f 72 74 61 6c 2c 20 4f | 70 74 69 6f 6e 73 2c 20 |ortal, O|ptions, |
|000035c0| 45 72 72 6f 72 2c 20 53 | 70 61 77 6e 43 6c 61 73 |Error, S|pawnClas|
|000035d0| 73 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4e 65 77 |s);.....|if ( New|
|000035e0| 50 6c 61 79 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |Player !|= None )|
|000035f0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 62 52 61 |...{....|if ( bRa|
|00003600| 74 65 64 47 61 6d 65 20 | 29 0d 0a 09 09 09 4e 65 |tedGame |).....Ne|
|00003610| 77 50 6c 61 79 65 72 2e | 41 69 72 43 6f 6e 74 72 |wPlayer.|AirContr|
|00003620| 6f 6c 20 3d 20 30 2e 33 | 35 3b 0d 0a 09 09 65 6c |ol = 0.3|5;....el|
|00003630| 73 65 0d 0a 09 09 09 4e | 65 77 50 6c 61 79 65 72 |se.....N|ewPlayer|
|00003640| 2e 41 69 72 43 6f 6e 74 | 72 6f 6c 20 3d 20 41 69 |.AirCont|rol = Ai|
|00003650| 72 43 6f 6e 74 72 6f 6c | 3b 0d 0a 09 09 69 66 20 |rControl|;....if |
|00003660| 28 20 4c 65 66 74 28 4e | 65 77 50 6c 61 79 65 72 |( Left(N|ewPlayer|
|00003670| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00003680| 6f 6e 49 6e 66 6f 2e 50 | 6c 61 79 65 72 4e 61 6d |onInfo.P|layerNam|
|00003690| 65 2c 20 36 29 20 3d 3d | 20 44 65 66 61 75 6c 74 |e, 6) ==| Default|
|000036a0| 50 6c 61 79 65 72 4e 61 | 6d 65 20 29 0d 0a 09 09 |PlayerNa|me )....|
|000036b0| 09 43 68 61 6e 67 65 4e | 61 6d 65 28 20 4e 65 77 |.ChangeN|ame( New|
|000036c0| 50 6c 61 79 65 72 2c 20 | 28 44 65 66 61 75 6c 74 |Player, |(Default|
|000036d0| 50 6c 61 79 65 72 4e 61 | 6d 65 24 4e 75 6d 50 6c |PlayerNa|me$NumPl|
|000036e0| 61 79 65 72 73 29 2c 20 | 66 61 6c 73 65 20 29 3b |ayers), |false );|
|000036f0| 0d 0a 09 09 4e 65 77 50 | 6c 61 79 65 72 2e 62 41 |....NewP|layer.bA|
|00003700| 75 74 6f 41 63 74 69 76 | 61 74 65 20 3d 20 74 72 |utoActiv|ate = tr|
|00003710| 75 65 3b 0d 0a 09 09 69 | 66 20 28 20 28 62 47 61 |ue;....i|f ( (bGa|
|00003720| 6d 65 45 6e 64 65 64 20 | 7c 7c 20 28 62 52 65 71 |meEnded ||| (bReq|
|00003730| 75 69 72 65 52 65 61 64 | 79 20 26 26 20 28 43 6f |uireRead|y && (Co|
|00003740| 75 6e 74 44 6f 77 6e 20 | 3e 20 30 29 29 29 20 26 |untDown |> 0))) &|
|00003750| 26 20 21 4e 65 77 50 6c | 61 79 65 72 2e 49 73 41 |& !NewPl|ayer.IsA|
|00003760| 28 27 53 70 65 63 74 61 | 74 6f 72 27 29 20 29 0d |('Specta|tor') ).|
|00003770| 0a 09 09 09 4e 65 77 50 | 6c 61 79 65 72 2e 50 6c |....NewP|layer.Pl|
|00003780| 61 79 65 72 52 65 73 74 | 61 72 74 53 74 61 74 65 |ayerRest|artState|
|00003790| 20 3d 20 27 50 6c 61 79 | 65 72 57 61 69 74 69 6e | = 'Play|erWaitin|
|000037a0| 67 27 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |g';....e|lse.....|
|000037b0| 4e 65 77 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |NewPlaye|r.Player|
|000037c0| 52 65 73 74 61 72 74 53 | 74 61 74 65 20 3d 20 4e |RestartS|tate = N|
|000037d0| 65 77 50 6c 61 79 65 72 | 2e 44 65 66 61 75 6c 74 |ewPlayer|.Default|
|000037e0| 2e 50 6c 61 79 65 72 52 | 65 73 74 61 72 74 53 74 |.PlayerR|estartSt|
|000037f0| 61 74 65 3b 0d 0a 0d 0a | 09 09 69 66 20 28 20 4e |ate;....|..if ( N|
|00003800| 65 77 50 6c 61 79 65 72 | 2e 49 73 41 28 27 54 6f |ewPlayer|.IsA('To|
|00003810| 75 72 6e 61 6d 65 6e 74 | 50 6c 61 79 65 72 27 29 |urnament|Player')|
|00003820| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 54 6f 75 72 | )....{.|....Tour|
|00003830| 6e 61 6d 65 6e 74 50 6c | 61 79 65 72 28 4e 65 77 |namentPl|ayer(New|
|00003840| 50 6c 61 79 65 72 29 2e | 53 74 61 72 74 53 70 6f |Player).|StartSpo|
|00003850| 74 20 3d 20 4c 61 73 74 | 53 74 61 72 74 53 70 6f |t = Last|StartSpo|
|00003860| 74 3b 0d 0a 09 09 09 69 | 66 20 28 20 4e 65 77 50 |t;.....i|f ( NewP|
|00003870| 6c 61 79 65 72 2e 49 73 | 41 28 27 43 6f 6d 6d 61 |layer.Is|A('Comma|
|00003880| 6e 64 65 72 27 29 20 29 | 0d 0a 09 09 09 09 4e 75 |nder') )|......Nu|
|00003890| 6d 43 6f 6d 6d 61 6e 64 | 65 72 73 2b 2b 3b 0d 0a |mCommand|ers++;..|
|000038a0| 09 09 7d 0d 0a 09 7d 0d | 0a 09 72 65 74 75 72 6e |..}...}.|..return|
|000038b0| 20 4e 65 77 50 6c 61 79 | 65 72 3b 0d 0a 7d 0d 0a | NewPlay|er;..}..|
|000038c0| 0d 0a 65 76 65 6e 74 20 | 50 6f 73 74 4c 6f 67 69 |..event |PostLogi|
|000038d0| 6e 28 20 70 6c 61 79 65 | 72 70 61 77 6e 20 4e 65 |n( playe|rpawn Ne|
|000038e0| 77 50 6c 61 79 65 72 20 | 29 0d 0a 7b 0d 0a 09 53 |wPlayer |)..{...S|
|000038f0| 75 70 65 72 2e 50 6f 73 | 74 4c 6f 67 69 6e 28 4e |uper.Pos|tLogin(N|
|00003900| 65 77 50 6c 61 79 65 72 | 29 3b 0d 0a 09 69 66 20 |ewPlayer|);...if |
|00003910| 28 20 4c 65 76 65 6c 2e | 4e 65 74 4d 6f 64 65 20 |( Level.|NetMode |
|00003920| 3d 3d 20 4e 4d 5f 53 74 | 61 6e 64 61 6c 6f 6e 65 |== NM_St|andalone|
|00003930| 20 29 0d 0a 09 7b 0d 0a | 09 09 77 68 69 6c 65 20 | )...{..|..while |
|00003940| 28 20 28 52 65 6d 61 69 | 6e 69 6e 67 42 6f 74 73 |( (Remai|ningBots|
|00003950| 20 3e 20 30 29 20 26 26 | 20 41 64 64 42 6f 74 28 | > 0) &&| AddBot(|
|00003960| 29 20 29 0d 0a 09 09 09 | 52 65 6d 61 69 6e 69 6e |) ).....|Remainin|
|00003970| 67 42 6f 74 73 2d 2d 3b | 0d 0a 09 7d 0d 0a 09 65 |gBots--;|...}...e|
|00003980| 6c 73 65 0d 0a 09 09 52 | 65 6d 61 69 6e 69 6e 67 |lse....R|emaining|
|00003990| 42 6f 74 73 20 3d 20 30 | 3b 0d 0a 0d 0a 09 69 66 |Bots = 0|;.....if|
|000039a0| 20 28 20 21 62 52 61 74 | 65 64 47 61 6d 65 20 29 | ( !bRat|edGame )|
|000039b0| 0d 0a 09 7b 0d 0a 09 09 | 50 6c 61 79 53 74 61 72 |...{....|PlayStar|
|000039c0| 74 55 70 4d 65 73 73 61 | 67 65 28 4e 65 77 50 6c |tUpMessa|ge(NewPl|
|000039d0| 61 79 65 72 29 3b 0d 0a | 09 09 4e 65 77 50 6c 61 |ayer);..|..NewPla|
|000039e0| 79 65 72 2e 53 65 74 50 | 72 6f 67 72 65 73 73 54 |yer.SetP|rogressT|
|000039f0| 69 6d 65 28 36 29 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |ime(6);.|..}..}..|
|00003a00| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 69 6e 74 20 52 |..functi|on int R|
|00003a10| 65 64 75 63 65 44 61 6d | 61 67 65 28 69 6e 74 20 |educeDam|age(int |
|00003a20| 44 61 6d 61 67 65 2c 20 | 6e 61 6d 65 20 44 61 6d |Damage, |name Dam|
|00003a30| 61 67 65 54 79 70 65 2c | 20 70 61 77 6e 20 69 6e |ageType,| pawn in|
|00003a40| 6a 75 72 65 64 2c 20 70 | 61 77 6e 20 69 6e 73 74 |jured, p|awn inst|
|00003a50| 69 67 61 74 65 64 42 79 | 29 0d 0a 7b 0d 0a 09 69 |igatedBy|)..{...i|
|00003a60| 66 20 28 69 6e 6a 75 72 | 65 64 2e 52 65 67 69 6f |f (injur|ed.Regio|
|00003a70| 6e 2e 5a 6f 6e 65 2e 62 | 4e 65 75 74 72 61 6c 5a |n.Zone.b|NeutralZ|
|00003a80| 6f 6e 65 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 30 |one)....|return 0|
|00003a90| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 69 6e 73 74 69 |;.....if| ( insti|
|00003aa0| 67 61 74 65 64 42 79 20 | 3d 3d 20 4e 6f 6e 65 29 |gatedBy |== None)|
|00003ab0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 44 61 6d 61 67 |....retu|rn Damag|
|00003ac0| 65 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 62 48 61 72 |e;.....i|f ( bHar|
|00003ad0| 64 43 6f 72 65 4d 6f 64 | 65 20 29 0d 0a 09 09 44 |dCoreMod|e )....D|
|00003ae0| 61 6d 61 67 65 20 2a 3d | 20 31 2e 35 3b 0d 0a 09 |amage *=| 1.5;...|
|00003af0| 69 66 20 28 20 62 4e 6f | 76 69 63 65 4d 6f 64 65 |if ( bNo|viceMode|
|00003b00| 20 26 26 20 21 62 54 68 | 72 65 65 50 6c 75 73 20 | && !bTh|reePlus |
|00003b10| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 69 6e |)...{...|.if ( in|
|00003b20| 73 74 69 67 61 74 65 64 | 42 79 2e 62 49 73 50 6c |stigated|By.bIsPl|
|00003b30| 61 79 65 72 20 26 26 20 | 28 69 6e 6a 75 72 65 64 |ayer && |(injured|
|00003b40| 20 3d 3d 20 69 6e 73 74 | 69 67 61 74 65 64 62 79 | == inst|igatedby|
|00003b50| 29 20 26 26 20 28 4c 65 | 76 65 6c 2e 4e 65 74 4d |) && (Le|vel.NetM|
|00003b60| 6f 64 65 20 3d 3d 20 4e | 4d 5f 53 74 61 6e 64 61 |ode == N|M_Standa|
|00003b70| 6c 6f 6e 65 29 20 29 0d | 0a 09 09 09 44 61 6d 61 |lone) ).|....Dama|
|00003b80| 67 65 20 2a 3d 20 30 2e | 35 3b 0d 0a 0d 0a 09 09 |ge *= 0.|5;......|
|00003b90| 2f 2f 73 6b 69 6c 6c 20 | 6c 65 76 65 6c 20 6d 6f |//skill |level mo|
|00003ba0| 64 69 66 69 63 61 74 69 | 6f 6e 0d 0a 09 09 69 66 |dificati|on....if|
|00003bb0| 20 28 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 2e | ( insti|gatedBy.|
|00003bc0| 49 73 41 28 27 42 6f 74 | 27 29 20 26 26 20 69 6e |IsA('Bot|') && in|
|00003bd0| 6a 75 72 65 64 2e 49 73 | 41 28 27 50 6c 61 79 65 |jured.Is|A('Playe|
|00003be0| 72 50 61 77 6e 27 29 20 | 29 0d 0a 09 09 7b 0d 0a |rPawn') |)....{..|
|00003bf0| 09 09 09 69 66 20 28 20 | 28 28 69 6e 73 74 69 67 |...if ( |((instig|
|00003c00| 61 74 65 64 42 79 2e 57 | 65 61 70 6f 6e 20 21 3d |atedBy.W|eapon !=|
|00003c10| 20 4e 6f 6e 65 29 20 26 | 26 20 69 6e 73 74 69 67 | None) &|& instig|
|00003c20| 61 74 65 64 42 79 2e 57 | 65 61 70 6f 6e 2e 62 4d |atedBy.W|eapon.bM|
|00003c30| 65 6c 65 65 57 65 61 70 | 6f 6e 29 20 0d 0a 09 09 |eleeWeap|on) ....|
|00003c40| 09 09 7c 7c 20 28 28 69 | 6e 6a 75 72 65 64 2e 57 |..|| ((i|njured.W|
|00003c50| 65 61 70 6f 6e 20 21 3d | 20 4e 6f 6e 65 29 20 26 |eapon !=| None) &|
|00003c60| 26 20 69 6e 6a 75 72 65 | 64 2e 57 65 61 70 6f 6e |& injure|d.Weapon|
|00003c70| 2e 62 4d 65 6c 65 65 57 | 65 61 70 6f 6e 20 26 26 |.bMeleeW|eapon &&|
|00003c80| 20 28 56 53 69 7a 65 28 | 69 6e 6a 75 72 65 64 2e | (VSize(|injured.|
|00003c90| 6c 6f 63 61 74 69 6f 6e | 20 2d 20 69 6e 73 74 69 |location| - insti|
|00003ca0| 67 61 74 65 64 42 79 2e | 4c 6f 63 61 74 69 6f 6e |gatedBy.|Location|
|00003cb0| 29 20 3c 20 36 30 30 29 | 29 20 29 0d 0a 09 09 09 |) < 600)|) ).....|
|00003cc0| 09 44 61 6d 61 67 65 20 | 3d 20 44 61 6d 61 67 65 |.Damage |= Damage|
|00003cd0| 20 2a 20 28 30 2e 37 36 | 20 2b 20 30 2e 30 38 20 | * (0.76| + 0.08 |
|00003ce0| 2a 20 69 6e 73 74 69 67 | 61 74 65 64 42 79 2e 73 |* instig|atedBy.s|
|00003cf0| 6b 69 6c 6c 29 3b 0d 0a | 09 09 09 65 6c 73 65 0d |kill);..|...else.|
|00003d00| 0a 09 09 09 09 44 61 6d | 61 67 65 20 3d 20 44 61 |.....Dam|age = Da|
|00003d10| 6d 61 67 65 20 2a 20 28 | 30 2e 32 35 20 2b 20 30 |mage * (|0.25 + 0|
|00003d20| 2e 31 35 20 2a 20 69 6e | 73 74 69 67 61 74 65 64 |.15 * in|stigated|
|00003d30| 42 79 2e 73 6b 69 6c 6c | 29 3b 0d 0a 09 09 7d 0d |By.skill|);....}.|
|00003d40| 0a 09 7d 0d 0a 09 72 65 | 74 75 72 6e 20 28 44 61 |..}...re|turn (Da|
|00003d50| 6d 61 67 65 20 2a 20 69 | 6e 73 74 69 67 61 74 65 |mage * i|nstigate|
|00003d60| 64 42 79 2e 44 61 6d 61 | 67 65 53 63 61 6c 69 6e |dBy.Dama|geScalin|
|00003d70| 67 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |g);..}..|..functi|
|00003d80| 6f 6e 20 53 74 61 72 74 | 4d 61 74 63 68 28 29 0d |on Start|Match().|
|00003d90| 0a 7b 09 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |.{....lo|cal Pawn|
|00003da0| 20 50 3b 0d 0a 09 6c 6f | 63 61 6c 20 54 69 6d 65 | P;...lo|cal Time|
|00003db0| 64 54 72 69 67 67 65 72 | 20 54 3b 0d 0a 0d 0a 09 |dTrigger| T;.....|
|00003dc0| 69 66 20 28 4c 6f 63 61 | 6c 4c 6f 67 20 21 3d 20 |if (Loca|lLog != |
|00003dd0| 4e 6f 6e 65 29 0d 0a 09 | 09 4c 6f 63 61 6c 4c 6f |None)...|.LocalLo|
|00003de0| 67 2e 4c 6f 67 47 61 6d | 65 53 74 61 72 74 28 29 |g.LogGam|eStart()|
|00003df0| 3b 0d 0a 09 69 66 20 28 | 57 6f 72 6c 64 4c 6f 67 |;...if (|WorldLog|
|00003e00| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 57 6f 72 | != None|)....Wor|
|00003e10| 6c 64 4c 6f 67 2e 4c 6f | 67 47 61 6d 65 53 74 61 |ldLog.Lo|gGameSta|
|00003e20| 72 74 28 29 3b 0d 0a 0d | 0a 09 46 6f 72 45 61 63 |rt();...|..ForEac|
|00003e30| 68 20 41 6c 6c 41 63 74 | 6f 72 73 28 63 6c 61 73 |h AllAct|ors(clas|
|00003e40| 73 27 54 69 6d 65 64 54 | 72 69 67 67 65 72 27 2c |s'TimedT|rigger',|
|00003e50| 20 54 29 0d 0a 09 09 54 | 2e 53 65 74 54 69 6d 65 | T)....T|.SetTime|
|00003e60| 72 28 54 2e 44 65 6c 61 | 79 53 65 63 6f 6e 64 73 |r(T.Dela|ySeconds|
|00003e70| 2c 20 54 2e 62 52 65 70 | 65 61 74 69 6e 67 29 3b |, T.bRep|eating);|
|00003e80| 0d 0a 09 69 66 20 28 20 | 4c 65 76 65 6c 2e 4e 65 |...if ( |Level.Ne|
|00003e90| 74 4d 6f 64 65 20 21 3d | 20 4e 4d 5f 53 74 61 6e |tMode !=| NM_Stan|
|00003ea0| 64 61 6c 6f 6e 65 20 29 | 0d 0a 09 09 52 65 6d 61 |dalone )|....Rema|
|00003eb0| 69 6e 69 6e 67 42 6f 74 | 73 20 3d 20 30 3b 0d 0a |iningBot|s = 0;..|
|00003ec0| 09 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |.GameRep|lication|
|00003ed0| 49 6e 66 6f 2e 52 65 6d | 61 69 6e 69 6e 67 4d 69 |Info.Rem|ainingMi|
|00003ee0| 6e 75 74 65 20 3d 20 52 | 65 6d 61 69 6e 69 6e 67 |nute = R|emaining|
|00003ef0| 54 69 6d 65 3b 0d 0a 09 | 62 53 74 61 72 74 4d 61 |Time;...|bStartMa|
|00003f00| 74 63 68 20 3d 20 74 72 | 75 65 3b 0d 0a 0d 0a 09 |tch = tr|ue;.....|
|00003f10| 2f 2f 20 73 74 61 72 74 | 20 70 6c 61 79 65 72 73 |// start| players|
|00003f20| 20 66 69 72 73 74 20 28 | 69 6e 20 74 68 65 69 72 | first (|in their|
|00003f30| 20 63 75 72 72 65 6e 74 | 20 73 74 61 72 74 73 70 | current| startsp|
|00003f40| 6f 74 73 29 0d 0a 09 66 | 6f 72 20 28 20 50 20 3d |ots)...f|or ( P =|
|00003f50| 20 4c 65 76 65 6c 2e 50 | 61 77 6e 4c 69 73 74 3b | Level.P|awnList;|
|00003f60| 20 50 21 3d 4e 6f 6e 65 | 3b 20 50 3d 50 2e 6e 65 | P!=None|; P=P.ne|
|00003f70| 78 74 50 61 77 6e 20 29 | 0d 0a 09 09 69 66 20 28 |xtPawn )|....if (|
|00003f80| 20 50 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 | P.bIsPl|ayer && |
|00003f90| 50 2e 49 73 41 28 27 50 | 6c 61 79 65 72 50 61 77 |P.IsA('P|layerPaw|
|00003fa0| 6e 27 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |n') )...|.{.....i|
|00003fb0| 66 20 28 20 62 47 61 6d | 65 45 6e 64 65 64 20 29 |f ( bGam|eEnded )|
|00003fc0| 20 72 65 74 75 72 6e 3b | 20 2f 2f 20 74 65 6c 65 | return;| // tele|
|00003fd0| 66 72 61 67 20 65 6e 64 | 65 64 20 74 68 65 20 67 |frag end|ed the g|
|00003fe0| 61 6d 65 20 77 69 74 68 | 20 72 69 64 69 63 75 6c |ame with| ridicul|
|00003ff0| 6f 75 73 20 66 72 61 67 | 20 6c 69 6d 69 74 0d 0a |ous frag| limit..|
|00004000| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 21 50 2e |...else |if ( !P.|
|00004010| 49 73 41 28 27 53 70 65 | 63 74 61 74 6f 72 27 29 |IsA('Spe|ctator')|
|00004020| 20 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 50 | ).....|{......P|
|00004030| 2e 50 6c 61 79 65 72 52 | 65 73 74 61 72 74 53 74 |.PlayerR|estartSt|
|00004040| 61 74 65 20 3d 20 50 2e | 44 65 66 61 75 6c 74 2e |ate = P.|Default.|
|00004050| 50 6c 61 79 65 72 52 65 | 73 74 61 72 74 53 74 61 |PlayerRe|startSta|
|00004060| 74 65 3b 0d 0a 09 09 09 | 09 50 2e 47 6f 74 6f 53 |te;.....|.P.GotoS|
|00004070| 74 61 74 65 28 50 2e 44 | 65 66 61 75 6c 74 2e 50 |tate(P.D|efault.P|
|00004080| 6c 61 79 65 72 52 65 73 | 74 61 72 74 53 74 61 74 |layerRes|tartStat|
|00004090| 65 29 3b 0d 0a 09 09 09 | 09 69 66 20 28 20 21 50 |e);.....|.if ( !P|
|000040a0| 2e 49 73 41 28 27 43 6f | 6d 6d 61 6e 64 65 72 27 |.IsA('Co|mmander'|
|000040b0| 29 20 29 0d 0a 09 09 09 | 09 09 52 65 73 74 61 72 |) ).....|..Restar|
|000040c0| 74 50 6c 61 79 65 72 28 | 50 29 3b 0d 0a 09 09 09 |tPlayer(|P);.....|
|000040d0| 7d 0d 0a 09 09 09 53 65 | 6e 64 53 74 61 72 74 4d |}.....Se|ndStartM|
|000040e0| 65 73 73 61 67 65 28 50 | 6c 61 79 65 72 50 61 77 |essage(P|layerPaw|
|000040f0| 6e 28 50 29 29 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 0d |n(P));..|..}.....|
|00004100| 0a 09 66 6f 72 20 28 20 | 50 20 3d 20 4c 65 76 65 |..for ( |P = Leve|
|00004110| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00004120| 6f 6e 65 3b 20 50 3d 50 | 2e 6e 65 78 74 50 61 77 |one; P=P|.nextPaw|
|00004130| 6e 20 29 0d 0a 09 09 69 | 66 20 28 20 50 2e 62 49 |n )....i|f ( P.bI|
|00004140| 73 50 6c 61 79 65 72 20 | 26 26 20 21 50 2e 49 73 |sPlayer |&& !P.Is|
|00004150| 41 28 27 50 6c 61 79 65 | 72 50 61 77 6e 27 29 20 |A('Playe|rPawn') |
|00004160| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 50 2e 52 65 73 |)....{..|...P.Res|
|00004170| 74 61 72 74 50 6c 61 79 | 65 72 28 29 3b 0d 0a 09 |tartPlay|er();...|
|00004180| 09 09 69 66 20 28 20 50 | 2e 49 73 41 28 27 42 6f |..if ( P|.IsA('Bo|
|00004190| 74 27 29 20 29 0d 0a 09 | 09 09 09 42 6f 74 28 50 |t') )...|...Bot(P|
|000041a0| 29 2e 53 74 61 72 74 4d | 61 74 63 68 28 29 3b 0d |).StartM|atch();.|
|000041b0| 0a 09 09 7d 0d 0a 09 62 | 53 74 61 72 74 4d 61 74 |...}...b|StartMat|
|000041c0| 63 68 20 3d 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |ch = fal|se;..}..|
|000041d0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 54 69 6d |....func|tion Tim|
|000041e0| 65 72 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |er()..{.|..local |
|000041f0| 50 61 77 6e 20 50 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Pawn P;.|..local |
|00004200| 62 6f 6f 6c 20 62 52 65 | 61 64 79 3b 0d 0a 09 6c |bool bRe|ady;...l|
|00004210| 6f 63 61 6c 20 69 6e 74 | 20 4d 3b 0d 0a 0d 0a 09 |ocal int| M;.....|
|00004220| 53 75 70 65 72 2e 54 69 | 6d 65 72 28 29 3b 0d 0a |Super.Ti|mer();..|
|00004230| 0d 0a 09 69 66 20 28 20 | 62 4e 65 74 52 65 61 64 |...if ( |bNetRead|
|00004240| 79 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |y )...{.|...if ( |
|00004250| 4e 75 6d 50 6c 61 79 65 | 72 73 20 3e 20 30 20 29 |NumPlaye|rs > 0 )|
|00004260| 0d 0a 09 09 09 45 6c 61 | 70 73 65 64 54 69 6d 65 |.....Ela|psedTime|
|00004270| 2b 2b 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |++;....e|lse.....|
|00004280| 45 6c 61 70 73 65 64 54 | 69 6d 65 20 3d 20 30 3b |ElapsedT|ime = 0;|
|00004290| 0d 0a 09 09 69 66 20 28 | 20 45 6c 61 70 73 65 64 |....if (| Elapsed|
|000042a0| 54 69 6d 65 20 3e 20 4e | 65 74 57 61 69 74 20 29 |Time > N|etWait )|
|000042b0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 69 66 20 28 20 28 |....{...|..if ( (|
|000042c0| 4e 75 6d 50 6c 61 79 65 | 72 73 20 2b 20 4e 75 6d |NumPlaye|rs + Num|
|000042d0| 42 6f 74 73 20 3c 20 34 | 29 20 26 26 20 4e 65 65 |Bots < 4|) && Nee|
|000042e0| 64 50 6c 61 79 65 72 73 | 28 29 20 29 0d 0a 09 09 |dPlayers|() )....|
|000042f0| 09 09 41 64 64 42 6f 74 | 28 29 3b 0d 0a 09 09 09 |..AddBot|();.....|
|00004300| 65 6c 73 65 20 69 66 20 | 28 20 4e 75 6d 50 6c 61 |else if |( NumPla|
|00004310| 79 65 72 73 20 2b 20 4e | 75 6d 42 6f 74 73 20 3e |yers + N|umBots >|
|00004320| 20 31 20 29 0d 0a 09 09 | 09 09 62 4e 65 74 52 65 | 1 )....|..bNetRe|
|00004330| 61 64 79 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |ady = fa|lse;....|
|00004340| 7d 0d 0a 0d 0a 09 09 69 | 66 20 28 20 62 4e 65 74 |}......i|f ( bNet|
|00004350| 52 65 61 64 79 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |Ready ).|...{....|
|00004360| 09 66 6f 72 20 28 50 3d | 4c 65 76 65 6c 2e 50 61 |.for (P=|Level.Pa|
|00004370| 77 6e 4c 69 73 74 3b 20 | 50 21 3d 4e 6f 6e 65 3b |wnList; |P!=None;|
|00004380| 20 50 3d 50 2e 4e 65 78 | 74 50 61 77 6e 20 29 0d | P=P.Nex|tPawn ).|
|00004390| 0a 09 09 09 09 69 66 20 | 28 20 50 2e 49 73 41 28 |.....if |( P.IsA(|
|000043a0| 27 50 6c 61 79 65 72 50 | 61 77 6e 27 29 20 29 0d |'PlayerP|awn') ).|
|000043b0| 0a 09 09 09 09 09 50 6c | 61 79 65 72 50 61 77 6e |......Pl|ayerPawn|
|000043c0| 28 50 29 2e 53 65 74 50 | 72 6f 67 72 65 73 73 54 |(P).SetP|rogressT|
|000043d0| 69 6d 65 28 32 29 3b 0d | 0a 09 09 09 72 65 74 75 |ime(2);.|....retu|
|000043e0| 72 6e 3b 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |rn;....}|....else|
|000043f0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 77 68 69 6c 65 20 |....{...|..while |
|00004400| 28 20 4e 65 65 64 50 6c | 61 79 65 72 73 28 29 20 |( NeedPl|ayers() |
|00004410| 29 0d 0a 09 09 09 09 41 | 64 64 42 6f 74 28 29 3b |)......A|ddBot();|
|00004420| 0d 0a 09 09 09 62 52 65 | 71 75 69 72 65 52 65 61 |.....bRe|quireRea|
|00004430| 64 79 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 09 09 |dy = fal|se;.....|
|00004440| 53 74 61 72 74 4d 61 74 | 63 68 28 29 3b 0d 0a 09 |StartMat|ch();...|
|00004450| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 20 |.}...}..|...if ( |
|00004460| 62 52 65 71 75 69 72 65 | 52 65 61 64 79 20 26 26 |bRequire|Ready &&|
|00004470| 20 28 43 6f 75 6e 74 44 | 6f 77 6e 20 3e 20 30 29 | (CountD|own > 0)|
|00004480| 20 29 0d 0a 09 7b 0d 0a | 09 09 77 68 69 6c 65 20 | )...{..|..while |
|00004490| 28 20 28 52 65 6d 61 69 | 6e 69 6e 67 42 6f 74 73 |( (Remai|ningBots|
|000044a0| 20 3e 20 30 29 20 26 26 | 20 41 64 64 42 6f 74 28 | > 0) &&| AddBot(|
|000044b0| 29 20 29 0d 0a 09 09 09 | 52 65 6d 61 69 6e 69 6e |) ).....|Remainin|
|000044c0| 67 42 6f 74 73 2d 2d 3b | 0d 0a 09 09 66 6f 72 20 |gBots--;|....for |
|000044d0| 28 50 3d 4c 65 76 65 6c | 2e 50 61 77 6e 4c 69 73 |(P=Level|.PawnLis|
|000044e0| 74 3b 20 50 21 3d 4e 6f | 6e 65 3b 20 50 3d 50 2e |t; P!=No|ne; P=P.|
|000044f0| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 09 69 |NextPawn| ).....i|
|00004500| 66 20 28 20 50 2e 49 73 | 41 28 27 50 6c 61 79 65 |f ( P.Is|A('Playe|
|00004510| 72 50 61 77 6e 27 29 20 | 29 0d 0a 09 09 09 09 50 |rPawn') |)......P|
|00004520| 6c 61 79 65 72 50 61 77 | 6e 28 50 29 2e 53 65 74 |layerPaw|n(P).Set|
|00004530| 50 72 6f 67 72 65 73 73 | 54 69 6d 65 28 32 29 3b |Progress|Time(2);|
|00004540| 0d 0a 09 09 69 66 20 28 | 20 28 28 4e 75 6d 50 6c |....if (| ((NumPl|
|00004550| 61 79 65 72 73 20 3d 3d | 20 4d 61 78 50 6c 61 79 |ayers ==| MaxPlay|
|00004560| 65 72 73 29 20 7c 7c 20 | 28 4c 65 76 65 6c 2e 4e |ers) || |(Level.N|
|00004570| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 53 74 61 |etMode =|= NM_Sta|
|00004580| 6e 64 61 6c 6f 6e 65 29 | 29 20 0d 0a 09 09 09 09 |ndalone)|) ......|
|00004590| 26 26 20 28 52 65 6d 61 | 69 6e 69 6e 67 42 6f 74 |&& (Rema|iningBot|
|000045a0| 73 20 3c 3d 20 30 29 20 | 29 0d 0a 09 09 7b 09 0d |s <= 0) |)....{..|
|000045b0| 0a 09 09 09 62 52 65 61 | 64 79 20 3d 20 74 72 75 |....bRea|dy = tru|
|000045c0| 65 3b 0d 0a 09 09 09 66 | 6f 72 20 28 50 3d 4c 65 |e;.....f|or (P=Le|
|000045d0| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|000045e0| 3d 4e 6f 6e 65 3b 20 50 | 3d 50 2e 4e 65 78 74 50 |=None; P|=P.NextP|
|000045f0| 61 77 6e 20 29 0d 0a 09 | 09 09 09 69 66 20 28 20 |awn )...|...if ( |
|00004600| 50 2e 49 73 41 28 27 50 | 6c 61 79 65 72 50 61 77 |P.IsA('P|layerPaw|
|00004610| 6e 27 29 20 26 26 20 21 | 50 2e 49 73 41 28 27 53 |n') && !|P.IsA('S|
|00004620| 70 65 63 74 61 74 6f 72 | 27 29 0d 0a 09 09 09 09 |pectator|')......|
|00004630| 09 26 26 20 21 50 6c 61 | 79 65 72 50 61 77 6e 28 |.&& !Pla|yerPawn(|
|00004640| 50 29 2e 62 52 65 61 64 | 79 54 6f 50 6c 61 79 20 |P).bRead|yToPlay |
|00004650| 29 0d 0a 09 09 09 09 09 | 62 52 65 61 64 79 20 3d |).......|bReady =|
|00004660| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 0d 0a 09 09 | false;.|........|
|00004670| 09 69 66 20 28 20 62 52 | 65 61 64 79 20 29 0d 0a |.if ( bR|eady )..|
|00004680| 09 09 09 7b 09 0d 0a 09 | 09 09 09 53 74 61 72 74 |...{....|...Start|
|00004690| 43 6f 75 6e 74 20 3d 20 | 33 30 3b 0d 0a 09 09 09 |Count = |30;.....|
|000046a0| 09 43 6f 75 6e 74 44 6f | 77 6e 2d 2d 3b 0d 0a 09 |.CountDo|wn--;...|
|000046b0| 09 09 09 69 66 20 28 20 | 43 6f 75 6e 74 44 6f 77 |...if ( |CountDow|
|000046c0| 6e 20 3c 3d 20 30 20 29 | 0d 0a 09 09 09 09 09 53 |n <= 0 )|.......S|
|000046d0| 74 61 72 74 4d 61 74 63 | 68 28 29 3b 0d 0a 09 09 |tartMatc|h();....|
|000046e0| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 7b 0d 0a 09 |..else..|....{...|
|000046f0| 09 09 09 09 66 6f 72 20 | 28 20 50 20 3d 20 4c 65 |....for |( P = Le|
|00004700| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|00004710| 3d 4e 6f 6e 65 3b 20 50 | 3d 50 2e 6e 65 78 74 50 |=None; P|=P.nextP|
|00004720| 61 77 6e 20 29 0d 0a 09 | 09 09 09 09 09 69 66 20 |awn )...|.....if |
|00004730| 28 20 50 2e 49 73 41 28 | 27 50 6c 61 79 65 72 50 |( P.IsA(|'PlayerP|
|00004740| 61 77 6e 27 29 20 29 0d | 0a 09 09 09 09 09 09 7b |awn') ).|.......{|
|00004750| 0d 0a 09 09 09 09 09 09 | 09 50 6c 61 79 65 72 50 |........|.PlayerP|
|00004760| 61 77 6e 28 50 29 2e 43 | 6c 65 61 72 50 72 6f 67 |awn(P).C|learProg|
|00004770| 72 65 73 73 4d 65 73 73 | 61 67 65 73 28 29 3b 0d |ressMess|ages();.|
|00004780| 0a 09 09 09 09 09 09 09 | 69 66 20 28 20 28 43 6f |........|if ( (Co|
|00004790| 75 6e 74 44 6f 77 6e 20 | 3c 20 31 31 29 20 26 26 |untDown |< 11) &&|
|000047a0| 20 50 2e 49 73 41 28 27 | 54 6f 75 72 6e 61 6d 65 | P.IsA('|Tourname|
|000047b0| 6e 74 50 6c 61 79 65 72 | 27 29 20 29 0d 0a 09 09 |ntPlayer|') )....|
|000047c0| 09 09 09 09 09 09 54 6f | 75 72 6e 61 6d 65 6e 74 |......To|urnament|
|000047d0| 50 6c 61 79 65 72 28 50 | 29 2e 54 69 6d 65 4d 65 |Player(P|).TimeMe|
|000047e0| 73 73 61 67 65 28 43 6f | 75 6e 74 44 6f 77 6e 29 |ssage(Co|untDown)|
|000047f0| 3b 0d 0a 09 09 09 09 09 | 09 09 65 6c 73 65 0d 0a |;.......|..else..|
|00004800| 09 09 09 09 09 09 09 09 | 50 6c 61 79 65 72 50 61 |........|PlayerPa|
|00004810| 77 6e 28 50 29 2e 53 65 | 74 50 72 6f 67 72 65 73 |wn(P).Se|tProgres|
|00004820| 73 4d 65 73 73 61 67 65 | 28 43 6f 75 6e 74 44 6f |sMessage|(CountDo|
|00004830| 77 6e 24 43 6f 75 6e 74 | 44 6f 77 6e 4d 65 73 73 |wn$Count|DownMess|
|00004840| 61 67 65 2c 20 30 29 3b | 0d 0a 09 09 09 09 09 09 |age, 0);|........|
|00004850| 7d 0d 0a 09 09 09 09 7d | 0d 0a 09 09 09 7d 0d 0a |}......}|.....}..|
|00004860| 09 09 09 65 6c 73 65 20 | 69 66 20 28 20 53 74 61 |...else |if ( Sta|
|00004870| 72 74 43 6f 75 6e 74 20 | 3e 20 38 20 29 20 0d 0a |rtCount |> 8 ) ..|
|00004880| 09 09 09 7b 0d 0a 09 09 | 09 09 66 6f 72 20 28 20 |...{....|..for ( |
|00004890| 50 20 3d 20 4c 65 76 65 | 6c 2e 50 61 77 6e 4c 69 |P = Leve|l.PawnLi|
|000048a0| 73 74 3b 20 50 21 3d 4e | 6f 6e 65 3b 20 50 3d 50 |st; P!=N|one; P=P|
|000048b0| 2e 6e 65 78 74 50 61 77 | 6e 20 29 0d 0a 09 09 09 |.nextPaw|n ).....|
|000048c0| 09 09 69 66 20 28 20 50 | 2e 49 73 41 28 27 50 6c |..if ( P|.IsA('Pl|
|000048d0| 61 79 65 72 50 61 77 6e | 27 29 20 29 0d 0a 09 09 |ayerPawn|') )....|
|000048e0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 09 50 6c 61 79 |...{....|....Play|
|000048f0| 65 72 50 61 77 6e 28 50 | 29 2e 43 6c 65 61 72 50 |erPawn(P|).ClearP|
|00004900| 72 6f 67 72 65 73 73 4d | 65 73 73 61 67 65 73 28 |rogressM|essages(|
|00004910| 29 3b 0d 0a 09 09 09 09 | 09 09 50 6c 61 79 65 72 |);......|..Player|
|00004920| 50 61 77 6e 28 50 29 2e | 53 65 74 50 72 6f 67 72 |Pawn(P).|SetProgr|
|00004930| 65 73 73 54 69 6d 65 28 | 32 29 3b 0d 0a 09 09 09 |essTime(|2);.....|
|00004940| 09 09 09 50 6c 61 79 65 | 72 50 61 77 6e 28 50 29 |...Playe|rPawn(P)|
|00004950| 2e 53 65 74 50 72 6f 67 | 72 65 73 73 4d 65 73 73 |.SetProg|ressMess|
|00004960| 61 67 65 28 57 61 69 74 | 69 6e 67 4d 65 73 73 61 |age(Wait|ingMessa|
|00004970| 67 65 31 2c 20 30 29 3b | 0d 0a 09 09 09 09 09 09 |ge1, 0);|........|
|00004980| 50 6c 61 79 65 72 50 61 | 77 6e 28 50 29 2e 53 65 |PlayerPa|wn(P).Se|
|00004990| 74 50 72 6f 67 72 65 73 | 73 4d 65 73 73 61 67 65 |tProgres|sMessage|
|000049a0| 28 57 61 69 74 69 6e 67 | 4d 65 73 73 61 67 65 32 |(Waiting|Message2|
|000049b0| 2c 20 31 29 3b 0d 0a 09 | 09 09 09 09 09 69 66 20 |, 1);...|.....if |
|000049c0| 28 20 50 6c 61 79 65 72 | 50 61 77 6e 28 50 29 2e |( Player|Pawn(P).|
|000049d0| 62 52 65 61 64 79 54 6f | 50 6c 61 79 20 29 0d 0a |bReadyTo|Play )..|
|000049e0| 09 09 09 09 09 09 09 50 | 6c 61 79 65 72 50 61 77 |.......P|layerPaw|
|000049f0| 6e 28 50 29 2e 53 65 74 | 50 72 6f 67 72 65 73 73 |n(P).Set|Progress|
|00004a00| 4d 65 73 73 61 67 65 28 | 52 65 61 64 79 4d 65 73 |Message(|ReadyMes|
|00004a10| 73 61 67 65 2c 20 32 29 | 3b 0d 0a 09 09 09 09 09 |sage, 2)|;.......|
|00004a20| 09 65 6c 73 65 0d 0a 09 | 09 09 09 09 09 09 50 6c |.else...|......Pl|
|00004a30| 61 79 65 72 50 61 77 6e | 28 50 29 2e 53 65 74 50 |ayerPawn|(P).SetP|
|00004a40| 72 6f 67 72 65 73 73 4d | 65 73 73 61 67 65 28 4e |rogressM|essage(N|
|00004a50| 6f 74 52 65 61 64 79 4d | 65 73 73 61 67 65 2c 20 |otReadyM|essage, |
|00004a60| 32 29 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 09 09 09 |2);.....|..}.....|
|00004a70| 7d 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 7b |}.....el|se.....{|
|00004a80| 0d 0a 09 09 09 09 53 74 | 61 72 74 43 6f 75 6e 74 |......St|artCount|
|00004a90| 2b 2b 3b 0d 0a 09 09 09 | 09 69 66 20 28 20 4c 65 |++;.....|.if ( Le|
|00004aa0| 76 65 6c 2e 4e 65 74 4d | 6f 64 65 20 21 3d 20 4e |vel.NetM|ode != N|
|00004ab0| 4d 5f 53 74 61 6e 64 61 | 6c 6f 6e 65 20 29 0d 0a |M_Standa|lone )..|
|00004ac0| 09 09 09 09 09 53 74 61 | 72 74 43 6f 75 6e 74 20 |.....Sta|rtCount |
|00004ad0| 3d 20 33 30 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 7d |= 30;...|..}....}|
|00004ae0| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00004af0| 09 09 66 6f 72 20 28 20 | 50 20 3d 20 4c 65 76 65 |..for ( |P = Leve|
|00004b00| 6c 2e 50 61 77 6e 4c 69 | 73 74 3b 20 50 21 3d 4e |l.PawnLi|st; P!=N|
|00004b10| 6f 6e 65 3b 20 50 3d 50 | 2e 6e 65 78 74 50 61 77 |one; P=P|.nextPaw|
|00004b20| 6e 20 29 0d 0a 09 09 09 | 09 69 66 20 28 20 50 2e |n ).....|.if ( P.|
|00004b30| 49 73 41 28 27 50 6c 61 | 79 65 72 50 61 77 6e 27 |IsA('Pla|yerPawn'|
|00004b40| 29 20 29 0d 0a 09 09 09 | 09 09 50 6c 61 79 53 74 |) ).....|..PlaySt|
|00004b50| 61 72 74 75 70 4d 65 73 | 73 61 67 65 28 50 6c 61 |artupMes|sage(Pla|
|00004b60| 79 65 72 50 61 77 6e 28 | 50 29 29 3b 0d 0a 09 09 |yerPawn(|P));....|
|00004b70| 7d 0d 0a 09 7d 09 0d 0a | 09 65 6c 73 65 0d 0a 09 |}...}...|.else...|
|00004b80| 7b 0d 0a 09 09 69 66 20 | 28 20 4c 65 76 65 6c 2e |{....if |( Level.|
|00004b90| 4e 65 74 4d 6f 64 65 20 | 21 3d 20 4e 4d 5f 53 74 |NetMode |!= NM_St|
|00004ba0| 61 6e 64 61 6c 6f 6e 65 | 20 29 0d 0a 09 09 7b 0d |andalone| )....{.|
|00004bb0| 0a 09 09 09 69 66 20 28 | 20 4e 65 65 64 50 6c 61 |....if (| NeedPla|
|00004bc0| 79 65 72 73 28 29 20 29 | 0d 0a 09 09 09 09 41 64 |yers() )|......Ad|
|00004bd0| 64 42 6f 74 28 29 3b 0d | 0a 09 09 7d 0d 0a 09 09 |dBot();.|...}....|
|00004be0| 65 6c 73 65 0d 0a 09 09 | 09 77 68 69 6c 65 20 28 |else....|.while (|
|00004bf0| 20 28 52 65 6d 61 69 6e | 69 6e 67 42 6f 74 73 20 | (Remain|ingBots |
|00004c00| 3e 20 30 29 20 26 26 20 | 41 64 64 42 6f 74 28 29 |> 0) && |AddBot()|
|00004c10| 20 29 0d 0a 09 09 09 09 | 52 65 6d 61 69 6e 69 6e | )......|Remainin|
|00004c20| 67 42 6f 74 73 2d 2d 3b | 0d 0a 09 09 69 66 20 28 |gBots--;|....if (|
|00004c30| 20 62 47 61 6d 65 45 6e | 64 65 64 20 29 0d 0a 09 | bGameEn|ded )...|
|00004c40| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 4c 65 76 65 |.{.....i|f ( Leve|
|00004c50| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 3e 20 |l.TimeSe|conds > |
|00004c60| 45 6e 64 54 69 6d 65 20 | 2b 20 33 30 20 29 0d 0a |EndTime |+ 30 )..|
|00004c70| 09 09 09 09 52 65 73 74 | 61 72 74 47 61 6d 65 28 |....Rest|artGame(|
|00004c80| 29 3b 0d 0a 09 09 7d 0d | 0a 09 09 65 6c 73 65 20 |);....}.|...else |
|00004c90| 69 66 20 28 20 21 62 4f | 76 65 72 54 69 6d 65 20 |if ( !bO|verTime |
|00004ca0| 26 26 20 28 54 69 6d 65 | 4c 69 6d 69 74 20 3e 20 |&& (Time|Limit > |
|00004cb0| 30 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 47 61 |0) )....|{.....Ga|
|00004cc0| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00004cd0| 6f 2e 62 53 74 6f 70 43 | 6f 75 6e 74 44 6f 77 6e |o.bStopC|ountDown|
|00004ce0| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 09 52 65 | = false|;.....Re|
|00004cf0| 6d 61 69 6e 69 6e 67 54 | 69 6d 65 2d 2d 3b 0d 0a |mainingT|ime--;..|
|00004d00| 09 09 09 47 61 6d 65 52 | 65 70 6c 69 63 61 74 69 |...GameR|eplicati|
|00004d10| 6f 6e 49 6e 66 6f 2e 52 | 65 6d 61 69 6e 69 6e 67 |onInfo.R|emaining|
|00004d20| 54 69 6d 65 20 3d 20 52 | 65 6d 61 69 6e 69 6e 67 |Time = R|emaining|
|00004d30| 54 69 6d 65 3b 0d 0a 09 | 09 09 69 66 20 28 20 52 |Time;...|..if ( R|
|00004d40| 65 6d 61 69 6e 69 6e 67 | 54 69 6d 65 20 25 20 36 |emaining|Time % 6|
|00004d50| 30 20 3d 3d 20 30 20 29 | 0d 0a 09 09 09 09 47 61 |0 == 0 )|......Ga|
|00004d60| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00004d70| 6f 2e 52 65 6d 61 69 6e | 69 6e 67 4d 69 6e 75 74 |o.Remain|ingMinut|
|00004d80| 65 20 3d 20 52 65 6d 61 | 69 6e 69 6e 67 54 69 6d |e = Rema|iningTim|
|00004d90| 65 3b 0d 0a 09 09 09 69 | 66 20 28 20 52 65 6d 61 |e;.....i|f ( Rema|
|00004da0| 69 6e 69 6e 67 54 69 6d | 65 20 3c 3d 20 30 20 29 |iningTim|e <= 0 )|
|00004db0| 0d 0a 09 09 09 09 45 6e | 64 47 61 6d 65 28 22 74 |......En|dGame("t|
|00004dc0| 69 6d 65 6c 69 6d 69 74 | 22 29 3b 0d 0a 09 09 7d |imelimit|");....}|
|00004dd0| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00004de0| 09 09 45 6c 61 70 73 65 | 64 54 69 6d 65 2b 2b 3b |..Elapse|dTime++;|
|00004df0| 0d 0a 09 09 09 47 61 6d | 65 52 65 70 6c 69 63 61 |.....Gam|eReplica|
|00004e00| 74 69 6f 6e 49 6e 66 6f | 2e 45 6c 61 70 73 65 64 |tionInfo|.Elapsed|
|00004e10| 54 69 6d 65 20 3d 20 45 | 6c 61 70 73 65 64 54 69 |Time = E|lapsedTi|
|00004e20| 6d 65 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 0d |me;....}|...}..}.|
|00004e30| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00004e40| 20 54 6f 6f 4d 61 6e 79 | 42 6f 74 73 28 29 0d 0a | TooMany|Bots()..|
|00004e50| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 28 4e 75 6d 42 |{...retu|rn (NumB|
|00004e60| 6f 74 73 20 2b 20 4e 75 | 6d 50 6c 61 79 65 72 73 |ots + Nu|mPlayers|
|00004e70| 20 3e 20 4d 69 6e 50 6c | 61 79 65 72 73 29 3b 0d | > MinPl|ayers);.|
|00004e80| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|00004e90| 6f 6f 6c 20 52 65 73 74 | 61 72 74 50 6c 61 79 65 |ool Rest|artPlaye|
|00004ea0| 72 28 20 70 61 77 6e 20 | 61 50 6c 61 79 65 72 20 |r( pawn |aPlayer |
|00004eb0| 29 09 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 42 6f |)...{...|local Bo|
|00004ec0| 74 20 42 3b 0d 0a 0d 0a | 09 61 50 6c 61 79 65 72 |t B;....|.aPlayer|
|00004ed0| 2e 44 61 6d 61 67 65 53 | 63 61 6c 69 6e 67 20 3d |.DamageS|caling =|
|00004ee0| 20 61 50 6c 61 79 65 72 | 2e 44 65 66 61 75 6c 74 | aPlayer|.Default|
|00004ef0| 2e 44 61 6d 61 67 65 53 | 63 61 6c 69 6e 67 3b 0d |.DamageS|caling;.|
|00004f00| 0a 09 42 20 3d 20 42 6f | 74 28 61 50 6c 61 79 65 |..B = Bo|t(aPlaye|
|00004f10| 72 29 3b 0d 0a 09 69 66 | 20 28 20 28 42 20 21 3d |r);...if| ( (B !=|
|00004f20| 20 4e 6f 6e 65 29 20 0d | 0a 09 09 26 26 20 28 4c | None) .|...&& (L|
|00004f30| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 21 3d 20 |evel.Net|Mode != |
|00004f40| 4e 4d 5f 53 74 61 6e 64 | 61 6c 6f 6e 65 29 20 0d |NM_Stand|alone) .|
|00004f50| 0a 09 09 26 26 20 54 6f | 6f 4d 61 6e 79 42 6f 74 |...&& To|oManyBot|
|00004f60| 73 28 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 61 50 6c |s() )...|{....aPl|
|00004f70| 61 79 65 72 2e 44 65 73 | 74 72 6f 79 28 29 3b 0d |ayer.Des|troy();.|
|00004f80| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00004f90| 0d 0a 09 7d 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |...}....|.return |
|00004fa0| 53 75 70 65 72 2e 52 65 | 73 74 61 72 74 50 6c 61 |Super.Re|startPla|
|00004fb0| 79 65 72 28 61 50 6c 61 | 79 65 72 29 3b 0d 0a 7d |yer(aPla|yer);..}|
|00004fc0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 65 6e |....func|tion Sen|
|00004fd0| 64 53 74 61 72 74 4d 65 | 73 73 61 67 65 28 50 6c |dStartMe|ssage(Pl|
|00004fe0| 61 79 65 72 50 61 77 6e | 20 50 29 0d 0a 7b 0d 0a |ayerPawn| P)..{..|
|00004ff0| 09 50 2e 43 6c 65 61 72 | 50 72 6f 67 72 65 73 73 |.P.Clear|Progress|
|00005000| 4d 65 73 73 61 67 65 73 | 28 29 3b 0d 0a 09 50 2e |Messages|();...P.|
|00005010| 53 65 74 50 72 6f 67 72 | 65 73 73 4d 65 73 73 61 |SetProgr|essMessa|
|00005020| 67 65 28 53 74 61 72 74 | 4d 65 73 73 61 67 65 2c |ge(Start|Message,|
|00005030| 20 30 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 | 0);..}.|...funct|
|00005040| 69 6f 6e 20 42 6f 74 20 | 53 70 61 77 6e 42 6f 74 |ion Bot |SpawnBot|
|00005050| 28 6f 75 74 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |(out Nav|igationP|
|00005060| 6f 69 6e 74 20 53 74 61 | 72 74 53 70 6f 74 29 0d |oint Sta|rtSpot).|
|00005070| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 62 6f 74 20 4e |.{...loc|al bot N|
|00005080| 65 77 42 6f 74 3b 0d 0a | 09 6c 6f 63 61 6c 20 69 |ewBot;..|.local i|
|00005090| 6e 74 20 42 6f 74 4e 3b | 0d 0a 0d 0a 09 69 66 20 |nt BotN;|.....if |
|000050a0| 28 20 62 52 61 74 65 64 | 47 61 6d 65 20 29 0d 0a |( bRated|Game )..|
|000050b0| 09 09 72 65 74 75 72 6e | 20 53 70 61 77 6e 52 61 |..return| SpawnRa|
|000050c0| 74 65 64 42 6f 74 28 53 | 74 61 72 74 53 70 6f 74 |tedBot(S|tartSpot|
|000050d0| 29 3b 0d 0a 0d 0a 09 44 | 69 66 66 69 63 75 6c 74 |);.....D|ifficult|
|000050e0| 79 20 3d 20 42 6f 74 43 | 6f 6e 66 69 67 2e 44 69 |y = BotC|onfig.Di|
|000050f0| 66 66 69 63 75 6c 74 79 | 3b 0d 0a 09 42 6f 74 4e |fficulty|;...BotN|
|00005100| 20 3d 20 42 6f 74 43 6f | 6e 66 69 67 2e 43 68 6f | = BotCo|nfig.Cho|
|00005110| 6f 73 65 42 6f 74 49 6e | 66 6f 28 29 3b 0d 0a 09 |oseBotIn|fo();...|
|00005120| 0d 0a 09 2f 2f 20 46 69 | 6e 64 20 61 20 73 74 61 |...// Fi|nd a sta|
|00005130| 72 74 20 73 70 6f 74 2e | 0d 0a 09 53 74 61 72 74 |rt spot.|...Start|
|00005140| 53 70 6f 74 20 3d 20 46 | 69 6e 64 50 6c 61 79 65 |Spot = F|indPlaye|
|00005150| 72 53 74 61 72 74 28 4e | 6f 6e 65 2c 20 32 35 35 |rStart(N|one, 255|
|00005160| 29 3b 0d 0a 09 69 66 28 | 20 53 74 61 72 74 53 70 |);...if(| StartSp|
|00005170| 6f 74 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |ot == No|ne )...{|
|00005180| 0d 0a 09 09 6c 6f 67 28 | 22 43 6f 75 6c 64 20 6e |....log(|"Could n|
|00005190| 6f 74 20 66 69 6e 64 20 | 73 74 61 72 74 69 6e 67 |ot find |starting|
|000051a0| 20 73 70 6f 74 20 66 6f | 72 20 42 6f 74 22 29 3b | spot fo|r Bot");|
|000051b0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 4e 6f 6e 65 3b |....retu|rn None;|
|000051c0| 0d 0a 09 7d 0d 0a 0d 0a | 09 2f 2f 20 54 72 79 20 |...}....|.// Try |
|000051d0| 74 6f 20 73 70 61 77 6e | 20 74 68 65 20 62 6f 74 |to spawn| the bot|
|000051e0| 2e 0d 0a 09 4e 65 77 42 | 6f 74 20 3d 20 53 70 61 |....NewB|ot = Spa|
|000051f0| 77 6e 28 42 6f 74 43 6f | 6e 66 69 67 2e 43 48 47 |wn(BotCo|nfig.CHG|
|00005200| 65 74 42 6f 74 43 6c 61 | 73 73 28 42 6f 74 4e 29 |etBotCla|ss(BotN)|
|00005210| 2c 2c 2c 53 74 61 72 74 | 53 70 6f 74 2e 4c 6f 63 |,,,Start|Spot.Loc|
|00005220| 61 74 69 6f 6e 2c 53 74 | 61 72 74 53 70 6f 74 2e |ation,St|artSpot.|
|00005230| 52 6f 74 61 74 69 6f 6e | 29 3b 0d 0a 0d 0a 09 69 |Rotation|);.....i|
|00005240| 66 20 28 20 4e 65 77 42 | 6f 74 20 3d 3d 20 4e 6f |f ( NewB|ot == No|
|00005250| 6e 65 20 29 0d 0a 09 09 | 6c 6f 67 28 22 43 6f 75 |ne )....|log("Cou|
|00005260| 6c 64 6e 27 74 20 73 70 | 61 77 6e 20 70 6c 61 79 |ldn't sp|awn play|
|00005270| 65 72 20 61 74 20 22 24 | 53 74 61 72 74 53 70 6f |er at "$|StartSpo|
|00005280| 74 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 28 62 48 |t);.....|if ( (bH|
|00005290| 75 6d 61 6e 73 4f 6e 6c | 79 20 7c 7c 20 4c 65 76 |umansOnl|y || Lev|
|000052a0| 65 6c 2e 62 48 75 6d 61 | 6e 73 4f 6e 6c 79 29 20 |el.bHuma|nsOnly) |
|000052b0| 26 26 20 21 4e 65 77 42 | 6f 74 2e 62 49 73 48 75 |&& !NewB|ot.bIsHu|
|000052c0| 6d 61 6e 20 29 0d 0a 09 | 7b 0d 0a 09 09 6c 6f 67 |man )...|{....log|
|000052d0| 28 22 63 61 6e 27 74 20 | 61 64 64 20 6e 6f 6e 2d |("can't |add non-|
|000052e0| 68 75 6d 61 6e 20 62 6f | 74 20 74 6f 20 74 68 69 |human bo|t to thi|
|000052f0| 73 20 67 61 6d 65 22 29 | 3b 0d 0a 09 09 4e 65 77 |s game")|;....New|
|00005300| 42 6f 74 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |Bot.Dest|roy();..|
|00005310| 09 09 4e 65 77 42 6f 74 | 20 3d 20 4e 6f 6e 65 3b |..NewBot| = None;|
|00005320| 0d 0a 09 7d 0d 0a 0d 0a | 09 69 66 20 28 20 4e 65 |...}....|.if ( Ne|
|00005330| 77 42 6f 74 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |wBot == |None )..|
|00005340| 09 09 4e 65 77 42 6f 74 | 20 3d 20 53 70 61 77 6e |..NewBot| = Spawn|
|00005350| 28 42 6f 74 43 6f 6e 66 | 69 67 2e 43 48 47 65 74 |(BotConf|ig.CHGet|
|00005360| 42 6f 74 43 6c 61 73 73 | 28 30 29 2c 2c 2c 53 74 |BotClass|(0),,,St|
|00005370| 61 72 74 53 70 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |artSpot.|Location|
|00005380| 2c 53 74 61 72 74 53 70 | 6f 74 2e 52 6f 74 61 74 |,StartSp|ot.Rotat|
|00005390| 69 6f 6e 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 4e |ion);...|..if ( N|
|000053a0| 65 77 42 6f 74 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ewBot !=| None ).|
|000053b0| 0a 09 7b 0d 0a 09 09 2f | 2f 20 53 65 74 20 74 68 |..{..../|/ Set th|
|000053c0| 65 20 70 6c 61 79 65 72 | 27 73 20 49 44 2e 0d 0a |e player|'s ID...|
|000053d0| 09 09 4e 65 77 42 6f 74 | 2e 50 6c 61 79 65 72 52 |..NewBot|.PlayerR|
|000053e0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 50 |eplicati|onInfo.P|
|000053f0| 6c 61 79 65 72 49 44 20 | 3d 20 43 75 72 72 65 6e |layerID |= Curren|
|00005400| 74 49 44 2b 2b 3b 0d 0a | 09 09 4e 65 77 42 6f 74 |tID++;..|..NewBot|
|00005410| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00005420| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 20 42 6f |onInfo.T|eam = Bo|
|00005430| 74 43 6f 6e 66 69 67 2e | 47 65 74 42 6f 74 54 65 |tConfig.|GetBotTe|
|00005440| 61 6d 28 42 6f 74 4e 29 | 3b 0d 0a 09 09 42 6f 74 |am(BotN)|;....Bot|
|00005450| 43 6f 6e 66 69 67 2e 43 | 48 49 6e 64 69 76 69 64 |Config.C|HIndivid|
|00005460| 75 61 6c 69 7a 65 28 4e | 65 77 42 6f 74 2c 20 42 |ualize(N|ewBot, B|
|00005470| 6f 74 4e 2c 20 4e 75 6d | 42 6f 74 73 29 3b 0d 0a |otN, Num|Bots);..|
|00005480| 09 09 4e 65 77 42 6f 74 | 2e 56 69 65 77 52 6f 74 |..NewBot|.ViewRot|
|00005490| 61 74 69 6f 6e 20 3d 20 | 53 74 61 72 74 53 70 6f |ation = |StartSpo|
|000054a0| 74 2e 52 6f 74 61 74 69 | 6f 6e 3b 0d 0a 09 09 2f |t.Rotati|on;..../|
|000054b0| 2f 20 62 72 6f 61 64 63 | 61 73 74 20 61 20 77 65 |/ broadc|ast a we|
|000054c0| 6c 63 6f 6d 65 20 6d 65 | 73 73 61 67 65 2e 0d 0a |lcome me|ssage...|
|000054d0| 09 09 42 72 6f 61 64 63 | 61 73 74 4d 65 73 73 61 |..Broadc|astMessa|
|000054e0| 67 65 28 20 4e 65 77 42 | 6f 74 2e 50 6c 61 79 65 |ge( NewB|ot.Playe|
|000054f0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00005500| 2e 50 6c 61 79 65 72 4e | 61 6d 65 24 45 6e 74 65 |.PlayerN|ame$Ente|
|00005510| 72 65 64 4d 65 73 73 61 | 67 65 2c 20 66 61 6c 73 |redMessa|ge, fals|
|00005520| 65 20 29 3b 0d 0a 0d 0a | 09 09 4d 6f 64 69 66 79 |e );....|..Modify|
|00005530| 42 65 68 61 76 69 6f 75 | 72 28 4e 65 77 42 6f 74 |Behaviou|r(NewBot|
|00005540| 29 3b 0d 0a 09 09 41 64 | 64 44 65 66 61 75 6c 74 |);....Ad|dDefault|
|00005550| 49 6e 76 65 6e 74 6f 72 | 79 28 20 4e 65 77 42 6f |Inventor|y( NewBo|
|00005560| 74 20 29 3b 0d 0a 09 09 | 4e 75 6d 42 6f 74 73 2b |t );....|NumBots+|
|00005570| 2b 3b 0d 0a 09 09 69 66 | 20 28 20 62 52 65 71 75 |+;....if| ( bRequ|
|00005580| 69 72 65 52 65 61 64 79 | 20 26 26 20 28 43 6f 75 |ireReady| && (Cou|
|00005590| 6e 74 44 6f 77 6e 20 3e | 20 30 29 20 29 0d 0a 09 |ntDown >| 0) )...|
|000055a0| 09 09 4e 65 77 42 6f 74 | 2e 47 6f 74 6f 53 74 61 |..NewBot|.GotoSta|
|000055b0| 74 65 28 27 44 79 69 6e | 67 27 2c 20 27 57 61 69 |te('Dyin|g', 'Wai|
|000055c0| 74 69 6e 67 46 6f 72 53 | 74 61 72 74 27 29 3b 0d |tingForS|tart');.|
|000055d0| 0a 09 09 4e 65 77 42 6f | 74 2e 41 69 72 43 6f 6e |...NewBo|t.AirCon|
|000055e0| 74 72 6f 6c 20 3d 20 41 | 69 72 43 6f 6e 74 72 6f |trol = A|irContro|
|000055f0| 6c 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 72 65 74 75 72 |l;...}..|...retur|
|00005600| 6e 20 4e 65 77 42 6f 74 | 3b 0d 0a 7d 0d 0a 0d 0a |n NewBot|;..}....|
|00005610| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 42 6f 74 20 53 |..functi|on Bot S|
|00005620| 70 61 77 6e 52 61 74 65 | 64 42 6f 74 28 6f 75 74 |pawnRate|dBot(out|
|00005630| 20 4e 61 76 69 67 61 74 | 69 6f 6e 50 6f 69 6e 74 | Navigat|ionPoint|
|00005640| 20 53 74 61 72 74 53 70 | 6f 74 29 0d 0a 7b 0d 0a | StartSp|ot)..{..|
|00005650| 09 6c 6f 63 61 6c 20 62 | 6f 74 20 4e 65 77 42 6f |.local b|ot NewBo|
|00005660| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 42 |t;...loc|al int B|
|00005670| 6f 74 4e 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |otN;...l|ocal boo|
|00005680| 6c 20 62 45 6e 65 6d 79 | 3b 0d 0a 0d 0a 09 69 66 |l bEnemy|;.....if|
|00005690| 20 28 52 65 6d 61 69 6e | 69 6e 67 42 6f 74 73 20 | (Remain|ingBots |
|000056a0| 3e 20 52 61 74 65 64 4d | 61 74 63 68 43 6f 6e 66 |> RatedM|atchConf|
|000056b0| 69 67 2e 4e 75 6d 41 6c | 6c 69 65 73 29 0d 0a 09 |ig.NumAl|lies)...|
|000056c0| 09 62 45 6e 65 6d 79 20 | 3d 20 54 72 75 65 3b 0d |.bEnemy |= True;.|
|000056d0| 0a 0d 0a 09 42 6f 74 4e | 20 3d 20 52 61 74 65 64 |....BotN| = Rated|
|000056e0| 4d 61 74 63 68 43 6f 6e | 66 69 67 2e 43 68 6f 6f |MatchCon|fig.Choo|
|000056f0| 73 65 42 6f 74 49 6e 66 | 6f 28 62 54 65 61 6d 47 |seBotInf|o(bTeamG|
|00005700| 61 6d 65 2c 20 62 45 6e | 65 6d 79 29 3b 0d 0a 09 |ame, bEn|emy);...|
|00005710| 0d 0a 09 2f 2f 20 46 69 | 6e 64 20 61 20 73 74 61 |...// Fi|nd a sta|
|00005720| 72 74 20 73 70 6f 74 2e | 0d 0a 09 53 74 61 72 74 |rt spot.|...Start|
|00005730| 53 70 6f 74 20 3d 20 46 | 69 6e 64 50 6c 61 79 65 |Spot = F|indPlaye|
|00005740| 72 53 74 61 72 74 28 4e | 6f 6e 65 2c 20 32 35 35 |rStart(N|one, 255|
|00005750| 29 3b 0d 0a 09 69 66 28 | 20 53 74 61 72 74 53 70 |);...if(| StartSp|
|00005760| 6f 74 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |ot == No|ne )...{|
|00005770| 0d 0a 09 09 6c 6f 67 28 | 22 43 6f 75 6c 64 20 6e |....log(|"Could n|
|00005780| 6f 74 20 66 69 6e 64 20 | 73 74 61 72 74 69 6e 67 |ot find |starting|
|00005790| 20 73 70 6f 74 20 66 6f | 72 20 42 6f 74 22 29 3b | spot fo|r Bot");|
|000057a0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 4e 6f 6e 65 3b |....retu|rn None;|
|000057b0| 0d 0a 09 7d 0d 0a 0d 0a | 09 2f 2f 20 54 72 79 20 |...}....|.// Try |
|000057c0| 74 6f 20 73 70 61 77 6e | 20 74 68 65 20 62 6f 74 |to spawn| the bot|
|000057d0| 2e 0d 0a 09 4e 65 77 42 | 6f 74 20 3d 20 53 70 61 |....NewB|ot = Spa|
|000057e0| 77 6e 28 52 61 74 65 64 | 4d 61 74 63 68 43 6f 6e |wn(Rated|MatchCon|
|000057f0| 66 69 67 2e 47 65 74 42 | 6f 74 43 6c 61 73 73 28 |fig.GetB|otClass(|
|00005800| 42 6f 74 4e 2c 20 62 54 | 65 61 6d 47 61 6d 65 2c |BotN, bT|eamGame,|
|00005810| 20 62 45 6e 65 6d 79 2c | 20 52 61 74 65 64 50 6c | bEnemy,| RatedPl|
|00005820| 61 79 65 72 29 2c 2c 2c | 53 74 61 72 74 53 70 6f |ayer),,,|StartSpo|
|00005830| 74 2e 4c 6f 63 61 74 69 | 6f 6e 2c 53 74 61 72 74 |t.Locati|on,Start|
|00005840| 53 70 6f 74 2e 52 6f 74 | 61 74 69 6f 6e 29 3b 0d |Spot.Rot|ation);.|
|00005850| 0a 09 69 66 20 28 20 4e | 65 77 42 6f 74 20 3d 3d |..if ( N|ewBot ==|
|00005860| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 6c 6f 67 28 22 | None ).|...log("|
|00005870| 43 6f 75 6c 64 6e 27 74 | 20 73 70 61 77 6e 20 70 |Couldn't| spawn p|
|00005880| 6c 61 79 65 72 20 61 74 | 20 22 24 53 74 61 72 74 |layer at| "$Start|
|00005890| 53 70 6f 74 29 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |Spot);..|...if ( |
|000058a0| 4e 65 77 42 6f 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |NewBot !|= None )|
|000058b0| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 20 53 65 74 20 74 |...{....|// Set t|
|000058c0| 68 65 20 70 6c 61 79 65 | 72 27 73 20 49 44 2e 0d |he playe|r's ID..|
|000058d0| 0a 09 09 4e 65 77 42 6f | 74 2e 50 6c 61 79 65 72 |...NewBo|t.Player|
|000058e0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000058f0| 50 6c 61 79 65 72 49 44 | 20 3d 20 43 75 72 72 65 |PlayerID| = Curre|
|00005900| 6e 74 49 44 2b 2b 3b 0d | 0a 09 09 52 61 74 65 64 |ntID++;.|...Rated|
|00005910| 4d 61 74 63 68 43 6f 6e | 66 69 67 2e 49 6e 64 69 |MatchCon|fig.Indi|
|00005920| 76 69 64 75 61 6c 69 7a | 65 28 4e 65 77 42 6f 74 |vidualiz|e(NewBot|
|00005930| 2c 20 42 6f 74 4e 2c 20 | 4e 75 6d 42 6f 74 73 2c |, BotN, |NumBots,|
|00005940| 20 62 54 65 61 6d 47 61 | 6d 65 2c 20 62 45 6e 65 | bTeamGa|me, bEne|
|00005950| 6d 79 29 3b 0d 0a 09 09 | 4e 65 77 42 6f 74 2e 56 |my);....|NewBot.V|
|00005960| 69 65 77 52 6f 74 61 74 | 69 6f 6e 20 3d 20 53 74 |iewRotat|ion = St|
|00005970| 61 72 74 53 70 6f 74 2e | 52 6f 74 61 74 69 6f 6e |artSpot.|Rotation|
|00005980| 3b 0d 0a 09 09 2f 2f 20 | 62 72 6f 61 64 63 61 73 |;....// |broadcas|
|00005990| 74 20 61 20 77 65 6c 63 | 6f 6d 65 20 6d 65 73 73 |t a welc|ome mess|
|000059a0| 61 67 65 2e 0d 0a 09 09 | 42 72 6f 61 64 63 61 73 |age.....|Broadcas|
|000059b0| 74 4d 65 73 73 61 67 65 | 28 20 4e 65 77 42 6f 74 |tMessage|( NewBot|
|000059c0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000059d0| 6f 6e 49 6e 66 6f 2e 50 | 6c 61 79 65 72 4e 61 6d |onInfo.P|layerNam|
|000059e0| 65 24 45 6e 74 65 72 65 | 64 4d 65 73 73 61 67 65 |e$Entere|dMessage|
|000059f0| 2c 20 66 61 6c 73 65 20 | 29 3b 0d 0a 0d 0a 09 09 |, false |);......|
|00005a00| 4d 6f 64 69 66 79 42 65 | 68 61 76 69 6f 75 72 28 |ModifyBe|haviour(|
|00005a10| 4e 65 77 42 6f 74 29 3b | 0d 0a 09 09 41 64 64 44 |NewBot);|....AddD|
|00005a20| 65 66 61 75 6c 74 49 6e | 76 65 6e 74 6f 72 79 28 |efaultIn|ventory(|
|00005a30| 20 4e 65 77 42 6f 74 20 | 29 3b 0d 0a 09 09 4e 75 | NewBot |);....Nu|
|00005a40| 6d 42 6f 74 73 2b 2b 3b | 0d 0a 09 09 69 66 20 28 |mBots++;|....if (|
|00005a50| 20 62 52 65 71 75 69 72 | 65 52 65 61 64 79 20 26 | bRequir|eReady &|
|00005a60| 26 20 28 43 6f 75 6e 74 | 44 6f 77 6e 20 3e 20 30 |& (Count|Down > 0|
|00005a70| 29 20 29 0d 0a 09 09 09 | 4e 65 77 42 6f 74 2e 47 |) ).....|NewBot.G|
|00005a80| 6f 74 6f 53 74 61 74 65 | 28 27 44 79 69 6e 67 27 |otoState|('Dying'|
|00005a90| 2c 20 27 57 61 69 74 69 | 6e 67 46 6f 72 53 74 61 |, 'Waiti|ngForSta|
|00005aa0| 72 74 27 29 3b 0d 0a 09 | 09 4e 65 77 42 6f 74 2e |rt');...|.NewBot.|
|00005ab0| 41 69 72 43 6f 6e 74 72 | 6f 6c 20 3d 20 30 2e 33 |AirContr|ol = 0.3|
|00005ac0| 35 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 72 65 74 75 72 |5;...}..|...retur|
|00005ad0| 6e 20 4e 65 77 42 6f 74 | 3b 0d 0a 7d 0d 0a 0d 0a |n NewBot|;..}....|
|00005ae0| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 46 6f |function| bool Fo|
|00005af0| 72 63 65 41 64 64 42 6f | 74 28 29 0d 0a 7b 0d 0a |rceAddBo|t()..{..|
|00005b00| 09 2f 2f 20 61 64 64 20 | 62 6f 74 20 64 75 72 69 |.// add |bot duri|
|00005b10| 6e 67 20 67 61 6d 65 70 | 6c 61 79 0d 0a 09 69 66 |ng gamep|lay...if|
|00005b20| 20 28 20 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 | ( Level|.NetMode|
|00005b30| 20 21 3d 20 4e 4d 5f 53 | 74 61 6e 64 61 6c 6f 6e | != NM_S|tandalon|
|00005b40| 65 20 29 0d 0a 09 09 4d | 69 6e 50 6c 61 79 65 72 |e )....M|inPlayer|
|00005b50| 73 20 3d 20 4d 61 78 28 | 4d 69 6e 50 6c 61 79 65 |s = Max(|MinPlaye|
|00005b60| 72 73 2b 31 2c 20 4e 75 | 6d 50 6c 61 79 65 72 73 |rs+1, Nu|mPlayers|
|00005b70| 20 2b 20 4e 75 6d 42 6f | 74 73 20 2b 20 31 29 3b | + NumBo|ts + 1);|
|00005b80| 0d 0a 09 41 64 64 42 6f | 74 28 29 3b 0d 0a 7d 0d |...AddBo|t();..}.|
|00005b90| 0a 09 09 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |.....fun|ction bo|
|00005ba0| 6f 6c 20 41 64 64 42 6f | 74 28 29 0d 0a 7b 0d 0a |ol AddBo|t()..{..|
|00005bb0| 09 6c 6f 63 61 6c 20 62 | 6f 74 20 4e 65 77 42 6f |.local b|ot NewBo|
|00005bc0| 74 3b 0d 0a 09 6c 6f 63 | 61 6c 20 4e 61 76 69 67 |t;...loc|al Navig|
|00005bd0| 61 74 69 6f 6e 50 6f 69 | 6e 74 20 53 74 61 72 74 |ationPoi|nt Start|
|00005be0| 53 70 6f 74 3b 0d 0a 0d | 0a 09 4e 65 77 42 6f 74 |Spot;...|..NewBot|
|00005bf0| 20 3d 20 53 70 61 77 6e | 42 6f 74 28 53 74 61 72 | = Spawn|Bot(Star|
|00005c00| 74 53 70 6f 74 29 3b 0d | 0a 09 69 66 20 28 20 4e |tSpot);.|..if ( N|
|00005c10| 65 77 42 6f 74 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |ewBot ==| None ).|
|00005c20| 0a 09 7b 0d 0a 09 09 6c | 6f 67 28 22 46 61 69 6c |..{....l|og("Fail|
|00005c30| 65 64 20 74 6f 20 73 70 | 61 77 6e 20 62 6f 74 2e |ed to sp|awn bot.|
|00005c40| 22 29 3b 0d 0a 09 09 72 | 65 74 75 72 6e 20 66 61 |");....r|eturn fa|
|00005c50| 6c 73 65 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 53 74 61 |lse;...}|.....Sta|
|00005c60| 72 74 53 70 6f 74 2e 50 | 6c 61 79 54 65 6c 65 70 |rtSpot.P|layTelep|
|00005c70| 6f 72 74 45 66 66 65 63 | 74 28 4e 65 77 42 6f 74 |ortEffec|t(NewBot|
|00005c80| 2c 20 74 72 75 65 29 3b | 0d 0a 0d 0a 09 4e 65 77 |, true);|.....New|
|00005c90| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00005ca0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 62 49 73 41 42 6f |ationInf|o.bIsABo|
|00005cb0| 74 20 3d 20 54 72 75 65 | 3b 0d 0a 0d 0a 09 2f 2f |t = True|;.....//|
|00005cc0| 20 4c 6f 67 20 69 74 2e | 0d 0a 09 69 66 20 28 4c | Log it.|...if (L|
|00005cd0| 6f 63 61 6c 4c 6f 67 20 | 21 3d 20 4e 6f 6e 65 29 |ocalLog |!= None)|
|00005ce0| 0d 0a 09 7b 0d 0a 09 09 | 4c 6f 63 61 6c 4c 6f 67 |...{....|LocalLog|
|00005cf0| 2e 4c 6f 67 50 6c 61 79 | 65 72 43 6f 6e 6e 65 63 |.LogPlay|erConnec|
|00005d00| 74 28 4e 65 77 42 6f 74 | 29 3b 0d 0a 09 09 4c 6f |t(NewBot|);....Lo|
|00005d10| 63 61 6c 4c 6f 67 2e 46 | 6c 75 73 68 4c 6f 67 28 |calLog.F|lushLog(|
|00005d20| 29 3b 0d 0a 09 7d 0d 0a | 09 69 66 20 28 57 6f 72 |);...}..|.if (Wor|
|00005d30| 6c 64 4c 6f 67 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |ldLog !=| None)..|
|00005d40| 09 7b 0d 0a 09 09 57 6f | 72 6c 64 4c 6f 67 2e 4c |.{....Wo|rldLog.L|
|00005d50| 6f 67 50 6c 61 79 65 72 | 43 6f 6e 6e 65 63 74 28 |ogPlayer|Connect(|
|00005d60| 4e 65 77 42 6f 74 29 3b | 0d 0a 09 09 57 6f 72 6c |NewBot);|....Worl|
|00005d70| 64 4c 6f 67 2e 46 6c 75 | 73 68 4c 6f 67 28 29 3b |dLog.Flu|shLog();|
|00005d80| 0d 0a 09 7d 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |...}....|.return |
|00005d90| 74 72 75 65 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |true;..}|....func|
|00005da0| 74 69 6f 6e 20 4d 6f 64 | 69 66 79 42 65 68 61 76 |tion Mod|ifyBehav|
|00005db0| 69 6f 75 72 28 42 6f 74 | 20 4e 65 77 42 6f 74 29 |iour(Bot| NewBot)|
|00005dc0| 3b 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 50 6c |;....fun|ction Pl|
|00005dd0| 61 79 53 74 61 72 74 55 | 70 4d 65 73 73 61 67 65 |ayStartU|pMessage|
|00005de0| 28 50 6c 61 79 65 72 50 | 61 77 6e 20 4e 65 77 50 |(PlayerP|awn NewP|
|00005df0| 6c 61 79 65 72 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |layer)..|{...loca|
|00005e00| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 4e 65 77 |l int i;|.....New|
|00005e10| 50 6c 61 79 65 72 2e 43 | 6c 65 61 72 50 72 6f 67 |Player.C|learProg|
|00005e20| 72 65 73 73 4d 65 73 73 | 61 67 65 73 28 29 3b 0d |ressMess|ages();.|
|00005e30| 0a 0d 0a 09 2f 2f 20 47 | 61 6d 65 20 4e 61 6d 65 |....// G|ame Name|
|00005e40| 0d 0a 09 4e 65 77 50 6c | 61 79 65 72 2e 53 65 74 |...NewPl|ayer.Set|
|00005e50| 50 72 6f 67 72 65 73 73 | 4d 65 73 73 61 67 65 28 |Progress|Message(|
|00005e60| 47 61 6d 65 4e 61 6d 65 | 2c 20 69 2b 2b 29 3b 0d |GameName|, i++);.|
|00005e70| 0a 0d 0a 09 2f 2f 20 4f | 70 74 69 6f 6e 61 6c 20 |....// O|ptional |
|00005e80| 46 72 61 67 4c 69 6d 69 | 74 0d 0a 09 69 66 20 28 |FragLimi|t...if (|
|00005e90| 20 66 72 61 67 6c 69 6d | 69 74 20 3e 20 30 20 29 | fraglim|it > 0 )|
|00005ea0| 0d 0a 09 09 4e 65 77 50 | 6c 61 79 65 72 2e 53 65 |....NewP|layer.Se|
|00005eb0| 74 50 72 6f 67 72 65 73 | 73 4d 65 73 73 61 67 65 |tProgres|sMessage|
|00005ec0| 28 46 72 61 67 4c 69 6d | 69 74 40 47 61 6d 65 47 |(FragLim|it@GameG|
|00005ed0| 6f 61 6c 2c 20 69 2b 2b | 29 3b 0d 0a 0d 0a 09 69 |oal, i++|);.....i|
|00005ee0| 66 20 28 20 4c 65 76 65 | 6c 2e 4e 65 74 4d 6f 64 |f ( Leve|l.NetMod|
|00005ef0| 65 20 3d 3d 20 4e 4d 5f | 53 74 61 6e 64 61 6c 6f |e == NM_|Standalo|
|00005f00| 6e 65 20 29 0d 0a 09 09 | 4e 65 77 50 6c 61 79 65 |ne )....|NewPlaye|
|00005f10| 72 2e 53 65 74 50 72 6f | 67 72 65 73 73 4d 65 73 |r.SetPro|gressMes|
|00005f20| 73 61 67 65 28 53 69 6e | 67 6c 65 57 61 69 74 69 |sage(Sin|gleWaiti|
|00005f30| 6e 67 4d 65 73 73 61 67 | 65 2c 20 69 2b 2b 29 3b |ngMessag|e, i++);|
|00005f40| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 62 52 65 |...else |if ( bRe|
|00005f50| 71 75 69 72 65 52 65 61 | 64 79 20 29 0d 0a 09 09 |quireRea|dy )....|
|00005f60| 4e 65 77 50 6c 61 79 65 | 72 2e 53 65 74 50 72 6f |NewPlaye|r.SetPro|
|00005f70| 67 72 65 73 73 4d 65 73 | 73 61 67 65 28 54 6f 75 |gressMes|sage(Tou|
|00005f80| 72 6e 65 79 4d 65 73 73 | 61 67 65 2c 20 69 2b 2b |rneyMess|age, i++|
|00005f90| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00005fa0| 6e 20 66 6c 6f 61 74 20 | 50 6c 61 79 65 72 4a 75 |n float |PlayerJu|
|00005fb0| 6d 70 5a 53 63 61 6c 69 | 6e 67 28 29 0d 0a 7b 0d |mpZScali|ng()..{.|
|00005fc0| 0a 09 69 66 20 28 20 62 | 4a 75 6d 70 4d 61 74 63 |..if ( b|JumpMatc|
|00005fd0| 68 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 33 3b |h )....r|eturn 3;|
|00005fe0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 62 4d 65 |...else |if ( bMe|
|00005ff0| 67 61 53 70 65 65 64 20 | 29 0d 0a 09 09 72 65 74 |gaSpeed |)....ret|
|00006000| 75 72 6e 20 31 2e 32 3b | 0d 0a 09 65 6c 73 65 20 |urn 1.2;|...else |
|00006010| 69 66 20 28 20 62 48 61 | 72 64 43 6f 72 65 4d 6f |if ( bHa|rdCoreMo|
|00006020| 64 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 31 |de )....|return 1|
|00006030| 2e 31 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 72 65 |.1;...el|se....re|
|00006040| 74 75 72 6e 20 31 2e 30 | 3b 0d 0a 7d 0d 0a 0d 0a |turn 1.0|;..}....|
|00006050| 66 75 6e 63 74 69 6f 6e | 20 41 64 64 44 65 66 61 |function| AddDefa|
|00006060| 75 6c 74 49 6e 76 65 6e | 74 6f 72 79 28 20 70 61 |ultInven|tory( pa|
|00006070| 77 6e 20 50 6c 61 79 65 | 72 50 61 77 6e 20 29 0d |wn Playe|rPawn ).|
|00006080| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 57 65 61 70 6f |.{...loc|al Weapo|
|00006090| 6e 20 4e 65 77 57 65 61 | 70 6f 6e 3b 0d 0a 09 6c |n NewWea|pon;...l|
|000060a0| 6f 63 61 6c 20 42 6f 74 | 20 42 3b 0d 0a 0d 0a 09 |ocal Bot| B;.....|
|000060b0| 69 66 20 28 20 50 6c 61 | 79 65 72 50 61 77 6e 2e |if ( Pla|yerPawn.|
|000060c0| 49 73 41 28 27 53 70 65 | 63 74 61 74 6f 72 27 29 |IsA('Spe|ctator')|
|000060d0| 20 7c 7c 20 28 62 52 65 | 71 75 69 72 65 52 65 61 | || (bRe|quireRea|
|000060e0| 64 79 20 26 26 20 28 43 | 6f 75 6e 74 44 6f 77 6e |dy && (C|ountDown|
|000060f0| 20 3e 20 30 29 29 20 29 | 0d 0a 09 09 72 65 74 75 | > 0)) )|....retu|
|00006100| 72 6e 3b 0d 0a 0d 0a 09 | 2f 2f 20 53 70 61 77 6e |rn;.....|// Spawn|
|00006110| 20 41 75 74 6f 6d 61 67 | 0d 0a 09 47 69 76 65 57 | Automag|...GiveW|
|00006120| 65 61 70 6f 6e 28 50 6c | 61 79 65 72 50 61 77 6e |eapon(Pl|ayerPawn|
|00006130| 2c 20 22 42 6f 74 70 61 | 63 6b 2e 45 6e 66 6f 72 |, "Botpa|ck.Enfor|
|00006140| 63 65 72 22 29 3b 0d 0a | 0d 0a 09 53 75 70 65 72 |cer");..|...Super|
|00006150| 2e 41 64 64 44 65 66 61 | 75 6c 74 49 6e 76 65 6e |.AddDefa|ultInven|
|00006160| 74 6f 72 79 28 50 6c 61 | 79 65 72 50 61 77 6e 29 |tory(Pla|yerPawn)|
|00006170| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 62 55 73 65 54 |;.....if| ( bUseT|
|00006180| 72 61 6e 73 6c 6f 63 61 | 74 6f 72 20 26 26 20 28 |ransloca|tor && (|
|00006190| 21 62 52 61 74 65 64 47 | 61 6d 65 20 7c 7c 20 62 |!bRatedG|ame || b|
|000061a0| 52 61 74 65 64 54 72 61 | 6e 73 6c 6f 63 61 74 6f |RatedTra|nslocato|
|000061b0| 72 29 20 29 0d 0a 09 7b | 0d 0a 09 09 2f 2f 20 53 |r) )...{|....// S|
|000061c0| 70 61 77 6e 20 54 72 61 | 6e 73 6c 6f 63 61 74 6f |pawn Tra|nslocato|
|000061d0| 72 2e 0d 0a 09 09 69 66 | 28 20 50 6c 61 79 65 72 |r.....if|( Player|
|000061e0| 50 61 77 6e 2e 46 69 6e | 64 49 6e 76 65 6e 74 6f |Pawn.Fin|dInvento|
|000061f0| 72 79 54 79 70 65 28 63 | 6c 61 73 73 27 54 72 61 |ryType(c|lass'Tra|
|00006200| 6e 73 6c 6f 63 61 74 6f | 72 27 29 3d 3d 4e 6f 6e |nslocato|r')==Non|
|00006210| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 6e 65 77 |e )....{|.....new|
|00006220| 57 65 61 70 6f 6e 20 3d | 20 53 70 61 77 6e 28 63 |Weapon =| Spawn(c|
|00006230| 6c 61 73 73 27 54 72 61 | 6e 73 6c 6f 63 61 74 6f |lass'Tra|nslocato|
|00006240| 72 27 29 3b 0d 0a 09 09 | 09 69 66 28 20 6e 65 77 |r');....|.if( new|
|00006250| 57 65 61 70 6f 6e 20 21 | 3d 20 4e 6f 6e 65 20 29 |Weapon !|= None )|
|00006260| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 6e 65 77 57 |.....{..|....newW|
|00006270| 65 61 70 6f 6e 2e 49 6e | 73 74 69 67 61 74 6f 72 |eapon.In|stigator|
|00006280| 20 3d 20 50 6c 61 79 65 | 72 50 61 77 6e 3b 0d 0a | = Playe|rPawn;..|
|00006290| 09 09 09 09 6e 65 77 57 | 65 61 70 6f 6e 2e 42 65 |....newW|eapon.Be|
|000062a0| 63 6f 6d 65 49 74 65 6d | 28 29 3b 0d 0a 09 09 09 |comeItem|();.....|
|000062b0| 09 50 6c 61 79 65 72 50 | 61 77 6e 2e 41 64 64 49 |.PlayerP|awn.AddI|
|000062c0| 6e 76 65 6e 74 6f 72 79 | 28 6e 65 77 57 65 61 70 |nventory|(newWeap|
|000062d0| 6f 6e 29 3b 0d 0a 09 09 | 09 09 6e 65 77 57 65 61 |on);....|..newWea|
|000062e0| 70 6f 6e 2e 47 69 76 65 | 41 6d 6d 6f 28 50 6c 61 |pon.Give|Ammo(Pla|
|000062f0| 79 65 72 50 61 77 6e 29 | 3b 0d 0a 09 09 09 09 6e |yerPawn)|;......n|
|00006300| 65 77 57 65 61 70 6f 6e | 2e 53 65 74 53 77 69 74 |ewWeapon|.SetSwit|
|00006310| 63 68 50 72 69 6f 72 69 | 74 79 28 50 6c 61 79 65 |chPriori|ty(Playe|
|00006320| 72 50 61 77 6e 29 3b 0d | 0a 09 09 09 09 6e 65 77 |rPawn);.|.....new|
|00006330| 57 65 61 70 6f 6e 2e 57 | 65 61 70 6f 6e 53 65 74 |Weapon.W|eaponSet|
|00006340| 28 50 6c 61 79 65 72 50 | 61 77 6e 29 3b 0d 0a 09 |(PlayerP|awn);...|
|00006350| 09 09 7d 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 0d 0a |..}....}|...}....|
|00006360| 09 42 20 3d 20 42 6f 74 | 28 50 6c 61 79 65 72 50 |.B = Bot|(PlayerP|
|00006370| 61 77 6e 29 3b 0d 0a 09 | 69 66 20 28 20 42 20 21 |awn);...|if ( B !|
|00006380| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 42 2e 62 48 |= None )|....B.bH|
|00006390| 61 73 49 6d 70 61 63 74 | 48 61 6d 6d 65 72 20 3d |asImpact|Hammer =|
|000063a0| 20 28 42 2e 46 69 6e 64 | 49 6e 76 65 6e 74 6f 72 | (B.Find|Inventor|
|000063b0| 79 54 79 70 65 28 63 6c | 61 73 73 27 49 6d 70 61 |yType(cl|ass'Impa|
|000063c0| 63 74 48 61 6d 6d 65 72 | 27 29 20 21 3d 20 4e 6f |ctHammer|') != No|
|000063d0| 6e 65 29 3b 0d 0a 7d 09 | 0d 0a 0d 0a 66 75 6e 63 |ne);..}.|....func|
|000063e0| 74 69 6f 6e 20 47 69 76 | 65 57 65 61 70 6f 6e 28 |tion Giv|eWeapon(|
|000063f0| 50 61 77 6e 20 50 6c 61 | 79 65 72 50 61 77 6e 2c |Pawn Pla|yerPawn,|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.