home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-05-10 | 22.3 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 46 e4 02 63 6c 61 73 73 |........|F..class|
|00000010| 20 49 6e 76 61 73 69 6f | 6e 20 65 78 74 65 6e 64 | Invasio|n extend|
|00000020| 73 20 78 54 65 61 6d 47 | 61 6d 65 0d 0a 09 63 6f |s xTeamG|ame...co|
|00000030| 6e 66 69 67 3b 0d 0a 0d | 0a 23 65 78 65 63 20 4f |nfig;...|.#exec O|
|00000040| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 53 6b 61 |BJ LOAD |FILE=Ska|
|00000050| 61 72 6a 50 61 63 6b 53 | 6b 69 6e 73 2e 75 74 78 |arjPackS|kins.utx|
|00000060| 0d 0a 23 65 78 65 63 20 | 4f 42 4a 20 4c 4f 41 44 |..#exec |OBJ LOAD|
|00000070| 20 46 49 4c 45 3d 41 6e | 6e 6f 75 6e 63 65 72 45 | FILE=An|nouncerE|
|00000080| 76 69 6c 2e 75 61 78 0d | 0a 0d 0a 76 61 72 20 63 |vil.uax.|...var c|
|00000090| 6c 61 73 73 3c 4d 6f 6e | 73 74 65 72 3e 20 4d 6f |lass<Mon|ster> Mo|
|000000a0| 6e 73 74 65 72 43 6c 61 | 73 73 5b 31 36 5d 3b 0d |nsterCla|ss[16];.|
|000000b0| 0a 76 61 72 20 63 6c 61 | 73 73 3c 4d 6f 6e 73 74 |.var cla|ss<Monst|
|000000c0| 65 72 3e 20 57 61 76 65 | 4d 6f 6e 73 74 65 72 43 |er> Wave|MonsterC|
|000000d0| 6c 61 73 73 5b 31 36 5d | 3b 0d 0a 76 61 72 20 63 |lass[16]|;..var c|
|000000e0| 6c 61 73 73 3c 4d 6f 6e | 73 74 65 72 3e 20 4c 61 |lass<Mon|ster> La|
|000000f0| 73 74 4b 69 6c 6c 65 64 | 4d 6f 6e 73 74 65 72 43 |stKilled|MonsterC|
|00000100| 6c 61 73 73 3b 0d 0a 76 | 61 72 20 63 6c 61 73 73 |lass;..v|ar class|
|00000110| 3c 4d 6f 6e 73 74 65 72 | 3e 20 46 61 6c 6c 62 61 |<Monster|> Fallba|
|00000120| 63 6b 4d 6f 6e 73 74 65 | 72 3b 0d 0a 0d 0a 76 61 |ckMonste|r;....va|
|00000130| 72 20 66 6c 6f 61 74 20 | 4e 65 78 74 4d 6f 6e 73 |r float |NextMons|
|00000140| 74 65 72 54 69 6d 65 3b | 0d 0a 76 61 72 20 66 6c |terTime;|..var fl|
|00000150| 6f 61 74 20 57 61 76 65 | 45 6e 64 54 69 6d 65 3b |oat Wave|EndTime;|
|00000160| 0d 0a 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 20 |....var |config |
|00000170| 73 74 72 69 6e 67 20 20 | 57 61 76 65 43 6f 6e 66 |string |WaveConf|
|00000180| 69 67 4d 65 6e 75 3b 0d | 0a 76 61 72 20 63 6f 6e |igMenu;.|.var con|
|00000190| 66 69 67 20 09 73 74 72 | 69 6e 67 09 46 61 6c 6c |fig .str|ing.Fall|
|000001a0| 62 61 63 6b 4d 6f 6e 73 | 74 65 72 43 6c 61 73 73 |backMons|terClass|
|000001b0| 3b 0d 0a 76 61 72 20 63 | 6f 6e 66 69 67 09 69 6e |;..var c|onfig.in|
|000001c0| 74 09 09 49 6e 69 74 69 | 61 6c 57 61 76 65 3b 0d |t..Initi|alWave;.|
|000001d0| 0a 76 61 72 20 63 6f 6e | 66 69 67 09 69 6e 74 09 |.var con|fig.int.|
|000001e0| 09 46 69 6e 61 6c 57 61 | 76 65 3b 0d 0a 0d 0a 63 |.FinalWa|ve;....c|
|000001f0| 6f 6e 73 74 20 49 4e 56 | 50 52 4f 50 4e 55 4d 20 |onst INV|PROPNUM |
|00000200| 3d 20 38 3b 0d 0a 76 61 | 72 20 6c 6f 63 61 6c 69 |= 8;..va|r locali|
|00000210| 7a 65 64 20 73 74 72 69 | 6e 67 20 49 6e 76 61 73 |zed stri|ng Invas|
|00000220| 69 6f 6e 50 72 6f 70 54 | 65 78 74 5b 49 4e 56 50 |ionPropT|ext[INVP|
|00000230| 52 4f 50 4e 55 4d 5d 3b | 0d 0a 76 61 72 20 6c 6f |ROPNUM];|..var lo|
|00000240| 63 61 6c 69 7a 65 64 20 | 73 74 72 69 6e 67 20 49 |calized |string I|
|00000250| 6e 76 61 73 69 6f 6e 44 | 65 73 63 54 65 78 74 5b |nvasionD|escText[|
|00000260| 49 4e 56 50 52 4f 50 4e | 55 4d 5d 3b 0d 0a 0d 0a |INVPROPN|UM];....|
|00000270| 76 61 72 20 69 6e 74 20 | 4e 75 6d 4d 6f 6e 73 74 |var int |NumMonst|
|00000280| 65 72 73 2c 20 4d 61 78 | 4d 6f 6e 73 74 65 72 73 |ers, Max|Monsters|
|00000290| 3b 0d 0a 76 61 72 20 69 | 6e 74 20 57 61 76 65 4e |;..var i|nt WaveN|
|000002a0| 75 6d 3b 0d 0a 76 61 72 | 20 69 6e 74 20 57 61 76 |um;..var| int Wav|
|000002b0| 65 4e 75 6d 43 6c 61 73 | 73 65 73 3b 0d 0a 76 61 |eNumClas|ses;..va|
|000002c0| 72 20 69 6e 74 20 57 61 | 76 65 4d 6f 6e 73 74 65 |r int Wa|veMonste|
|000002d0| 72 73 3b 0d 0a 76 61 72 | 20 69 6e 74 20 53 65 63 |rs;..var| int Sec|
|000002e0| 6f 6e 64 42 6f 74 3b 0d | 0a 76 61 72 20 69 6e 74 |ondBot;.|.var int|
|000002f0| 20 57 61 76 65 43 6f 75 | 6e 74 44 6f 77 6e 3b 0d | WaveCou|ntDown;.|
|00000300| 0a 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 57 61 76 |...var b|ool bWav|
|00000310| 65 49 6e 50 72 6f 67 72 | 65 73 73 3b 0d 0a 0d 0a |eInProgr|ess;....|
|00000320| 76 61 72 20 73 74 72 69 | 6e 67 20 49 6e 76 61 73 |var stri|ng Invas|
|00000330| 69 6f 6e 42 6f 74 4e 61 | 6d 65 73 5b 39 5d 3b 0d |ionBotNa|mes[9];.|
|00000340| 0a 0d 0a 76 61 72 20 73 | 6f 75 6e 64 20 4e 65 77 |...var s|ound New|
|00000350| 52 6f 75 6e 64 53 6f 75 | 6e 64 3b 20 20 2f 2f 20 |RoundSou|nd; // |
|00000360| 4f 42 53 4f 4c 45 54 45 | 0d 0a 76 61 72 20 73 6f |OBSOLETE|..var so|
|00000370| 75 6e 64 20 49 6e 76 61 | 73 69 6f 6e 45 6e 64 53 |und Inva|sionEndS|
|00000380| 6f 75 6e 64 5b 36 5d 3b | 20 20 2f 2f 20 4f 42 53 |ound[6];| // OBS|
|00000390| 4f 4c 45 54 45 0d 0a 76 | 61 72 20 6e 61 6d 65 20 |OLETE..v|ar name |
|000003a0| 49 6e 76 61 73 69 6f 6e | 45 6e 64 5b 36 5d 3b 0d |Invasion|End[6];.|
|000003b0| 0a 0d 0a 73 74 72 75 63 | 74 20 57 61 76 65 49 6e |...struc|t WaveIn|
|000003c0| 66 6f 0d 0a 7b 0d 0a 09 | 76 61 72 28 29 20 69 6e |fo..{...|var() in|
|000003d0| 74 09 57 61 76 65 4d 61 | 73 6b 3b 09 2f 2f 20 62 |t.WaveMa|sk;.// b|
|000003e0| 69 74 20 66 69 65 6c 64 | 73 20 66 6f 72 20 77 68 |it field|s for wh|
|000003f0| 69 63 68 20 6d 6f 6e 73 | 74 65 72 63 6c 61 73 73 |ich mons|terclass|
|00000400| 65 73 0d 0a 09 76 61 72 | 28 29 20 62 79 74 65 09 |es...var|() byte.|
|00000410| 57 61 76 65 4d 61 78 4d | 6f 6e 73 74 65 72 73 3b |WaveMaxM|onsters;|
|00000420| 0d 0a 09 76 61 72 28 29 | 20 62 79 74 65 09 57 61 |...var()| byte.Wa|
|00000430| 76 65 44 75 72 61 74 69 | 6f 6e 3b 0d 0a 09 76 61 |veDurati|on;...va|
|00000440| 72 28 29 20 66 6c 6f 61 | 74 09 57 61 76 65 44 69 |r() floa|t.WaveDi|
|00000450| 66 66 69 63 75 6c 74 79 | 3b 0d 0a 7d 3b 0d 0a 0d |fficulty|;..};...|
|00000460| 0a 76 61 72 28 29 20 63 | 6f 6e 66 69 67 20 57 61 |.var() c|onfig Wa|
|00000470| 76 65 49 6e 66 6f 20 57 | 61 76 65 73 5b 31 36 5d |veInfo W|aves[16]|
|00000480| 3b 09 2f 2f 20 54 4f 44 | 4f 20 41 64 64 20 73 75 |;.// TOD|O Add su|
|00000490| 70 70 6f 72 74 20 66 6f | 72 20 73 74 72 75 63 74 |pport fo|r struct|
|000004a0| 73 20 26 20 61 72 72 61 | 79 73 20 74 6f 20 50 6c |s & arra|ys to Pl|
|000004b0| 61 79 49 6e 66 6f 0d 0a | 0d 0a 73 74 61 74 69 63 |ayInfo..|..static|
|000004c0| 20 66 75 6e 63 74 69 6f | 6e 20 50 72 65 63 61 63 | functio|n Precac|
|000004d0| 68 65 47 61 6d 65 54 65 | 78 74 75 72 65 73 28 4c |heGameTe|xtures(L|
|000004e0| 65 76 65 6c 49 6e 66 6f | 20 6d 79 4c 65 76 65 6c |evelInfo| myLevel|
|000004f0| 29 0d 0a 7b 0d 0a 09 63 | 6c 61 73 73 27 78 54 65 |)..{...c|lass'xTe|
|00000500| 61 6d 47 61 6d 65 27 2e | 73 74 61 74 69 63 2e 50 |amGame'.|static.P|
|00000510| 72 65 63 61 63 68 65 47 | 61 6d 65 54 65 78 74 75 |recacheG|ameTextu|
|00000520| 72 65 73 28 6d 79 4c 65 | 76 65 6c 29 3b 0d 0a 0d |res(myLe|vel);...|
|00000530| 0a 09 6d 79 4c 65 76 65 | 6c 2e 41 64 64 50 72 65 |..myLeve|l.AddPre|
|00000540| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|00000550| 74 65 72 69 61 6c 27 53 | 6b 61 61 72 6a 50 61 63 |terial'S|kaarjPac|
|00000560| 6b 53 6b 69 6e 73 2e 6a | 42 72 75 74 65 32 27 29 |kSkins.j|Brute2')|
|00000570| 3b 0d 0a 09 6d 79 4c 65 | 76 65 6c 2e 41 64 64 50 |;...myLe|vel.AddP|
|00000580| 72 65 63 61 63 68 65 4d | 61 74 65 72 69 61 6c 28 |recacheM|aterial(|
|00000590| 4d 61 74 65 72 69 61 6c | 27 53 6b 61 61 72 6a 50 |Material|'SkaarjP|
|000005a0| 61 63 6b 53 6b 69 6e 73 | 2e 6a 42 72 75 74 65 31 |ackSkins|.jBrute1|
|000005b0| 27 29 3b 0d 0a 09 6d 79 | 4c 65 76 65 6c 2e 41 64 |');...my|Level.Ad|
|000005c0| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|000005d0| 6c 28 4d 61 74 65 72 69 | 61 6c 27 53 6b 61 61 72 |l(Materi|al'Skaar|
|000005e0| 6a 50 61 63 6b 53 6b 69 | 6e 73 2e 65 4b 72 61 6c |jPackSki|ns.eKral|
|000005f0| 6c 27 29 3b 0d 0a 09 6d | 79 4c 65 76 65 6c 2e 41 |l');...m|yLevel.A|
|00000600| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00000610| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 53 6b 61 61 |al(Mater|ial'Skaa|
|00000620| 72 6a 50 61 63 6b 53 6b | 69 6e 73 2e 53 6b 61 61 |rjPackSk|ins.Skaa|
|00000630| 72 6a 77 33 27 29 3b 0d | 0a 09 6d 79 4c 65 76 65 |rjw3');.|..myLeve|
|00000640| 6c 2e 41 64 64 50 72 65 | 63 61 63 68 65 4d 61 74 |l.AddPre|cacheMat|
|00000650| 65 72 69 61 6c 28 4d 61 | 74 65 72 69 61 6c 27 53 |erial(Ma|terial'S|
|00000660| 6b 61 61 72 6a 50 61 63 | 6b 53 6b 69 6e 73 2e 47 |kaarjPac|kSkins.G|
|00000670| 61 73 62 61 67 31 27 29 | 3b 0d 0a 09 6d 79 4c 65 |asbag1')|;...myLe|
|00000680| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000690| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|000006a0| 27 53 6b 61 61 72 6a 50 | 61 63 6b 53 6b 69 6e 73 |'SkaarjP|ackSkins|
|000006b0| 2e 47 61 73 62 61 67 32 | 27 29 3b 0d 0a 09 6d 79 |.Gasbag2|');...my|
|000006c0| 4c 65 76 65 6c 2e 41 64 | 64 50 72 65 63 61 63 68 |Level.Ad|dPrecach|
|000006d0| 65 4d 61 74 65 72 69 61 | 6c 28 4d 61 74 65 72 69 |eMateria|l(Materi|
|000006e0| 61 6c 27 53 6b 61 61 72 | 6a 50 61 63 6b 53 6b 69 |al'Skaar|jPackSki|
|000006f0| 6e 73 2e 53 6b 61 61 72 | 6a 77 32 27 29 3b 0d 0a |ns.Skaar|jw2');..|
|00000700| 09 6d 79 4c 65 76 65 6c | 2e 41 64 64 50 72 65 63 |.myLevel|.AddPrec|
|00000710| 61 63 68 65 4d 61 74 65 | 72 69 61 6c 28 4d 61 74 |acheMate|rial(Mat|
|00000720| 65 72 69 61 6c 27 53 6b | 61 61 72 6a 50 61 63 6b |erial'Sk|aarjPack|
|00000730| 53 6b 69 6e 73 2e 4a 4d | 61 6e 74 61 31 27 29 3b |Skins.JM|anta1');|
|00000740| 0d 0a 09 6d 79 4c 65 76 | 65 6c 2e 41 64 64 50 72 |...myLev|el.AddPr|
|00000750| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00000760| 61 74 65 72 69 61 6c 27 | 53 6b 61 61 72 6a 50 61 |aterial'|SkaarjPa|
|00000770| 63 6b 53 6b 69 6e 73 2e | 4a 46 6c 79 31 27 29 3b |ckSkins.|JFly1');|
|00000780| 0d 0a 09 6d 79 4c 65 76 | 65 6c 2e 41 64 64 50 72 |...myLev|el.AddPr|
|00000790| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|000007a0| 61 74 65 72 69 61 6c 27 | 53 6b 61 61 72 6a 50 61 |aterial'|SkaarjPa|
|000007b0| 63 6b 53 6b 69 6e 73 2e | 53 6b 61 61 72 6a 77 31 |ckSkins.|Skaarjw1|
|000007c0| 27 29 3b 0d 0a 09 6d 79 | 4c 65 76 65 6c 2e 41 64 |');...my|Level.Ad|
|000007d0| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|000007e0| 6c 28 4d 61 74 65 72 69 | 61 6c 27 53 6b 61 61 72 |l(Materi|al'Skaar|
|000007f0| 6a 50 61 63 6b 53 6b 69 | 6e 73 2e 4a 50 75 70 61 |jPackSki|ns.JPupa|
|00000800| 65 31 27 29 3b 0d 0a 09 | 6d 79 4c 65 76 65 6c 2e |e1');...|myLevel.|
|00000810| 41 64 64 50 72 65 63 61 | 63 68 65 4d 61 74 65 72 |AddPreca|cheMater|
|00000820| 69 61 6c 28 4d 61 74 65 | 72 69 61 6c 27 53 6b 61 |ial(Mate|rial'Ska|
|00000830| 61 72 6a 50 61 63 6b 53 | 6b 69 6e 73 2e 4a 57 61 |arjPackS|kins.JWa|
|00000840| 72 6c 6f 72 64 31 27 29 | 3b 0d 0a 09 6d 79 4c 65 |rlord1')|;...myLe|
|00000850| 76 65 6c 2e 41 64 64 50 | 72 65 63 61 63 68 65 4d |vel.AddP|recacheM|
|00000860| 61 74 65 72 69 61 6c 28 | 4d 61 74 65 72 69 61 6c |aterial(|Material|
|00000870| 27 53 6b 61 61 72 6a 50 | 61 63 6b 53 6b 69 6e 73 |'SkaarjP|ackSkins|
|00000880| 2e 6a 6b 72 61 6c 6c 27 | 29 3b 0d 0a 7d 0d 0a 0d |.jkrall'|);..}...|
|00000890| 0a 73 74 61 74 69 63 20 | 66 75 6e 63 74 69 6f 6e |.static |function|
|000008a0| 20 50 72 65 63 61 63 68 | 65 47 61 6d 65 41 6e 6e | Precach|eGameAnn|
|000008b0| 6f 75 6e 63 65 6d 65 6e | 74 73 28 41 6e 6e 6f 75 |ouncemen|ts(Annou|
|000008c0| 6e 63 65 72 56 6f 69 63 | 65 20 56 2c 20 62 6f 6f |ncerVoic|e V, boo|
|000008d0| 6c 20 62 52 65 77 61 72 | 64 53 6f 75 6e 64 73 29 |l bRewar|dSounds)|
|000008e0| 0d 0a 7b 0d 0a 09 53 75 | 70 65 72 2e 50 72 65 63 |..{...Su|per.Prec|
|000008f0| 61 63 68 65 47 61 6d 65 | 41 6e 6e 6f 75 6e 63 65 |acheGame|Announce|
|00000900| 6d 65 6e 74 73 28 56 2c | 62 52 65 77 61 72 64 53 |ments(V,|bRewardS|
|00000910| 6f 75 6e 64 73 29 3b 0d | 0a 09 69 66 20 28 20 62 |ounds);.|..if ( b|
|00000920| 52 65 77 61 72 64 53 6f | 75 6e 64 73 20 29 0d 0a |RewardSo|unds )..|
|00000930| 09 7b 0d 0a 09 09 56 2e | 50 72 65 63 61 63 68 65 |.{....V.|Precache|
|00000940| 53 6f 75 6e 64 28 27 53 | 4b 41 41 52 4a 74 65 72 |Sound('S|KAARJter|
|00000950| 6d 69 6e 61 74 69 6f 6e | 27 29 3b 0d 0a 09 09 56 |mination|');....V|
|00000960| 2e 50 72 65 63 61 63 68 | 65 53 6f 75 6e 64 28 27 |.Precach|eSound('|
|00000970| 53 4b 41 41 52 4a 73 6c | 61 75 67 68 74 65 72 27 |SKAARJsl|aughter'|
|00000980| 29 3b 0d 0a 09 09 56 2e | 50 72 65 63 61 63 68 65 |);....V.|Precache|
|00000990| 53 6f 75 6e 64 28 27 53 | 4b 41 41 52 4a 65 78 74 |Sound('S|KAARJext|
|000009a0| 65 72 6d 69 6e 61 74 69 | 6f 6e 27 29 3b 0d 0a 09 |erminati|on');...|
|000009b0| 09 56 2e 50 72 65 63 61 | 63 68 65 53 6f 75 6e 64 |.V.Preca|cheSound|
|000009c0| 28 27 53 4b 41 41 52 4a | 65 72 72 61 64 69 63 61 |('SKAARJ|erradica|
|000009d0| 74 69 6f 6e 27 29 3b 0d | 0a 09 09 56 2e 50 72 65 |tion');.|...V.Pre|
|000009e0| 63 61 63 68 65 53 6f 75 | 6e 64 28 27 53 4b 41 41 |cacheSou|nd('SKAA|
|000009f0| 52 4a 62 6c 6f 6f 64 62 | 61 74 68 27 29 3b 0d 0a |RJbloodb|ath');..|
|00000a00| 09 09 56 2e 50 72 65 63 | 61 63 68 65 53 6f 75 6e |..V.Prec|acheSoun|
|00000a10| 64 28 27 53 4b 41 41 52 | 4a 61 6e 6e 69 68 69 6c |d('SKAAR|Jannihil|
|00000a20| 61 74 69 6f 6e 27 29 3b | 0d 0a 09 7d 0d 0a 09 65 |ation');|...}...e|
|00000a30| 6c 73 65 0d 0a 09 09 56 | 2e 50 72 65 63 61 63 68 |lse....V|.Precach|
|00000a40| 65 53 6f 75 6e 64 28 27 | 4e 65 78 74 5f 77 61 76 |eSound('|Next_wav|
|00000a50| 65 5f 69 6e 27 29 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2a |e_in');.|.}..../*|
|00000a60| 20 4f 42 53 4f 4c 45 54 | 45 20 55 70 64 61 74 65 | OBSOLET|E Update|
|00000a70| 41 6e 6e 6f 75 6e 63 65 | 6d 65 6e 74 73 28 29 20 |Announce|ments() |
|00000a80| 2d 20 70 72 65 6c 6f 61 | 64 20 61 6c 6c 20 61 6e |- preloa|d all an|
|00000a90| 6e 6f 75 6e 63 65 72 20 | 70 68 72 61 73 65 73 20 |nouncer |phrases |
|00000aa0| 75 73 65 64 20 62 79 20 | 74 68 69 73 20 61 63 74 |used by |this act|
|00000ab0| 6f 72 20 2a 2f 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |or */..s|imulated|
|00000ac0| 20 66 75 6e 63 74 69 6f | 6e 20 55 70 64 61 74 65 | functio|n Update|
|00000ad0| 41 6e 6e 6f 75 6e 63 65 | 6d 65 6e 74 73 28 29 20 |Announce|ments() |
|00000ae0| 7b 7d 0d 0a 0d 0a 65 76 | 65 6e 74 20 49 6e 69 74 |{}....ev|ent Init|
|00000af0| 47 61 6d 65 28 20 73 74 | 72 69 6e 67 20 4f 70 74 |Game( st|ring Opt|
|00000b00| 69 6f 6e 73 2c 20 6f 75 | 74 20 73 74 72 69 6e 67 |ions, ou|t string|
|00000b10| 20 45 72 72 6f 72 20 29 | 0d 0a 7b 0d 0a 09 53 75 | Error )|..{...Su|
|00000b20| 70 65 72 2e 49 6e 69 74 | 47 61 6d 65 28 4f 70 74 |per.Init|Game(Opt|
|00000b30| 69 6f 6e 73 2c 20 45 72 | 72 6f 72 29 3b 0d 0a 0d |ions, Er|ror);...|
|00000b40| 0a 09 46 61 6c 6c 62 61 | 63 6b 4d 6f 6e 73 74 65 |..Fallba|ckMonste|
|00000b50| 72 20 3d 20 63 6c 61 73 | 73 3c 4d 6f 6e 73 74 65 |r = clas|s<Monste|
|00000b60| 72 3e 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |r>(Dynam|icLoadOb|
|00000b70| 6a 65 63 74 28 46 61 6c | 6c 62 61 63 6b 4d 6f 6e |ject(Fal|lbackMon|
|00000b80| 73 74 65 72 43 6c 61 73 | 73 2c 20 63 6c 61 73 73 |sterClas|s, class|
|00000b90| 27 43 6c 61 73 73 27 29 | 29 3b 0d 0a 09 69 66 20 |'Class')|);...if |
|00000ba0| 28 46 61 6c 6c 62 61 63 | 6b 4d 6f 6e 73 74 65 72 |(Fallbac|kMonster|
|00000bb0| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 46 61 6c | == None|)....Fal|
|00000bc0| 6c 62 61 63 6b 4d 6f 6e | 73 74 65 72 20 3d 20 63 |lbackMon|ster = c|
|00000bd0| 6c 61 73 73 27 45 6c 69 | 74 65 4b 72 61 6c 6c 27 |lass'Eli|teKrall'|
|00000be0| 3b 0d 0a 0d 0a 20 20 20 | 20 4d 61 78 4c 69 76 65 |;.... | MaxLive|
|00000bf0| 73 20 3d 20 31 3b 0d 0a | 09 62 46 6f 72 63 65 52 |s = 1;..|.bForceR|
|00000c00| 65 73 70 61 77 6e 20 3d | 20 74 72 75 65 3b 0d 0a |espawn =| true;..|
|00000c10| 7d 0d 0a 0d 0a 65 76 65 | 6e 74 20 50 72 65 42 65 |}....eve|nt PreBe|
|00000c20| 67 69 6e 50 6c 61 79 28 | 29 0d 0a 7b 0d 0a 09 53 |ginPlay(|)..{...S|
|00000c30| 75 70 65 72 2e 50 72 65 | 42 65 67 69 6e 50 6c 61 |uper.Pre|BeginPla|
|00000c40| 79 28 29 3b 0d 0a 09 57 | 61 76 65 4e 75 6d 20 3d |y();...W|aveNum =|
|00000c50| 20 49 6e 69 74 69 61 6c | 57 61 76 65 3b 0d 0a 09 | Initial|Wave;...|
|00000c60| 49 6e 76 61 73 69 6f 6e | 47 61 6d 65 52 65 70 6c |Invasion|GameRepl|
|00000c70| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 28 47 61 6d 65 |icationI|nfo(Game|
|00000c80| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|00000c90| 2e 57 61 76 65 4e 75 6d | 62 65 72 20 3d 20 57 61 |.WaveNum|ber = Wa|
|00000ca0| 76 65 4e 75 6d 3b 0d 0a | 09 49 6e 76 61 73 69 6f |veNum;..|.Invasio|
|00000cb0| 6e 47 61 6d 65 52 65 70 | 6c 69 63 61 74 69 6f 6e |nGameRep|lication|
|00000cc0| 49 6e 66 6f 28 47 61 6d | 65 52 65 70 6c 69 63 61 |Info(Gam|eReplica|
|00000cd0| 74 69 6f 6e 49 6e 66 6f | 29 2e 42 61 73 65 44 69 |tionInfo|).BaseDi|
|00000ce0| 66 66 69 63 75 6c 74 79 | 20 3d 20 69 6e 74 28 47 |fficulty| = int(G|
|00000cf0| 61 6d 65 44 69 66 66 69 | 63 75 6c 74 79 29 3b 0d |ameDiffi|culty);.|
|00000d00| 0a 09 47 61 6d 65 52 65 | 70 6c 69 63 61 74 69 6f |..GameRe|plicatio|
|00000d10| 6e 49 6e 66 6f 2e 62 4e | 6f 54 65 61 6d 53 6b 69 |nInfo.bN|oTeamSki|
|00000d20| 6e 73 20 3d 20 74 72 75 | 65 3b 0d 0a 09 47 61 6d |ns = tru|e;...Gam|
|00000d30| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00000d40| 2e 62 46 6f 72 63 65 4e | 6f 50 6c 61 79 65 72 4c |.bForceN|oPlayerL|
|00000d50| 69 67 68 74 73 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ights = |true;...|
|00000d60| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00000d70| 6e 66 6f 2e 62 4e 6f 54 | 65 61 6d 43 68 61 6e 67 |nfo.bNoT|eamChang|
|00000d80| 65 73 20 3d 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |es = tru|e;..}...|
|00000d90| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 43 |.functio|n bool C|
|00000da0| 61 6e 53 70 65 63 74 61 | 74 65 28 20 50 6c 61 79 |anSpecta|te( Play|
|00000db0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 20 56 69 65 |erContro|ller Vie|
|00000dc0| 77 65 72 2c 20 62 6f 6f | 6c 20 62 4f 6e 6c 79 53 |wer, boo|l bOnlyS|
|00000dd0| 70 65 63 74 61 74 6f 72 | 2c 20 61 63 74 6f 72 20 |pectator|, actor |
|00000de0| 56 69 65 77 54 61 72 67 | 65 74 20 29 0d 0a 7b 0d |ViewTarg|et )..{.|
|00000df0| 0a 09 69 66 20 28 20 28 | 56 69 65 77 54 61 72 67 |..if ( (|ViewTarg|
|00000e00| 65 74 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |et == No|ne) )...|
|00000e10| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00000e20| 09 69 66 20 28 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |.if ( Co|ntroller|
|00000e30| 28 56 69 65 77 54 61 72 | 67 65 74 29 20 21 3d 20 |(ViewTar|get) != |
|00000e40| 4e 6f 6e 65 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |None )..|.{....if|
|00000e50| 20 28 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 56 69 | ( Contr|oller(Vi|
|00000e60| 65 77 54 61 72 67 65 74 | 29 2e 50 61 77 6e 20 3d |ewTarget|).Pawn =|
|00000e70| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 72 65 74 |= None )|.....ret|
|00000e80| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 72 65 |urn fals|e;....re|
|00000e90| 74 75 72 6e 20 28 20 28 | 43 6f 6e 74 72 6f 6c 6c |turn ( (|Controll|
|00000ea0| 65 72 28 56 69 65 77 54 | 61 72 67 65 74 29 2e 50 |er(ViewT|arget).P|
|00000eb0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000ec0| 49 6e 66 6f 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |Info != |None) &&|
|00000ed0| 20 28 56 69 65 77 54 61 | 72 67 65 74 20 21 3d 20 | (ViewTa|rget != |
|00000ee0| 56 69 65 77 65 72 29 0d | 0a 09 09 09 09 26 26 20 |Viewer).|.....&& |
|00000ef0| 28 43 6f 6e 74 72 6f 6c | 6c 65 72 28 56 69 65 77 |(Control|ler(View|
|00000f00| 54 61 72 67 65 74 29 2e | 50 6c 61 79 65 72 52 65 |Target).|PlayerRe|
|00000f10| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00000f20| 61 6d 20 3d 3d 20 56 69 | 65 77 65 72 2e 50 6c 61 |am == Vi|ewer.Pla|
|00000f30| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000f40| 66 6f 2e 54 65 61 6d 29 | 20 29 3b 0d 0a 09 7d 0d |fo.Team)| );...}.|
|00000f50| 0a 09 72 65 74 75 72 6e | 20 28 20 28 50 61 77 6e |..return| ( (Pawn|
|00000f60| 28 56 69 65 77 54 61 72 | 67 65 74 29 20 21 3d 20 |(ViewTar|get) != |
|00000f70| 4e 6f 6e 65 29 20 26 26 | 20 50 61 77 6e 28 56 69 |None) &&| Pawn(Vi|
|00000f80| 65 77 54 61 72 67 65 74 | 29 2e 49 73 50 6c 61 79 |ewTarget|).IsPlay|
|00000f90| 65 72 50 61 77 6e 28 29 | 0d 0a 09 09 26 26 20 28 |erPawn()|....&& (|
|00000fa0| 50 61 77 6e 28 56 69 65 | 77 54 61 72 67 65 74 29 |Pawn(Vie|wTarget)|
|00000fb0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000fc0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 20 3d 3d 20 56 |onInfo.T|eam == V|
|00000fd0| 69 65 77 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iewer.Pl|ayerRepl|
|00000fe0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00000ff0| 29 20 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |) );..}.|...funct|
|00001000| 69 6f 6e 20 4f 76 65 72 | 72 69 64 65 49 6e 69 74 |ion Over|rideInit|
|00001010| 69 61 6c 42 6f 74 73 28 | 29 0d 0a 7b 0d 0a 09 49 |ialBots(|)..{...I|
|00001020| 6e 69 74 69 61 6c 42 6f | 74 73 20 3d 20 4d 69 6e |nitialBo|ts = Min|
|00001030| 28 49 6e 69 74 69 61 6c | 42 6f 74 73 2c 32 29 3b |(Initial|Bots,2);|
|00001040| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001050| 62 6f 6f 6c 20 43 68 65 | 63 6b 45 6e 64 47 61 6d |bool Che|ckEndGam|
|00001060| 65 28 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |e(Player|Replicat|
|00001070| 69 6f 6e 49 6e 66 6f 20 | 57 69 6e 6e 65 72 2c 20 |ionInfo |Winner, |
|00001080| 73 74 72 69 6e 67 20 52 | 65 61 73 6f 6e 29 0d 0a |string R|eason)..|
|00001090| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 43 6f 6e 74 72 6f |{...loca|l Contro|
|000010a0| 6c 6c 65 72 20 50 3b 0d | 0a 09 6c 6f 63 61 6c 20 |ller P;.|..local |
|000010b0| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|000010c0| 20 50 6c 61 79 65 72 3b | 0d 0a 0d 0a 09 45 6e 64 | Player;|.....End|
|000010d0| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|000010e0| 65 53 65 63 6f 6e 64 73 | 20 2b 20 45 6e 64 54 69 |eSeconds| + EndTi|
|000010f0| 6d 65 44 65 6c 61 79 3b | 0d 0a 0d 0a 09 69 66 20 |meDelay;|.....if |
|00001100| 28 20 57 61 76 65 4e 75 | 6d 20 3e 3d 20 46 69 6e |( WaveNu|m >= Fin|
|00001110| 61 6c 57 61 76 65 20 29 | 0d 0a 09 09 47 61 6d 65 |alWave )|....Game|
|00001120| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001130| 57 69 6e 6e 65 72 20 3d | 20 54 65 61 6d 73 5b 30 |Winner =| Teams[0|
|00001140| 5d 3b 0d 0a 0d 0a 09 66 | 6f 72 20 28 20 50 3d 4c |];.....f|or ( P=L|
|00001150| 65 76 65 6c 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 4c |evel.Con|trollerL|
|00001160| 69 73 74 3b 20 50 21 3d | 4e 6f 6e 65 3b 20 50 3d |ist; P!=|None; P=|
|00001170| 50 2e 6e 65 78 74 43 6f | 6e 74 72 6f 6c 6c 65 72 |P.nextCo|ntroller|
|00001180| 20 29 0d 0a 09 7b 0d 0a | 09 09 70 6c 61 79 65 72 | )...{..|..player|
|00001190| 20 3d 20 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c | = Playe|rControl|
|000011a0| 6c 65 72 28 50 29 3b 0d | 0a 09 09 69 66 20 28 20 |ler(P);.|...if ( |
|000011b0| 50 6c 61 79 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |Player !|= None )|
|000011c0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 69 66 20 28 20 21 |....{...|..if ( !|
|000011d0| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|000011e0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 4f 6e |lication|Info.bOn|
|000011f0| 6c 79 53 70 65 63 74 61 | 74 6f 72 20 29 0d 0a 09 |lySpecta|tor )...|
|00001200| 09 09 09 50 6c 61 79 57 | 69 6e 4d 65 73 73 61 67 |...PlayW|inMessag|
|00001210| 65 28 50 6c 61 79 65 72 | 2c 20 28 50 6c 61 79 65 |e(Player|, (Playe|
|00001220| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001230| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 20 3d 3d 20 |ionInfo.|Team == |
|00001240| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00001250| 6e 66 6f 2e 57 69 6e 6e | 65 72 29 29 3b 0d 0a 09 |nfo.Winn|er));...|
|00001260| 09 09 70 6c 61 79 65 72 | 2e 43 6c 69 65 6e 74 53 |..player|.ClientS|
|00001270| 65 74 42 65 68 69 6e 64 | 56 69 65 77 28 74 72 75 |etBehind|View(tru|
|00001280| 65 29 3b 0d 0a 09 09 09 | 70 6c 61 79 65 72 2e 43 |e);.....|player.C|
|00001290| 6c 69 65 6e 74 47 61 6d | 65 45 6e 64 65 64 28 29 |lientGam|eEnded()|
|000012a0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 50 2e 47 61 6d 65 |;....}..|..P.Game|
|000012b0| 48 61 73 45 6e 64 65 64 | 28 29 3b 0d 0a 09 7d 0d |HasEnded|();...}.|
|000012c0| 0a 0d 0a 09 69 66 20 28 | 20 43 75 72 72 65 6e 74 |....if (| Current|
|000012d0| 47 61 6d 65 50 72 6f 66 | 69 6c 65 20 21 3d 20 4e |GameProf|ile != N|
|000012e0| 6f 6e 65 20 29 0d 0a 09 | 09 43 75 72 72 65 6e 74 |one )...|.Current|
|000012f0| 47 61 6d 65 50 72 6f 66 | 69 6c 65 2e 62 57 6f 6e |GameProf|ile.bWon|
|00001300| 4d 61 74 63 68 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Match = |false;..|
|00001310| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00001320| 0d 0a 0d 0a 2f 2f 20 63 | 68 65 63 6b 20 69 66 20 |....// c|heck if |
|00001330| 61 6c 6c 20 6f 74 68 65 | 72 20 70 6c 61 79 65 72 |all othe|r player|
|00001340| 73 20 61 72 65 20 6f 75 | 74 0d 0a 66 75 6e 63 74 |s are ou|t..funct|
|00001350| 69 6f 6e 20 62 6f 6f 6c | 20 43 68 65 63 6b 4d 61 |ion bool| CheckMa|
|00001360| 78 4c 69 76 65 73 28 50 | 6c 61 79 65 72 52 65 70 |xLives(P|layerRep|
|00001370| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 53 63 6f |lication|Info Sco|
|00001380| 72 65 72 29 0d 0a 7b 0d | 0a 20 20 20 20 6c 6f 63 |rer)..{.|. loc|
|00001390| 61 6c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 43 3b |al Contr|oller C;|
|000013a0| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 50 6c 61 79 |.. lo|cal Play|
|000013b0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000013c0| 6f 20 4c 69 76 69 6e 67 | 3b 0d 0a 20 20 20 20 6c |o Living|;.. l|
|000013d0| 6f 63 61 6c 20 62 6f 6f | 6c 20 62 4e 6f 6e 65 4c |ocal boo|l bNoneL|
|000013e0| 65 66 74 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |eft;....| if (|
|000013f0| 20 4d 61 78 4c 69 76 65 | 73 20 3e 20 30 20 29 0d | MaxLive|s > 0 ).|
|00001400| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00001410| 62 4e 6f 6e 65 4c 65 66 | 74 20 3d 20 74 72 75 65 |bNoneLef|t = true|
|00001420| 3b 0d 0a 20 20 20 20 20 | 20 20 20 66 6f 72 20 28 |;.. | for (|
|00001430| 20 43 3d 4c 65 76 65 6c | 2e 43 6f 6e 74 72 6f 6c | C=Level|.Control|
|00001440| 6c 65 72 4c 69 73 74 3b | 20 43 21 3d 4e 6f 6e 65 |lerList;| C!=None|
|00001450| 3b 20 43 3d 43 2e 4e 65 | 78 74 43 6f 6e 74 72 6f |; C=C.Ne|xtContro|
|00001460| 6c 6c 65 72 20 29 0d 0a | 20 20 20 20 20 20 20 20 |ller )..| |
|00001470| 20 20 20 20 69 66 20 28 | 20 28 43 2e 50 6c 61 79 | if (| (C.Play|
|00001480| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001490| 6f 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 43 2e |o != Non|e) && C.|
|000014a0| 62 49 73 50 6c 61 79 65 | 72 0d 0a 20 20 20 20 20 |bIsPlaye|r.. |
|000014b0| 20 20 20 20 20 20 20 20 | 20 20 20 26 26 20 21 43 | | && !C|
|000014c0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000014d0| 6f 6e 49 6e 66 6f 2e 62 | 4f 75 74 4f 66 4c 69 76 |onInfo.b|OutOfLiv|
|000014e0| 65 73 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |es.. | |
|000014f0| 20 20 20 20 26 26 20 21 | 43 2e 50 6c 61 79 65 72 | && !|C.Player|
|00001500| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001510| 62 4f 6e 6c 79 53 70 65 | 63 74 61 74 6f 72 20 29 |bOnlySpe|ctator )|
|00001520| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |.. | {.|
|00001530| 0a 20 20 20 09 20 20 20 | 20 20 20 20 20 09 62 4e |. . | .bN|
|00001540| 6f 6e 65 4c 65 66 74 20 | 3d 20 66 61 6c 73 65 3b |oneLeft |= false;|
|00001550| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 09 62 |.. | .b|
|00001560| 72 65 61 6b 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |reak;.. | |
|00001570| 20 20 20 7d 0d 0a 20 20 | 20 20 20 20 20 20 69 66 | }.. | if|
|00001580| 20 28 20 62 4e 6f 6e 65 | 4c 65 66 74 20 29 0d 0a | ( bNone|Left )..|
|00001590| 20 20 20 20 20 20 20 20 | 7b 0d 0a 09 09 09 69 66 | |{.....if|
|000015a0| 20 28 20 4c 69 76 69 6e | 67 20 21 3d 20 4e 6f 6e | ( Livin|g != Non|
|000015b0| 65 20 29 0d 0a 09 09 09 | 09 45 6e 64 47 61 6d 65 |e ).....|.EndGame|
|000015c0| 28 4c 69 76 69 6e 67 2c | 22 4c 61 73 74 4d 61 6e |(Living,|"LastMan|
|000015d0| 22 29 3b 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |");.....|else....|
|000015e0| 09 09 45 6e 64 47 61 6d | 65 28 53 63 6f 72 65 72 |..EndGam|e(Scorer|
|000015f0| 2c 22 4c 61 73 74 4d 61 | 6e 22 29 3b 0d 0a 09 09 |,"LastMa|n");....|
|00001600| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00001610| 09 7d 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 72 |.}.. |}.. r|
|00001620| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 7d 0d |eturn fa|lse;..}.|
|00001630| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 63 6f 72 |...funct|ion Scor|
|00001640| 65 4b 69 6c 6c 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |eKill(Co|ntroller|
|00001650| 20 4b 69 6c 6c 65 72 2c | 20 43 6f 6e 74 72 6f 6c | Killer,| Control|
|00001660| 6c 65 72 20 4f 74 68 65 | 72 29 0d 0a 7b 0d 0a 09 |ler Othe|r)..{...|
|00001670| 6c 6f 63 61 6c 20 50 6c | 61 79 65 72 52 65 70 6c |local Pl|ayerRepl|
|00001680| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 20 4f 74 68 65 |icationI|nfo Othe|
|00001690| 72 50 52 49 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |rPRI;...|local fl|
|000016a0| 6f 61 74 20 4b 69 6c 6c | 53 63 6f 72 65 3b 0d 0a |oat Kill|Score;..|
|000016b0| 0d 0a 09 4f 74 68 65 72 | 50 52 49 20 3d 20 4f 74 |...Other|PRI = Ot|
|000016c0| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|000016d0| 61 74 69 6f 6e 49 6e 66 | 6f 3b 0d 0a 20 20 20 20 |ationInf|o;.. |
|000016e0| 69 66 20 28 20 4f 74 68 | 65 72 50 52 49 20 21 3d |if ( Oth|erPRI !=|
|000016f0| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 7b 0d 0a | None ).|. {..|
|00001700| 20 20 20 20 20 20 20 20 | 4f 74 68 65 72 50 52 49 | |OtherPRI|
|00001710| 2e 4e 75 6d 4c 69 76 65 | 73 2b 2b 3b 0d 0a 09 09 |.NumLive|s++;....|
|00001720| 4f 74 68 65 72 50 52 49 | 2e 53 63 6f 72 65 20 2d |OtherPRI|.Score -|
|00001730| 3d 20 31 30 3b 0d 0a 09 | 09 4f 74 68 65 72 50 52 |= 10;...|.OtherPR|
|00001740| 49 2e 54 65 61 6d 2e 53 | 63 6f 72 65 20 2d 3d 20 |I.Team.S|core -= |
|00001750| 31 30 3b 0d 0a 20 20 20 | 20 20 20 20 20 4f 74 68 |10;.. | Oth|
|00001760| 65 72 50 52 49 2e 62 4f | 75 74 4f 66 4c 69 76 65 |erPRI.bO|utOfLive|
|00001770| 73 20 3d 20 74 72 75 65 | 3b 0d 0a 20 20 20 20 20 |s = true|;.. |
|00001780| 20 20 20 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 | Broad|castLoca|
|00001790| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 63 6c 61 |lizedMes|sage(cla|
|000017a0| 73 73 27 49 6e 76 61 73 | 69 6f 6e 4d 65 73 73 61 |ss'Invas|ionMessa|
|000017b0| 67 65 27 2c 20 31 2c 20 | 4f 74 68 65 72 50 52 49 |ge', 1, |OtherPRI|
|000017c0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 43 68 65 63 |);.. | Chec|
|000017d0| 6b 53 63 6f 72 65 28 4e | 6f 6e 65 29 3b 0d 0a 20 |kScore(N|one);.. |
|000017e0| 20 20 20 7d 0d 0a 0d 0a | 09 69 66 20 28 20 47 61 | }....|.if ( Ga|
|000017f0| 6d 65 52 75 6c 65 73 4d | 6f 64 69 66 69 65 72 73 |meRulesM|odifiers|
|00001800| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 47 61 | != None| )....Ga|
|00001810| 6d 65 52 75 6c 65 73 4d | 6f 64 69 66 69 65 72 73 |meRulesM|odifiers|
|00001820| 2e 53 63 6f 72 65 4b 69 | 6c 6c 28 4b 69 6c 6c 65 |.ScoreKi|ll(Kille|
|00001830| 72 2c 20 4f 74 68 65 72 | 29 3b 0d 0a 0d 0a 09 69 |r, Other|);.....i|
|00001840| 66 20 28 20 4d 6f 6e 73 | 74 65 72 43 6f 6e 74 72 |f ( Mons|terContr|
|00001850| 6f 6c 6c 65 72 28 4b 69 | 6c 6c 65 72 29 20 21 3d |oller(Ki|ller) !=|
|00001860| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 72 65 74 75 72 | None ).|...retur|
|00001870| 6e 3b 0d 0a 0d 0a 20 20 | 20 20 69 66 28 20 28 6b |n;.... | if( (k|
|00001880| 69 6c 6c 65 72 20 3d 3d | 20 4f 74 68 65 72 29 20 |iller ==| Other) |
|00001890| 7c 7c 20 28 6b 69 6c 6c | 65 72 20 3d 3d 20 4e 6f ||| (kill|er == No|
|000018a0| 6e 65 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |ne) )...|{....if |
|000018b0| 28 20 4f 74 68 65 72 2e | 50 6c 61 79 65 72 52 65 |( Other.|PlayerRe|
|000018c0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 20 21 3d |plicatio|nInfo !=|
|000018d0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 7b 0d 0a 09 09 | None ).|...{....|
|000018e0| 09 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |.Other.P|layerRep|
|000018f0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|00001900| 72 65 20 2d 3d 20 31 3b | 0d 0a 09 09 09 4f 74 68 |re -= 1;|.....Oth|
|00001910| 65 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |er.Playe|rReplica|
|00001920| 74 69 6f 6e 49 6e 66 6f | 2e 4e 65 74 55 70 64 61 |tionInfo|.NetUpda|
|00001930| 74 65 54 69 6d 65 20 3d | 20 4c 65 76 65 6c 2e 54 |teTime =| Level.T|
|00001940| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 31 3b 0d |imeSecon|ds - 1;.|
|00001950| 0a 09 09 09 4b 69 6c 6c | 65 72 2e 50 6c 61 79 65 |....Kill|er.Playe|
|00001960| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001970| 2e 54 65 61 6d 2e 53 63 | 6f 72 65 20 2d 3d 20 31 |.Team.Sc|ore -= 1|
|00001980| 3b 0d 0a 09 09 09 53 63 | 6f 72 65 45 76 65 6e 74 |;.....Sc|oreEvent|
|00001990| 28 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |(Other.P|layerRep|
|000019a0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2c 2d 31 2c |lication|Info,-1,|
|000019b0| 22 73 65 6c 66 5f 66 72 | 61 67 22 29 3b 0d 0a 09 |"self_fr|ag");...|
|000019c0| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 20 |.}...}..|...if ( |
|000019d0| 28 4b 69 6c 6c 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |(Killer |== None)|
|000019e0| 20 7c 7c 20 21 4b 69 6c | 6c 65 72 2e 62 49 73 50 | || !Kil|ler.bIsP|
|000019f0| 6c 61 79 65 72 20 7c 7c | 20 28 4b 69 6c 6c 65 72 |layer ||| (Killer|
|00001a00| 20 3d 3d 20 4f 74 68 65 | 72 29 20 29 0d 0a 09 09 | == Othe|r) )....|
|00001a10| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 69 66 20 28 |return;.|....if (|
|00001a20| 20 4f 74 68 65 72 2e 62 | 49 73 50 6c 61 79 65 72 | Other.b|IsPlayer|
|00001a30| 20 29 0d 0a 09 7b 0d 0a | 09 09 4b 69 6c 6c 65 72 | )...{..|..Killer|
|00001a40| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001a50| 6f 6e 49 6e 66 6f 2e 53 | 63 6f 72 65 20 2d 3d 20 |onInfo.S|core -= |
|00001a60| 31 30 3b 0d 0a 09 09 4b | 69 6c 6c 65 72 2e 50 6c |10;....K|iller.Pl|
|00001a70| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001a80| 6e 66 6f 2e 4e 65 74 55 | 70 64 61 74 65 54 69 6d |nfo.NetU|pdateTim|
|00001a90| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|00001aa0| 63 6f 6e 64 73 20 2d 20 | 31 3b 0d 0a 09 09 4b 69 |conds - |1;....Ki|
|00001ab0| 6c 6c 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ller.Pla|yerRepli|
|00001ac0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 2e |cationIn|fo.Team.|
|00001ad0| 53 63 6f 72 65 20 2d 3d | 20 31 30 3b 0d 0a 09 09 |Score -=| 10;....|
|00001ae0| 53 63 6f 72 65 45 76 65 | 6e 74 28 4b 69 6c 6c 65 |ScoreEve|nt(Kille|
|00001af0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00001b00| 69 6f 6e 49 6e 66 6f 2c | 20 2d 31 30 2c 20 22 74 |ionInfo,| -10, "t|
|00001b10| 65 61 6d 5f 66 72 61 67 | 22 29 3b 0d 0a 09 09 72 |eam_frag|");....r|
|00001b20| 65 74 75 72 6e 3b 0d 0a | 09 7d 0d 0a 09 69 66 20 |eturn;..|.}...if |
|00001b30| 28 20 4c 61 73 74 4b 69 | 6c 6c 65 64 4d 6f 6e 73 |( LastKi|lledMons|
|00001b40| 74 65 72 43 6c 61 73 73 | 20 3d 3d 20 4e 6f 6e 65 |terClass| == None|
|00001b50| 20 29 0d 0a 09 09 4b 69 | 6c 6c 53 63 6f 72 65 20 | )....Ki|llScore |
|00001b60| 3d 20 31 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 4b |= 1;...e|lse....K|
|00001b70| 69 6c 6c 53 63 6f 72 65 | 20 3d 20 4c 61 73 74 4b |illScore| = LastK|
|00001b80| 69 6c 6c 65 64 4d 6f 6e | 73 74 65 72 43 6c 61 73 |illedMon|sterClas|
|00001b90| 73 2e 44 65 66 61 75 6c | 74 2e 53 63 6f 72 69 6e |s.Defaul|t.Scorin|
|00001ba0| 67 56 61 6c 75 65 3b 0d | 0a 09 4b 69 6c 6c 65 72 |gValue;.|..Killer|
|00001bb0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001bc0| 6f 6e 49 6e 66 6f 2e 4b | 69 6c 6c 73 2b 2b 3b 0d |onInfo.K|ills++;.|
|00001bd0| 0a 09 4b 69 6c 6c 65 72 | 2e 50 6c 61 79 65 72 52 |..Killer|.PlayerR|
|00001be0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 53 |eplicati|onInfo.S|
|00001bf0| 63 6f 72 65 20 2b 3d 20 | 4b 69 6c 6c 53 63 6f 72 |core += |KillScor|
|00001c00| 65 3b 0d 0a 09 4b 69 6c | 6c 65 72 2e 50 6c 61 79 |e;...Kil|ler.Play|
|00001c10| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001c20| 6f 2e 54 65 61 6d 2e 53 | 63 6f 72 65 20 2b 3d 20 |o.Team.S|core += |
|00001c30| 4b 69 6c 6c 53 63 6f 72 | 65 3b 0d 0a 09 4b 69 6c |KillScor|e;...Kil|
|00001c40| 6c 65 72 2e 41 77 61 72 | 64 41 64 72 65 6e 61 6c |ler.Awar|dAdrenal|
|00001c50| 69 6e 65 28 4b 69 6c 6c | 53 63 6f 72 65 29 3b 0d |ine(Kill|Score);.|
|00001c60| 0a 09 4b 69 6c 6c 65 72 | 2e 50 6c 61 79 65 72 52 |..Killer|.PlayerR|
|00001c70| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 4e |eplicati|onInfo.N|
|00001c80| 65 74 55 70 64 61 74 65 | 54 69 6d 65 20 3d 20 4c |etUpdate|Time = L|
|00001c90| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00001ca0| 20 2d 20 31 3b 0d 0a 09 | 54 65 61 6d 53 63 6f 72 | - 1;...|TeamScor|
|00001cb0| 65 45 76 65 6e 74 28 4b | 69 6c 6c 65 72 2e 50 6c |eEvent(K|iller.Pl|
|00001cc0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001cd0| 6e 66 6f 2e 54 65 61 6d | 2e 54 65 61 6d 49 6e 64 |nfo.Team|.TeamInd|
|00001ce0| 65 78 2c 20 31 2c 20 22 | 74 64 6d 5f 66 72 61 67 |ex, 1, "|tdm_frag|
|00001cf0| 22 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |");..}..|..functi|
|00001d00| 6f 6e 20 4e 6f 74 69 66 | 79 4b 69 6c 6c 65 64 28 |on Notif|yKilled(|
|00001d10| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 4b 69 6c 6c 65 |Controll|er Kille|
|00001d20| 72 2c 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 4b 69 |r, Contr|oller Ki|
|00001d30| 6c 6c 65 64 2c 20 50 61 | 77 6e 20 4b 69 6c 6c 65 |lled, Pa|wn Kille|
|00001d40| 64 50 61 77 6e 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |dPawn)..|{.. l|
|00001d50| 6f 63 61 6c 20 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |ocal Con|troller |
|00001d60| 43 3b 0d 0a 0d 0a 20 20 | 20 20 66 6f 72 20 28 20 |C;.... | for ( |
|00001d70| 43 3d 4c 65 76 65 6c 2e | 43 6f 6e 74 72 6f 6c 6c |C=Level.|Controll|
|00001d80| 65 72 4c 69 73 74 3b 20 | 43 21 3d 4e 6f 6e 65 3b |erList; |C!=None;|
|00001d90| 20 43 3d 43 2e 6e 65 78 | 74 43 6f 6e 74 72 6f 6c | C=C.nex|tControl|
|00001da0| 6c 65 72 20 29 0d 0a 09 | 09 69 66 20 28 20 4d 6f |ler )...|.if ( Mo|
|00001db0| 6e 73 74 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |nsterCon|troller(|
|00001dc0| 43 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |C) != No|ne )....|
|00001dd0| 09 43 2e 4e 6f 74 69 66 | 79 4b 69 6c 6c 65 64 28 |.C.Notif|yKilled(|
|00001de0| 4b 69 6c 6c 65 72 2c 20 | 4b 69 6c 6c 65 64 2c 20 |Killer, |Killed, |
|00001df0| 4b 69 6c 6c 65 64 50 61 | 77 6e 29 3b 0d 0a 0d 0a |KilledPa|wn);....|
|00001e00| 09 53 75 70 65 72 2e 4e | 6f 74 69 66 79 4b 69 6c |.Super.N|otifyKil|
|00001e10| 6c 65 64 28 4b 69 6c 6c | 65 72 2c 4b 69 6c 6c 65 |led(Kill|er,Kille|
|00001e20| 64 2c 4b 69 6c 6c 65 64 | 50 61 77 6e 29 3b 0d 0a |d,Killed|Pawn);..|
|00001e30| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 52 65 |}....fun|ction Re|
|00001e40| 73 74 61 72 74 50 6c 61 | 79 65 72 28 20 43 6f 6e |startPla|yer( Con|
|00001e50| 74 72 6f 6c 6c 65 72 20 | 61 50 6c 61 79 65 72 20 |troller |aPlayer |
|00001e60| 29 0d 0a 7b 0d 0a 20 20 | 20 20 69 66 20 28 20 61 |)..{.. | if ( a|
|00001e70| 50 6c 61 79 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Player.P|layerRep|
|00001e80| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 62 4f 75 |lication|Info.bOu|
|00001e90| 74 4f 66 4c 69 76 65 73 | 20 29 0d 0a 20 20 20 20 |tOfLives| ).. |
|00001ea0| 20 20 20 20 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 | retu|rn;.....|
|00001eb0| 53 75 70 65 72 28 47 61 | 6d 65 49 6e 66 6f 29 2e |Super(Ga|meInfo).|
|00001ec0| 52 65 73 74 61 72 74 50 | 6c 61 79 65 72 28 61 50 |RestartP|layer(aP|
|00001ed0| 6c 61 79 65 72 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |layer);.|.}....fu|
|00001ee0| 6e 63 74 69 6f 6e 20 55 | 6e 72 65 61 6c 54 65 61 |nction U|nrealTea|
|00001ef0| 6d 49 6e 66 6f 20 47 65 | 74 42 6f 74 54 65 61 6d |mInfo Ge|tBotTeam|
|00001f00| 28 6f 70 74 69 6f 6e 61 | 6c 20 69 6e 74 20 54 65 |(optiona|l int Te|
|00001f10| 61 6d 42 6f 74 73 29 0d | 0a 7b 0d 0a 09 72 65 74 |amBots).|.{...ret|
|00001f20| 75 72 6e 20 54 65 61 6d | 73 5b 30 5d 3b 0d 0a 7d |urn Team|s[0];..}|
|00001f30| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 79 74 |....func|tion byt|
|00001f40| 65 20 50 69 63 6b 54 65 | 61 6d 28 62 79 74 65 20 |e PickTe|am(byte |
|00001f50| 6e 75 6d 2c 20 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |num, Con|troller |
|00001f60| 43 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 30 |C)..{...|return 0|
|00001f70| 3b 0d 0a 7d 0d 0a 0d 0a | 65 76 65 6e 74 20 50 6c |;..}....|event Pl|
|00001f80| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 4c |ayerCont|roller L|
|00001f90| 6f 67 69 6e 0d 0a 28 0d | 0a 20 20 20 20 73 74 72 |ogin..(.|. str|
|00001fa0| 69 6e 67 20 50 6f 72 74 | 61 6c 2c 0d 0a 20 20 20 |ing Port|al,.. |
|00001fb0| 20 73 74 72 69 6e 67 20 | 4f 70 74 69 6f 6e 73 2c | string |Options,|
|00001fc0| 0d 0a 20 20 20 20 6f 75 | 74 20 73 74 72 69 6e 67 |.. ou|t string|
|00001fd0| 20 45 72 72 6f 72 0d 0a | 29 0d 0a 7b 0d 0a 20 20 | Error..|)..{.. |
|00001fe0| 20 20 6c 6f 63 61 6c 20 | 50 6c 61 79 65 72 43 6f | local |PlayerCo|
|00001ff0| 6e 74 72 6f 6c 6c 65 72 | 20 4e 65 77 50 6c 61 79 |ntroller| NewPlay|
|00002000| 65 72 3b 0d 0a 09 6c 6f | 63 61 6c 20 43 6f 6e 74 |er;...lo|cal Cont|
|00002010| 72 6f 6c 6c 65 72 20 43 | 3b 0d 0a 0d 0a 09 4e 65 |roller C|;.....Ne|
|00002020| 77 50 6c 61 79 65 72 20 | 3d 20 53 75 70 65 72 2e |wPlayer |= Super.|
|00002030| 4c 6f 67 69 6e 28 50 6f | 72 74 61 6c 2c 4f 70 74 |Login(Po|rtal,Opt|
|00002040| 69 6f 6e 73 2c 45 72 72 | 6f 72 29 3b 0d 0a 0d 0a |ions,Err|or);....|
|00002050| 09 66 6f 72 20 28 20 43 | 3d 4c 65 76 65 6c 2e 43 |.for ( C|=Level.C|
|00002060| 6f 6e 74 72 6f 6c 6c 65 | 72 4c 69 73 74 3b 20 43 |ontrolle|rList; C|
|00002070| 21 3d 4e 6f 6e 65 3b 20 | 43 3d 43 2e 4e 65 78 74 |!=None; |C=C.Next|
|00002080| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 29 0d 0a 09 09 |Controll|er )....|
|00002090| 69 66 20 28 20 28 43 2e | 50 6c 61 79 65 72 52 65 |if ( (C.|PlayerRe|
|000020a0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 20 21 3d |plicatio|nInfo !=|
|000020b0| 20 4e 6f 6e 65 29 20 26 | 26 20 43 2e 50 6c 61 79 | None) &|& C.Play|
|000020c0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|000020d0| 6f 2e 62 4f 75 74 4f 66 | 4c 69 76 65 73 20 26 26 |o.bOutOf|Lives &&|
|000020e0| 20 21 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | !C.Play|erReplic|
|000020f0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 62 4f 6e 6c 79 53 |ationInf|o.bOnlyS|
|00002100| 70 65 63 74 61 74 6f 72 | 20 29 0d 0a 09 09 7b 0d |pectator| )....{.|
|00002110| 0a 09 09 09 4e 65 77 50 | 6c 61 79 65 72 2e 50 6c |....NewP|layer.Pl|
|00002120| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00002130| 6e 66 6f 2e 62 4f 75 74 | 4f 66 4c 69 76 65 73 20 |nfo.bOut|OfLives |
|00002140| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 4e 65 77 50 |= true;.|....NewP|
|00002150| 6c 61 79 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |layer.Pl|ayerRepl|
|00002160| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 4e 75 6d 4c |icationI|nfo.NumL|
|00002170| 69 76 65 73 20 3d 20 31 | 3b 0d 0a 09 09 7d 0d 0a |ives = 1|;....}..|
|00002180| 09 72 65 74 75 72 6e 20 | 4e 65 77 50 6c 61 79 65 |.return |NewPlaye|
|00002190| 72 3b 0d 0a 7d 0d 0a 0d | 0a 2f 2a 20 53 70 61 77 |r;..}...|./* Spaw|
|000021a0| 6e 20 61 6e 64 20 69 6e | 69 74 69 61 6c 69 7a 65 |n and in|itialize|
|000021b0| 20 61 20 62 6f 74 0d 0a | 2a 2f 0d 0a 66 75 6e 63 | a bot..|*/..func|
|000021c0| 74 69 6f 6e 20 42 6f 74 | 20 53 70 61 77 6e 42 6f |tion Bot| SpawnBo|
|000021d0| 74 28 6f 70 74 69 6f 6e | 61 6c 20 73 74 72 69 6e |t(option|al strin|
|000021e0| 67 20 62 6f 74 4e 61 6d | 65 29 0d 0a 7b 0d 0a 20 |g botNam|e)..{.. |
|000021f0| 20 20 20 6c 6f 63 61 6c | 20 42 6f 74 20 4e 65 77 | local| Bot New|
|00002200| 42 6f 74 3b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |Bot;.. | local |
|00002210| 52 6f 73 74 65 72 45 6e | 74 72 79 20 43 68 6f 73 |RosterEn|try Chos|
|00002220| 65 6e 3b 0d 0a 09 6c 6f | 63 61 6c 20 55 6e 72 65 |en;...lo|cal Unre|
|00002230| 61 6c 54 65 61 6d 49 6e | 66 6f 20 42 6f 74 54 65 |alTeamIn|fo BotTe|
|00002240| 61 6d 3b 0d 0a 09 6c 6f | 63 61 6c 20 61 72 72 61 |am;...lo|cal arra|
|00002250| 79 3c 78 55 74 69 6c 2e | 50 6c 61 79 65 72 52 65 |y<xUtil.|PlayerRe|
|00002260| 63 6f 72 64 3e 20 50 6c | 61 79 65 72 52 65 63 6f |cord> Pl|ayerReco|
|00002270| 72 64 73 3b 0d 0a 09 6c | 6f 63 61 6c 20 78 55 74 |rds;...l|ocal xUt|
|00002280| 69 6c 2e 50 6c 61 79 65 | 72 52 65 63 6f 72 64 20 |il.Playe|rRecord |
|00002290| 50 52 3b 0d 0a 0d 0a 09 | 42 6f 74 54 65 61 6d 20 |PR;.....|BotTeam |
|000022a0| 3d 20 47 65 74 42 6f 74 | 54 65 61 6d 28 29 3b 0d |= GetBot|Team();.|
|000022b0| 0a 09 69 66 20 28 20 62 | 43 75 73 74 6f 6d 42 6f |..if ( b|CustomBo|
|000022c0| 74 73 20 26 26 20 28 63 | 6c 61 73 73 27 44 4d 52 |ts && (c|lass'DMR|
|000022d0| 6f 73 74 65 72 43 6f 6e | 66 69 67 75 72 65 64 27 |osterCon|figured'|
|000022e0| 2e 44 65 66 61 75 6c 74 | 2e 43 68 61 72 61 63 74 |.Default|.Charact|
|000022f0| 65 72 73 2e 4c 65 6e 67 | 74 68 20 3e 20 4e 75 6d |ers.Leng|th > Num|
|00002300| 42 6f 74 73 29 20 20 29 | 0d 0a 09 7b 0d 0a 09 09 |Bots) )|...{....|
|00002310| 63 6c 61 73 73 27 78 55 | 74 69 6c 27 2e 73 74 61 |class'xU|til'.sta|
|00002320| 74 69 63 2e 47 65 74 50 | 6c 61 79 65 72 4c 69 73 |tic.GetP|layerLis|
|00002330| 74 28 50 6c 61 79 65 72 | 52 65 63 6f 72 64 73 29 |t(Player|Records)|
|00002340| 3b 0d 0a 09 09 50 52 20 | 3d 20 63 6c 61 73 73 27 |;....PR |= class'|
|00002350| 78 55 74 69 6c 27 2e 73 | 74 61 74 69 63 2e 46 69 |xUtil'.s|tatic.Fi|
|00002360| 6e 64 50 6c 61 79 65 72 | 52 65 63 6f 72 64 28 63 |ndPlayer|Record(c|
|00002370| 6c 61 73 73 27 44 4d 52 | 6f 73 74 65 72 43 6f 6e |lass'DMR|osterCon|
|00002380| 66 69 67 75 72 65 64 27 | 2e 44 65 66 61 75 6c 74 |figured'|.Default|
|00002390| 2e 43 68 61 72 61 63 74 | 65 72 73 5b 4e 75 6d 42 |.Charact|ers[NumB|
|000023a0| 6f 74 73 5d 29 3b 0d 0a | 09 09 43 68 6f 73 65 6e |ots]);..|..Chosen|
|000023b0| 20 3d 20 63 6c 61 73 73 | 27 78 52 6f 73 74 65 72 | = class|'xRoster|
|000023c0| 45 6e 74 72 79 27 2e 53 | 74 61 74 69 63 2e 43 72 |Entry'.S|tatic.Cr|
|000023d0| 65 61 74 65 52 6f 73 74 | 65 72 45 6e 74 72 79 28 |eateRost|erEntry(|
|000023e0| 50 52 2e 52 65 63 6f 72 | 64 49 6e 64 65 78 29 3b |PR.Recor|dIndex);|
|000023f0| 0d 0a 09 7d 0d 0a 0d 0a | 09 69 66 20 28 20 43 68 |...}....|.if ( Ch|
|00002400| 6f 73 65 6e 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |osen == |None )..|
|00002410| 09 7b 0d 0a 09 09 69 66 | 20 28 20 53 65 63 6f 6e |.{....if| ( Secon|
|00002420| 64 42 6f 74 20 3e 20 30 | 20 29 0d 0a 09 09 7b 0d |dBot > 0| )....{.|
|00002430| 0a 09 09 09 42 6f 74 4e | 61 6d 65 20 3d 20 49 6e |....BotN|ame = In|
|00002440| 76 61 73 69 6f 6e 42 6f | 74 4e 61 6d 65 73 5b 53 |vasionBo|tNames[S|
|00002450| 65 63 6f 6e 64 42 6f 74 | 20 2b 20 31 5d 3b 0d 0a |econdBot| + 1];..|
|00002460| 09 09 09 53 65 63 6f 6e | 64 42 6f 74 2b 2b 3b 0d |...Secon|dBot++;.|
|00002470| 0a 09 09 09 69 66 20 28 | 20 53 65 63 6f 6e 64 42 |....if (| SecondB|
|00002480| 6f 74 20 3e 20 36 20 29 | 0d 0a 09 09 09 09 53 65 |ot > 6 )|......Se|
|00002490| 63 6f 6e 64 42 6f 74 20 | 3d 20 30 3b 0d 0a 09 09 |condBot |= 0;....|
|000024a0| 7d 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 7b 0d 0a |}....els|e....{..|
|000024b0| 09 09 09 53 65 63 6f 6e | 64 42 6f 74 20 3d 20 31 |...Secon|dBot = 1|
|000024c0| 20 2b 20 32 20 2a 20 52 | 61 6e 64 28 34 29 3b 0d | + 2 * R|and(4);.|
|000024d0| 0a 09 09 09 42 6f 74 4e | 61 6d 65 20 3d 20 49 6e |....BotN|ame = In|
|000024e0| 76 61 73 69 6f 6e 42 6f | 74 4e 61 6d 65 73 5b 53 |vasionBo|tNames[S|
|000024f0| 65 63 6f 6e 64 42 6f 74 | 5d 3b 0d 0a 09 09 7d 0d |econdBot|];....}.|
|00002500| 0a 09 09 43 68 6f 73 65 | 6e 20 3d 20 63 6c 61 73 |...Chose|n = clas|
|00002510| 73 27 78 52 6f 73 74 65 | 72 45 6e 74 72 79 27 2e |s'xRoste|rEntry'.|
|00002520| 73 74 61 74 69 63 2e 43 | 72 65 61 74 65 52 6f 73 |static.C|reateRos|
|00002530| 74 65 72 45 6e 74 72 79 | 43 68 61 72 61 63 74 65 |terEntry|Characte|
|00002540| 72 28 62 6f 74 4e 61 6d | 65 29 3b 0d 0a 09 7d 0d |r(botNam|e);...}.|
|00002550| 0a 09 69 66 20 28 43 68 | 6f 73 65 6e 2e 50 61 77 |..if (Ch|osen.Paw|
|00002560| 6e 43 6c 61 73 73 20 3d | 3d 20 4e 6f 6e 65 29 0d |nClass =|= None).|
|00002570| 0a 09 09 43 68 6f 73 65 | 6e 2e 49 6e 69 74 28 29 |...Chose|n.Init()|
|00002580| 3b 0d 0a 20 20 20 20 4e | 65 77 42 6f 74 20 3d 20 |;.. N|ewBot = |
|00002590| 53 70 61 77 6e 28 63 6c | 61 73 73 27 49 6e 76 61 |Spawn(cl|ass'Inva|
|000025a0| 73 69 6f 6e 42 6f 74 27 | 29 3b 0d 0a 0d 0a 20 20 |sionBot'|);.... |
|000025b0| 20 20 69 66 20 28 20 4e | 65 77 42 6f 74 20 21 3d | if ( N|ewBot !=|
|000025c0| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 7b 0d 0a | None ).|. {..|
|000025d0| 09 09 41 64 6a 75 73 74 | 65 64 44 69 66 66 69 63 |..Adjust|edDiffic|
|000025e0| 75 6c 74 79 20 3d 20 41 | 64 6a 75 73 74 65 64 44 |ulty = A|djustedD|
|000025f0| 69 66 66 69 63 75 6c 74 | 79 20 2b 20 32 3b 0d 0a |ifficult|y + 2;..|
|00002600| 20 20 20 20 20 20 20 20 | 49 6e 69 74 69 61 6c 69 | |Initiali|
|00002610| 7a 65 42 6f 74 28 4e 65 | 77 42 6f 74 2c 42 6f 74 |zeBot(Ne|wBot,Bot|
|00002620| 54 65 61 6d 2c 43 68 6f | 73 65 6e 29 3b 0d 0a 09 |Team,Cho|sen);...|
|00002630| 09 41 64 6a 75 73 74 65 | 64 44 69 66 66 69 63 75 |.Adjuste|dDifficu|
|00002640| 6c 74 79 20 3d 20 41 64 | 6a 75 73 74 65 64 44 69 |lty = Ad|justedDi|
|00002650| 66 66 69 63 75 6c 74 79 | 20 2d 20 32 3b 0d 0a 09 |fficulty| - 2;...|
|00002660| 09 4e 65 77 42 6f 74 2e | 62 49 6e 69 74 4c 69 66 |.NewBot.|bInitLif|
|00002670| 65 4d 65 73 73 61 67 65 | 20 3d 20 74 72 75 65 3b |eMessage| = true;|
|00002680| 0d 0a 20 20 20 20 7d 0d | 0a 20 20 20 20 72 65 74 |.. }.|. ret|
|00002690| 75 72 6e 20 4e 65 77 42 | 6f 74 3b 0d 0a 7d 0d 0a |urn NewB|ot;..}..|
|000026a0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 69 6e 74 20 52 |..functi|on int R|
|000026b0| 65 64 75 63 65 44 61 6d | 61 67 65 28 20 69 6e 74 |educeDam|age( int|
|000026c0| 20 44 61 6d 61 67 65 2c | 20 70 61 77 6e 20 69 6e | Damage,| pawn in|
|000026d0| 6a 75 72 65 64 2c 20 70 | 61 77 6e 20 69 6e 73 74 |jured, p|awn inst|
|000026e0| 69 67 61 74 65 64 42 79 | 2c 20 76 65 63 74 6f 72 |igatedBy|, vector|
|000026f0| 20 48 69 74 4c 6f 63 61 | 74 69 6f 6e 2c 20 6f 75 | HitLoca|tion, ou|
|00002700| 74 20 76 65 63 74 6f 72 | 20 4d 6f 6d 65 6e 74 75 |t vector| Momentu|
|00002710| 6d 2c 20 63 6c 61 73 73 | 3c 44 61 6d 61 67 65 54 |m, class|<DamageT|
|00002720| 79 70 65 3e 20 44 61 6d | 61 67 65 54 79 70 65 20 |ype> Dam|ageType |
|00002730| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 66 6c 6f |)..{...l|ocal flo|
|00002740| 61 74 20 49 6e 73 74 69 | 67 61 74 6f 72 53 6b 69 |at Insti|gatorSki|
|00002750| 6c 6c 2c 20 72 65 73 75 | 6c 74 3b 0d 0a 0d 0a 09 |ll, resu|lt;.....|
|00002760| 69 66 20 28 20 69 6e 73 | 74 69 67 61 74 65 64 42 |if ( ins|tigatedB|
|00002770| 79 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 72 |y == Non|e )....r|
|00002780| 65 74 75 72 6e 20 53 75 | 70 65 72 2e 52 65 64 75 |eturn Su|per.Redu|
|00002790| 63 65 44 61 6d 61 67 65 | 28 20 44 61 6d 61 67 65 |ceDamage|( Damage|
|000027a0| 2c 69 6e 6a 75 72 65 64 | 2c 69 6e 73 74 69 67 61 |,injured|,instiga|
|000027b0| 74 65 64 42 79 2c 48 69 | 74 4c 6f 63 61 74 69 6f |tedBy,Hi|tLocatio|
|000027c0| 6e 2c 4d 6f 6d 65 6e 74 | 75 6d 2c 44 61 6d 61 67 |n,Moment|um,Damag|
|000027d0| 65 54 79 70 65 20 29 3b | 0d 0a 0d 0a 09 69 66 20 |eType );|.....if |
|000027e0| 28 20 4d 6f 6e 73 74 65 | 72 28 49 6e 6a 75 72 65 |( Monste|r(Injure|
|000027f0| 64 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |d) != No|ne )...{|
|00002800| 0d 0a 09 09 69 66 20 28 | 20 4d 6f 6e 73 74 65 72 |....if (| Monster|
|00002810| 28 49 6e 6a 75 72 65 64 | 29 2e 53 61 6d 65 53 70 |(Injured|).SameSp|
|00002820| 65 63 69 65 73 41 73 28 | 49 6e 73 74 69 67 61 74 |eciesAs(|Instigat|
|00002830| 65 64 42 79 29 20 29 0d | 0a 09 09 09 72 65 74 75 |edBy) ).|....retu|
|00002840| 72 6e 20 30 3b 0d 0a 09 | 09 72 65 74 75 72 6e 20 |rn 0;...|.return |
|00002850| 44 61 6d 61 67 65 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |Damage;.|..}.....|
|00002860| 69 66 20 28 20 4d 6f 6e | 73 74 65 72 43 6f 6e 74 |if ( Mon|sterCont|
|00002870| 72 6f 6c 6c 65 72 28 49 | 6e 73 74 69 67 61 74 65 |roller(I|nstigate|
|00002880| 64 42 79 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 20 |dBy.Cont|roller) |
|00002890| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|000028a0| 09 49 6e 73 74 69 67 61 | 74 6f 72 53 6b 69 6c 6c |.Instiga|torSkill|
|000028b0| 20 3d 20 4d 6f 6e 73 74 | 65 72 43 6f 6e 74 72 6f | = Monst|erContro|
|000028c0| 6c 6c 65 72 28 69 6e 73 | 74 69 67 61 74 65 64 42 |ller(ins|tigatedB|
|000028d0| 79 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 29 2e 53 6b |y.Contro|ller).Sk|
|000028e0| 69 6c 6c 3b 0d 0a 09 09 | 69 66 20 28 20 4e 75 6d |ill;....|if ( Num|
|000028f0| 50 6c 61 79 65 72 73 20 | 3e 20 34 20 29 0d 0a 09 |Players |> 4 )...|
|00002900| 09 09 49 6e 73 74 69 67 | 61 74 6f 72 53 6b 69 6c |..Instig|atorSkil|
|00002910| 6c 20 2b 3d 20 31 2e 30 | 3b 0d 0a 09 09 69 66 20 |l += 1.0|;....if |
|00002920| 28 20 28 49 6e 73 74 69 | 67 61 74 6f 72 53 6b 69 |( (Insti|gatorSki|
|00002930| 6c 6c 20 3c 20 37 29 20 | 26 26 20 28 4d 6f 6e 73 |ll < 7) |&& (Mons|
|00002940| 74 65 72 28 49 6e 6a 75 | 72 65 64 29 20 3d 3d 20 |ter(Inju|red) == |
|00002950| 4e 6f 6e 65 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |None) ).|...{....|
|00002960| 09 69 66 20 28 20 49 6e | 73 74 69 67 61 74 6f 72 |.if ( In|stigator|
|00002970| 53 6b 69 6c 6c 20 3c 3d | 20 33 20 29 0d 0a 09 09 |Skill <=| 3 )....|
|00002980| 09 09 44 61 6d 61 67 65 | 20 3d 20 44 61 6d 61 67 |..Damage| = Damag|
|00002990| 65 20 2a 20 28 30 2e 32 | 35 20 2b 20 30 2e 30 35 |e * (0.2|5 + 0.05|
|000029a0| 20 2a 20 49 6e 73 74 69 | 67 61 74 6f 72 53 6b 69 | * Insti|gatorSki|
|000029b0| 6c 6c 29 3b 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |ll);....|.else...|
|000029c0| 09 09 09 44 61 6d 61 67 | 65 20 3d 20 44 61 6d 61 |...Damag|e = Dama|
|000029d0| 67 65 20 2a 20 28 30 2e | 34 20 2b 20 30 2e 31 20 |ge * (0.|4 + 0.1 |
|000029e0| 2a 20 28 49 6e 73 74 69 | 67 61 74 6f 72 53 6b 69 |* (Insti|gatorSki|
|000029f0| 6c 6c 20 2d 20 33 29 29 | 3b 0d 0a 09 09 7d 0d 0a |ll - 3))|;....}..|
|00002a00| 09 7d 0d 0a 09 65 6c 73 | 65 20 69 66 20 28 20 69 |.}...els|e if ( i|
|00002a10| 6e 6a 75 72 65 64 20 3d | 3d 20 69 6e 73 74 69 67 |njured =|= instig|
|00002a20| 61 74 65 64 42 79 20 29 | 0d 0a 09 09 44 61 6d 61 |atedBy )|....Dama|
|00002a30| 67 65 20 3d 20 44 61 6d | 61 67 65 20 2a 20 30 2e |ge = Dam|age * 0.|
|00002a40| 35 3b 0d 0a 09 69 66 20 | 28 20 49 6e 76 61 73 69 |5;...if |( Invasi|
|00002a50| 6f 6e 42 6f 74 28 69 6e | 6a 75 72 65 64 2e 43 6f |onBot(in|jured.Co|
|00002a60| 6e 74 72 6f 6c 6c 65 72 | 29 20 21 3d 20 4e 6f 6e |ntroller|) != Non|
|00002a70| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |e )...{.|...if ( |
|00002a80| 21 49 6e 76 61 73 69 6f | 6e 42 6f 74 28 69 6e 6a |!Invasio|nBot(inj|
|00002a90| 75 72 65 64 2e 63 6f 6e | 74 72 6f 6c 6c 65 72 29 |ured.con|troller)|
|00002aa0| 2e 62 44 61 6d 61 67 65 | 64 4d 65 73 73 61 67 65 |.bDamage|dMessage|
|00002ab0| 20 26 26 20 28 69 6e 6a | 75 72 65 64 2e 48 65 61 | && (inj|ured.Hea|
|00002ac0| 6c 74 68 20 2d 20 44 61 | 6d 61 67 65 20 3c 20 35 |lth - Da|mage < 5|
|00002ad0| 30 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 49 6e |0) )....|{.....In|
|00002ae0| 76 61 73 69 6f 6e 42 6f | 74 28 69 6e 6a 75 72 65 |vasionBo|t(injure|
|00002af0| 64 2e 63 6f 6e 74 72 6f | 6c 6c 65 72 29 2e 62 44 |d.contro|ller).bD|
|00002b00| 61 6d 61 67 65 64 4d 65 | 73 73 61 67 65 20 3d 20 |amagedMe|ssage = |
|00002b10| 74 72 75 65 3b 0d 0a 09 | 09 09 69 66 20 28 20 46 |true;...|..if ( F|
|00002b20| 52 61 6e 64 28 29 20 3c | 20 30 2e 35 20 29 0d 0a |Rand() <| 0.5 )..|
|00002b30| 09 09 09 09 69 6e 6a 75 | 72 65 64 2e 43 6f 6e 74 |....inju|red.Cont|
|00002b40| 72 6f 6c 6c 65 72 2e 53 | 65 6e 64 4d 65 73 73 61 |roller.S|endMessa|
|00002b50| 67 65 28 4e 6f 6e 65 2c | 20 27 4f 54 48 45 52 27 |ge(None,| 'OTHER'|
|00002b60| 2c 20 34 2c 20 31 32 2c | 20 27 54 45 41 4d 27 29 |, 4, 12,| 'TEAM')|
|00002b70| 3b 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 09 |;.....el|se......|
|00002b80| 69 6e 6a 75 72 65 64 2e | 43 6f 6e 74 72 6f 6c 6c |injured.|Controll|
|00002b90| 65 72 2e 53 65 6e 64 4d | 65 73 73 61 67 65 28 4e |er.SendM|essage(N|
|00002ba0| 6f 6e 65 2c 20 27 4f 54 | 48 45 52 27 2c 20 31 33 |one, 'OT|HER', 13|
|00002bb0| 2c 20 31 32 2c 20 27 54 | 45 41 4d 27 29 3b 0d 0a |, 12, 'T|EAM');..|
|00002bc0| 09 09 7d 0d 0a 09 09 69 | 66 20 28 20 47 61 6d 65 |..}....i|f ( Game|
|00002bd0| 44 69 66 66 69 63 75 6c | 74 79 20 3c 3d 20 33 20 |Difficul|ty <= 3 |
|00002be0| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |)....{..|...if ( |
|00002bf0| 69 6e 6a 75 72 65 64 2e | 49 73 50 6c 61 79 65 72 |injured.|IsPlayer|
|00002c00| 50 61 77 6e 28 29 20 26 | 26 20 28 69 6e 6a 75 72 |Pawn() &|& (injur|
|00002c10| 65 64 20 3d 3d 20 69 6e | 73 74 69 67 61 74 65 64 |ed == in|stigated|
|00002c20| 62 79 29 20 26 26 20 28 | 4c 65 76 65 6c 2e 4e 65 |by) && (|Level.Ne|
|00002c30| 74 4d 6f 64 65 20 3d 3d | 20 4e 4d 5f 53 74 61 6e |tMode ==| NM_Stan|
|00002c40| 64 61 6c 6f 6e 65 29 20 | 29 0d 0a 09 09 09 09 44 |dalone) |)......D|
|00002c50| 61 6d 61 67 65 20 2a 3d | 20 30 2e 35 3b 0d 0a 0d |amage *=| 0.5;...|
|00002c60| 0a 09 09 09 2f 2f 73 6b | 69 6c 6c 20 6c 65 76 65 |....//sk|ill leve|
|00002c70| 6c 20 6d 6f 64 69 66 69 | 63 61 74 69 6f 6e 0d 0a |l modifi|cation..|
|00002c80| 09 09 09 69 66 20 28 20 | 4d 6f 6e 73 74 65 72 43 |...if ( |MonsterC|
|00002c90| 6f 6e 74 72 6f 6c 6c 65 | 72 28 49 6e 73 74 69 67 |ontrolle|r(Instig|
|00002ca0| 61 74 65 64 42 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |atedBy.C|ontrolle|
|00002cb0| 72 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |r) != No|ne )....|
|00002cc0| 09 7b 0d 0a 09 09 09 09 | 69 66 20 28 20 49 6e 73 |.{......|if ( Ins|
|00002cd0| 74 69 67 61 74 6f 72 53 | 6b 69 6c 6c 20 3c 3d 20 |tigatorS|kill <= |
|00002ce0| 33 20 29 0d 0a 09 09 09 | 09 09 44 61 6d 61 67 65 |3 ).....|..Damage|
|00002cf0| 20 3d 20 44 61 6d 61 67 | 65 20 2a 20 28 30 2e 32 | = Damag|e * (0.2|
|00002d00| 35 20 2b 20 30 2e 31 35 | 20 2a 20 49 6e 73 74 69 |5 + 0.15| * Insti|
|00002d10| 67 61 74 6f 72 53 6b 69 | 6c 6c 29 3b 0d 0a 09 09 |gatorSki|ll);....|
|00002d20| 09 7d 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 72 65 |.}....}.|..}...re|
|00002d30| 73 75 6c 74 20 3d 20 53 | 75 70 65 72 2e 52 65 64 |sult = S|uper.Red|
|00002d40| 75 63 65 44 61 6d 61 67 | 65 28 20 44 61 6d 61 67 |uceDamag|e( Damag|
|00002d50| 65 2c 69 6e 6a 75 72 65 | 64 2c 69 6e 73 74 69 67 |e,injure|d,instig|
|00002d60| 61 74 65 64 42 79 2c 48 | 69 74 4c 6f 63 61 74 69 |atedBy,H|itLocati|
|00002d70| 6f 6e 2c 4d 6f 6d 65 6e | 74 75 6d 2c 44 61 6d 61 |on,Momen|tum,Dama|
|00002d80| 67 65 54 79 70 65 20 29 | 3b 0d 0a 09 72 65 74 75 |geType )|;...retu|
|00002d90| 72 6e 20 72 65 73 75 6c | 74 3b 0d 0a 7d 0d 0a 0d |rn resul|t;..}...|
|00002da0| 0a 66 75 6e 63 74 69 6f | 6e 20 4b 69 6c 6c 65 64 |.functio|n Killed|
|00002db0| 28 20 43 6f 6e 74 72 6f | 6c 6c 65 72 20 4b 69 6c |( Contro|ller Kil|
|00002dc0| 6c 65 72 2c 20 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |ler, Con|troller |
|00002dd0| 4b 69 6c 6c 65 64 2c 20 | 50 61 77 6e 20 4b 69 6c |Killed, |Pawn Kil|
|00002de0| 6c 65 64 50 61 77 6e 2c | 20 63 6c 61 73 73 3c 44 |ledPawn,| class<D|
|00002df0| 61 6d 61 67 65 54 79 70 | 65 3e 20 64 61 6d 61 67 |amageTyp|e> damag|
|00002e00| 65 54 79 70 65 20 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |eType ).|.{...loc|
|00002e10| 61 6c 20 54 65 61 6d 50 | 6c 61 79 65 72 52 65 70 |al TeamP|layerRep|
|00002e20| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 54 50 52 |lication|Info TPR|
|00002e30| 49 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 28 4d 6f 6e |I;.....i|f ( (Mon|
|00002e40| 73 74 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 4b |sterCont|roller(K|
|00002e50| 69 6c 6c 65 64 29 20 21 | 3d 20 4e 6f 6e 65 29 20 |illed) !|= None) |
|00002e60| 7c 7c 20 28 4d 6f 6e 73 | 74 65 72 28 4b 69 6c 6c ||| (Mons|ter(Kill|
|00002e70| 65 64 50 61 77 6e 29 20 | 21 3d 20 4e 6f 6e 65 29 |edPawn) |!= None)|
|00002e80| 20 29 0d 0a 09 7b 0d 0a | 09 09 4e 75 6d 4d 6f 6e | )...{..|..NumMon|
|00002e90| 73 74 65 72 73 2d 2d 3b | 0d 0a 09 09 69 66 20 28 |sters--;|....if (|
|00002ea0| 20 28 4b 69 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 | (Killer| != None|
|00002eb0| 29 20 26 26 20 4b 69 6c | 6c 65 72 2e 62 49 73 50 |) && Kil|ler.bIsP|
|00002ec0| 6c 61 79 65 72 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |layer ).|...{....|
|00002ed0| 09 54 50 52 49 20 3d 20 | 54 65 61 6d 50 6c 61 79 |.TPRI = |TeamPlay|
|00002ee0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00002ef0| 6f 28 4b 69 6c 6c 65 72 | 2e 50 6c 61 79 65 72 52 |o(Killer|.PlayerR|
|00002f00| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 3b |eplicati|onInfo);|
|00002f10| 0d 0a 09 09 09 69 66 20 | 28 20 54 50 52 49 20 21 |.....if |( TPRI !|
|00002f20| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 09 54 50 |= None )|......TP|
|00002f30| 52 49 2e 41 64 64 57 65 | 61 70 6f 6e 4b 69 6c 6c |RI.AddWe|aponKill|
|00002f40| 28 44 61 6d 61 67 65 54 | 79 70 65 29 3b 0d 0a 09 |(DamageT|ype);...|
|00002f50| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 4c 61 73 74 4b |.}...}..|...LastK|
|00002f60| 69 6c 6c 65 64 4d 6f 6e | 73 74 65 72 43 6c 61 73 |illedMon|sterClas|
|00002f70| 73 20 3d 20 63 6c 61 73 | 73 3c 4d 6f 6e 73 74 65 |s = clas|s<Monste|
|00002f80| 72 3e 28 4b 69 6c 6c 65 | 64 50 61 77 6e 2e 63 6c |r>(Kille|dPawn.cl|
|00002f90| 61 73 73 29 3b 0d 0a 09 | 53 75 70 65 72 2e 4b 69 |ass);...|Super.Ki|
|00002fa0| 6c 6c 65 64 28 4b 69 6c | 6c 65 72 2c 4b 69 6c 6c |lled(Kil|ler,Kill|
|00002fb0| 65 64 2c 4b 69 6c 6c 65 | 64 50 61 77 6e 2c 44 61 |ed,Kille|dPawn,Da|
|00002fc0| 6d 61 67 65 54 79 70 65 | 29 3b 0d 0a 7d 0d 0a 0d |mageType|);..}...|
|00002fd0| 0a 66 75 6e 63 74 69 6f | 6e 20 41 64 64 4d 6f 6e |.functio|n AddMon|
|00002fe0| 73 74 65 72 28 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ster()..|{...loca|
|00002ff0| 6c 20 4e 61 76 69 67 61 | 74 69 6f 6e 50 6f 69 6e |l Naviga|tionPoin|
|00003000| 74 20 53 74 61 72 74 53 | 70 6f 74 3b 0d 0a 09 6c |t StartS|pot;...l|
|00003010| 6f 63 61 6c 20 50 61 77 | 6e 20 4e 65 77 4d 6f 6e |ocal Paw|n NewMon|
|00003020| 73 74 65 72 3b 0d 0a 09 | 6c 6f 63 61 6c 20 63 6c |ster;...|local cl|
|00003030| 61 73 73 3c 4d 6f 6e 73 | 74 65 72 3e 20 4e 65 77 |ass<Mons|ter> New|
|00003040| 4d 6f 6e 73 74 65 72 43 | 6c 61 73 73 3b 0d 0a 0d |MonsterC|lass;...|
|00003050| 0a 09 53 74 61 72 74 53 | 70 6f 74 20 3d 20 46 69 |..StartS|pot = Fi|
|00003060| 6e 64 50 6c 61 79 65 72 | 53 74 61 72 74 28 4e 6f |ndPlayer|Start(No|
|00003070| 6e 65 2c 31 29 3b 0d 0a | 09 69 66 20 28 20 53 74 |ne,1);..|.if ( St|
|00003080| 61 72 74 53 70 6f 74 20 | 3d 3d 20 4e 6f 6e 65 20 |artSpot |== None |
|00003090| 29 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 0d 0a |)....ret|urn;....|
|000030a0| 09 4e 65 77 4d 6f 6e 73 | 74 65 72 43 6c 61 73 73 |.NewMons|terClass|
|000030b0| 20 3d 20 57 61 76 65 4d | 6f 6e 73 74 65 72 43 6c | = WaveM|onsterCl|
|000030c0| 61 73 73 5b 52 61 6e 64 | 28 57 61 76 65 4e 75 6d |ass[Rand|(WaveNum|
|000030d0| 43 6c 61 73 73 65 73 29 | 5d 3b 0d 0a 09 4e 65 77 |Classes)|];...New|
|000030e0| 4d 6f 6e 73 74 65 72 20 | 3d 20 53 70 61 77 6e 28 |Monster |= Spawn(|
|000030f0| 4e 65 77 4d 6f 6e 73 74 | 65 72 43 6c 61 73 73 2c |NewMonst|erClass,|
|00003100| 2c 2c 53 74 61 72 74 53 | 70 6f 74 2e 4c 6f 63 61 |,,StartS|pot.Loca|
|00003110| 74 69 6f 6e 2b 28 4e 65 | 77 4d 6f 6e 73 74 65 72 |tion+(Ne|wMonster|
|00003120| 43 6c 61 73 73 2e 44 65 | 66 61 75 6c 74 2e 43 6f |Class.De|fault.Co|
|00003130| 6c 6c 69 73 69 6f 6e 48 | 65 69 67 68 74 20 2d 20 |llisionH|eight - |
|00003140| 53 74 61 72 74 53 70 6f | 74 2e 43 6f 6c 6c 69 73 |StartSpo|t.Collis|
|00003150| 69 6f 6e 48 65 69 67 68 | 74 29 20 2a 20 76 65 63 |ionHeigh|t) * vec|
|00003160| 74 28 30 2c 30 2c 31 29 | 2c 53 74 61 72 74 53 70 |t(0,0,1)|,StartSp|
|00003170| 6f 74 2e 52 6f 74 61 74 | 69 6f 6e 29 3b 0d 0a 09 |ot.Rotat|ion);...|
|00003180| 69 66 20 28 20 4e 65 77 | 4d 6f 6e 73 74 65 72 20 |if ( New|Monster |
|00003190| 3d 3d 20 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 4e 65 |== None| )....Ne|
|000031a0| 77 4d 6f 6e 73 74 65 72 | 20 3d 20 53 70 61 77 6e |wMonster| = Spawn|
|000031b0| 28 46 61 6c 6c 42 61 63 | 6b 4d 6f 6e 73 74 65 72 |(FallBac|kMonster|
|000031c0| 2c 2c 2c 53 74 61 72 74 | 53 70 6f 74 2e 4c 6f 63 |,,,Start|Spot.Loc|
|000031d0| 61 74 69 6f 6e 2b 28 63 | 6c 61 73 73 27 45 6c 69 |ation+(c|lass'Eli|
|000031e0| 74 65 4b 72 61 6c 6c 27 | 2e 44 65 66 61 75 6c 74 |teKrall'|.Default|
|000031f0| 2e 43 6f 6c 6c 69 73 69 | 6f 6e 48 65 69 67 68 74 |.Collisi|onHeight|
|00003200| 20 2d 20 53 74 61 72 74 | 53 70 6f 74 2e 43 6f 6c | - Start|Spot.Col|
|00003210| 6c 69 73 69 6f 6e 48 65 | 69 67 68 74 29 20 2a 20 |lisionHe|ight) * |
|00003220| 76 65 63 74 28 30 2c 30 | 2c 31 29 2c 53 74 61 72 |vect(0,0|,1),Star|
|00003230| 74 53 70 6f 74 2e 52 6f | 74 61 74 69 6f 6e 29 3b |tSpot.Ro|tation);|
|00003240| 0d 0a 09 69 66 20 28 20 | 4e 65 77 4d 6f 6e 73 74 |...if ( |NewMonst|
|00003250| 65 72 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |er != No|ne )...{|
|00003260| 0d 0a 09 09 57 61 76 65 | 4d 6f 6e 73 74 65 72 73 |....Wave|Monsters|
|00003270| 2b 2b 3b 0d 0a 09 09 4e | 75 6d 4d 6f 6e 73 74 65 |++;....N|umMonste|
|00003280| 72 73 2b 2b 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |rs++;...|}..}....|
|00003290| 66 75 6e 63 74 69 6f 6e | 20 53 65 74 75 70 57 61 |function| SetupWa|
|000032a0| 76 65 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ve()..{.|..local |
|000032b0| 69 6e 74 20 69 2c 6a 3b | 0d 0a 09 6c 6f 63 61 6c |int i,j;|...local|
|000032c0| 20 66 6c 6f 61 74 20 4e | 65 77 4d 61 78 4d 6f 6e | float N|ewMaxMon|
|000032d0| 73 74 65 72 73 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |sters;..|...if ( |
|000032e0| 57 61 76 65 4e 75 6d 20 | 3e 20 31 35 20 29 0d 0a |WaveNum |> 15 )..|
|000032f0| 09 7b 0d 0a 09 09 53 65 | 74 75 70 52 61 6e 64 6f |.{....Se|tupRando|
|00003300| 6d 57 61 76 65 28 29 3b | 0d 0a 09 09 72 65 74 75 |mWave();|....retu|
|00003310| 72 6e 3b 0d 0a 09 7d 0d | 0a 09 57 61 76 65 4d 6f |rn;...}.|..WaveMo|
|00003320| 6e 73 74 65 72 73 20 3d | 20 30 3b 0d 0a 09 57 61 |nsters =| 0;...Wa|
|00003330| 76 65 4e 75 6d 43 6c 61 | 73 73 65 73 20 3d 20 30 |veNumCla|sses = 0|
|00003340| 3b 0d 0a 09 4e 65 77 4d | 61 78 4d 6f 6e 73 74 65 |;...NewM|axMonste|
|00003350| 72 73 20 3d 20 57 61 76 | 65 73 5b 57 61 76 65 4e |rs = Wav|es[WaveN|
|00003360| 75 6d 5d 2e 57 61 76 65 | 4d 61 78 4d 6f 6e 73 74 |um].Wave|MaxMonst|
|00003370| 65 72 73 3b 0d 0a 09 69 | 66 20 28 20 4e 75 6d 50 |ers;...i|f ( NumP|
|00003380| 6c 61 79 65 72 73 20 2b | 20 4e 75 6d 42 6f 74 73 |layers +| NumBots|
|00003390| 20 3c 3d 20 32 20 29 0d | 0a 09 09 4e 65 77 4d 61 | <= 2 ).|...NewMa|
|000033a0| 78 4d 6f 6e 73 74 65 72 | 73 20 3d 20 4e 65 77 4d |xMonster|s = NewM|
|000033b0| 61 78 4d 6f 6e 73 74 65 | 72 73 20 2a 20 28 46 4d |axMonste|rs * (FM|
|000033c0| 69 6e 28 47 61 6d 65 44 | 69 66 66 69 63 75 6c 74 |in(GameD|ifficult|
|000033d0| 79 2c 37 29 20 2b 20 33 | 29 2f 31 30 3b 0d 0a 09 |y,7) + 3|)/10;...|
|000033e0| 69 66 20 28 20 4e 75 6d | 50 6c 61 79 65 72 73 20 |if ( Num|Players |
|000033f0| 3e 20 34 20 29 0d 0a 09 | 09 4e 65 77 4d 61 78 4d |> 4 )...|.NewMaxM|
|00003400| 6f 6e 73 74 65 72 73 20 | 2a 3d 20 46 4d 69 6e 28 |onsters |*= FMin(|
|00003410| 4e 75 6d 50 6c 61 79 65 | 72 73 2f 34 2c 32 29 3b |NumPlaye|rs/4,2);|
|00003420| 0d 0a 09 4d 61 78 4d 6f | 6e 73 74 65 72 73 20 3d |...MaxMo|nsters =|
|00003430| 20 4e 65 77 4d 61 78 4d | 6f 6e 73 74 65 72 73 3b | NewMaxM|onsters;|
|00003440| 0d 0a 09 57 61 76 65 45 | 6e 64 54 69 6d 65 20 3d |...WaveE|ndTime =|
|00003450| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00003460| 64 73 20 2b 20 57 61 76 | 65 73 5b 57 61 76 65 4e |ds + Wav|es[WaveN|
|00003470| 75 6d 5d 2e 57 61 76 65 | 44 75 72 61 74 69 6f 6e |um].Wave|Duration|
|00003480| 3b 0d 0a 09 41 64 6a 75 | 73 74 65 64 44 69 66 66 |;...Adju|stedDiff|
|00003490| 69 63 75 6c 74 79 20 3d | 20 47 61 6d 65 44 69 66 |iculty =| GameDif|
|000034a0| 66 69 63 75 6c 74 79 20 | 2b 20 57 61 76 65 73 5b |ficulty |+ Waves[|
|000034b0| 57 61 76 65 4e 75 6d 5d | 2e 57 61 76 65 44 69 66 |WaveNum]|.WaveDif|
|000034c0| 66 69 63 75 6c 74 79 3b | 0d 0a 0d 0a 09 6a 20 3d |ficulty;|.....j =|
|000034d0| 20 31 3b 0d 0a 0d 0a 09 | 66 6f 72 20 28 20 69 3d | 1;.....|for ( i=|
|000034e0| 30 3b 20 69 3c 31 36 3b | 20 69 2b 2b 20 29 0d 0a |0; i<16;| i++ )..|
|000034f0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 28 6a 20 26 20 |.{....if| ( (j & |
|00003500| 57 61 76 65 73 5b 57 61 | 76 65 4e 75 6d 5d 2e 57 |Waves[Wa|veNum].W|
|00003510| 61 76 65 4d 61 73 6b 29 | 20 21 3d 20 30 20 29 0d |aveMask)| != 0 ).|
|00003520| 0a 09 09 7b 0d 0a 09 09 | 09 57 61 76 65 4d 6f 6e |...{....|.WaveMon|
|00003530| 73 74 65 72 43 6c 61 73 | 73 5b 57 61 76 65 4e 75 |sterClas|s[WaveNu|
|00003540| 6d 43 6c 61 73 73 65 73 | 5d 20 3d 20 4d 6f 6e 73 |mClasses|] = Mons|
|00003550| 74 65 72 43 6c 61 73 73 | 5b 69 5d 3b 0d 0a 09 09 |terClass|[i];....|
|00003560| 09 57 61 76 65 4e 75 6d | 43 6c 61 73 73 65 73 2b |.WaveNum|Classes+|
|00003570| 2b 3b 0d 0a 09 09 7d 0d | 0a 09 09 6a 20 2a 3d 20 |+;....}.|...j *= |
|00003580| 32 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |2;...}..|}....fun|
|00003590| 63 74 69 6f 6e 20 53 65 | 74 75 70 52 61 6e 64 6f |ction Se|tupRando|
|000035a0| 6d 57 61 76 65 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |mWave().|.{...loc|
|000035b0| 61 6c 20 69 6e 74 20 69 | 2c 6a 2c 20 4d 61 73 6b |al int i|,j, Mask|
|000035c0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |;...loca|l float |
|000035d0| 4e 65 77 4d 61 78 4d 6f | 6e 73 74 65 72 73 3b 0d |NewMaxMo|nsters;.|
|000035e0| 0a 0d 0a 09 4e 65 77 4d | 61 78 4d 6f 6e 73 74 65 |....NewM|axMonste|
|000035f0| 72 73 20 3d 20 31 35 3b | 0d 0a 09 69 66 20 28 20 |rs = 15;|...if ( |
|00003600| 4e 75 6d 50 6c 61 79 65 | 72 73 20 3e 20 34 20 29 |NumPlaye|rs > 4 )|
|00003610| 0d 0a 09 09 4e 65 77 4d | 61 78 4d 6f 6e 73 74 65 |....NewM|axMonste|
|00003620| 72 73 20 2a 3d 20 46 4d | 69 6e 28 4e 75 6d 50 6c |rs *= FM|in(NumPl|
|00003630| 61 79 65 72 73 2f 34 2c | 32 29 3b 0d 0a 09 65 6c |ayers/4,|2);...el|
|00003640| 73 65 0d 0a 09 09 4e 65 | 77 4d 61 78 4d 6f 6e 73 |se....Ne|wMaxMons|
|00003650| 74 65 72 73 20 3d 20 4e | 65 77 4d 61 78 4d 6f 6e |ters = N|ewMaxMon|
|00003660| 73 74 65 72 73 20 2a 20 | 28 46 4d 69 6e 28 47 61 |sters * |(FMin(Ga|
|00003670| 6d 65 44 69 66 66 69 63 | 75 6c 74 79 2c 37 29 20 |meDiffic|ulty,7) |
|00003680| 2b 20 33 29 2f 31 30 3b | 0d 0a 09 4d 61 78 4d 6f |+ 3)/10;|...MaxMo|
|00003690| 6e 73 74 65 72 73 20 3d | 20 4e 65 77 4d 61 78 4d |nsters =| NewMaxM|
|000036a0| 6f 6e 73 74 65 72 73 20 | 2b 20 31 3b 0d 0a 09 57 |onsters |+ 1;...W|
|000036b0| 61 76 65 45 6e 64 54 69 | 6d 65 20 3d 20 4c 65 76 |aveEndTi|me = Lev|
|000036c0| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2b |el.TimeS|econds +|
|000036d0| 20 31 38 30 3b 0d 0a 09 | 41 64 6a 75 73 74 65 64 | 180;...|Adjusted|
|000036e0| 44 69 66 66 69 63 75 6c | 74 79 20 3d 20 47 61 6d |Difficul|ty = Gam|
|000036f0| 65 44 69 66 66 69 63 75 | 6c 74 79 20 2b 20 33 3b |eDifficu|lty + 3;|
|00003700| 0d 0a 09 47 61 6d 65 44 | 69 66 66 69 63 75 6c 74 |...GameD|ifficult|
|00003710| 79 20 2b 3d 20 30 2e 35 | 3b 0d 0a 0d 0a 09 57 61 |y += 0.5|;.....Wa|
|00003720| 76 65 4e 75 6d 43 6c 61 | 73 73 65 73 20 3d 20 30 |veNumCla|sses = 0|
|00003730| 3b 0d 0a 09 4d 61 73 6b | 20 3d 20 32 30 34 38 20 |;...Mask| = 2048 |
|00003740| 2b 20 52 61 6e 64 28 32 | 30 34 37 29 3b 0d 0a 09 |+ Rand(2|047);...|
|00003750| 6a 20 3d 20 31 3b 0d 0a | 0d 0a 09 66 6f 72 20 28 |j = 1;..|...for (|
|00003760| 20 69 3d 30 3b 20 69 3c | 31 36 3b 20 69 2b 2b 20 | i=0; i<|16; i++ |
|00003770| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 28 6a |)...{...|.if ( (j|
|00003780| 20 26 20 4d 61 73 6b 29 | 20 21 3d 20 30 20 29 0d | & Mask)| != 0 ).|
|00003790| 0a 09 09 7b 0d 0a 09 09 | 09 57 61 76 65 4d 6f 6e |...{....|.WaveMon|
|000037a0| 73 74 65 72 43 6c 61 73 | 73 5b 57 61 76 65 4e 75 |sterClas|s[WaveNu|
|000037b0| 6d 43 6c 61 73 73 65 73 | 5d 20 3d 20 4d 6f 6e 73 |mClasses|] = Mons|
|000037c0| 74 65 72 43 6c 61 73 73 | 5b 69 5d 3b 0d 0a 09 09 |terClass|[i];....|
|000037d0| 09 57 61 76 65 4e 75 6d | 43 6c 61 73 73 65 73 2b |.WaveNum|Classes+|
|000037e0| 2b 3b 0d 0a 09 09 7d 0d | 0a 09 09 6a 20 2a 3d 20 |+;....}.|...j *= |
|000037f0| 32 3b 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |2;...}..|}....fun|
|00003800| 63 74 69 6f 6e 20 50 6c | 61 79 45 6e 64 4f 66 4d |ction Pl|ayEndOfM|
|00003810| 61 74 63 68 4d 65 73 73 | 61 67 65 28 29 0d 0a 7b |atchMess|age()..{|
|00003820| 0d 0a 09 6c 6f 63 61 6c | 20 63 6f 6e 74 72 6f 6c |...local| control|
|00003830| 6c 65 72 20 43 3b 0d 0a | 09 6c 6f 63 61 6c 20 6e |ler C;..|.local n|
|00003840| 61 6d 65 20 45 6e 64 53 | 6f 75 6e 64 3b 0d 0a 0d |ame EndS|ound;...|
|00003850| 0a 09 69 66 20 28 20 57 | 61 76 65 4e 75 6d 20 3e |..if ( W|aveNum >|
|00003860| 3d 20 46 69 6e 61 6c 57 | 61 76 65 20 29 0d 0a 09 |= FinalW|ave )...|
|00003870| 09 45 6e 64 53 6f 75 6e | 64 20 3d 20 45 6e 64 47 |.EndSoun|d = EndG|
|00003880| 61 6d 65 53 6f 75 6e 64 | 4e 61 6d 65 5b 30 5d 3b |ameSound|Name[0];|
|00003890| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 57 61 76 |...else |if ( Wav|
|000038a0| 65 4e 75 6d 20 2d 20 49 | 6e 69 74 69 61 6c 57 61 |eNum - I|nitialWa|
|000038b0| 76 65 20 3d 3d 20 30 20 | 29 0d 0a 09 09 45 6e 64 |ve == 0 |)....End|
|000038c0| 53 6f 75 6e 64 20 3d 20 | 41 6c 74 45 6e 64 47 61 |Sound = |AltEndGa|
|000038d0| 6d 65 53 6f 75 6e 64 4e | 61 6d 65 5b 31 5d 3b 0d |meSoundN|ame[1];.|
|000038e0| 0a 09 65 6c 73 65 0d 0a | 09 09 45 6e 64 53 6f 75 |..else..|..EndSou|
|000038f0| 6e 64 20 3d 20 49 6e 76 | 61 73 69 6f 6e 45 6e 64 |nd = Inv|asionEnd|
|00003900| 5b 4d 69 6e 28 35 2c 28 | 57 61 76 65 4e 75 6d 20 |[Min(5,(|WaveNum |
|00003910| 2d 20 49 6e 69 74 69 61 | 6c 57 61 76 65 29 2f 33 |- Initia|lWave)/3|
|00003920| 29 5d 3b 0d 0a 09 66 6f | 72 20 28 20 43 20 3d 20 |)];...fo|r ( C = |
|00003930| 4c 65 76 65 6c 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |Level.Co|ntroller|
|00003940| 4c 69 73 74 3b 20 43 20 | 21 3d 20 4e 6f 6e 65 3b |List; C |!= None;|
|00003950| 20 43 20 3d 20 43 2e 4e | 65 78 74 43 6f 6e 74 72 | C = C.N|extContr|
|00003960| 6f 6c 6c 65 72 20 29 0d | 0a 09 09 69 66 20 28 20 |oller ).|...if ( |
|00003970| 43 2e 49 73 41 28 27 50 | 6c 61 79 65 72 43 6f 6e |C.IsA('P|layerCon|
|00003980| 74 72 6f 6c 6c 65 72 27 | 29 20 29 0d 0a 09 09 09 |troller'|) ).....|
|00003990| 50 6c 61 79 65 72 43 6f | 6e 74 72 6f 6c 6c 65 72 |PlayerCo|ntroller|
|000039a0| 28 43 29 2e 50 6c 61 79 | 52 65 77 61 72 64 41 6e |(C).Play|RewardAn|
|000039b0| 6e 6f 75 6e 63 65 6d 65 | 6e 74 28 45 6e 64 53 6f |nounceme|nt(EndSo|
|000039c0| 75 6e 64 2c 31 2c 74 72 | 75 65 29 3b 0d 0a 7d 0d |und,1,tr|ue);..}.|
|000039d0| 0a 0d 0a 2f 2a 20 52 61 | 74 65 20 77 68 65 74 68 |.../* Ra|te wheth|
|000039e0| 65 72 20 70 6c 61 79 65 | 72 2f 6d 6f 6e 73 74 65 |er playe|r/monste|
|000039f0| 72 20 73 68 6f 75 6c 64 | 20 63 68 6f 6f 73 65 20 |r should| choose |
|00003a00| 74 68 69 73 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |this Nav|igationP|
|00003a10| 6f 69 6e 74 20 61 73 20 | 69 74 73 20 73 74 61 72 |oint as |its star|
|00003a20| 74 0d 0a 2a 2f 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |t..*/..f|unction |
|00003a30| 66 6c 6f 61 74 20 52 61 | 74 65 50 6c 61 79 65 72 |float Ra|tePlayer|
|00003a40| 53 74 61 72 74 28 4e 61 | 76 69 67 61 74 69 6f 6e |Start(Na|vigation|
|00003a50| 50 6f 69 6e 74 20 4e 2c | 20 62 79 74 65 20 54 65 |Point N,| byte Te|
|00003a60| 61 6d 2c 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 50 |am, Cont|roller P|
|00003a70| 6c 61 79 65 72 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |layer)..|{.. l|
|00003a80| 6f 63 61 6c 20 66 6c 6f | 61 74 20 53 63 6f 72 65 |ocal flo|at Score|
|00003a90| 2c 20 4e 65 78 74 44 69 | 73 74 3b 0d 0a 20 20 20 |, NextDi|st;.. |
|00003aa0| 20 6c 6f 63 61 6c 20 43 | 6f 6e 74 72 6f 6c 6c 65 | local C|ontrolle|
|00003ab0| 72 20 4f 74 68 65 72 50 | 6c 61 79 65 72 3b 0d 0a |r OtherP|layer;..|
|00003ac0| 0d 0a 09 69 66 20 28 20 | 28 54 65 61 6d 20 3d 3d |...if ( |(Team ==|
|00003ad0| 20 30 29 20 7c 7c 20 28 | 28 50 6c 61 79 65 72 20 | 0) || (|(Player |
|00003ae0| 21 3d 4e 6f 6e 65 29 20 | 26 26 20 50 6c 61 79 65 |!=None) |&& Playe|
|00003af0| 72 2e 62 49 73 50 6c 61 | 79 65 72 29 20 29 0d 0a |r.bIsPla|yer) )..|
|00003b00| 09 09 72 65 74 75 72 6e | 20 53 75 70 65 72 2e 52 |..return| Super.R|
|00003b10| 61 74 65 50 6c 61 79 65 | 72 53 74 61 72 74 28 4e |atePlaye|rStart(N|
|00003b20| 2c 54 65 61 6d 2c 50 6c | 61 79 65 72 29 3b 0d 0a |,Team,Pl|ayer);..|
|00003b30| 0d 0a 20 20 20 20 69 66 | 20 28 20 4e 2e 50 68 79 |.. if| ( N.Phy|
|00003b40| 73 69 63 73 56 6f 6c 75 | 6d 65 2e 62 57 61 74 65 |sicsVolu|me.bWate|
|00003b50| 72 56 6f 6c 75 6d 65 20 | 29 0d 0a 20 20 20 20 20 |rVolume |).. |
|00003b60| 20 20 20 72 65 74 75 72 | 6e 20 2d 31 30 30 30 30 | retur|n -10000|
|00003b70| 30 30 30 3b 0d 0a 0d 0a | 20 20 20 20 2f 2f 61 73 |000;....| //as|
|00003b80| 73 65 73 73 20 63 61 6e | 64 69 64 61 74 65 0d 0a |sess can|didate..|
|00003b90| 20 20 20 20 69 66 20 28 | 20 28 53 6d 61 6c 6c 4e | if (| (SmallN|
|00003ba0| 61 76 69 67 61 74 69 6f | 6e 50 6f 69 6e 74 28 4e |avigatio|nPoint(N|
|00003bb0| 29 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 28 50 |) != Non|e) && (P|
|00003bc0| 6c 61 79 65 72 53 74 61 | 72 74 28 4e 29 20 3d 3d |layerSta|rt(N) ==|
|00003bd0| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 72 65 74 75 | None) )|....retu|
|00003be0| 72 6e 20 2d 31 3b 0d 0a | 0d 0a 09 53 63 6f 72 65 |rn -1;..|...Score|
|00003bf0| 20 3d 20 31 30 30 30 30 | 30 30 30 3b 0d 0a 0d 0a | = 10000|000;....|
|00003c00| 20 20 20 20 53 63 6f 72 | 65 20 2b 3d 20 33 30 30 | Scor|e += 300|
|00003c10| 30 20 2a 20 46 52 61 6e | 64 28 29 3b 20 2f 2f 72 |0 * FRan|d(); //r|
|00003c20| 61 6e 64 6f 6d 69 7a 65 | 0d 0a 0d 0a 20 20 20 20 |andomize|.... |
|00003c30| 66 6f 72 20 28 20 4f 74 | 68 65 72 50 6c 61 79 65 |for ( Ot|herPlaye|
|00003c40| 72 3d 4c 65 76 65 6c 2e | 43 6f 6e 74 72 6f 6c 6c |r=Level.|Controll|
|00003c50| 65 72 4c 69 73 74 3b 20 | 4f 74 68 65 72 50 6c 61 |erList; |OtherPla|
|00003c60| 79 65 72 21 3d 4e 6f 6e | 65 3b 20 4f 74 68 65 72 |yer!=Non|e; Other|
|00003c70| 50 6c 61 79 65 72 3d 4f | 74 68 65 72 50 6c 61 79 |Player=O|therPlay|
|00003c80| 65 72 2e 4e 65 78 74 43 | 6f 6e 74 72 6f 6c 6c 65 |er.NextC|ontrolle|
|00003c90| 72 29 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 |r).. | if (|
|00003ca0| 20 28 50 6c 61 79 65 72 | 43 6f 6e 74 72 6f 6c 6c | (Player|Controll|
|00003cb0| 65 72 28 4f 74 68 65 72 | 50 6c 61 79 65 72 29 20 |er(Other|Player) |
|00003cc0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 28 4f 74 68 |!= None)| && (Oth|
|00003cd0| 65 72 50 6c 61 79 65 72 | 2e 50 61 77 6e 20 21 3d |erPlayer|.Pawn !=|
|00003ce0| 20 4e 6f 6e 65 29 20 29 | 0d 0a 20 20 20 20 20 20 | None) )|.. |
|00003cf0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00003d00| 20 4e 65 78 74 44 69 73 | 74 20 3d 20 56 53 69 7a | NextDis|t = VSiz|
|00003d10| 65 28 4f 74 68 65 72 50 | 6c 61 79 65 72 2e 50 61 |e(OtherP|layer.Pa|
|00003d20| 77 6e 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 4e 2e |wn.Locat|ion - N.|
|00003d30| 4c 6f 63 61 74 69 6f 6e | 29 3b 0d 0a 20 20 20 20 |Location|);.. |
|00003d40| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 4e 65 78 | |if ( Nex|
|00003d50| 74 44 69 73 74 20 3c 20 | 4f 74 68 65 72 50 6c 61 |tDist < |OtherPla|
|00003d60| 79 65 72 2e 50 61 77 6e | 2e 43 6f 6c 6c 69 73 69 |yer.Pawn|.Collisi|
|00003d70| 6f 6e 52 61 64 69 75 73 | 20 2b 20 4f 74 68 65 72 |onRadius| + Other|
|00003d80| 50 6c 61 79 65 72 2e 50 | 61 77 6e 2e 43 6f 6c 6c |Player.P|awn.Coll|
|00003d90| 69 73 69 6f 6e 48 65 69 | 67 68 74 20 29 0d 0a 20 |isionHei|ght ).. |
|00003da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|00003db0| 63 6f 72 65 20 2d 3d 20 | 31 30 30 30 30 30 30 2e |core -= |1000000.|
|00003dc0| 30 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |0;.. | |
|00003dd0| 65 6c 73 65 20 69 66 20 | 28 20 4e 65 78 74 44 69 |else if |( NextDi|
|00003de0| 73 74 20 3e 20 35 30 30 | 30 20 29 0d 0a 09 09 09 |st > 500|0 ).....|
|00003df0| 09 53 63 6f 72 65 20 2d | 3d 20 32 30 30 30 30 3b |.Score -|= 20000;|
|00003e00| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c |.. | el|
|00003e10| 73 65 20 69 66 20 28 20 | 4e 65 78 74 44 69 73 74 |se if ( |NextDist|
|00003e20| 20 3c 20 33 30 30 30 20 | 29 0d 0a 20 20 20 20 20 | < 3000 |).. |
|00003e30| 20 20 20 20 20 20 20 7b | 0d 0a 09 09 09 09 69 66 | {|......if|
|00003e40| 20 28 20 28 4e 65 78 74 | 44 69 73 74 20 3e 20 31 | ( (Next|Dist > 1|
|00003e50| 32 30 30 29 20 26 26 20 | 28 56 65 63 74 6f 72 28 |200) && |(Vector(|
|00003e60| 4f 74 68 65 72 50 6c 61 | 79 65 72 2e 52 6f 74 61 |OtherPla|yer.Rota|
|00003e70| 74 69 6f 6e 29 20 44 6f | 74 20 28 4e 2e 4c 6f 63 |tion) Do|t (N.Loc|
|00003e80| 61 74 69 6f 6e 20 2d 20 | 4f 74 68 65 72 50 6c 61 |ation - |OtherPla|
|00003e90| 79 65 72 2e 50 61 77 6e | 2e 4c 6f 63 61 74 69 6f |yer.Pawn|.Locatio|
|00003ea0| 6e 29 29 20 3c 3d 20 30 | 20 29 0d 0a 09 09 09 09 |n)) <= 0| )......|
|00003eb0| 09 53 63 6f 72 65 20 3d | 20 53 63 6f 72 65 20 2b |.Score =| Score +|
|00003ec0| 20 35 30 30 30 20 2d 20 | 4e 65 78 74 44 69 73 74 | 5000 - |NextDist|
|00003ed0| 3b 0d 0a 09 09 09 09 65 | 6c 73 65 20 69 66 20 28 |;......e|lse if (|
|00003ee0| 20 46 61 73 74 54 72 61 | 63 65 28 4e 2e 4c 6f 63 | FastTra|ce(N.Loc|
|00003ef0| 61 74 69 6f 6e 2c 20 4f | 74 68 65 72 50 6c 61 79 |ation, O|therPlay|
|00003f00| 65 72 2e 50 61 77 6e 2e | 4c 6f 63 61 74 69 6f 6e |er.Pawn.|Location|
|00003f10| 29 20 29 0d 0a 09 09 09 | 09 09 53 63 6f 72 65 20 |) ).....|..Score |
|00003f20| 2d 3d 20 28 31 30 30 30 | 30 2e 30 20 2d 20 4e 65 |-= (1000|0.0 - Ne|
|00003f30| 78 74 44 69 73 74 29 3b | 0d 0a 09 09 09 09 69 66 |xtDist);|......if|
|00003f40| 20 28 20 28 4c 6f 63 61 | 74 69 6f 6e 2e 5a 20 3e | ( (Loca|tion.Z >|
|00003f50| 20 4f 74 68 65 72 50 6c | 61 79 65 72 2e 50 61 77 | OtherPl|ayer.Paw|
|00003f60| 6e 2e 4c 6f 63 61 74 69 | 6f 6e 2e 5a 29 20 26 26 |n.Locati|on.Z) &&|
|00003f70| 20 28 4e 65 78 74 44 69 | 73 74 20 3e 20 31 30 30 | (NextDi|st > 100|
|00003f80| 30 29 20 29 0d 0a 09 09 | 09 09 09 53 63 6f 72 65 |0) )....|...Score|
|00003f90| 20 2b 3d 20 31 30 30 30 | 3b 0d 0a 09 09 09 7d 0d | += 1000|;.....}.|
|00003fa0| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 |. | }.. |
|00003fb0| 72 65 74 75 72 6e 20 46 | 4d 61 78 28 53 63 6f 72 |return F|Max(Scor|
|00003fc0| 65 2c 20 35 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |e, 5);..|}....fun|
|00003fd0| 63 74 69 6f 6e 20 52 65 | 70 6c 65 6e 69 73 68 57 |ction Re|plenishW|
|00003fe0| 65 61 70 6f 6e 73 28 50 | 61 77 6e 20 50 29 0d 0a |eapons(P|awn P)..|
|00003ff0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 49 6e 76 65 6e 74 |{...loca|l Invent|
|00004000| 6f 72 79 20 49 6e 76 3b | 0d 0a 0d 0a 09 66 6f 72 |ory Inv;|.....for|
|00004010| 20 28 49 6e 76 20 3d 20 | 50 2e 49 6e 76 65 6e 74 | (Inv = |P.Invent|
|00004020| 6f 72 79 3b 20 49 6e 76 | 20 21 3d 20 4e 6f 6e 65 |ory; Inv| != None|
|00004030| 3b 20 49 6e 76 20 3d 20 | 49 6e 76 2e 49 6e 76 65 |; Inv = |Inv.Inve|
|00004040| 6e 74 6f 72 79 29 0d 0a | 09 09 69 66 20 28 57 65 |ntory)..|..if (We|
|00004050| 61 70 6f 6e 28 49 6e 76 | 29 20 21 3d 20 4e 6f 6e |apon(Inv|) != Non|
|00004060| 65 20 26 26 20 21 49 6e | 76 2e 49 73 41 28 27 50 |e && !In|v.IsA('P|
|00004070| 61 69 6e 74 65 72 27 29 | 20 26 26 20 21 49 6e 76 |ainter')| && !Inv|
|00004080| 2e 49 73 41 28 27 52 65 | 64 65 65 6d 65 72 27 29 |.IsA('Re|deemer')|
|00004090| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 57 65 61 70 6f |)....{..|...Weapo|
|000040a0| 6e 28 49 6e 76 29 2e 46 | 69 6c 6c 54 6f 49 6e 69 |n(Inv).F|illToIni|
|000040b0| 74 69 61 6c 41 6d 6d 6f | 28 29 3b 0d 0a 09 09 09 |tialAmmo|();.....|
|000040c0| 49 6e 76 2e 4e 65 74 55 | 70 64 61 74 65 54 69 6d |Inv.NetU|pdateTim|
|000040d0| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|000040e0| 63 6f 6e 64 73 20 2d 20 | 31 3b 0d 0a 09 09 7d 0d |conds - |1;....}.|
|000040f0| 0a 7d 0d 0a 0d 0a 53 74 | 61 74 65 20 4d 61 74 63 |.}....St|ate Matc|
|00004100| 68 49 6e 50 72 6f 67 72 | 65 73 73 0d 0a 7b 0d 0a |hInProgr|ess..{..|
|00004110| 09 66 75 6e 63 74 69 6f | 6e 20 54 69 6d 65 72 28 |.functio|n Timer(|
|00004120| 29 0d 0a 09 7b 0d 0a 09 | 09 6c 6f 63 61 6c 20 43 |)...{...|.local C|
|00004130| 6f 6e 74 72 6f 6c 6c 65 | 72 20 43 3b 0d 0a 09 09 |ontrolle|r C;....|
|00004140| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 4f 6e 65 4d |local bo|ol bOneM|
|00004150| 65 73 73 61 67 65 3b 0d | 0a 09 09 6c 6f 63 61 6c |essage;.|...local|
|00004160| 20 42 6f 74 20 42 3b 0d | 0a 09 09 6c 6f 63 61 6c | Bot B;.|...local|
|00004170| 20 69 6e 74 20 50 6c 61 | 79 65 72 43 6f 75 6e 74 | int Pla|yerCount|
|00004180| 3b 0d 0a 0d 0a 09 09 53 | 75 70 65 72 2e 54 69 6d |;......S|uper.Tim|
|00004190| 65 72 28 29 3b 0d 0a 09 | 09 69 66 20 28 20 62 57 |er();...|.if ( bW|
|000041a0| 61 76 65 49 6e 50 72 6f | 67 72 65 73 73 20 29 0d |aveInPro|gress ).|
|000041b0| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 28 57 |...{....|.if ( (W|
|000041c0| 61 76 65 45 6e 64 54 69 | 6d 65 20 2d 20 4c 65 76 |aveEndTi|me - Lev|
|000041d0| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 3c |el.TimeS|econds <|
|000041e0| 20 33 30 29 20 26 26 20 | 28 4d 61 78 4d 6f 6e 73 | 30) && |(MaxMons|
|000041f0| 74 65 72 73 20 3c 20 57 | 61 76 65 73 5b 57 61 76 |ters < W|aves[Wav|
|00004200| 65 4e 75 6d 5d 2e 57 61 | 76 65 4d 61 78 4d 6f 6e |eNum].Wa|veMaxMon|
|00004210| 73 74 65 72 73 29 20 29 | 0d 0a 09 09 09 7b 0d 0a |sters) )|.....{..|
|00004220| 09 09 09 09 66 6f 72 20 | 28 20 43 20 3d 20 4c 65 |....for |( C = Le|
|00004230| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|00004240| 73 74 3b 20 43 20 21 3d | 20 4e 6f 6e 65 3b 20 43 |st; C !=| None; C|
|00004250| 20 3d 20 43 2e 4e 65 78 | 74 43 6f 6e 74 72 6f 6c | = C.Nex|tControl|
|00004260| 6c 65 72 20 29 0d 0a 09 | 09 09 09 09 69 66 20 28 |ler )...|....if (|
|00004270| 20 43 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 | C.bIsPl|ayer && |
|00004280| 28 43 2e 50 61 77 6e 20 | 21 3d 20 4e 6f 6e 65 29 |(C.Pawn |!= None)|
|00004290| 20 29 0d 0a 09 09 09 09 | 09 09 50 6c 61 79 65 72 | )......|..Player|
|000042a0| 43 6f 75 6e 74 2b 2b 3b | 0d 0a 09 09 09 09 69 66 |Count++;|......if|
|000042b0| 20 28 20 50 6c 61 79 65 | 72 43 6f 75 6e 74 20 3e | ( Playe|rCount >|
|000042c0| 20 31 20 29 0d 0a 09 09 | 09 09 09 4d 61 78 4d 6f | 1 )....|...MaxMo|
|000042d0| 6e 73 74 65 72 73 20 3d | 20 57 61 76 65 73 5b 57 |nsters =| Waves[W|
|000042e0| 61 76 65 4e 75 6d 5d 2e | 57 61 76 65 4d 61 78 4d |aveNum].|WaveMaxM|
|000042f0| 6f 6e 73 74 65 72 73 3b | 0d 0a 09 09 09 7d 0d 0a |onsters;|.....}..|
|00004300| 09 09 09 69 66 20 28 20 | 28 4c 65 76 65 6c 2e 54 |...if ( |(Level.T|
|00004310| 69 6d 65 53 65 63 6f 6e | 64 73 20 3e 20 57 61 76 |imeSecon|ds > Wav|
|00004320| 65 45 6e 64 54 69 6d 65 | 29 20 26 26 20 28 57 61 |eEndTime|) && (Wa|
|00004330| 76 65 4d 6f 6e 73 74 65 | 72 73 20 3e 3d 20 32 2a |veMonste|rs >= 2*|
|00004340| 4d 61 78 4d 6f 6e 73 74 | 65 72 73 29 20 29 0d 0a |MaxMonst|ers) )..|
|00004350| 09 09 09 7b 0d 0a 09 09 | 09 09 69 66 20 28 20 4c |...{....|..if ( L|
|00004360| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00004370| 20 3e 20 57 61 76 65 45 | 6e 64 54 69 6d 65 20 2b | > WaveE|ndTime +|
|00004380| 20 39 30 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 | 90 )...|...{....|
|00004390| 09 09 09 66 6f 72 20 28 | 20 43 20 3d 20 4c 65 76 |...for (| C = Lev|
|000043a0| 65 6c 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 4c 69 73 |el.Contr|ollerLis|
|000043b0| 74 3b 20 43 20 21 3d 20 | 4e 6f 6e 65 3b 20 43 20 |t; C != |None; C |
|000043c0| 3d 20 43 2e 4e 65 78 74 | 43 6f 6e 74 72 6f 6c 6c |= C.Next|Controll|
|000043d0| 65 72 20 29 0d 0a 09 09 | 09 09 09 09 69 66 20 28 |er )....|....if (|
|000043e0| 20 28 4d 6f 6e 73 74 65 | 72 43 6f 6e 74 72 6f 6c | (Monste|rControl|
|000043f0| 6c 65 72 28 43 29 20 21 | 3d 20 4e 6f 6e 65 29 20 |ler(C) !|= None) |
|00004400| 26 26 20 28 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |&& (Leve|l.TimeSe|
|00004410| 63 6f 6e 64 73 20 2d 20 | 4d 6f 6e 73 74 65 72 43 |conds - |MonsterC|
|00004420| 6f 6e 74 72 6f 6c 6c 65 | 72 28 43 29 2e 4c 61 73 |ontrolle|r(C).Las|
|00004430| 74 53 65 65 6e 54 69 6d | 65 20 3e 20 33 30 29 0d |tSeenTim|e > 30).|
|00004440| 0a 09 09 09 09 09 09 09 | 26 26 20 21 4d 6f 6e 73 |........|&& !Mons|
|00004450| 74 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 43 29 |terContr|oller(C)|
|00004460| 2e 50 61 77 6e 2e 50 6c | 61 79 65 72 43 61 6e 53 |.Pawn.Pl|ayerCanS|
|00004470| 65 65 4d 65 28 29 20 29 | 0d 0a 09 09 09 09 09 09 |eeMe() )|........|
|00004480| 7b 0d 0a 09 09 09 09 09 | 09 09 43 2e 50 61 77 6e |{.......|..C.Pawn|
|00004490| 2e 4b 69 6c 6c 65 64 42 | 79 28 20 43 2e 50 61 77 |.KilledB|y( C.Paw|
|000044a0| 6e 20 29 3b 0d 0a 09 09 | 09 09 09 09 09 72 65 74 |n );....|.....ret|
|000044b0| 75 72 6e 3b 0d 0a 09 09 | 09 09 09 09 7d 0d 0a 09 |urn;....|....}...|
|000044c0| 09 09 09 7d 0d 0a 09 09 | 09 09 69 66 20 28 20 4e |...}....|..if ( N|
|000044d0| 75 6d 4d 6f 6e 73 74 65 | 72 73 20 3c 3d 20 30 20 |umMonste|rs <= 0 |
|000044e0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 62 |)......{|.......b|
|000044f0| 57 61 76 65 49 6e 50 72 | 6f 67 72 65 73 73 20 3d |WaveInPr|ogress =|
|00004500| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 09 09 57 61 | false;.|......Wa|
|00004510| 76 65 43 6f 75 6e 74 44 | 6f 77 6e 20 3d 20 31 35 |veCountD|own = 15|
|00004520| 3b 0d 0a 09 09 09 09 09 | 57 61 76 65 4e 75 6d 2b |;.......|WaveNum+|
|00004530| 2b 3b 0d 0a 09 09 09 09 | 7d 0d 0a 09 09 09 7d 0d |+;......|}.....}.|
|00004540| 0a 09 09 09 65 6c 73 65 | 20 69 66 20 28 20 28 4c |....else| if ( (L|
|00004550| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00004560| 20 3e 20 4e 65 78 74 4d | 6f 6e 73 74 65 72 54 69 | > NextM|onsterTi|
|00004570| 6d 65 29 20 26 26 20 28 | 4e 75 6d 4d 6f 6e 73 74 |me) && (|NumMonst|
|00004580| 65 72 73 20 3c 20 4d 61 | 78 4d 6f 6e 73 74 65 72 |ers < Ma|xMonster|
|00004590| 73 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |s) )....|.{......|
|000045a0| 41 64 64 4d 6f 6e 73 74 | 65 72 28 29 3b 0d 0a 09 |AddMonst|er();...|
|000045b0| 09 09 09 69 66 20 28 20 | 4e 75 6d 4d 6f 6e 73 74 |...if ( |NumMonst|
|000045c0| 65 72 73 20 3c 20 31 2e | 35 20 2a 20 28 4e 75 6d |ers < 1.|5 * (Num|
|000045d0| 50 6c 61 79 65 72 73 20 | 2b 20 4e 75 6d 42 6f 74 |Players |+ NumBot|
|000045e0| 73 29 20 29 0d 0a 09 09 | 09 09 09 4e 65 78 74 4d |s) )....|...NextM|
|000045f0| 6f 6e 73 74 65 72 54 69 | 6d 65 20 3d 20 4c 65 76 |onsterTi|me = Lev|
|00004600| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2b |el.TimeS|econds +|
|00004610| 20 30 2e 32 3b 0d 0a 09 | 09 09 09 65 6c 73 65 0d | 0.2;...|...else.|
|00004620| 0a 09 09 09 09 09 4e 65 | 78 74 4d 6f 6e 73 74 65 |......Ne|xtMonste|
|00004630| 72 54 69 6d 65 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |rTime = |Level.Ti|
|00004640| 6d 65 53 65 63 6f 6e 64 | 73 20 2b 20 32 3b 0d 0a |meSecond|s + 2;..|
|00004650| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |...}....|}....els|
|00004660| 65 20 69 66 20 28 20 4e | 75 6d 4d 6f 6e 73 74 65 |e if ( N|umMonste|
|00004670| 72 73 20 3c 3d 20 30 20 | 29 0d 0a 09 09 7b 0d 0a |rs <= 0 |)....{..|
|00004680| 09 09 09 69 66 20 28 20 | 57 61 76 65 4e 75 6d 20 |...if ( |WaveNum |
|00004690| 3d 3d 20 46 69 6e 61 6c | 57 61 76 65 20 29 0d 0a |== Final|Wave )..|
|000046a0| 09 09 09 7b 0d 0a 09 09 | 09 09 45 6e 64 47 61 6d |...{....|..EndGam|
|000046b0| 65 28 4e 6f 6e 65 2c 22 | 54 69 6d 65 4c 69 6d 69 |e(None,"|TimeLimi|
|000046c0| 74 22 29 3b 0d 0a 09 09 | 09 09 72 65 74 75 72 6e |t");....|..return|
|000046d0| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 09 57 61 76 65 |;.....}.|....Wave|
|000046e0| 43 6f 75 6e 74 44 6f 77 | 6e 2d 2d 3b 0d 0a 09 09 |CountDow|n--;....|
|000046f0| 09 69 66 20 28 20 57 61 | 76 65 43 6f 75 6e 74 44 |.if ( Wa|veCountD|
|00004700| 6f 77 6e 20 3d 3d 20 31 | 34 20 29 0d 0a 09 09 09 |own == 1|4 ).....|
|00004710| 7b 0d 0a 09 09 09 09 66 | 6f 72 20 28 20 43 20 3d |{......f|or ( C =|
|00004720| 20 4c 65 76 65 6c 2e 43 | 6f 6e 74 72 6f 6c 6c 65 | Level.C|ontrolle|
|00004730| 72 4c 69 73 74 3b 20 43 | 20 21 3d 20 4e 6f 6e 65 |rList; C| != None|
|00004740| 3b 20 43 20 3d 20 43 2e | 4e 65 78 74 43 6f 6e 74 |; C = C.|NextCont|
|00004750| 72 6f 6c 6c 65 72 20 29 | 0d 0a 09 09 09 09 7b 0d |roller )|......{.|
|00004760| 0a 09 09 09 09 09 69 66 | 20 28 20 43 2e 50 6c 61 |......if| ( C.Pla|
|00004770| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00004780| 66 6f 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |fo != No|ne )....|
|00004790| 09 09 09 7b 0d 0a 09 09 | 09 09 09 09 43 2e 50 6c |...{....|....C.Pl|
|000047a0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000047b0| 6e 66 6f 2e 62 4f 75 74 | 4f 66 4c 69 76 65 73 20 |nfo.bOut|OfLives |
|000047c0| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 09 09 09 09 |= false;|........|
|000047d0| 43 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |C.Player|Replicat|
|000047e0| 69 6f 6e 49 6e 66 6f 2e | 4e 75 6d 4c 69 76 65 73 |ionInfo.|NumLives|
|000047f0| 20 3d 20 30 3b 0d 0a 09 | 09 09 09 09 09 69 66 20 | = 0;...|.....if |
|00004800| 28 20 43 2e 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 |( C.Pawn| != None|
|00004810| 20 29 0d 0a 09 09 09 09 | 09 09 09 52 65 70 6c 65 | )......|...Reple|
|00004820| 6e 69 73 68 57 65 61 70 | 6f 6e 73 28 43 2e 50 61 |nishWeap|ons(C.Pa|
|00004830| 77 6e 29 3b 0d 0a 09 09 | 09 09 09 09 65 6c 73 65 |wn);....|....else|
|00004840| 20 69 66 20 28 20 21 43 | 2e 50 6c 61 79 65 72 52 | if ( !C|.PlayerR|
|00004850| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 62 |eplicati|onInfo.b|
|00004860| 4f 6e 6c 79 53 70 65 63 | 74 61 74 6f 72 20 26 26 |OnlySpec|tator &&|
|00004870| 20 28 50 6c 61 79 65 72 | 43 6f 6e 74 72 6f 6c 6c | (Player|Controll|
|00004880| 65 72 28 43 29 20 21 3d | 20 4e 6f 6e 65 29 20 29 |er(C) !=| None) )|
|00004890| 0d 0a 09 09 09 09 09 09 | 09 43 2e 47 6f 74 6f 53 |........|.C.GotoS|
|000048a0| 74 61 74 65 28 27 50 6c | 61 79 65 72 57 61 69 74 |tate('Pl|ayerWait|
|000048b0| 69 6e 67 27 29 3b 0d 0a | 09 09 09 09 09 7d 0d 0a |ing');..|.....}..|
|000048c0| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 20 20 20 |....}...|..}.. |
|000048d0| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 20 57 61 | | if ( Wa|
|000048e0| 76 65 43 6f 75 6e 74 44 | 6f 77 6e 20 3d 3d 20 31 |veCountD|own == 1|
|000048f0| 33 20 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |3 ).. | |
|00004900| 20 7b 0d 0a 09 09 09 09 | 49 6e 76 61 73 69 6f 6e | {......|Invasion|
|00004910| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00004920| 6e 66 6f 28 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |nfo(Game|Replicat|
|00004930| 69 6f 6e 49 6e 66 6f 29 | 2e 57 61 76 65 4e 75 6d |ionInfo)|.WaveNum|
|00004940| 62 65 72 20 3d 20 57 61 | 76 65 4e 75 6d 3b 0d 0a |ber = Wa|veNum;..|
|00004950| 09 09 09 09 66 6f 72 20 | 28 20 43 20 3d 20 4c 65 |....for |( C = Le|
|00004960| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|00004970| 73 74 3b 20 43 20 21 3d | 20 4e 6f 6e 65 3b 20 43 |st; C !=| None; C|
|00004980| 20 3d 20 43 2e 4e 65 78 | 74 43 6f 6e 74 72 6f 6c | = C.Nex|tControl|
|00004990| 6c 65 72 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 20 20 |ler )...|...{.. |
|000049a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049b0| 20 20 69 66 20 28 20 50 | 6c 61 79 65 72 43 6f 6e | if ( P|layerCon|
|000049c0| 74 72 6f 6c 6c 65 72 28 | 43 29 20 21 3d 20 4e 6f |troller(|C) != No|
|000049d0| 6e 65 20 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ne ).. | |
|000049e0| 20 20 20 20 20 20 20 20 | 20 20 7b 0d 0a 09 09 09 | | {.....|
|000049f0| 09 09 09 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |...Playe|rControl|
|00004a00| 6c 65 72 28 43 29 2e 50 | 6c 61 79 53 74 61 74 75 |ler(C).P|layStatu|
|00004a10| 73 41 6e 6e 6f 75 6e 63 | 65 6d 65 6e 74 28 27 4e |sAnnounc|ement('N|
|00004a20| 65 78 74 5f 77 61 76 65 | 5f 69 6e 27 2c 31 2c 74 |ext_wave|_in',1,t|
|00004a30| 72 75 65 29 3b 0d 0a 09 | 09 09 09 09 09 69 66 20 |rue);...|.....if |
|00004a40| 28 20 28 43 2e 50 61 77 | 6e 20 3d 3d 20 4e 6f 6e |( (C.Paw|n == Non|
|00004a50| 65 29 20 26 26 20 21 43 | 2e 50 6c 61 79 65 72 52 |e) && !C|.PlayerR|
|00004a60| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 62 |eplicati|onInfo.b|
|00004a70| 4f 6e 6c 79 53 70 65 63 | 74 61 74 6f 72 20 29 0d |OnlySpec|tator ).|
|00004a80| 0a 09 09 09 09 09 09 09 | 50 6c 61 79 65 72 43 6f |........|PlayerCo|
|00004a90| 6e 74 72 6f 6c 6c 65 72 | 28 43 29 2e 53 65 74 56 |ntroller|(C).SetV|
|00004aa0| 69 65 77 54 61 72 67 65 | 74 28 43 29 3b 0d 0a 09 |iewTarge|t(C);...|
|00004ab0| 09 09 09 09 7d 0d 0a 09 | 09 09 09 09 69 66 20 28 |....}...|....if (|
|00004ac0| 20 43 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 | C.Playe|rReplica|
|00004ad0| 74 69 6f 6e 49 6e 66 6f | 20 21 3d 20 4e 6f 6e 65 |tionInfo| != None|
|00004ae0| 20 29 0d 0a 09 09 09 09 | 09 7b 0d 0a 09 09 09 09 | )......|.{......|
|00004af0| 09 09 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |..C.Play|erReplic|
|00004b00| 61 74 69 6f 6e 49 6e 66 | 6f 2e 62 4f 75 74 4f 66 |ationInf|o.bOutOf|
|00004b10| 4c 69 76 65 73 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Lives = |false;..|
|00004b20| 09 09 09 09 09 09 43 2e | 50 6c 61 79 65 72 52 65 |......C.|PlayerRe|
|00004b30| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 4e 75 |plicatio|nInfo.Nu|
|00004b40| 6d 4c 69 76 65 73 20 3d | 20 30 3b 0d 0a 09 09 09 |mLives =| 0;.....|
|00004b50| 09 09 09 69 66 20 28 20 | 28 43 2e 50 61 77 6e 20 |...if ( |(C.Pawn |
|00004b60| 3d 3d 20 4e 6f 6e 65 29 | 20 26 26 20 21 43 2e 50 |== None)| && !C.P|
|00004b70| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004b80| 49 6e 66 6f 2e 62 4f 6e | 6c 79 53 70 65 63 74 61 |Info.bOn|lySpecta|
|00004b90| 74 6f 72 20 29 0d 0a 09 | 09 09 09 09 09 09 43 2e |tor )...|......C.|
|00004ba0| 53 65 72 76 65 72 52 65 | 53 74 61 72 74 50 6c 61 |ServerRe|StartPla|
|00004bb0| 79 65 72 28 29 3b 0d 0a | 09 09 09 09 09 7d 0d 0a |yer();..|.....}..|
|00004bc0| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 09 20 20 |....}...|..}... |
|00004bd0| 20 20 20 20 20 20 65 6c | 73 65 20 69 66 20 28 20 | el|se if ( |
|00004be0| 28 57 61 76 65 43 6f 75 | 6e 74 44 6f 77 6e 20 3e |(WaveCou|ntDown >|
|00004bf0| 20 31 29 20 26 26 20 28 | 57 61 76 65 43 6f 75 6e | 1) && (|WaveCoun|
|00004c00| 74 44 6f 77 6e 20 3c 20 | 31 32 29 20 29 0d 0a 09 |tDown < |12) )...|
|00004c10| 09 09 09 42 72 6f 61 64 | 63 61 73 74 4c 6f 63 61 |...Broad|castLoca|
|00004c20| 6c 69 7a 65 64 4d 65 73 | 73 61 67 65 28 63 6c 61 |lizedMes|sage(cla|
|00004c30| 73 73 27 54 69 6d 65 72 | 4d 65 73 73 61 67 65 27 |ss'Timer|Message'|
|00004c40| 2c 20 57 61 76 65 43 6f | 75 6e 74 44 6f 77 6e 2d |, WaveCo|untDown-|
|00004c50| 31 29 3b 0d 0a 09 09 09 | 65 6c 73 65 20 69 66 20 |1);.....|else if |
|00004c60| 28 20 57 61 76 65 43 6f | 75 6e 74 44 6f 77 6e 20 |( WaveCo|untDown |
|00004c70| 3c 3d 20 31 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |<= 1 )..|...{....|
|00004c80| 09 09 62 57 61 76 65 49 | 6e 50 72 6f 67 72 65 73 |..bWaveI|nProgres|
|00004c90| 73 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 09 09 53 |s = true|;......S|
|00004ca0| 65 74 75 70 57 61 76 65 | 28 29 3b 0d 0a 09 09 09 |etupWave|();.....|
|00004cb0| 09 66 6f 72 20 28 20 43 | 20 3d 20 4c 65 76 65 6c |.for ( C| = Level|
|00004cc0| 2e 43 6f 6e 74 72 6f 6c | 6c 65 72 4c 69 73 74 3b |.Control|lerList;|
|00004cd0| 20 43 20 21 3d 20 4e 6f | 6e 65 3b 20 43 20 3d 20 | C != No|ne; C = |
|00004ce0| 43 2e 4e 65 78 74 43 6f | 6e 74 72 6f 6c 6c 65 72 |C.NextCo|ntroller|
|00004cf0| 20 29 0d 0a 09 09 09 09 | 09 69 66 20 28 20 50 6c | )......|.if ( Pl|
|00004d00| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 43 |ayerCont|roller(C|
|00004d10| 29 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |) != Non|e ).....|
|00004d20| 09 09 09 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |...Playe|rControl|
|00004d30| 6c 65 72 28 43 29 2e 4c | 61 73 74 50 6c 61 79 53 |ler(C).L|astPlayS|
|00004d40| 70 65 65 63 68 20 3d 20 | 30 3b 0d 0a 09 09 09 09 |peech = |0;......|
|00004d50| 66 6f 72 20 28 20 43 20 | 3d 20 4c 65 76 65 6c 2e |for ( C |= Level.|
|00004d60| 43 6f 6e 74 72 6f 6c 6c | 65 72 4c 69 73 74 3b 20 |Controll|erList; |
|00004d70| 43 20 21 3d 20 4e 6f 6e | 65 3b 20 43 20 3d 20 43 |C != Non|e; C = C|
|00004d80| 2e 4e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.NextCon|troller |
|00004d90| 29 0d 0a 09 09 09 09 09 | 69 66 20 28 20 42 6f 74 |).......|if ( Bot|
|00004da0| 28 43 29 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |(C) != N|one )...|
|00004db0| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 09 42 20 3d |....{...|.....B =|
|00004dc0| 20 42 6f 74 28 43 29 3b | 0d 0a 09 09 09 09 09 09 | Bot(C);|........|
|00004dd0| 49 6e 76 61 73 69 6f 6e | 42 6f 74 28 42 29 2e 62 |Invasion|Bot(B).b|
|00004de0| 44 61 6d 61 67 65 64 4d | 65 73 73 61 67 65 20 3d |DamagedM|essage =|
|00004df0| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 09 09 09 42 | false;.|.......B|
|00004e00| 2e 62 49 6e 69 74 4c 69 | 66 65 4d 65 73 73 61 67 |.bInitLi|feMessag|
|00004e10| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 09 |e = fals|e;......|
|00004e20| 09 09 69 66 20 28 20 21 | 62 4f 6e 65 4d 65 73 73 |..if ( !|bOneMess|
|00004e30| 61 67 65 20 26 26 20 28 | 46 52 61 6e 64 28 29 20 |age && (|FRand() |
|00004e40| 3c 20 30 2e 36 35 29 20 | 29 0d 0a 09 09 09 09 09 |< 0.65) |).......|
|00004e50| 09 7b 0d 0a 09 09 09 09 | 09 09 09 62 4f 6e 65 4d |.{......|...bOneM|
|00004e60| 65 73 73 61 67 65 20 3d | 20 74 72 75 65 3b 0d 0a |essage =| true;..|
|00004e70| 09 09 09 09 09 09 09 69 | 66 20 28 20 28 42 2e 53 |.......i|f ( (B.S|
|00004e80| 71 75 61 64 2e 53 71 75 | 61 64 4c 65 61 64 65 72 |quad.Squ|adLeader|
|00004e90| 20 21 3d 20 4e 6f 6e 65 | 29 20 26 26 20 42 2e 53 | != None|) && B.S|
|00004ea0| 71 75 61 64 2e 43 6c 6f | 73 65 54 6f 4c 65 61 64 |quad.Clo|seToLead|
|00004eb0| 65 72 28 43 2e 50 61 77 | 6e 29 20 29 0d 0a 09 09 |er(C.Paw|n) )....|
|00004ec0| 09 09 09 09 09 7b 0d 0a | 09 09 09 09 09 09 09 09 |.....{..|........|
|00004ed0| 42 2e 53 65 6e 64 4d 65 | 73 73 61 67 65 28 42 2e |B.SendMe|ssage(B.|
|00004ee0| 53 71 75 61 64 2e 53 71 | 75 61 64 4c 65 61 64 65 |Squad.Sq|uadLeade|
|00004ef0| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00004f00| 69 6f 6e 49 6e 66 6f 2c | 20 27 4f 54 48 45 52 27 |ionInfo,| 'OTHER'|
|00004f10| 2c 20 42 2e 47 65 74 4d | 65 73 73 61 67 65 49 6e |, B.GetM|essageIn|
|00004f20| 64 65 78 28 27 49 4e 50 | 4f 53 49 54 49 4f 4e 27 |dex('INP|OSITION'|
|00004f30| 29 2c 20 32 30 2c 20 27 | 54 45 41 4d 27 29 3b 0d |), 20, '|TEAM');.|
|00004f40| 0a 09 09 09 09 09 09 09 | 09 42 2e 62 49 6e 69 74 |........|.B.bInit|
|00004f50| 4c 69 66 65 4d 65 73 73 | 61 67 65 20 3d 20 66 61 |LifeMess|age = fa|
|00004f60| 6c 73 65 3b 0d 0a 09 09 | 09 09 09 09 09 7d 0d 0a |lse;....|.....}..|
|00004f70| 09 09 09 09 09 09 7d 0d | 0a 09 09 09 09 09 7d 0d |......}.|......}.|
|00004f80| 0a 20 09 09 09 7d 0d 0a | 09 09 7d 0d 0a 09 7d 0d |. ...}..|..}...}.|
|00004f90| 0a 0d 0a 09 66 75 6e 63 | 74 69 6f 6e 20 42 65 67 |....func|tion Beg|
|00004fa0| 69 6e 53 74 61 74 65 28 | 29 0d 0a 09 7b 0d 0a 09 |inState(|)...{...|
|00004fb0| 09 53 75 70 65 72 2e 42 | 65 67 69 6e 53 74 61 74 |.Super.B|eginStat|
|00004fc0| 65 28 29 3b 0d 0a 09 09 | 57 61 76 65 4e 75 6d 20 |e();....|WaveNum |
|00004fd0| 3d 20 49 6e 69 74 69 61 | 6c 57 61 76 65 3b 0d 0a |= Initia|lWave;..|
|00004fe0| 09 09 49 6e 76 61 73 69 | 6f 6e 47 61 6d 65 52 65 |..Invasi|onGameRe|
|00004ff0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 47 61 |plicatio|nInfo(Ga|
|00005000| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00005010| 6f 29 2e 57 61 76 65 4e | 75 6d 62 65 72 20 3d 20 |o).WaveN|umber = |
|00005020| 57 61 76 65 4e 75 6d 3b | 0d 0a 09 7d 0d 0a 7d 0d |WaveNum;|...}..}.|
|00005030| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 47 65 74 53 |...funct|ion GetS|
|00005040| 65 72 76 65 72 44 65 74 | 61 69 6c 73 28 20 6f 75 |erverDet|ails( ou|
|00005050| 74 20 53 65 72 76 65 72 | 52 65 73 70 6f 6e 73 65 |t Server|Response|
|00005060| 4c 69 6e 65 20 53 65 72 | 76 65 72 53 74 61 74 65 |Line Ser|verState|
|00005070| 20 29 0d 0a 7b 0d 0a 09 | 53 75 70 65 72 2e 47 65 | )..{...|Super.Ge|
|00005080| 74 53 65 72 76 65 72 44 | 65 74 61 69 6c 73 28 53 |tServerD|etails(S|
|00005090| 65 72 76 65 72 53 74 61 | 74 65 29 3b 0d 0a 09 41 |erverSta|te);...A|
|000050a0| 64 64 53 65 72 76 65 72 | 44 65 74 61 69 6c 28 20 |ddServer|Detail( |
|000050b0| 53 65 72 76 65 72 53 74 | 61 74 65 2c 20 22 49 6e |ServerSt|ate, "In|
|000050c0| 69 74 69 61 6c 57 61 76 | 65 22 2c 20 49 6e 69 74 |itialWav|e", Init|
|000050d0| 69 61 6c 57 61 76 65 20 | 29 3b 0d 0a 09 41 64 64 |ialWave |);...Add|
|000050e0| 53 65 72 76 65 72 44 65 | 74 61 69 6c 28 20 53 65 |ServerDe|tail( Se|
|000050f0| 72 76 65 72 53 74 61 74 | 65 2c 20 22 46 69 6e 61 |rverStat|e, "Fina|
|00005100| 6c 57 61 76 65 22 2c 20 | 46 69 6e 61 6c 57 61 76 |lWave", |FinalWav|
|00005110| 65 20 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 74 61 74 69 |e );..}.|...stati|
|00005120| 63 20 66 75 6e 63 74 69 | 6f 6e 20 46 69 6c 6c 50 |c functi|on FillP|
|00005130| 6c 61 79 49 6e 66 6f 28 | 50 6c 61 79 49 6e 66 6f |layInfo(|PlayInfo|
|00005140| 20 50 49 29 0d 0a 7b 0d | 0a 09 53 75 70 65 72 2e | PI)..{.|..Super.|
|00005150| 46 69 6c 6c 50 6c 61 79 | 49 6e 66 6f 28 50 49 29 |FillPlay|Info(PI)|
|00005160| 3b 0d 0a 0d 0a 09 50 49 | 2e 41 64 64 53 65 74 74 |;.....PI|.AddSett|
|00005170| 69 6e 67 28 64 65 66 61 | 75 6c 74 2e 47 61 6d 65 |ing(defa|ult.Game|
|00005180| 47 72 6f 75 70 2c 20 20 | 20 22 49 6e 69 74 69 61 |Group, | "Initia|
|00005190| 6c 57 61 76 65 22 2c 20 | 20 47 65 74 44 69 73 70 |lWave", | GetDisp|
|000051a0| 6c 61 79 54 65 78 74 28 | 22 49 6e 69 74 69 61 6c |layText(|"Initial|
|000051b0| 57 61 76 65 22 29 2c 20 | 35 30 2c 20 20 30 2c 20 |Wave"), |50, 0, |
|000051c0| 20 22 54 65 78 74 22 2c | 20 22 32 3b 30 3a 22 24 | "Text",| "2;0:"$|
|000051d0| 28 41 72 72 61 79 43 6f | 75 6e 74 28 64 65 66 61 |(ArrayCo|unt(defa|
|000051e0| 75 6c 74 2e 57 61 76 65 | 73 29 2d 31 29 20 29 3b |ult.Wave|s)-1) );|
|000051f0| 0d 0a 09 50 49 2e 41 64 | 64 53 65 74 74 69 6e 67 |...PI.Ad|dSetting|
|00005200| 28 64 65 66 61 75 6c 74 | 2e 47 61 6d 65 47 72 6f |(default|.GameGro|
|00005210| 75 70 2c 20 20 20 22 46 | 69 6e 61 6c 57 61 76 65 |up, "F|inalWave|
|00005220| 22 2c 20 20 20 20 20 20 | 47 65 74 44 69 73 70 6c |", |GetDispl|
|00005230| 61 79 54 65 78 74 28 22 | 46 69 6e 61 6c 57 61 76 |ayText("|FinalWav|
|00005240| 65 22 29 2c 20 35 30 2c | 20 20 30 2c 20 20 22 54 |e"), 50,| 0, "T|
|00005250| 65 78 74 22 2c 20 22 32 | 3b 31 3a 22 24 41 72 72 |ext", "2|;1:"$Arr|
|00005260| 61 79 43 6f 75 6e 74 28 | 64 65 66 61 75 6c 74 2e |ayCount(|default.|
|00005270| 57 61 76 65 73 29 20 29 | 3b 0d 0a 09 50 49 2e 41 |Waves) )|;...PI.A|
|00005280| 64 64 53 65 74 74 69 6e | 67 28 64 65 66 61 75 6c |ddSettin|g(defaul|
|00005290| 74 2e 47 61 6d 65 47 72 | 6f 75 70 2c 20 20 20 22 |t.GameGr|oup, "|
|000052a0| 57 61 76 65 73 22 2c 20 | 20 20 20 20 20 20 20 20 |Waves", | |
|000052b0| 20 20 20 20 20 47 65 74 | 44 69 73 70 6c 61 79 54 | Get|DisplayT|
|000052c0| 65 78 74 28 22 57 61 76 | 65 73 22 29 2c 20 36 30 |ext("Wav|es"), 60|
|000052d0| 2c 20 20 30 2c 22 43 75 | 73 74 6f 6d 22 2c 20 20 |, 0,"Cu|stom", |
|000052e0| 20 20 20 20 22 3b 3b 22 | 24 64 65 66 61 75 6c 74 | ";;"|$default|
|000052f0| 2e 57 61 76 65 43 6f 6e | 66 69 67 4d 65 6e 75 2c |.WaveCon|figMenu,|
|00005300| 2c 2c 54 72 75 65 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |,,True);|..}....s|
|00005310| 74 61 74 69 63 20 65 76 | 65 6e 74 20 73 74 72 69 |tatic ev|ent stri|
|00005320| 6e 67 20 47 65 74 44 69 | 73 70 6c 61 79 54 65 78 |ng GetDi|splayTex|
|00005330| 74 28 20 73 74 72 69 6e | 67 20 50 72 6f 70 4e 61 |t( strin|g PropNa|
|00005340| 6d 65 20 29 0d 0a 7b 0d | 0a 09 73 77 69 74 63 68 |me )..{.|..switch|
|00005350| 20 28 50 72 6f 70 4e 61 | 6d 65 29 0d 0a 09 7b 0d | (PropNa|me)...{.|
|00005360| 0a 09 63 61 73 65 20 22 | 49 6e 69 74 69 61 6c 57 |..case "|InitialW|
|00005370| 61 76 65 22 3a 20 20 20 | 20 20 72 65 74 75 72 6e |ave": | return|
|00005380| 20 64 65 66 61 75 6c 74 | 2e 49 6e 76 61 73 69 6f | default|.Invasio|
|00005390| 6e 50 72 6f 70 54 65 78 | 74 5b 30 5d 3b 0d 0a 09 |nPropTex|t[0];...|
|000053a0| 63 61 73 65 20 22 46 69 | 6e 61 6c 57 61 76 65 22 |case "Fi|nalWave"|
|000053b0| 3a 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 64 |: |return d|
|000053c0| 65 66 61 75 6c 74 2e 49 | 6e 76 61 73 69 6f 6e 50 |efault.I|nvasionP|
|000053d0| 72 6f 70 54 65 78 74 5b | 31 5d 3b 0d 0a 09 63 61 |ropText[|1];...ca|
|000053e0| 73 65 20 22 57 61 76 65 | 73 22 3a 20 20 20 20 20 |se "Wave|s": |
|000053f0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 64 65 66 | re|turn def|
|00005400| 61 75 6c 74 2e 49 6e 76 | 61 73 69 6f 6e 50 72 6f |ault.Inv|asionPro|
|00005410| 70 54 65 78 74 5b 32 5d | 3b 0d 0a 09 63 61 73 65 |pText[2]|;...case|
|00005420| 20 22 4d 6f 6e 73 74 65 | 72 73 22 3a 20 20 20 20 | "Monste|rs": |
|00005430| 20 20 20 20 72 65 74 75 | 72 6e 20 64 65 66 61 75 | retu|rn defau|
|00005440| 6c 74 2e 49 6e 76 61 73 | 69 6f 6e 50 72 6f 70 54 |lt.Invas|ionPropT|
|00005450| 65 78 74 5b 33 5d 3b 0d | 0a 09 63 61 73 65 20 22 |ext[3];.|..case "|
|00005460| 57 61 76 65 4e 6f 22 3a | 20 20 20 20 20 20 20 20 |WaveNo":| |
|00005470| 20 20 72 65 74 75 72 6e | 20 64 65 66 61 75 6c 74 | return| default|
|00005480| 2e 49 6e 76 61 73 69 6f | 6e 50 72 6f 70 54 65 78 |.Invasio|nPropTex|
|00005490| 74 5b 34 5d 3b 0d 0a 09 | 63 61 73 65 20 22 57 61 |t[4];...|case "Wa|
|000054a0| 76 65 4d 61 78 4d 6f 6e | 73 74 65 72 73 22 3a 20 |veMaxMon|sters": |
|000054b0| 72 65 74 75 72 6e 20 64 | 65 66 61 75 6c 74 2e 49 |return d|efault.I|
|000054c0| 6e 76 61 73 69 6f 6e 50 | 72 6f 70 54 65 78 74 5b |nvasionP|ropText[|
|000054d0| 35 5d 3b 0d 0a 09 63 61 | 73 65 20 22 57 61 76 65 |5];...ca|se "Wave|
|000054e0| 44 75 72 61 74 69 6f 6e | 22 3a 20 20 20 20 72 65 |Duration|": re|
|000054f0| 74 75 72 6e 20 64 65 66 | 61 75 6c 74 2e 49 6e 76 |turn def|ault.Inv|
|00005500| 61 73 69 6f 6e 50 72 6f | 70 54 65 78 74 5b 36 5d |asionPro|pText[6]|
|00005510| 3b 0d 0a 09 63 61 73 65 | 20 22 57 61 76 65 44 69 |;...case| "WaveDi|
|00005520| 66 66 69 63 75 6c 74 79 | 22 3a 20 20 72 65 74 75 |fficulty|": retu|
|00005530| 72 6e 20 64 65 66 61 75 | 6c 74 2e 49 6e 76 61 73 |rn defau|lt.Invas|
|00005540| 69 6f 6e 50 72 6f 70 54 | 65 78 74 5b 37 5d 3b 0d |ionPropT|ext[7];.|
|00005550| 0a 09 7d 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 53 |..}.....|return S|
|00005560| 75 70 65 72 2e 47 65 74 | 44 69 73 70 6c 61 79 54 |uper.Get|DisplayT|
|00005570| 65 78 74 28 20 50 72 6f | 70 4e 61 6d 65 20 29 3b |ext( Pro|pName );|
|00005580| 0d 0a 7d 0d 0a 0d 0a 73 | 74 61 74 69 63 20 65 76 |..}....s|tatic ev|
|00005590| 65 6e 74 20 73 74 72 69 | 6e 67 20 47 65 74 44 65 |ent stri|ng GetDe|
|000055a0| 73 63 72 69 70 74 69 6f | 6e 54 65 78 74 28 73 74 |scriptio|nText(st|
|000055b0| 72 69 6e 67 20 50 72 6f | 70 4e 61 6d 65 29 0d 0a |ring Pro|pName)..|
|000055c0| 7b 0d 0a 09 73 77 69 74 | 63 68 20 28 50 72 6f 70 |{...swit|ch (Prop|
|000055d0| 4e 61 6d 65 29 0d 0a 09 | 7b 0d 0a 09 63 61 73 65 |Name)...|{...case|
|000055e0| 20 22 49 6e 69 74 69 61 | 6c 57 61 76 65 22 3a 20 | "Initia|lWave": |
|000055f0| 20 20 20 20 72 65 74 75 | 72 6e 20 64 65 66 61 75 | retu|rn defau|
|00005600| 6c 74 2e 49 6e 76 61 73 | 69 6f 6e 44 65 73 63 54 |lt.Invas|ionDescT|
|00005610| 65 78 74 5b 30 5d 3b 0d | 0a 09 63 61 73 65 20 22 |ext[0];.|..case "|
|00005620| 46 69 6e 61 6c 57 61 76 | 65 22 3a 20 20 20 20 20 |FinalWav|e": |
|00005630| 20 20 72 65 74 75 72 6e | 20 64 65 66 61 75 6c 74 | return| default|
|00005640| 2e 49 6e 76 61 73 69 6f | 6e 44 65 73 63 54 65 78 |.Invasio|nDescTex|
|00005650| 74 5b 31 5d 3b 0d 0a 09 | 63 61 73 65 20 22 57 61 |t[1];...|case "Wa|
|00005660| 76 65 73 22 3a 20 20 20 | 20 20 20 20 20 20 20 20 |ves": | |
|00005670| 72 65 74 75 72 6e 20 64 | 65 66 61 75 6c 74 2e 49 |return d|efault.I|
|00005680| 6e 76 61 73 69 6f 6e 44 | 65 73 63 54 65 78 74 5b |nvasionD|escText[|
|00005690| 32 5d 3b 0d 0a 09 63 61 | 73 65 20 22 4d 6f 6e 73 |2];...ca|se "Mons|
|000056a0| 74 65 72 73 22 3a 20 20 | 20 20 20 20 20 20 72 65 |ters": | re|
|000056b0| 74 75 72 6e 20 64 65 66 | 61 75 6c 74 2e 49 6e 76 |turn def|ault.Inv|
|000056c0| 61 73 69 6f 6e 44 65 73 | 63 54 65 78 74 5b 33 5d |asionDes|cText[3]|
|000056d0| 3b 0d 0a 09 63 61 73 65 | 20 22 57 61 76 65 4e 6f |;...case| "WaveNo|
|000056e0| 22 3a 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 |": | retu|
|000056f0| 72 6e 20 64 65 66 61 75 | 6c 74 2e 49 6e 76 61 73 |rn defau|lt.Invas|
|00005700| 69 6f 6e 44 65 73 63 54 | 65 78 74 5b 34 5d 3b 0d |ionDescT|ext[4];.|
|00005710| 0a 09 63 61 73 65 20 22 | 57 61 76 65 4d 61 78 4d |..case "|WaveMaxM|
|00005720| 6f 6e 73 74 65 72 73 22 | 3a 20 72 65 74 75 72 6e |onsters"|: return|
|00005730| 20 64 65 66 61 75 6c 74 | 2e 49 6e 76 61 73 69 6f | default|.Invasio|
|00005740| 6e 44 65 73 63 54 65 78 | 74 5b 35 5d 3b 0d 0a 09 |nDescTex|t[5];...|
|00005750| 63 61 73 65 20 22 57 61 | 76 65 44 75 72 61 74 69 |case "Wa|veDurati|
|00005760| 6f 6e 22 3a 20 20 20 20 | 72 65 74 75 72 6e 20 64 |on": |return d|
|00005770| 65 66 61 75 6c 74 2e 49 | 6e 76 61 73 69 6f 6e 44 |efault.I|nvasionD|
|00005780| 65 73 63 54 65 78 74 5b | 36 5d 3b 0d 0a 09 63 61 |escText[|6];...ca|
|00005790| 73 65 20 22 57 61 76 65 | 44 69 66 66 69 63 75 6c |se "Wave|Difficul|
|000057a0| 74 79 22 3a 20 20 72 65 | 74 75 72 6e 20 64 65 66 |ty": re|turn def|
|000057b0| 61 75 6c 74 2e 49 6e 76 | 61 73 69 6f 6e 44 65 73 |ault.Inv|asionDes|
|000057c0| 63 54 65 78 74 5b 37 5d | 3b 0d 0a 09 7d 0d 0a 0d |cText[7]|;...}...|
|000057d0| 0a 09 72 65 74 75 72 6e | 20 53 75 70 65 72 2e 47 |..return| Super.G|
|000057e0| 65 74 44 65 73 63 72 69 | 70 74 69 6f 6e 54 65 78 |etDescri|ptionTex|
|000057f0| 74 28 50 72 6f 70 4e 61 | 6d 65 29 3b 0d 0a 7d 0d |t(PropNa|me);..}.|
|00005800| 0a 0d 0a 73 74 61 74 69 | 63 20 65 76 65 6e 74 20 |...stati|c event |
|00005810| 62 6f 6f 6c 20 41 63 63 | 65 70 74 50 6c 61 79 49 |bool Acc|eptPlayI|
|00005820| 6e 66 6f 50 72 6f 70 65 | 72 74 79 28 73 74 72 69 |nfoPrope|rty(stri|
|00005830| 6e 67 20 50 72 6f 70 65 | 72 74 79 4e 61 6d 65 29 |ng Prope|rtyName)|
|00005840| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 28 50 72 6f 70 |..{...if| ( (Prop|
|00005850| 65 72 74 79 4e 61 6d 65 | 20 3d 3d 20 22 62 42 61 |ertyName| == "bBa|
|00005860| 6c 61 6e 63 65 54 65 61 | 6d 73 22 29 0d 0a 09 09 |lanceTea|ms")....|
|00005870| 7c 7c 20 28 50 72 6f 70 | 65 72 74 79 4e 61 6d 65 ||| (Prop|ertyName|
|00005880| 20 3d 3d 20 22 62 50 6c | 61 79 65 72 73 42 61 6c | == "bPl|ayersBal|
|00005890| 61 6e 63 65 54 65 61 6d | 73 22 29 0d 0a 09 09 7c |anceTeam|s")....||
|000058a0| 7c 20 28 50 72 6f 70 65 | 72 74 79 4e 61 6d 65 20 || (Prope|rtyName |
|000058b0| 3d 3d 20 22 47 6f 61 6c | 53 63 6f 72 65 22 29 20 |== "Goal|Score") |
|000058c0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |)....ret|urn fals|
|000058d0| 65 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 53 75 |e;.....r|eturn Su|
|000058e0| 70 65 72 2e 41 63 63 65 | 70 74 50 6c 61 79 49 6e |per.Acce|ptPlayIn|
|000058f0| 66 6f 50 72 6f 70 65 72 | 74 79 28 50 72 6f 70 65 |foProper|ty(Prope|
|00005900| 72 74 79 4e 61 6d 65 29 | 3b 0d 0a 7d 0d 0a 0d 0a |rtyName)|;..}....|
|00005910| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+