home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 April / Gamestar_72_2005-04_dvd.iso / Patche / ut2004_patchv3355.exe / UT2004-Patch / System / Onslaught.u / ScriptText8.TextBuffer < prev    next >
Unknown  |  2005-02-15  |  25.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 63 9c 03 2f 2f 2d 2d 2d |........|c..//---|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 0a 2f 2f 0d 0a 2f 2f |--------|..//..//|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0a 63 6c 61 |--------|---..cla|
|00000090| 73 73 20 4f 4e 53 48 55 | 44 4f 6e 73 6c 61 75 67 |ss ONSHU|DOnslaug|
|000000a0| 68 74 20 65 78 74 65 6e | 64 73 20 48 75 64 43 54 |ht exten|ds HudCT|
|000000b0| 65 61 6d 44 65 61 74 68 | 4d 61 74 63 68 0d 0a 20 |eamDeath|Match.. |
|000000c0| 20 20 20 63 6f 6e 66 69 | 67 28 75 73 65 72 29 3b | confi|g(user);|
|000000d0| 0d 0a 0d 0a 76 61 72 20 | 63 6f 6e 66 69 67 20 66 |....var |config f|
|000000e0| 6c 6f 61 74 20 52 61 64 | 61 72 53 63 61 6c 65 2c |loat Rad|arScale,|
|000000f0| 20 52 61 64 61 72 54 72 | 61 6e 73 2c 20 49 63 6f | RadarTr|ans, Ico|
|00000100| 6e 53 63 61 6c 65 2c 20 | 52 61 64 61 72 50 6f 73 |nScale, |RadarPos|
|00000110| 58 2c 20 52 61 64 61 72 | 50 6f 73 59 3b 0d 0a 76 |X, Radar|PosY;..v|
|00000120| 61 72 20 66 6c 6f 61 74 | 20 52 61 64 61 72 4d 61 |ar float| RadarMa|
|00000130| 78 52 61 6e 67 65 2c 20 | 52 61 64 61 72 52 61 6e |xRange, |RadarRan|
|00000140| 67 65 3b 0d 0a 76 61 72 | 20 4f 4e 53 50 6f 77 65 |ge;..var| ONSPowe|
|00000150| 72 43 6f 72 65 20 46 69 | 6e 61 6c 43 6f 72 65 5b |rCore Fi|nalCore[|
|00000160| 32 5d 3b 0d 0a 76 61 72 | 20 4f 4e 53 50 6f 77 65 |2];..var| ONSPowe|
|00000170| 72 43 6f 72 65 20 4e 6f | 64 65 3b 0d 0a 76 61 72 |rCore No|de;..var|
|00000180| 20 4f 4e 53 50 6c 61 79 | 65 72 52 65 70 6c 69 63 | ONSPlay|erReplic|
|00000190| 61 74 69 6f 6e 49 6e 66 | 6f 20 4f 77 6e 65 72 50 |ationInf|o OwnerP|
|000001a0| 52 49 3b 0d 0a 76 61 72 | 20 70 72 6f 74 65 63 74 |RI;..var| protect|
|000001b0| 65 64 20 61 72 72 61 79 | 3c 50 6f 77 65 72 4c 69 |ed array|<PowerLi|
|000001c0| 6e 6b 3e 20 50 6f 77 65 | 72 4c 69 6e 6b 73 3b 0d |nk> Powe|rLinks;.|
|000001d0| 0a 0d 0a 2f 2f 76 61 72 | 20 61 72 72 61 79 3c 63 |...//var| array<c|
|000001e0| 6f 6c 6f 72 3e 20 50 6f | 77 65 72 4c 69 6e 6b 73 |olor> Po|werLinks|
|000001f0| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 4d 61 70 |;..var b|ool bMap|
|00000200| 44 69 73 61 62 6c 65 64 | 3b 0d 0a 76 61 72 20 62 |Disabled|;..var b|
|00000210| 6f 6f 6c 20 62 52 65 63 | 65 69 76 65 64 4c 69 6e |ool bRec|eivedLin|
|00000220| 6b 73 3b 0d 0a 76 61 72 | 20 76 65 63 74 6f 72 20 |ks;..var| vector |
|00000230| 4d 61 70 43 65 6e 74 65 | 72 3b 0d 0a 76 61 72 20 |MapCente|r;..var |
|00000240| 66 6c 6f 61 74 20 43 6f | 6c 6f 72 50 65 72 63 65 |float Co|lorPerce|
|00000250| 6e 74 3b 0d 0a 0d 0a 76 | 61 72 28 29 20 20 20 4d |nt;....v|ar() M|
|00000260| 61 74 65 72 69 61 6c 20 | 20 20 20 20 20 20 20 20 |aterial | |
|00000270| 20 20 20 48 65 61 6c 74 | 68 42 61 72 42 61 63 6b | Healt|hBarBack|
|00000280| 4d 61 74 3b 0d 0a 76 61 | 72 28 29 20 20 20 4d 61 |Mat;..va|r() Ma|
|00000290| 74 65 72 69 61 6c 20 20 | 20 20 20 20 20 20 20 20 |terial | |
|000002a0| 20 20 48 65 61 6c 74 68 | 42 61 72 4d 61 74 3b 0d | Health|BarMat;.|
|000002b0| 0a 76 61 72 28 29 20 20 | 20 66 6c 6f 61 74 20 20 |.var() | float |
|000002c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 48 65 61 | | Hea|
|000002d0| 6c 74 68 42 61 72 57 69 | 64 74 68 3b 0d 0a 76 61 |lthBarWi|dth;..va|
|000002e0| 72 28 29 20 20 20 66 6c | 6f 61 74 20 20 20 20 20 |r() fl|oat |
|000002f0| 20 20 20 20 20 20 20 20 | 20 20 48 65 61 6c 74 68 | | Health|
|00000300| 42 61 72 48 65 69 67 68 | 74 2c 20 48 65 61 6c 74 |BarHeigh|t, Healt|
|00000310| 68 42 61 72 50 6f 73 69 | 74 69 6f 6e 3b 0d 0a 76 |hBarPosi|tion;..v|
|00000320| 61 72 28 29 20 20 20 66 | 6c 6f 61 74 20 20 20 20 |ar() f|loat |
|00000330| 20 20 20 20 20 20 20 20 | 20 20 20 48 65 61 6c 74 | | Healt|
|00000340| 68 42 61 72 56 69 65 77 | 44 69 73 74 3b 0d 0a 76 |hBarView|Dist;..v|
|00000350| 61 72 28 29 20 20 20 4d | 61 74 65 72 69 61 6c 20 |ar() M|aterial |
|00000360| 20 20 20 20 20 20 20 20 | 20 20 20 42 6f 72 64 65 | | Borde|
|00000370| 72 4d 61 74 3b 0d 0a 76 | 61 72 28 29 20 20 20 63 |rMat;..v|ar() c|
|00000380| 6f 6c 6f 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |olor | |
|00000390| 20 20 20 4e 65 75 74 72 | 61 6c 43 6f 6c 6f 72 3b | Neutr|alColor;|
|000003a0| 0d 0a 76 61 72 28 29 20 | 20 20 63 6f 6c 6f 72 20 |..var() | color |
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 41 74 | | At|
|000003c0| 74 61 63 6b 43 6f 6c 6f | 72 41 3b 0d 0a 76 61 72 |tackColo|rA;..var|
|000003d0| 28 29 20 20 20 63 6f 6c | 6f 72 20 20 20 20 20 20 |() col|or |
|000003e0| 20 20 20 20 20 20 20 20 | 20 41 74 74 61 63 6b 43 | | AttackC|
|000003f0| 6f 6c 6f 72 42 3b 0d 0a | 76 61 72 28 29 20 20 20 |olorB;..|var() |
|00000400| 63 6f 6c 6f 72 20 20 20 | 20 20 20 20 20 20 20 20 |color | |
|00000410| 20 20 20 20 53 65 76 65 | 72 65 64 43 6f 6c 6f 72 | Seve|redColor|
|00000420| 41 3b 0d 0a 76 61 72 28 | 29 20 20 20 63 6f 6c 6f |A;..var(|) colo|
|00000430| 72 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r | |
|00000440| 53 65 76 65 72 65 64 43 | 6f 6c 6f 72 42 3b 0d 0a |SeveredC|olorB;..|
|00000450| 76 61 72 28 29 20 20 20 | 63 6f 6c 6f 72 20 20 20 |var() |color |
|00000460| 20 20 20 20 20 20 20 20 | 20 20 20 20 4c 69 6e 6b | | Link|
|00000470| 43 6f 6c 6f 72 5b 33 5d | 3b 0d 0a 0d 0a 76 61 72 |Color[3]|;....var|
|00000480| 28 29 20 20 20 53 70 72 | 69 74 65 57 69 64 67 65 |() Spr|iteWidge|
|00000490| 74 20 20 20 20 53 79 6d | 62 6f 6c 47 42 5b 32 5d |t Sym|bolGB[2]|
|000004a0| 3b 0d 0a 76 61 72 28 29 | 20 20 20 53 70 72 69 74 |;..var()| Sprit|
|000004b0| 65 57 69 64 67 65 74 20 | 20 20 20 43 6f 72 65 57 |eWidget | CoreW|
|000004c0| 69 64 67 65 74 73 5b 32 | 5d 3b 0d 0a 76 61 72 28 |idgets[2|];..var(|
|000004d0| 29 20 20 20 4e 75 6d 65 | 72 69 63 57 69 64 67 65 |) Nume|ricWidge|
|000004e0| 74 20 20 20 43 6f 72 65 | 48 65 61 6c 74 68 57 69 |t Core|HealthWi|
|000004f0| 64 67 65 74 73 5b 32 5d | 3b 0d 0a 0d 0a 76 61 72 |dgets[2]|;....var|
|00000500| 28 29 20 20 20 4e 75 6d | 65 72 69 63 57 69 64 67 |() Num|ericWidg|
|00000510| 65 74 20 20 20 4e 6f 64 | 65 4c 61 62 65 6c 57 69 |et Nod|eLabelWi|
|00000520| 64 67 65 74 3b 0d 0a 0d | 0a 23 45 58 45 43 20 4f |dget;...|.#EXEC O|
|00000530| 42 4a 20 4c 4f 41 44 20 | 46 49 4c 45 3d 49 6e 74 |BJ LOAD |FILE=Int|
|00000540| 65 72 66 61 63 65 43 6f | 6e 74 65 6e 74 2e 75 74 |erfaceCo|ntent.ut|
|00000550| 78 0d 0a 23 45 58 45 43 | 20 4f 42 4a 20 4c 4f 41 |x..#EXEC| OBJ LOA|
|00000560| 44 20 46 49 4c 45 3d 4f | 4e 53 49 6e 74 65 72 66 |D FILE=O|NSInterf|
|00000570| 61 63 65 2d 54 58 2e 75 | 74 78 0d 0a 0d 0a 73 69 |ace-TX.u|tx....si|
|00000580| 6d 75 6c 61 74 65 64 20 | 65 76 65 6e 74 20 50 6f |mulated |event Po|
|00000590| 73 74 42 65 67 69 6e 50 | 6c 61 79 28 29 0d 0a 7b |stBeginP|lay()..{|
|000005a0| 0d 0a 09 6c 6f 63 61 6c | 20 4f 4e 53 50 6f 77 65 |...local| ONSPowe|
|000005b0| 72 43 6f 72 65 20 43 6f | 72 65 3b 0d 0a 09 6c 6f |rCore Co|re;...lo|
|000005c0| 63 61 6c 20 54 65 72 72 | 61 69 6e 49 6e 66 6f 20 |cal Terr|ainInfo |
|000005d0| 54 2c 20 50 72 69 6d 61 | 72 79 54 65 72 72 61 69 |T, Prima|ryTerrai|
|000005e0| 6e 3b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |n;...loc|al int i|
|000005f0| 3b 0d 0a 0d 0a 09 53 75 | 70 65 72 2e 50 6f 73 74 |;.....Su|per.Post|
|00000600| 42 65 67 69 6e 50 6c 61 | 79 28 29 3b 0d 0a 0d 0a |BeginPla|y();....|
|00000610| 09 66 6f 72 65 61 63 68 | 20 41 6c 6c 41 63 74 6f |.foreach| AllActo|
|00000620| 72 73 28 20 63 6c 61 73 | 73 27 4f 4e 53 50 6f 77 |rs( clas|s'ONSPow|
|00000630| 65 72 43 6f 72 65 27 2c | 20 43 6f 72 65 20 29 0d |erCore',| Core ).|
|00000640| 0a 09 09 69 66 20 28 20 | 43 6f 72 65 2e 62 46 69 |...if ( |Core.bFi|
|00000650| 6e 61 6c 43 6f 72 65 20 | 29 0d 0a 09 09 09 46 69 |nalCore |).....Fi|
|00000660| 6e 61 6c 43 6f 72 65 5b | 43 6f 72 65 2e 44 65 66 |nalCore[|Core.Def|
|00000670| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 5d 20 |enderTea|mIndex] |
|00000680| 3d 20 43 6f 72 65 3b 0d | 0a 0d 0a 09 4e 6f 64 65 |= Core;.|....Node|
|00000690| 20 3d 20 46 69 6e 61 6c | 43 6f 72 65 5b 30 5d 3b | = Final|Core[0];|
|000006a0| 0d 0a 0d 0a 09 2f 2f 20 | 53 65 74 75 70 20 6c 69 |.....// |Setup li|
|000006b0| 6e 6b 73 20 72 69 67 68 | 74 20 61 77 61 79 2c 20 |nks righ|t away, |
|000006c0| 65 76 65 6e 20 74 68 6f | 75 67 68 20 74 68 65 73 |even tho|ugh thes|
|000006d0| 65 20 77 69 6c 6c 20 62 | 65 20 6f 76 65 72 77 72 |e will b|e overwr|
|000006e0| 69 74 74 65 6e 20 77 68 | 65 6e 20 74 68 65 20 6e |itten wh|en the n|
|000006f0| 65 77 20 6c 69 6e 6b 20 | 73 65 74 75 70 20 69 73 |ew link |setup is|
|00000700| 20 72 65 63 65 69 76 65 | 64 20 66 72 6f 6d 20 74 | receive|d from t|
|00000710| 68 65 20 73 65 72 76 65 | 72 0d 0a 09 69 66 20 28 |he serve|r...if (|
|00000720| 20 4c 65 76 65 6c 2e 4e | 65 74 4d 6f 64 65 20 3d | Level.N|etMode =|
|00000730| 3d 20 4e 4d 5f 43 6c 69 | 65 6e 74 20 29 0d 0a 09 |= NM_Cli|ent )...|
|00000740| 09 53 65 74 75 70 4c 69 | 6e 6b 73 28 29 3b 0d 0a |.SetupLi|nks();..|
|00000750| 0d 0a 09 2f 2f 20 41 73 | 73 69 67 6e 20 50 6f 77 |...// As|sign Pow|
|00000760| 65 72 4e 6f 64 65 20 6e | 75 6d 62 65 72 73 0d 0a |erNode n|umbers..|
|00000770| 09 43 6f 72 65 20 3d 20 | 4e 6f 64 65 3b 0d 0a 09 |.Core = |Node;...|
|00000780| 64 6f 0d 0a 09 7b 0d 0a | 20 20 20 20 20 20 20 20 |do...{..| |
|00000790| 69 66 20 28 4f 4e 53 50 | 6f 77 65 72 4e 6f 64 65 |if (ONSP|owerNode|
|000007a0| 28 43 6f 72 65 29 20 21 | 3d 20 4e 6f 6e 65 29 0d |(Core) !|= None).|
|000007b0| 0a 20 20 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |. | {.. |
|000007c0| 20 20 20 20 20 20 20 20 | 43 6f 72 65 2e 4e 6f 64 | |Core.Nod|
|000007d0| 65 4e 75 6d 20 3d 20 2b | 2b 69 3b 0d 0a 20 20 20 |eNum = +|+i;.. |
|000007e0| 20 20 20 20 20 20 20 20 | 20 43 6f 72 65 2e 55 70 | | Core.Up|
|000007f0| 64 61 74 65 4c 6f 63 61 | 74 69 6f 6e 4e 61 6d 65 |dateLoca|tionName|
|00000800| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 0d 0a |();.. | }..|
|00000810| 0d 0a 20 20 20 20 20 20 | 20 20 43 6f 72 65 20 3d |.. | Core =|
|00000820| 20 43 6f 72 65 2e 4e 65 | 78 74 43 6f 72 65 3b 0d | Core.Ne|xtCore;.|
|00000830| 0a 09 7d 20 75 6e 74 69 | 6c 20 28 20 43 6f 72 65 |..} unti|l ( Core|
|00000840| 20 3d 3d 20 4e 6f 6e 65 | 20 7c 7c 20 43 6f 72 65 | == None| || Core|
|00000850| 20 3d 3d 20 4e 6f 64 65 | 20 29 3b 0d 0a 0d 0a 09 | == Node| );.....|
|00000860| 2f 2f 20 44 65 74 65 72 | 6d 69 6e 65 20 70 72 69 |// Deter|mine pri|
|00000870| 6d 61 72 79 20 74 65 72 | 72 61 69 6e 0d 0a 20 20 |mary ter|rain.. |
|00000880| 20 20 66 6f 72 65 61 63 | 68 20 41 6c 6c 41 63 74 | foreac|h AllAct|
|00000890| 6f 72 73 28 63 6c 61 73 | 73 27 54 65 72 72 61 69 |ors(clas|s'Terrai|
|000008a0| 6e 49 6e 66 6f 27 2c 20 | 54 29 0d 0a 20 20 20 20 |nInfo', |T).. |
|000008b0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 50 72 69 6d 61 |{.. | Prima|
|000008c0| 72 79 54 65 72 72 61 69 | 6e 20 3d 20 54 3b 0d 0a |ryTerrai|n = T;..|
|000008d0| 20 20 20 20 20 20 20 20 | 69 66 20 28 54 2e 54 61 | |if (T.Ta|
|000008e0| 67 20 3d 3d 20 27 50 72 | 69 6d 61 72 79 54 65 72 |g == 'Pr|imaryTer|
|000008f0| 72 61 69 6e 27 29 0d 0a | 20 20 20 20 20 20 20 20 |rain')..| |
|00000900| 20 20 20 20 42 72 65 61 | 6b 3b 0d 0a 20 20 20 20 | Brea|k;.. |
|00000910| 7d 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 53 65 74 20 |}.... | // Set |
|00000920| 52 61 64 61 72 4d 61 78 | 52 61 6e 67 65 20 74 6f |RadarMax|Range to|
|00000930| 20 73 69 7a 65 20 6f 66 | 20 70 72 69 6d 61 72 79 | size of| primary|
|00000940| 20 74 65 72 72 61 69 6e | 0d 0a 20 20 20 20 69 66 | terrain|.. if|
|00000950| 20 28 4c 65 76 65 6c 2e | 62 55 73 65 54 65 72 72 | (Level.|bUseTerr|
|00000960| 61 69 6e 46 6f 72 52 61 | 64 61 72 52 61 6e 67 65 |ainForRa|darRange|
|00000970| 20 26 26 20 50 72 69 6d | 61 72 79 54 65 72 72 61 | && Prim|aryTerra|
|00000980| 69 6e 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |in != No|ne).. |
|00000990| 20 20 20 20 20 52 61 64 | 61 72 52 61 6e 67 65 20 | Rad|arRange |
|000009a0| 3d 20 61 62 73 28 50 72 | 69 6d 61 72 79 54 65 72 |= abs(Pr|imaryTer|
|000009b0| 72 61 69 6e 2e 54 65 72 | 72 61 69 6e 53 63 61 6c |rain.Ter|rainScal|
|000009c0| 65 2e 58 20 2a 20 50 72 | 69 6d 61 72 79 54 65 72 |e.X * Pr|imaryTer|
|000009d0| 72 61 69 6e 2e 54 65 72 | 72 61 69 6e 4d 61 70 2e |rain.Ter|rainMap.|
|000009e0| 55 53 69 7a 65 29 20 2f | 20 32 2e 30 3b 0d 0a 20 |USize) /| 2.0;.. |
|000009f0| 20 20 20 65 6c 73 65 20 | 69 66 20 28 4c 65 76 65 | else |if (Leve|
|00000a00| 6c 2e 43 75 73 74 6f 6d | 52 61 64 61 72 52 61 6e |l.Custom|RadarRan|
|00000a10| 67 65 20 3e 20 30 29 0d | 0a 20 20 20 20 20 20 20 |ge > 0).|. |
|00000a20| 20 52 61 64 61 72 52 61 | 6e 67 65 20 3d 20 43 6c | RadarRa|nge = Cl|
|00000a30| 61 6d 70 28 4c 65 76 65 | 6c 2e 43 75 73 74 6f 6d |amp(Leve|l.Custom|
|00000a40| 52 61 64 61 72 52 61 6e | 67 65 2c 20 35 30 30 2e |RadarRan|ge, 500.|
|00000a50| 30 2c 20 64 65 66 61 75 | 6c 74 2e 52 61 64 61 72 |0, defau|lt.Radar|
|00000a60| 4d 61 78 52 61 6e 67 65 | 29 3b 0d 0a 0d 0a 20 20 |MaxRange|);.... |
|00000a70| 20 20 53 65 74 54 69 6d | 65 72 28 31 2e 30 2c 20 | SetTim|er(1.0, |
|00000a80| 74 72 75 65 29 3b 0d 0a | 20 20 20 20 54 69 6d 65 |true);..| Time|
|00000a90| 72 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |r();..}.|...simul|
|00000aa0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 53 65 |ated fun|ction Se|
|00000ab0| 74 75 70 4c 69 6e 6b 73 | 28 29 0d 0a 7b 0d 0a 09 |tupLinks|()..{...|
|00000ac0| 6c 6f 63 61 6c 20 4f 4e | 53 50 6f 77 65 72 43 6f |local ON|SPowerCo|
|00000ad0| 72 65 20 43 6f 72 65 3b | 0d 0a 09 6c 6f 63 61 6c |re Core;|...local|
|00000ae0| 20 69 6e 74 20 69 3b 0d | 0a 0d 0a 09 69 66 20 28 | int i;.|....if (|
|00000af0| 20 4e 6f 64 65 20 3d 3d | 20 4e 6f 6e 65 20 29 0d | Node ==| None ).|
|00000b00| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 2f 2f |...retur|n;....//|
|00000b10| 09 6c 6f 67 28 4e 61 6d | 65 40 22 53 65 74 75 70 |.log(Nam|e@"Setup|
|00000b20| 4c 69 6e 6b 73 22 29 3b | 0d 0a 09 43 6f 72 65 20 |Links");|...Core |
|00000b30| 3d 20 4e 6f 64 65 3b 0d | 0a 09 64 6f 0d 0a 09 7b |= Node;.|..do...{|
|00000b40| 0d 0a 09 09 66 6f 72 20 | 28 20 69 20 3d 20 30 3b |....for |( i = 0;|
|00000b50| 20 69 20 3c 20 43 6f 72 | 65 2e 50 6f 77 65 72 4c | i < Cor|e.PowerL|
|00000b60| 69 6e 6b 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |inks.Len|gth; i++|
|00000b70| 20 29 0d 0a 09 09 09 41 | 64 64 4c 69 6e 6b 28 43 | ).....A|ddLink(C|
|00000b80| 6f 72 65 2c 20 43 6f 72 | 65 2e 50 6f 77 65 72 4c |ore, Cor|e.PowerL|
|00000b90| 69 6e 6b 73 5b 69 5d 29 | 3b 0d 0a 0d 0a 09 09 43 |inks[i])|;......C|
|00000ba0| 6f 72 65 20 3d 20 43 6f | 72 65 2e 4e 65 78 74 43 |ore = Co|re.NextC|
|00000bb0| 6f 72 65 3b 0d 0a 09 7d | 20 75 6e 74 69 6c 20 28 |ore;...}| until (|
|00000bc0| 20 43 6f 72 65 20 3d 3d | 20 4e 6f 6e 65 20 7c 7c | Core ==| None |||
|00000bd0| 20 43 6f 72 65 20 3d 3d | 20 4e 6f 64 65 20 29 3b | Core ==| Node );|
|00000be0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00000bf0| 20 66 75 6e 63 74 69 6f | 6e 20 52 65 63 65 69 76 | functio|n Receiv|
|00000c00| 65 4c 69 6e 6b 28 20 4f | 4e 53 50 6f 77 65 72 43 |eLink( O|NSPowerC|
|00000c10| 6f 72 65 20 41 2c 20 4f | 4e 53 50 6f 77 65 72 43 |ore A, O|NSPowerC|
|00000c20| 6f 72 65 20 42 20 29 0d | 0a 7b 0d 0a 09 62 52 65 |ore B ).|.{...bRe|
|00000c30| 63 65 69 76 65 64 4c 69 | 6e 6b 73 20 3d 20 54 72 |ceivedLi|nks = Tr|
|00000c40| 75 65 3b 0d 0a 0d 0a 2f | 2f 09 6c 6f 67 28 4e 61 |ue;..../|/.log(Na|
|00000c50| 6d 65 40 22 52 65 63 65 | 69 76 65 4c 69 6e 6b 20 |me@"Rece|iveLink |
|00000c60| 20 41 3a 22 24 41 2e 4e | 61 6d 65 40 22 42 3a 22 | A:"$A.N|ame@"B:"|
|00000c70| 24 42 2e 4e 61 6d 65 29 | 3b 0d 0a 09 41 64 64 4c |$B.Name)|;...AddL|
|00000c80| 69 6e 6b 28 41 2c 42 29 | 3b 0d 0a 2f 2f 09 41 2e |ink(A,B)|;..//.A.|
|00000c90| 41 64 64 50 6f 77 65 72 | 4c 69 6e 6b 28 42 29 3b |AddPower|Link(B);|
|00000ca0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00000cb0| 20 66 75 6e 63 74 69 6f | 6e 20 41 64 64 4c 69 6e | functio|n AddLin|
|00000cc0| 6b 28 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |k( ONSPo|werCore |
|00000cd0| 41 2c 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |A, ONSPo|werCore |
|00000ce0| 42 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 50 |B )..{..|.local P|
|00000cf0| 6f 77 65 72 4c 69 6e 6b | 20 4c 69 6e 6b 3b 0d 0a |owerLink| Link;..|
|00000d00| 0d 0a 09 69 66 20 28 20 | 48 61 73 4c 69 6e 6b 28 |...if ( |HasLink(|
|00000d10| 41 2c 42 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |A,B) )..|..return|
|00000d20| 3b 0d 0a 0d 0a 09 4c 69 | 6e 6b 20 3d 20 53 70 61 |;.....Li|nk = Spa|
|00000d30| 77 6e 28 63 6c 61 73 73 | 27 50 6f 77 65 72 4c 69 |wn(class|'PowerLi|
|00000d40| 6e 6b 27 29 3b 0d 0a 09 | 4c 69 6e 6b 2e 53 65 74 |nk');...|Link.Set|
|00000d50| 4e 6f 64 65 73 28 41 2c | 42 29 3b 0d 0a 0d 0a 09 |Nodes(A,|B);.....|
|00000d60| 50 6f 77 65 72 4c 69 6e | 6b 73 5b 50 6f 77 65 72 |PowerLin|ks[Power|
|00000d70| 4c 69 6e 6b 73 2e 4c 65 | 6e 67 74 68 5d 20 3d 20 |Links.Le|ngth] = |
|00000d80| 4c 69 6e 6b 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |Link;..}|....simu|
|00000d90| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 52 |lated fu|nction R|
|00000da0| 65 6d 6f 76 65 4c 69 6e | 6b 28 20 4f 4e 53 50 6f |emoveLin|k( ONSPo|
|00000db0| 77 65 72 43 6f 72 65 20 | 41 2c 20 4f 4e 53 50 6f |werCore |A, ONSPo|
|00000dc0| 77 65 72 43 6f 72 65 20 | 42 20 29 0d 0a 7b 0d 0a |werCore |B )..{..|
|00000dd0| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 0d |.local i|nt i;...|
|00000de0| 0a 2f 2f 09 6c 6f 67 28 | 4e 61 6d 65 40 22 52 65 |.//.log(|Name@"Re|
|00000df0| 6d 6f 76 65 20 6c 69 6e | 6b 20 66 72 6f 6d 20 41 |move lin|k from A|
|00000e00| 3a 22 24 41 2e 4e 61 6d | 65 40 22 74 6f 22 40 42 |:"$A.Nam|e@"to"@B|
|00000e10| 2e 4e 61 6d 65 29 3b 0d | 0a 0d 0a 09 66 6f 72 20 |.Name);.|....for |
|00000e20| 28 20 69 20 3d 20 50 6f | 77 65 72 4c 69 6e 6b 73 |( i = Po|werLinks|
|00000e30| 2e 4c 65 6e 67 74 68 20 | 2d 20 31 3b 20 69 20 3e |.Length |- 1; i >|
|00000e40| 3d 20 30 3b 20 69 2d 2d | 20 29 0d 0a 09 7b 0d 0a |= 0; i--| )...{..|
|00000e50| 09 09 69 66 20 28 20 50 | 6f 77 65 72 4c 69 6e 6b |..if ( P|owerLink|
|00000e60| 73 5b 69 5d 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |s[i] == |None )..|
|00000e70| 09 09 7b 0d 0a 09 09 09 | 50 6f 77 65 72 4c 69 6e |..{.....|PowerLin|
|00000e80| 6b 73 2e 52 65 6d 6f 76 | 65 28 69 2c 31 29 3b 0d |ks.Remov|e(i,1);.|
|00000e90| 0a 09 09 09 63 6f 6e 74 | 69 6e 75 65 3b 0d 0a 09 |....cont|inue;...|
|00000ea0| 09 7d 0d 0a 0d 0a 09 09 | 69 66 20 28 20 50 6f 77 |.}......|if ( Pow|
|00000eb0| 65 72 4c 69 6e 6b 73 5b | 69 5d 2e 48 61 73 4e 6f |erLinks[|i].HasNo|
|00000ec0| 64 65 73 28 41 2c 42 29 | 20 29 0d 0a 09 09 7b 0d |des(A,B)| )....{.|
|00000ed0| 0a 2f 2f 09 09 09 6c 6f | 67 28 4e 61 6d 65 40 22 |.//...lo|g(Name@"|
|00000ee0| 66 6f 75 6e 64 20 70 6f | 77 65 72 6c 69 6e 6b 20 |found po|werlink |
|00000ef0| 63 6f 6e 74 61 69 6e 69 | 6e 67 20 74 68 6f 73 65 |containi|ng those|
|00000f00| 20 6e 6f 64 65 73 3a 22 | 24 50 6f 77 65 72 4c 69 | nodes:"|$PowerLi|
|00000f10| 6e 6b 73 5b 69 5d 2e 4e | 61 6d 65 29 3b 0d 0a 09 |nks[i].N|ame);...|
|00000f20| 09 09 50 6f 77 65 72 4c | 69 6e 6b 73 5b 69 5d 2e |..PowerL|inks[i].|
|00000f30| 44 65 73 74 72 6f 79 28 | 29 3b 0d 0a 09 09 09 50 |Destroy(|);.....P|
|00000f40| 6f 77 65 72 4c 69 6e 6b | 73 2e 52 65 6d 6f 76 65 |owerLink|s.Remove|
|00000f50| 28 69 2c 31 29 3b 0d 0a | 09 09 7d 0d 0a 09 7d 0d |(i,1);..|..}...}.|
|00000f60| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000f70| 66 75 6e 63 74 69 6f 6e | 20 52 65 73 65 74 4c 69 |function| ResetLi|
|00000f80| 6e 6b 73 28 29 0d 0a 7b | 0d 0a 2f 2f 09 6c 6f 67 |nks()..{|..//.log|
|00000f90| 28 4e 61 6d 65 40 22 52 | 65 73 65 74 4c 69 6e 6b |(Name@"R|esetLink|
|00000fa0| 73 22 29 3b 0d 0a 09 43 | 6c 65 61 72 4c 69 6e 6b |s");...C|learLink|
|00000fb0| 73 28 29 3b 0d 0a 09 52 | 65 71 75 65 73 74 50 6f |s();...R|equestPo|
|00000fc0| 77 65 72 4c 69 6e 6b 73 | 28 29 3b 0d 0a 0d 0a 2f |werLinks|();..../|
|00000fd0| 2a 0d 0a 09 69 66 20 28 | 20 4c 65 76 65 6c 2e 4e |*...if (| Level.N|
|00000fe0| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 43 6c 69 |etMode =|= NM_Cli|
|00000ff0| 65 6e 74 20 29 0d 0a 09 | 7b 0d 0a 09 09 43 6f 72 |ent )...|{....Cor|
|00001000| 65 20 3d 20 4e 6f 64 65 | 3b 0d 0a 09 09 64 6f 0d |e = Node|;....do.|
|00001010| 0a 09 09 7b 0d 0a 09 09 | 09 43 6f 72 65 2e 50 6f |...{....|.Core.Po|
|00001020| 77 65 72 43 6f 72 65 52 | 65 73 65 74 28 29 3b 0d |werCoreR|eset();.|
|00001030| 0a 09 09 09 43 6f 72 65 | 20 3d 20 43 6f 72 65 2e |....Core| = Core.|
|00001040| 4e 65 78 74 43 6f 72 65 | 3b 0d 0a 09 09 7d 20 75 |NextCore|;....} u|
|00001050| 6e 74 69 6c 20 28 20 43 | 6f 72 65 20 3d 3d 20 4e |ntil ( C|ore == N|
|00001060| 6f 6e 65 20 7c 7c 20 43 | 6f 72 65 20 3d 3d 20 4e |one || C|ore == N|
|00001070| 6f 64 65 20 29 3b 0d 0a | 09 7d 0d 0a 2a 2f 0d 0a |ode );..|.}..*/..|
|00001080| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00001090| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 48 61 73 |unction |bool Has|
|000010a0| 4c 69 6e 6b 28 20 4f 4e | 53 50 6f 77 65 72 43 6f |Link( ON|SPowerCo|
|000010b0| 72 65 20 41 2c 20 4f 4e | 53 50 6f 77 65 72 43 6f |re A, ON|SPowerCo|
|000010c0| 72 65 20 42 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |re B )..|{...loca|
|000010d0| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 66 6f 72 |l int i;|.....for|
|000010e0| 20 28 20 69 20 3d 20 50 | 6f 77 65 72 4c 69 6e 6b | ( i = P|owerLink|
|000010f0| 73 2e 4c 65 6e 67 74 68 | 20 2d 20 31 3b 20 69 20 |s.Length| - 1; i |
|00001100| 3e 3d 20 30 3b 20 69 2d | 2d 20 29 0d 0a 09 7b 0d |>= 0; i-|- )...{.|
|00001110| 0a 09 09 69 66 20 28 20 | 50 6f 77 65 72 4c 69 6e |...if ( |PowerLin|
|00001120| 6b 73 5b 69 5d 20 3d 3d | 20 4e 6f 6e 65 20 29 0d |ks[i] ==| None ).|
|00001130| 0a 09 09 7b 0d 0a 09 09 | 09 50 6f 77 65 72 4c 69 |...{....|.PowerLi|
|00001140| 6e 6b 73 2e 52 65 6d 6f | 76 65 28 69 2c 31 29 3b |nks.Remo|ve(i,1);|
|00001150| 0d 0a 09 09 09 63 6f 6e | 74 69 6e 75 65 3b 0d 0a |.....con|tinue;..|
|00001160| 09 09 7d 0d 0a 0d 0a 09 | 09 69 66 20 28 20 50 6f |..}.....|.if ( Po|
|00001170| 77 65 72 4c 69 6e 6b 73 | 5b 69 5d 2e 48 61 73 4e |werLinks|[i].HasN|
|00001180| 6f 64 65 73 28 41 2c 42 | 29 20 29 0d 0a 09 09 09 |odes(A,B|) ).....|
|00001190| 72 65 74 75 72 6e 20 54 | 72 75 65 3b 0d 0a 09 7d |return T|rue;...}|
|000011a0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 46 61 6c 73 |.....ret|urn Fals|
|000011b0| 65 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |e;..}...|.simulat|
|000011c0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 43 6c 65 61 |ed funct|ion Clea|
|000011d0| 72 4c 69 6e 6b 73 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |rLinks()|..{...lo|
|000011e0| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 09 62 52 65 |cal int |i;...bRe|
|000011f0| 63 65 69 76 65 64 4c 69 | 6e 6b 73 20 3d 20 46 61 |ceivedLi|nks = Fa|
|00001200| 6c 73 65 3b 0d 0a 0d 0a | 2f 2f 09 6c 6f 67 28 4e |lse;....|//.log(N|
|00001210| 61 6d 65 40 22 43 6c 65 | 61 72 4c 69 6e 6b 73 22 |ame@"Cle|arLinks"|
|00001220| 40 50 6f 77 65 72 4c 69 | 6e 6b 73 2e 4c 65 6e 67 |@PowerLi|nks.Leng|
|00001230| 74 68 29 3b 0d 0a 09 66 | 6f 72 20 28 20 69 20 3d |th);...f|or ( i =|
|00001240| 20 30 3b 20 69 20 3c 20 | 50 6f 77 65 72 4c 69 6e | 0; i < |PowerLin|
|00001250| 6b 73 2e 4c 65 6e 67 74 | 68 3b 20 69 2b 2b 20 29 |ks.Lengt|h; i++ )|
|00001260| 0d 0a 09 09 69 66 20 28 | 20 50 6f 77 65 72 4c 69 |....if (| PowerLi|
|00001270| 6e 6b 73 5b 69 5d 20 21 | 3d 20 4e 6f 6e 65 20 29 |nks[i] !|= None )|
|00001280| 0d 0a 09 09 09 50 6f 77 | 65 72 4c 69 6e 6b 73 5b |.....Pow|erLinks[|
|00001290| 69 5d 2e 44 65 73 74 72 | 6f 79 28 29 3b 0d 0a 0d |i].Destr|oy();...|
|000012a0| 0a 09 50 6f 77 65 72 4c | 69 6e 6b 73 2e 52 65 6d |..PowerL|inks.Rem|
|000012b0| 6f 76 65 28 30 2c 20 50 | 6f 77 65 72 4c 69 6e 6b |ove(0, P|owerLink|
|000012c0| 73 2e 4c 65 6e 67 74 68 | 29 3b 0d 0a 7d 0d 0a 0d |s.Length|);..}...|
|000012d0| 0a 2f 2f 20 46 69 6e 64 | 73 20 61 20 50 6f 77 65 |.// Find|s a Powe|
|000012e0| 72 43 6f 72 65 20 77 69 | 74 68 69 6e 20 32 35 30 |rCore wi|thin 250|
|000012f0| 30 20 75 6e 69 74 73 20 | 6f 66 20 50 6f 73 58 2f |0 units |of PosX/|
|00001300| 50 6f 73 59 20 6f 6e 20 | 74 68 65 20 52 61 64 61 |PosY on |the Rada|
|00001310| 72 4d 61 70 20 28 61 73 | 73 75 6d 65 73 20 61 20 |rMap (as|sumes a |
|00001320| 6d 61 70 20 63 65 6e 74 | 65 72 65 64 20 61 74 20 |map cent|ered at |
|00001330| 30 2c 30 2c 30 29 0d 0a | 73 69 6d 75 6c 61 74 65 |0,0,0)..|simulate|
|00001340| 64 20 66 75 6e 63 74 69 | 6f 6e 20 4f 4e 53 50 6f |d functi|on ONSPo|
|00001350| 77 65 72 43 6f 72 65 20 | 4c 6f 63 61 74 65 50 6f |werCore |LocatePo|
|00001360| 77 65 72 43 6f 72 65 28 | 66 6c 6f 61 74 20 50 6f |werCore(|float Po|
|00001370| 73 58 2c 20 66 6c 6f 61 | 74 20 50 6f 73 59 2c 20 |sX, floa|t PosY, |
|00001380| 66 6c 6f 61 74 20 52 61 | 64 61 72 57 69 64 74 68 |float Ra|darWidth|
|00001390| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|000013a0| 66 6c 6f 61 74 20 57 6f | 72 6c 64 54 6f 4d 61 70 |float Wo|rldToMap|
|000013b0| 53 63 61 6c 65 46 61 63 | 74 6f 72 2c 20 44 69 73 |ScaleFac|tor, Dis|
|000013c0| 74 61 6e 63 65 2c 20 4c | 6f 77 65 73 74 44 69 73 |tance, L|owestDis|
|000013d0| 74 61 6e 63 65 3b 0d 0a | 20 20 20 20 6c 6f 63 61 |tance;..| loca|
|000013e0| 6c 20 76 65 63 74 6f 72 | 20 57 6f 72 6c 64 4c 6f |l vector| WorldLo|
|000013f0| 63 61 74 69 6f 6e 2c 20 | 44 69 73 74 61 6e 63 65 |cation, |Distance|
|00001400| 56 65 63 74 6f 72 3b 0d | 0a 20 20 20 20 6c 6f 63 |Vector;.|. loc|
|00001410| 61 6c 20 4f 4e 53 50 6f | 77 65 72 43 6f 72 65 20 |al ONSPo|werCore |
|00001420| 42 65 73 74 43 6f 72 65 | 2c 20 43 6f 72 65 3b 0d |BestCore|, Core;.|
|00001430| 0a 0d 0a 09 69 66 20 28 | 4e 6f 64 65 20 3d 3d 20 |....if (|Node == |
|00001440| 4e 6f 6e 65 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |None)...|.return |
|00001450| 4e 6f 6e 65 3b 0d 0a 0d | 0a 20 20 20 20 57 6f 72 |None;...|. Wor|
|00001460| 6c 64 54 6f 4d 61 70 53 | 63 61 6c 65 46 61 63 74 |ldToMapS|caleFact|
|00001470| 6f 72 20 3d 20 52 61 64 | 61 72 52 61 6e 67 65 2f |or = Rad|arRange/|
|00001480| 52 61 64 61 72 57 69 64 | 74 68 3b 0d 0a 0d 0a 20 |RadarWid|th;.... |
|00001490| 20 20 20 57 6f 72 6c 64 | 4c 6f 63 61 74 69 6f 6e | World|Location|
|000014a0| 2e 58 20 3d 20 50 6f 73 | 58 20 2a 20 57 6f 72 6c |.X = Pos|X * Worl|
|000014b0| 64 54 6f 4d 61 70 53 63 | 61 6c 65 46 61 63 74 6f |dToMapSc|aleFacto|
|000014c0| 72 3b 0d 0a 20 20 20 20 | 57 6f 72 6c 64 4c 6f 63 |r;.. |WorldLoc|
|000014d0| 61 74 69 6f 6e 2e 59 20 | 3d 20 50 6f 73 59 20 2a |ation.Y |= PosY *|
|000014e0| 20 57 6f 72 6c 64 54 6f | 4d 61 70 53 63 61 6c 65 | WorldTo|MapScale|
|000014f0| 46 61 63 74 6f 72 3b 0d | 0a 0d 0a 20 20 20 20 4c |Factor;.|... L|
|00001500| 6f 77 65 73 74 44 69 73 | 74 61 6e 63 65 20 3d 20 |owestDis|tance = |
|00001510| 32 35 30 30 2e 30 3b 0d | 0a 0d 0a 09 43 6f 72 65 |2500.0;.|....Core|
|00001520| 20 3d 20 4e 6f 64 65 3b | 0d 0a 09 64 6f 0d 0a 09 | = Node;|...do...|
|00001530| 7b 0d 0a 20 20 20 20 20 | 20 20 20 44 69 73 74 61 |{.. | Dista|
|00001540| 6e 63 65 56 65 63 74 6f | 72 20 3d 20 43 6f 72 65 |nceVecto|r = Core|
|00001550| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 57 6f 72 6c |.Locatio|n - Worl|
|00001560| 64 4c 6f 63 61 74 69 6f | 6e 3b 0d 0a 20 20 20 20 |dLocatio|n;.. |
|00001570| 20 20 20 20 44 69 73 74 | 61 6e 63 65 56 65 63 74 | Dist|anceVect|
|00001580| 6f 72 2e 5a 20 3d 20 30 | 3b 0d 0a 09 09 44 69 73 |or.Z = 0|;....Dis|
|00001590| 74 61 6e 63 65 20 3d 20 | 56 53 69 7a 65 28 44 69 |tance = |VSize(Di|
|000015a0| 73 74 61 6e 63 65 56 65 | 63 74 6f 72 29 3b 0d 0a |stanceVe|ctor);..|
|000015b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 44 69 73 74 | |if (Dist|
|000015c0| 61 6e 63 65 20 3c 20 4c | 6f 77 65 73 74 44 69 73 |ance < L|owestDis|
|000015d0| 74 61 6e 63 65 29 0d 0a | 20 20 20 20 20 20 20 20 |tance)..| |
|000015e0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |{.. | B|
|000015f0| 65 73 74 43 6f 72 65 20 | 3d 20 43 6f 72 65 3b 0d |estCore |= Core;.|
|00001600| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 6f 77 |. | Low|
|00001610| 65 73 74 44 69 73 74 61 | 6e 63 65 20 3d 20 44 69 |estDista|nce = Di|
|00001620| 73 74 61 6e 63 65 3b 0d | 0a 20 20 20 20 20 20 20 |stance;.|. |
|00001630| 20 7d 0d 0a 0d 0a 09 09 | 43 6f 72 65 20 3d 20 43 | }......|Core = C|
|00001640| 6f 72 65 2e 4e 65 78 74 | 43 6f 72 65 3b 0d 0a 20 |ore.Next|Core;.. |
|00001650| 20 20 20 7d 20 75 6e 74 | 69 6c 20 28 20 43 6f 72 | } unt|il ( Cor|
|00001660| 65 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 43 6f 72 |e == Non|e || Cor|
|00001670| 65 20 3d 3d 20 4e 6f 64 | 65 20 29 3b 0d 0a 0d 0a |e == Nod|e );....|
|00001680| 20 20 20 20 72 65 74 75 | 72 6e 20 42 65 73 74 43 | retu|rn BestC|
|00001690| 6f 72 65 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |ore;..}.|...simul|
|000016a0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 44 72 |ated fun|ction Dr|
|000016b0| 61 77 52 61 64 61 72 4d | 61 70 28 43 61 6e 76 61 |awRadarM|ap(Canva|
|000016c0| 73 20 43 2c 20 66 6c 6f | 61 74 20 43 65 6e 74 65 |s C, flo|at Cente|
|000016d0| 72 50 6f 73 58 2c 20 66 | 6c 6f 61 74 20 43 65 6e |rPosX, f|loat Cen|
|000016e0| 74 65 72 50 6f 73 59 2c | 20 66 6c 6f 61 74 20 52 |terPosY,| float R|
|000016f0| 61 64 61 72 57 69 64 74 | 68 2c 20 62 6f 6f 6c 20 |adarWidt|h, bool |
|00001700| 62 53 68 6f 77 44 69 73 | 61 62 6c 65 64 4e 6f 64 |bShowDis|abledNod|
|00001710| 65 73 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 |es)..{..|.local f|
|00001720| 6c 6f 61 74 20 50 61 77 | 6e 49 63 6f 6e 53 69 7a |loat Paw|nIconSiz|
|00001730| 65 2c 20 50 6c 61 79 65 | 72 49 63 6f 6e 53 69 7a |e, Playe|rIconSiz|
|00001740| 65 2c 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 2c |e, CoreI|conSize,|
|00001750| 20 4d 61 70 53 63 61 6c | 65 2c 20 4d 61 70 52 61 | MapScal|e, MapRa|
|00001760| 64 61 72 57 69 64 74 68 | 3b 0d 0a 09 6c 6f 63 61 |darWidth|;...loca|
|00001770| 6c 20 76 65 63 74 6f 72 | 20 48 55 44 4c 6f 63 61 |l vector| HUDLoca|
|00001780| 74 69 6f 6e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 46 69 |tion;...|local Fi|
|00001790| 6e 61 6c 42 6c 65 6e 64 | 20 50 6c 61 79 65 72 49 |nalBlend| PlayerI|
|000017a0| 63 6f 6e 3b 0d 0a 09 6c | 6f 63 61 6c 20 41 63 74 |con;...l|ocal Act|
|000017b0| 6f 72 20 41 3b 0d 0a 09 | 6c 6f 63 61 6c 20 4f 4e |or A;...|local ON|
|000017c0| 53 50 6f 77 65 72 43 6f | 72 65 20 43 75 72 43 6f |SPowerCo|re CurCo|
|000017d0| 72 65 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 |re;...lo|cal int |
|000017e0| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 70 6c 61 6e 65 |i;...loc|al plane|
|000017f0| 20 53 61 76 65 64 4d 6f | 64 75 6c 61 74 69 6f 6e | SavedMo|dulation|
|00001800| 3b 0d 0a 0d 0a 09 53 61 | 76 65 64 4d 6f 64 75 6c |;.....Sa|vedModul|
|00001810| 61 74 69 6f 6e 20 3d 20 | 43 2e 43 6f 6c 6f 72 4d |ation = |C.ColorM|
|00001820| 6f 64 75 6c 61 74 65 3b | 0d 0a 0d 0a 09 43 2e 43 |odulate;|.....C.C|
|00001830| 6f 6c 6f 72 4d 6f 64 75 | 6c 61 74 65 2e 58 20 3d |olorModu|late.X =|
|00001840| 20 31 3b 0d 0a 09 43 2e | 43 6f 6c 6f 72 4d 6f 64 | 1;...C.|ColorMod|
|00001850| 75 6c 61 74 65 2e 59 20 | 3d 20 31 3b 0d 0a 09 43 |ulate.Y |= 1;...C|
|00001860| 2e 43 6f 6c 6f 72 4d 6f | 64 75 6c 61 74 65 2e 5a |.ColorMo|dulate.Z|
|00001870| 20 3d 20 31 3b 0d 0a 09 | 43 2e 43 6f 6c 6f 72 4d | = 1;...|C.ColorM|
|00001880| 6f 64 75 6c 61 74 65 2e | 57 20 3d 20 31 3b 0d 0a |odulate.|W = 1;..|
|00001890| 0d 0a 09 2f 2f 20 4d 61 | 6b 65 20 73 75 72 65 20 |...// Ma|ke sure |
|000018a0| 74 68 61 74 20 74 68 65 | 20 63 61 6e 76 61 73 20 |that the| canvas |
|000018b0| 73 74 79 6c 65 20 69 73 | 20 61 6c 70 68 61 0d 0a |style is| alpha..|
|000018c0| 09 43 2e 53 74 79 6c 65 | 20 3d 20 45 52 65 6e 64 |.C.Style| = ERend|
|000018d0| 65 72 53 74 79 6c 65 2e | 53 54 59 5f 41 6c 70 68 |erStyle.|STY_Alph|
|000018e0| 61 3b 0d 0a 0d 0a 09 4d | 61 70 52 61 64 61 72 57 |a;.....M|apRadarW|
|000018f0| 69 64 74 68 20 3d 20 52 | 61 64 61 72 57 69 64 74 |idth = R|adarWidt|
|00001900| 68 3b 0d 0a 20 20 20 20 | 69 66 20 28 50 61 77 6e |h;.. |if (Pawn|
|00001910| 4f 77 6e 65 72 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |Owner !=| None)..|
|00001920| 20 20 20 20 7b 0d 0a 2f | 2f 20 20 20 20 09 4d 61 | {../|/ .Ma|
|00001930| 70 43 65 6e 74 65 72 2e | 58 20 3d 20 46 43 6c 61 |pCenter.|X = FCla|
|00001940| 6d 70 28 50 61 77 6e 4f | 77 6e 65 72 2e 4c 6f 63 |mp(PawnO|wner.Loc|
|00001950| 61 74 69 6f 6e 2e 58 2c | 20 2d 52 61 64 61 72 4d |ation.X,| -RadarM|
|00001960| 61 78 52 61 6e 67 65 20 | 2b 20 52 61 64 61 72 52 |axRange |+ RadarR|
|00001970| 61 6e 67 65 2c 20 52 61 | 64 61 72 4d 61 78 52 61 |ange, Ra|darMaxRa|
|00001980| 6e 67 65 20 2d 20 52 61 | 64 61 72 52 61 6e 67 65 |nge - Ra|darRange|
|00001990| 29 3b 0d 0a 2f 2f 20 20 | 20 20 09 4d 61 70 43 65 |);..// | .MapCe|
|000019a0| 6e 74 65 72 2e 59 20 3d | 20 46 43 6c 61 6d 70 28 |nter.Y =| FClamp(|
|000019b0| 50 61 77 6e 4f 77 6e 65 | 72 2e 4c 6f 63 61 74 69 |PawnOwne|r.Locati|
|000019c0| 6f 6e 2e 59 2c 20 2d 52 | 61 64 61 72 4d 61 78 52 |on.Y, -R|adarMaxR|
|000019d0| 61 6e 67 65 20 2b 20 52 | 61 64 61 72 52 61 6e 67 |ange + R|adarRang|
|000019e0| 65 2c 20 52 61 64 61 72 | 4d 61 78 52 61 6e 67 65 |e, Radar|MaxRange|
|000019f0| 20 2d 20 52 61 64 61 72 | 52 61 6e 67 65 29 3b 0d | - Radar|Range);.|
|00001a00| 0a 20 20 20 20 20 20 20 | 20 4d 61 70 43 65 6e 74 |. | MapCent|
|00001a10| 65 72 2e 58 20 3d 20 30 | 2e 30 3b 0d 0a 20 20 20 |er.X = 0|.0;.. |
|00001a20| 20 20 20 20 20 4d 61 70 | 43 65 6e 74 65 72 2e 59 | Map|Center.Y|
|00001a30| 20 3d 20 30 2e 30 3b 0d | 0a 20 20 20 20 7d 0d 0a | = 0.0;.|. }..|
|00001a40| 20 20 20 20 65 6c 73 65 | 0d 0a 20 20 20 20 20 20 | else|.. |
|00001a50| 20 20 4d 61 70 43 65 6e | 74 65 72 20 3d 20 76 65 | MapCen|ter = ve|
|00001a60| 63 74 28 30 2c 30 2c 30 | 29 3b 0d 0a 0d 0a 09 48 |ct(0,0,0|);.....H|
|00001a70| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 3d 20 52 |UDLocati|on.X = R|
|00001a80| 61 64 61 72 57 69 64 74 | 68 3b 0d 0a 09 48 55 44 |adarWidt|h;...HUD|
|00001a90| 4c 6f 63 61 74 69 6f 6e | 2e 59 20 3d 20 52 61 64 |Location|.Y = Rad|
|00001aa0| 61 72 52 61 6e 67 65 3b | 0d 0a 09 48 55 44 4c 6f |arRange;|...HUDLo|
|00001ab0| 63 61 74 69 6f 6e 2e 5a | 20 3d 20 52 61 64 61 72 |cation.Z| = Radar|
|00001ac0| 54 72 61 6e 73 3b 0d 0a | 0d 0a 09 44 72 61 77 4d |Trans;..|...DrawM|
|00001ad0| 61 70 49 6d 61 67 65 28 | 20 43 2c 20 4c 65 76 65 |apImage(| C, Leve|
|00001ae0| 6c 2e 52 61 64 61 72 4d | 61 70 49 6d 61 67 65 2c |l.RadarM|apImage,|
|00001af0| 20 43 65 6e 74 65 72 50 | 6f 73 58 2c 20 43 65 6e | CenterP|osX, Cen|
|00001b00| 74 65 72 50 6f 73 59 2c | 20 4d 61 70 43 65 6e 74 |terPosY,| MapCent|
|00001b10| 65 72 2e 58 2c 20 4d 61 | 70 43 65 6e 74 65 72 2e |er.X, Ma|pCenter.|
|00001b20| 59 2c 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 20 29 |Y, HUDLo|cation )|
|00001b30| 3b 0d 0a 0d 0a 09 69 66 | 20 28 4e 6f 64 65 20 3d |;.....if| (Node =|
|00001b40| 3d 20 4e 6f 6e 65 29 0d | 0a 09 09 72 65 74 75 72 |= None).|...retur|
|00001b50| 6e 3b 0d 0a 0d 0a 09 43 | 75 72 43 6f 72 65 20 3d |n;.....C|urCore =|
|00001b60| 20 4e 6f 64 65 3b 0d 0a | 09 64 6f 0d 0a 09 7b 0d | Node;..|.do...{.|
|00001b70| 0a 09 09 69 66 20 28 20 | 43 75 72 43 6f 72 65 2e |...if ( |CurCore.|
|00001b80| 48 61 73 48 65 61 6c 74 | 68 42 61 72 28 29 20 29 |HasHealt|hBar() )|
|00001b90| 0d 0a 09 09 09 44 72 61 | 77 48 65 61 6c 74 68 42 |.....Dra|wHealthB|
|00001ba0| 61 72 28 43 2c 20 43 75 | 72 43 6f 72 65 2c 20 43 |ar(C, Cu|rCore, C|
|00001bb0| 75 72 43 6f 72 65 2e 48 | 65 61 6c 74 68 2c 20 43 |urCore.H|ealth, C|
|00001bc0| 75 72 43 6f 72 65 2e 44 | 61 6d 61 67 65 43 61 70 |urCore.D|amageCap|
|00001bd0| 61 63 69 74 79 2c 20 48 | 65 61 6c 74 68 42 61 72 |acity, H|ealthBar|
|00001be0| 50 6f 73 69 74 69 6f 6e | 29 3b 0d 0a 0d 0a 09 09 |Position|);......|
|00001bf0| 43 75 72 43 6f 72 65 20 | 3d 20 43 75 72 43 6f 72 |CurCore |= CurCor|
|00001c00| 65 2e 4e 65 78 74 43 6f | 72 65 3b 0d 0a 09 7d 20 |e.NextCo|re;...} |
|00001c10| 75 6e 74 69 6c 20 28 20 | 43 75 72 43 6f 72 65 20 |until ( |CurCore |
|00001c20| 3d 3d 20 4e 6f 6e 65 20 | 7c 7c 20 43 75 72 43 6f |== None ||| CurCo|
|00001c30| 72 65 20 3d 3d 20 4e 6f | 64 65 20 29 3b 0d 0a 0d |re == No|de );...|
|00001c40| 0a 09 43 6f 72 65 49 63 | 6f 6e 53 69 7a 65 20 3d |..CoreIc|onSize =|
|00001c50| 20 49 63 6f 6e 53 63 61 | 6c 65 20 2a 20 31 36 20 | IconSca|le * 16 |
|00001c60| 2a 20 43 2e 43 6c 69 70 | 58 20 2a 20 48 55 44 53 |* C.Clip|X * HUDS|
|00001c70| 63 61 6c 65 2f 31 36 30 | 30 3b 0d 0a 09 50 61 77 |cale/160|0;...Paw|
|00001c80| 6e 49 63 6f 6e 53 69 7a | 65 20 3d 20 43 6f 72 65 |nIconSiz|e = Core|
|00001c90| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 35 3b 0d |IconSize| * 0.5;.|
|00001ca0| 0a 09 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |..Player|IconSize|
|00001cb0| 20 3d 20 43 6f 72 65 49 | 63 6f 6e 53 69 7a 65 20 | = CoreI|conSize |
|00001cc0| 2a 20 31 2e 35 3b 0d 0a | 20 20 20 20 4d 61 70 53 |* 1.5;..| MapS|
|00001cd0| 63 61 6c 65 20 3d 20 4d | 61 70 52 61 64 61 72 57 |cale = M|apRadarW|
|00001ce0| 69 64 74 68 2f 52 61 64 | 61 72 52 61 6e 67 65 3b |idth/Rad|arRange;|
|00001cf0| 0d 0a 20 20 20 20 43 2e | 46 6f 6e 74 20 3d 20 47 |.. C.|Font = G|
|00001d00| 65 74 43 6f 6e 73 6f 6c | 65 46 6f 6e 74 28 43 29 |etConsol|eFont(C)|
|00001d10| 3b 0d 0a 0d 0a 09 4e 6f | 64 65 2e 55 70 64 61 74 |;.....No|de.Updat|
|00001d20| 65 48 55 44 4c 6f 63 61 | 74 69 6f 6e 28 20 43 65 |eHUDLoca|tion( Ce|
|00001d30| 6e 74 65 72 50 6f 73 58 | 2c 20 43 65 6e 74 65 72 |nterPosX|, Center|
|00001d40| 50 6f 73 59 2c 20 52 61 | 64 61 72 57 69 64 74 68 |PosY, Ra|darWidth|
|00001d50| 2c 20 52 61 64 61 72 52 | 61 6e 67 65 2c 20 4d 61 |, RadarR|ange, Ma|
|00001d60| 70 43 65 6e 74 65 72 20 | 29 3b 0d 0a 09 66 6f 72 |pCenter |);...for|
|00001d70| 20 28 20 69 20 3d 20 30 | 3b 20 69 20 3c 20 50 6f | ( i = 0|; i < Po|
|00001d80| 77 65 72 4c 69 6e 6b 73 | 2e 4c 65 6e 67 74 68 3b |werLinks|.Length;|
|00001d90| 20 69 2b 2b 20 29 0d 0a | 09 09 50 6f 77 65 72 4c | i++ )..|..PowerL|
|00001da0| 69 6e 6b 73 5b 69 5d 2e | 52 65 6e 64 65 72 28 43 |inks[i].|Render(C|
|00001db0| 2c 20 43 6f 6c 6f 72 50 | 65 72 63 65 6e 74 2c 20 |, ColorP|ercent, |
|00001dc0| 62 53 68 6f 77 44 69 73 | 61 62 6c 65 64 4e 6f 64 |bShowDis|abledNod|
|00001dd0| 65 73 29 3b 0d 0a 0d 0a | 09 43 75 72 43 6f 72 65 |es);....|.CurCore|
|00001de0| 20 3d 20 4e 6f 64 65 3b | 0d 0a 09 64 6f 0d 0a 09 | = Node;|...do...|
|00001df0| 7b 0d 0a 09 09 69 66 20 | 28 21 62 53 68 6f 77 44 |{....if |(!bShowD|
|00001e00| 69 73 61 62 6c 65 64 4e | 6f 64 65 73 20 26 26 20 |isabledN|odes && |
|00001e10| 28 43 75 72 43 6f 72 65 | 2e 43 6f 72 65 53 74 61 |(CurCore|.CoreSta|
|00001e20| 67 65 20 3d 3d 20 32 35 | 35 20 7c 7c 20 43 75 72 |ge == 25|5 || Cur|
|00001e30| 43 6f 72 65 2e 50 6f 77 | 65 72 4c 69 6e 6b 73 2e |Core.Pow|erLinks.|
|00001e40| 4c 65 6e 67 74 68 20 3d | 3d 20 30 29 29 09 2f 2f |Length =|= 0)).//|
|00001e50| 68 69 64 65 20 75 6e 75 | 73 65 64 20 70 6f 77 65 |hide unu|sed powe|
|00001e60| 72 6e 6f 64 65 73 0d 0a | 09 09 7b 0d 0a 09 09 09 |rnodes..|..{.....|
|00001e70| 69 66 20 28 50 6c 61 79 | 65 72 4f 77 6e 65 72 3d |if (Play|erOwner=|
|00001e80| 3d 6e 6f 6e 65 20 7c 7c | 20 21 50 6c 61 79 65 72 |=none ||| !Player|
|00001e90| 4f 77 6e 65 72 2e 62 44 | 65 6d 6f 4f 77 6e 65 72 |Owner.bD|emoOwner|
|00001ea0| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 43 75 72 |).....{.|.....Cur|
|00001eb0| 43 6f 72 65 20 3d 20 43 | 75 72 43 6f 72 65 2e 4e |Core = C|urCore.N|
|00001ec0| 65 78 74 43 6f 72 65 3b | 0d 0a 09 09 09 09 63 6f |extCore;|......co|
|00001ed0| 6e 74 69 6e 75 65 3b 0d | 0a 09 09 09 7d 0d 0a 09 |ntinue;.|....}...|
|00001ee0| 09 7d 0d 0a 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |.}......|C.DrawCo|
|00001ef0| 6c 6f 72 20 3d 20 4c 69 | 6e 6b 43 6f 6c 6f 72 5b |lor = Li|nkColor[|
|00001f00| 43 75 72 43 6f 72 65 2e | 44 65 66 65 6e 64 65 72 |CurCore.|Defender|
|00001f10| 54 65 61 6d 49 6e 64 65 | 78 5d 3b 0d 0a 0d 0a 09 |TeamInde|x];.....|
|00001f20| 09 2f 2f 20 44 72 61 77 | 20 61 70 70 72 6f 70 72 |.// Draw| appropr|
|00001f30| 69 61 74 65 20 69 63 6f | 6e 20 74 6f 20 72 65 70 |iate ico|n to rep|
|00001f40| 72 65 73 65 6e 74 20 74 | 68 65 20 63 75 72 72 65 |resent t|he curre|
|00001f50| 6e 74 20 73 74 61 74 65 | 20 6f 66 20 74 68 69 73 |nt state| of this|
|00001f60| 20 6e 6f 64 65 0d 0a 09 | 20 20 20 20 69 66 20 28 | node...| if (|
|00001f70| 43 75 72 43 6f 72 65 2e | 62 55 6e 64 65 72 41 74 |CurCore.|bUnderAt|
|00001f80| 74 61 63 6b 20 7c 7c 20 | 28 43 75 72 43 6f 72 65 |tack || |(CurCore|
|00001f90| 2e 43 6f 72 65 53 74 61 | 67 65 20 3d 3d 20 30 20 |.CoreSta|ge == 0 |
|00001fa0| 26 26 20 43 75 72 43 6f | 72 65 2e 62 53 65 76 65 |&& CurCo|re.bSeve|
|00001fb0| 72 65 64 29 29 0d 0a 09 | 20 20 20 20 09 44 72 61 |red))...| .Dra|
|00001fc0| 77 41 74 74 61 63 6b 49 | 63 6f 6e 28 20 43 2c 20 |wAttackI|con( C, |
|00001fd0| 43 75 72 43 6f 72 65 2c | 20 43 75 72 43 6f 72 65 |CurCore,| CurCore|
|00001fe0| 2e 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2c 20 49 63 |.HUDLoca|tion, Ic|
|00001ff0| 6f 6e 53 63 61 6c 65 2c | 20 48 55 44 53 63 61 6c |onScale,| HUDScal|
|00002000| 65 2c 20 43 6f 6c 6f 72 | 50 65 72 63 65 6e 74 20 |e, Color|Percent |
|00002010| 29 3b 0d 0a 0d 0a 09 09 | 69 66 20 28 43 75 72 43 |);......|if (CurC|
|00002020| 6f 72 65 2e 62 46 69 6e | 61 6c 43 6f 72 65 29 0d |ore.bFin|alCore).|
|00002030| 0a 09 09 09 44 72 61 77 | 43 6f 72 65 49 63 6f 6e |....Draw|CoreIcon|
|00002040| 28 20 43 2c 20 43 75 72 | 43 6f 72 65 2e 48 55 44 |( C, Cur|Core.HUD|
|00002050| 4c 6f 63 61 74 69 6f 6e | 2c 20 50 6f 77 65 72 43 |Location|, PowerC|
|00002060| 6f 72 65 41 74 74 61 63 | 6b 61 62 6c 65 28 43 75 |oreAttac|kable(Cu|
|00002070| 72 43 6f 72 65 29 2c 20 | 49 63 6f 6e 53 63 61 6c |rCore), |IconScal|
|00002080| 65 2c 20 48 55 44 53 63 | 61 6c 65 2c 20 43 6f 6c |e, HUDSc|ale, Col|
|00002090| 6f 72 50 65 72 63 65 6e | 74 20 29 3b 0d 0a 09 09 |orPercen|t );....|
|000020a0| 65 6c 73 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 44 72 |else....|{.....Dr|
|000020b0| 61 77 4e 6f 64 65 49 63 | 6f 6e 28 20 43 2c 20 43 |awNodeIc|on( C, C|
|000020c0| 75 72 43 6f 72 65 2e 48 | 55 44 4c 6f 63 61 74 69 |urCore.H|UDLocati|
|000020d0| 6f 6e 2c 20 50 6f 77 65 | 72 43 6f 72 65 41 74 74 |on, Powe|rCoreAtt|
|000020e0| 61 63 6b 61 62 6c 65 28 | 43 75 72 43 6f 72 65 29 |ackable(|CurCore)|
|000020f0| 2c 20 43 75 72 43 6f 72 | 65 2e 43 6f 72 65 53 74 |, CurCor|e.CoreSt|
|00002100| 61 67 65 2c 20 49 63 6f | 6e 53 63 61 6c 65 2c 20 |age, Ico|nScale, |
|00002110| 48 55 44 53 63 61 6c 65 | 2c 20 43 6f 6c 6f 72 50 |HUDScale|, ColorP|
|00002120| 65 72 63 65 6e 74 20 29 | 3b 0d 0a 09 09 09 44 72 |ercent )|;.....Dr|
|00002130| 61 77 4e 6f 64 65 4c 61 | 62 65 6c 28 43 2c 20 43 |awNodeLa|bel(C, C|
|00002140| 75 72 43 6f 72 65 2e 48 | 55 44 4c 6f 63 61 74 69 |urCore.H|UDLocati|
|00002150| 6f 6e 2c 20 49 63 6f 6e | 53 63 61 6c 65 2c 20 48 |on, Icon|Scale, H|
|00002160| 55 44 53 63 61 6c 65 2c | 20 43 2e 44 72 61 77 43 |UDScale,| C.DrawC|
|00002170| 6f 6c 6f 72 2c 20 43 75 | 72 43 6f 72 65 2e 4e 6f |olor, Cu|rCore.No|
|00002180| 64 65 4e 75 6d 29 3b 0d | 0a 09 09 7d 0d 0a 0d 0a |deNum);.|...}....|
|00002190| 09 09 43 75 72 43 6f 72 | 65 20 3d 20 43 75 72 43 |..CurCor|e = CurC|
|000021a0| 6f 72 65 2e 4e 65 78 74 | 43 6f 72 65 3b 0d 0a 0d |ore.Next|Core;...|
|000021b0| 0a 09 7d 20 75 6e 74 69 | 6c 20 28 20 43 75 72 43 |..} unti|l ( CurC|
|000021c0| 6f 72 65 20 3d 3d 20 4e | 6f 6e 65 20 7c 7c 20 43 |ore == N|one || C|
|000021d0| 75 72 43 6f 72 65 20 3d | 3d 20 4e 6f 64 65 20 29 |urCore =|= Node )|
|000021e0| 3b 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 44 72 61 77 |;.... | // Draw|
|000021f0| 20 50 6c 61 79 65 72 49 | 63 6f 6e 0d 0a 20 20 20 | PlayerI|con.. |
|00002200| 20 69 66 20 28 50 61 77 | 6e 4f 77 6e 65 72 20 21 | if (Paw|nOwner !|
|00002210| 3d 20 4e 6f 6e 65 29 0d | 0a 20 20 20 20 09 41 20 |= None).|. .A |
|00002220| 3d 20 50 61 77 6e 4f 77 | 6e 65 72 3b 0d 0a 20 20 |= PawnOw|ner;.. |
|00002230| 20 20 65 6c 73 65 20 69 | 66 20 28 50 6c 61 79 65 | else i|f (Playe|
|00002240| 72 4f 77 6e 65 72 2e 49 | 73 49 6e 53 74 61 74 65 |rOwner.I|sInState|
|00002250| 28 27 53 70 65 63 74 61 | 74 69 6e 67 27 29 29 0d |('Specta|ting')).|
|00002260| 0a 20 20 20 20 20 20 20 | 20 41 20 3d 20 50 6c 61 |. | A = Pla|
|00002270| 79 65 72 4f 77 6e 65 72 | 3b 0d 0a 20 20 20 20 65 |yerOwner|;.. e|
|00002280| 6c 73 65 20 69 66 20 28 | 50 6c 61 79 65 72 4f 77 |lse if (|PlayerOw|
|00002290| 6e 65 72 2e 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 |ner.Pawn| != None|
|000022a0| 29 0d 0a 20 20 20 20 09 | 41 20 3d 20 50 6c 61 79 |).. .|A = Play|
|000022b0| 65 72 4f 77 6e 65 72 2e | 50 61 77 6e 3b 0d 0a 0d |erOwner.|Pawn;...|
|000022c0| 0a 20 20 20 20 69 66 20 | 28 41 20 21 3d 20 4e 6f |. if |(A != No|
|000022d0| 6e 65 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |ne).. | {.. |
|000022e0| 09 50 6c 61 79 65 72 49 | 63 6f 6e 20 3d 20 46 69 |.PlayerI|con = Fi|
|000022f0| 6e 61 6c 42 6c 65 6e 64 | 27 43 75 72 72 65 6e 74 |nalBlend|'Current|
|00002300| 50 6c 61 79 65 72 49 63 | 6f 6e 46 69 6e 61 6c 27 |PlayerIc|onFinal'|
|00002310| 3b 0d 0a 20 20 20 20 09 | 54 65 78 52 6f 74 61 74 |;.. .|TexRotat|
|00002320| 6f 72 28 50 6c 61 79 65 | 72 49 63 6f 6e 2e 4d 61 |or(Playe|rIcon.Ma|
|00002330| 74 65 72 69 61 6c 29 2e | 52 6f 74 61 74 69 6f 6e |terial).|Rotation|
|00002340| 2e 59 61 77 20 3d 20 2d | 41 2e 52 6f 74 61 74 69 |.Yaw = -|A.Rotati|
|00002350| 6f 6e 2e 59 61 77 20 2d | 20 31 36 33 38 34 3b 0d |on.Yaw -| 16384;.|
|00002360| 0a 20 20 20 20 20 20 20 | 20 48 55 44 4c 6f 63 61 |. | HUDLoca|
|00002370| 74 69 6f 6e 20 3d 20 41 | 2e 4c 6f 63 61 74 69 6f |tion = A|.Locatio|
|00002380| 6e 20 2d 20 4d 61 70 43 | 65 6e 74 65 72 3b 0d 0a |n - MapC|enter;..|
|00002390| 20 20 20 20 20 20 20 20 | 48 55 44 4c 6f 63 61 74 | |HUDLocat|
|000023a0| 69 6f 6e 2e 5a 20 3d 20 | 30 3b 0d 0a 20 20 20 20 |ion.Z = |0;.. |
|000023b0| 09 69 66 20 28 48 55 44 | 4c 6f 63 61 74 69 6f 6e |.if (HUD|Location|
|000023c0| 2e 58 20 3c 20 28 52 61 | 64 61 72 52 61 6e 67 65 |.X < (Ra|darRange|
|000023d0| 20 2a 20 30 2e 39 35 29 | 20 26 26 20 48 55 44 4c | * 0.95)| && HUDL|
|000023e0| 6f 63 61 74 69 6f 6e 2e | 59 20 3c 20 28 52 61 64 |ocation.|Y < (Rad|
|000023f0| 61 72 52 61 6e 67 65 20 | 2a 20 30 2e 39 35 29 29 |arRange |* 0.95))|
|00002400| 0d 0a 20 20 20 20 09 7b | 0d 0a 20 20 20 20 20 20 |.. .{|.. |
|00002410| 20 20 09 43 2e 53 65 74 | 50 6f 73 28 20 43 65 6e | .C.Set|Pos( Cen|
|00002420| 74 65 72 50 6f 73 58 20 | 2b 20 48 55 44 4c 6f 63 |terPosX |+ HUDLoc|
|00002430| 61 74 69 6f 6e 2e 58 20 | 2a 20 4d 61 70 53 63 61 |ation.X |* MapSca|
|00002440| 6c 65 20 2d 20 50 6c 61 | 79 65 72 49 63 6f 6e 53 |le - Pla|yerIconS|
|00002450| 69 7a 65 20 2a 20 30 2e | 35 2c 0d 0a 20 20 20 20 |ize * 0.|5,.. |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 43 65 | 6e 74 65 72 50 6f 73 59 | Ce|nterPosY|
|00002480| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002490| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|000024a0| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|000024b0| 2e 35 20 29 3b 0d 0a 0d | 0a 20 20 20 20 20 20 20 |.5 );...|. |
|000024c0| 20 20 20 20 20 43 2e 44 | 72 61 77 43 6f 6c 6f 72 | C.D|rawColor|
|000024d0| 20 3d 20 43 2e 4d 61 6b | 65 43 6f 6c 6f 72 28 34 | = C.Mak|eColor(4|
|000024e0| 30 2c 32 35 35 2c 34 30 | 29 3b 0d 0a 20 20 20 20 |0,255,40|);.. |
|000024f0| 20 20 20 20 20 20 20 20 | 43 2e 44 72 61 77 54 69 | |C.DrawTi|
|00002500| 6c 65 28 50 6c 61 79 65 | 72 49 63 6f 6e 2c 20 50 |le(Playe|rIcon, P|
|00002510| 6c 61 79 65 72 49 63 6f | 6e 53 69 7a 65 2c 20 50 |layerIco|nSize, P|
|00002520| 6c 61 79 65 72 49 63 6f | 6e 53 69 7a 65 2c 20 30 |layerIco|nSize, 0|
|00002530| 2c 20 30 2c 20 36 34 2c | 20 36 34 29 3b 0d 0a 20 |, 0, 64,| 64);.. |
|00002540| 20 20 20 20 20 20 20 7d | 0d 0a 20 20 20 20 7d 0d | }|.. }.|
|00002550| 0a 0d 0a 2f 2f 20 20 20 | 20 2f 2f 20 56 45 52 59 |...// | // VERY|
|00002560| 20 53 4c 4f 57 20 44 45 | 42 55 47 47 49 4e 47 20 | SLOW DE|BUGGING |
|00002570| 43 4f 44 45 20 66 6f 72 | 20 73 68 6f 77 69 6e 67 |CODE for| showing|
|00002580| 20 61 6c 6c 20 74 68 65 | 20 64 79 6e 61 6d 69 63 | all the| dynamic|
|00002590| 20 61 63 74 6f 72 73 20 | 74 68 61 74 20 65 78 69 | actors |that exi|
|000025a0| 73 74 20 69 6e 20 74 68 | 65 20 6c 65 76 65 6c 20 |st in th|e level |
|000025b0| 69 6e 20 72 65 61 6c 2d | 74 69 6d 65 0d 0a 2f 2f |in real-|time..//|
|000025c0| 20 20 20 20 46 6f 72 45 | 61 63 68 20 44 79 6e 61 | ForE|ach Dyna|
|000025d0| 6d 69 63 41 63 74 6f 72 | 73 28 63 6c 61 73 73 27 |micActor|s(class'|
|000025e0| 41 63 74 6f 72 27 2c 20 | 41 29 0d 0a 2f 2f 20 20 |Actor', |A)..// |
|000025f0| 20 20 7b 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 69 | {..// | i|
|00002600| 66 20 28 41 2e 49 73 41 | 28 27 50 72 6f 6a 65 63 |f (A.IsA|('Projec|
|00002610| 74 69 6c 65 27 29 29 20 | 2f 2f 28 41 2e 49 73 41 |tile')) |//(A.IsA|
|00002620| 28 27 50 72 6f 6a 65 63 | 74 6f 72 27 29 20 7c 7c |('Projec|tor') |||
|00002630| 20 41 2e 49 73 41 28 27 | 45 6d 69 74 74 65 72 27 | A.IsA('|Emitter'|
|00002640| 29 20 7c 7c 20 41 2e 49 | 73 41 28 27 78 45 6d 69 |) || A.I|sA('xEmi|
|00002650| 74 74 65 72 27 29 29 0d | 0a 2f 2f 20 20 20 20 20 |tter')).|.// |
|00002660| 20 20 20 7b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 | {..//| |
|00002670| 20 20 20 20 48 55 44 4c | 6f 63 61 74 69 6f 6e 20 | HUDL|ocation |
|00002680| 3d 20 41 2e 4c 6f 63 61 | 74 69 6f 6e 20 2d 20 4d |= A.Loca|tion - M|
|00002690| 61 70 43 65 6e 74 65 72 | 3b 0d 0a 2f 2f 20 20 20 |apCenter|;..// |
|000026a0| 20 20 20 20 20 20 20 20 | 20 48 55 44 4c 6f 63 61 | | HUDLoca|
|000026b0| 74 69 6f 6e 2e 5a 20 3d | 20 30 3b 0d 0a 2f 2f 20 |tion.Z =| 0;..// |
|000026c0| 20 20 20 20 20 20 20 09 | 43 2e 53 65 74 50 6f 73 | .|C.SetPos|
|000026d0| 28 43 65 6e 74 65 72 50 | 6f 73 58 20 2b 20 48 55 |(CenterP|osX + HU|
|000026e0| 44 4c 6f 63 61 74 69 6f | 6e 2e 58 20 2a 20 4d 61 |DLocatio|n.X * Ma|
|000026f0| 70 53 63 61 6c 65 20 2d | 20 50 6c 61 79 65 72 49 |pScale -| PlayerI|
|00002700| 63 6f 6e 53 69 7a 65 20 | 2a 20 30 2e 35 20 2a 20 |conSize |* 0.5 * |
|00002710| 30 2e 32 35 2c 20 43 65 | 6e 74 65 72 50 6f 73 59 |0.25, Ce|nterPosY|
|00002720| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002730| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|00002740| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|00002750| 2e 35 20 2a 20 30 2e 32 | 35 29 3b 0d 0a 2f 2f 20 |.5 * 0.2|5);..// |
|00002760| 20 20 20 20 20 20 20 20 | 20 20 20 43 2e 44 72 61 | | C.Dra|
|00002770| 77 43 6f 6c 6f 72 20 3d | 20 43 2e 4d 61 6b 65 43 |wColor =| C.MakeC|
|00002780| 6f 6c 6f 72 28 32 35 35 | 2c 32 35 35 2c 30 29 3b |olor(255|,255,0);|
|00002790| 0d 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 20 |..// | |
|000027a0| 43 2e 44 72 61 77 54 69 | 6c 65 28 4d 61 74 65 72 |C.DrawTi|le(Mater|
|000027b0| 69 61 6c 27 4e 65 77 48 | 55 44 49 63 6f 6e 73 27 |ial'NewH|UDIcons'|
|000027c0| 2c 20 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |, Player|IconSize|
|000027d0| 20 2a 20 30 2e 32 35 2c | 20 50 6c 61 79 65 72 49 | * 0.25,| PlayerI|
|000027e0| 63 6f 6e 53 69 7a 65 20 | 2a 20 30 2e 32 35 2c 20 |conSize |* 0.25, |
|000027f0| 30 2c 20 30 2c 20 33 32 | 2c 20 33 32 29 3b 0d 0a |0, 0, 32|, 32);..|
|00002800| 2f 2f 20 20 20 20 20 20 | 20 20 7d 0d 0a 2f 2f 20 |// | }..// |
|00002810| 20 20 20 20 20 20 20 69 | 66 20 28 41 2e 49 73 41 | i|f (A.IsA|
|00002820| 28 27 50 61 77 6e 27 29 | 29 0d 0a 2f 2f 20 20 20 |('Pawn')|)..// |
|00002830| 20 20 20 20 20 7b 0d 0a | 2f 2f 20 20 20 20 20 20 | {..|// |
|00002840| 20 20 20 20 20 20 69 66 | 20 28 50 61 77 6e 28 41 | if| (Pawn(A|
|00002850| 29 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |).Player|Replicat|
|00002860| 69 6f 6e 49 6e 66 6f 20 | 21 3d 20 4e 6f 6e 65 20 |ionInfo |!= None |
|00002870| 26 26 20 50 61 77 6e 28 | 41 29 2e 50 6c 61 79 65 |&& Pawn(|A).Playe|
|00002880| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002890| 2e 54 65 61 6d 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Team !=| None)..|
|000028a0| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |// | {.|
|000028b0| 0a 2f 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.// | |
|000028c0| 20 20 20 69 66 20 28 50 | 61 77 6e 28 41 29 2e 50 | if (P|awn(A).P|
|000028d0| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000028e0| 49 6e 66 6f 2e 54 65 61 | 6d 2e 54 65 61 6d 49 6e |Info.Tea|m.TeamIn|
|000028f0| 64 65 78 20 3d 3d 20 30 | 29 0d 0a 2f 2f 20 20 20 |dex == 0|)..// |
|00002900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002910| 20 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 43 | C.DrawC|olor = C|
|00002920| 2e 4d 61 6b 65 43 6f 6c | 6f 72 28 32 35 35 2c 30 |.MakeCol|or(255,0|
|00002930| 2c 30 29 3b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 |,0);..//| |
|00002940| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 | |else if |
|00002950| 28 50 61 77 6e 28 41 29 | 2e 50 6c 61 79 65 72 52 |(Pawn(A)|.PlayerR|
|00002960| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00002970| 65 61 6d 2e 54 65 61 6d | 49 6e 64 65 78 20 3d 3d |eam.Team|Index ==|
|00002980| 20 31 29 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 20 | 1)..// | |
|00002990| 20 20 20 20 20 20 20 20 | 20 20 20 43 2e 44 72 61 | | C.Dra|
|000029a0| 77 43 6f 6c 6f 72 20 3d | 20 43 2e 4d 61 6b 65 43 |wColor =| C.MakeC|
|000029b0| 6f 6c 6f 72 28 30 2c 30 | 2c 32 35 35 29 3b 0d 0a |olor(0,0|,255);..|
|000029c0| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |// | |
|000029d0| 20 20 65 6c 73 65 0d 0a | 2f 2f 20 20 20 20 20 20 | else..|// |
|000029e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 2e | | C.|
|000029f0| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 43 2e 4d 61 |DrawColo|r = C.Ma|
|00002a00| 6b 65 43 6f 6c 6f 72 28 | 32 35 35 2c 30 2c 32 35 |keColor(|255,0,25|
|00002a10| 35 29 3b 0d 0a 2f 2f 20 | 20 20 20 20 20 20 20 20 |5);..// | |
|00002a20| 20 20 20 7d 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 | }..//| |
|00002a30| 20 20 20 20 65 6c 73 65 | 0d 0a 2f 2f 20 20 20 20 | else|..// |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 43 2e 44 72 | | C.Dr|
|00002a50| 61 77 43 6f 6c 6f 72 20 | 3d 20 43 2e 4d 61 6b 65 |awColor |= C.Make|
|00002a60| 43 6f 6c 6f 72 28 32 35 | 35 2c 32 35 35 2c 32 35 |Color(25|5,255,25|
|00002a70| 35 29 3b 0d 0a 2f 2f 0d | 0a 2f 2f 20 20 20 20 20 |5);..//.|.// |
|00002a80| 20 20 20 20 20 20 20 48 | 55 44 4c 6f 63 61 74 69 | H|UDLocati|
|00002a90| 6f 6e 20 3d 20 41 2e 4c | 6f 63 61 74 69 6f 6e 20 |on = A.L|ocation |
|00002aa0| 2d 20 4d 61 70 43 65 6e | 74 65 72 3b 0d 0a 2f 2f |- MapCen|ter;..//|
|00002ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 48 55 44 4c | | HUDL|
|00002ac0| 6f 63 61 74 69 6f 6e 2e | 5a 20 3d 20 30 3b 0d 0a |ocation.|Z = 0;..|
|00002ad0| 2f 2f 0d 0a 2f 2f 20 20 | 20 20 20 20 20 20 20 20 |//..// | |
|00002ae0| 20 20 69 66 20 28 41 2e | 49 73 41 28 27 56 65 68 | if (A.|IsA('Veh|
|00002af0| 69 63 6c 65 27 29 29 0d | 0a 2f 2f 20 20 20 20 20 |icle')).|.// |
|00002b00| 20 20 20 20 20 20 20 7b | 0d 0a 2f 2f 20 20 20 20 | {|..// |
|00002b10| 20 20 20 20 20 20 20 20 | 09 43 2e 53 65 74 50 6f | |.C.SetPo|
|00002b20| 73 28 43 65 6e 74 65 72 | 50 6f 73 58 20 2b 20 48 |s(Center|PosX + H|
|00002b30| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2a 20 4d |UDLocati|on.X * M|
|00002b40| 61 70 53 63 61 6c 65 20 | 2d 20 50 6c 61 79 65 72 |apScale |- Player|
|00002b50| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 35 20 2a |IconSize| * 0.5 *|
|00002b60| 20 30 2e 35 2c 20 43 65 | 6e 74 65 72 50 6f 73 59 | 0.5, Ce|nterPosY|
|00002b70| 20 2b 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 59 | + HUDLo|cation.Y|
|00002b80| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2d 20 50 6c | * MapSc|ale - Pl|
|00002b90| 61 79 65 72 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |ayerIcon|Size * 0|
|00002ba0| 2e 35 20 2a 20 30 2e 35 | 29 3b 0d 0a 2f 2f 20 20 |.5 * 0.5|);..// |
|00002bb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 43 2e | | C.|
|00002bc0| 44 72 61 77 54 69 6c 65 | 28 4d 61 74 65 72 69 61 |DrawTile|(Materia|
|00002bd0| 6c 27 4e 65 77 48 55 44 | 49 63 6f 6e 73 27 2c 20 |l'NewHUD|Icons', |
|00002be0| 50 6c 61 79 65 72 49 63 | 6f 6e 53 69 7a 65 20 2a |PlayerIc|onSize *|
|00002bf0| 20 30 2e 35 2c 20 50 6c | 61 79 65 72 49 63 6f 6e | 0.5, Pl|ayerIcon|
|00002c00| 53 69 7a 65 20 2a 20 30 | 2e 35 2c 20 30 2c 20 30 |Size * 0|.5, 0, 0|
|00002c10| 2c 20 33 32 2c 20 33 32 | 29 3b 0d 0a 2f 2f 20 20 |, 32, 32|);..// |
|00002c20| 20 20 20 20 20 20 20 20 | 20 20 7d 0d 0a 2f 2f 20 | | }..// |
|00002c30| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 73 65 0d | | else.|
|00002c40| 0a 2f 2f 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |.// | {|
|00002c50| 0d 0a 2f 2f 20 20 20 20 | 20 20 20 20 20 20 20 20 |..// | |
|00002c60| 09 43 2e 53 65 74 50 6f | 73 28 43 65 6e 74 65 72 |.C.SetPo|s(Center|
|00002c70| 50 6f 73 58 20 2b 20 48 | 55 44 4c 6f 63 61 74 69 |PosX + H|UDLocati|
|00002c80| 6f 6e 2e 58 20 2a 20 4d | 61 70 53 63 61 6c 65 20 |on.X * M|apScale |
|00002c90| 2d 20 50 6c 61 79 65 72 | 49 63 6f 6e 53 69 7a 65 |- Player|IconSize|
|00002ca0| 20 2a 20 30 2e 35 20 2a | 20 30 2e 32 35 2c 20 43 | * 0.5 *| 0.25, C|
|00002cb0| 65 6e 74 65 72 50 6f 73 | 59 20 2b 20 48 55 44 4c |enterPos|Y + HUDL|
|00002cc0| 6f 63 61 74 69 6f 6e 2e | 59 20 2a 20 4d 61 70 53 |ocation.|Y * MapS|
|00002cd0| 63 61 6c 65 20 2d 20 50 | 6c 61 79 65 72 49 63 6f |cale - P|layerIco|
|00002ce0| 6e 53 69 7a 65 20 2a 20 | 30 2e 35 20 2a 20 30 2e |nSize * |0.5 * 0.|
|00002cf0| 32 35 29 3b 0d 0a 2f 2f | 20 20 20 20 20 20 20 20 |25);..//| |
|00002d00| 20 20 20 20 20 20 20 20 | 43 2e 44 72 61 77 54 69 | |C.DrawTi|
|00002d10| 6c 65 28 4d 61 74 65 72 | 69 61 6c 27 4e 65 77 48 |le(Mater|ial'NewH|
|00002d20| 55 44 49 63 6f 6e 73 27 | 2c 20 50 6c 61 79 65 72 |UDIcons'|, Player|
|00002d30| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 32 35 2c |IconSize| * 0.25,|
|00002d40| 20 50 6c 61 79 65 72 49 | 63 6f 6e 53 69 7a 65 20 | PlayerI|conSize |
|00002d50| 2a 20 30 2e 32 35 2c 20 | 30 2c 20 30 2c 20 33 32 |* 0.25, |0, 0, 32|
|00002d60| 2c 20 33 32 29 3b 0d 0a | 2f 2f 20 20 20 20 20 20 |, 32);..|// |
|00002d70| 20 20 20 20 20 20 7d 0d | 0a 2f 2f 20 20 20 20 20 | }.|.// |
|00002d80| 20 20 20 7d 0d 0a 2f 2f | 20 20 20 20 7d 0d 0a 0d | }..//| }...|
|00002d90| 0a 20 20 20 20 2f 2f 20 | 44 72 61 77 20 42 6f 72 |. // |Draw Bor|
|00002da0| 64 65 72 0d 0a 20 20 20 | 20 43 2e 44 72 61 77 43 |der.. | C.DrawC|
|00002db0| 6f 6c 6f 72 20 3d 20 43 | 2e 4d 61 6b 65 43 6f 6c |olor = C|.MakeCol|
|00002dc0| 6f 72 28 32 30 30 2c 32 | 30 30 2c 32 30 30 29 3b |or(200,2|00,200);|
|00002dd0| 0d 0a 09 43 2e 53 65 74 | 50 6f 73 28 43 65 6e 74 |...C.Set|Pos(Cent|
|00002de0| 65 72 50 6f 73 58 20 2d | 20 52 61 64 61 72 57 69 |erPosX -| RadarWi|
|00002df0| 64 74 68 2c 20 43 65 6e | 74 65 72 50 6f 73 59 20 |dth, Cen|terPosY |
|00002e00| 2d 20 52 61 64 61 72 57 | 69 64 74 68 29 3b 0d 0a |- RadarW|idth);..|
|00002e10| 09 43 2e 44 72 61 77 54 | 69 6c 65 28 42 6f 72 64 |.C.DrawT|ile(Bord|
|00002e20| 65 72 4d 61 74 2c 0d 0a | 20 20 20 20 20 20 20 20 |erMat,..| |
|00002e30| 20 20 20 20 20 20 20 52 | 61 64 61 72 57 69 64 74 | R|adarWidt|
|00002e40| 68 20 2a 20 32 2e 30 2c | 0d 0a 20 20 20 20 20 20 |h * 2.0,|.. |
|00002e50| 20 20 20 20 20 20 20 20 | 20 52 61 64 61 72 57 69 | | RadarWi|
|00002e60| 64 74 68 20 2a 20 32 2e | 30 2c 0d 0a 20 20 20 20 |dth * 2.|0,.. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 30 2c 0d 0a 20 | | 0,.. |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 30 2c | | 0,|
|00002e90| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002ea0| 20 32 35 36 2c 0d 0a 20 | 20 20 20 20 20 20 20 20 | 256,.. | |
|00002eb0| 20 20 20 20 20 20 32 35 | 36 29 3b 0d 0a 0d 0a 20 | 25|6);.... |
|00002ec0| 20 20 20 43 2e 43 6f 6c | 6f 72 4d 6f 64 75 6c 61 | C.Col|orModula|
|00002ed0| 74 65 20 3d 20 53 61 76 | 65 64 4d 6f 64 75 6c 61 |te = Sav|edModula|
|00002ee0| 74 69 6f 6e 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |tion;..}|....func|
|00002ef0| 74 69 6f 6e 20 62 6f 6f | 6c 20 50 6f 77 65 72 43 |tion boo|l PowerC|
|00002f00| 6f 72 65 41 74 74 61 63 | 6b 61 62 6c 65 28 4f 4e |oreAttac|kable(ON|
|00002f10| 53 50 6f 77 65 72 43 6f | 72 65 20 50 43 29 0d 0a |SPowerCo|re PC)..|
|00002f20| 7b 0d 0a 20 20 20 20 69 | 66 20 20 28 50 61 77 6e |{.. i|f (Pawn|
|00002f30| 4f 77 6e 65 72 50 52 49 | 20 21 3d 20 4e 6f 6e 65 |OwnerPRI| != None|
|00002f40| 20 26 26 20 50 61 77 6e | 4f 77 6e 65 72 50 52 49 | && Pawn|OwnerPRI|
|00002f50| 2e 54 65 61 6d 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Team !=| None)..|
|00002f60| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 69 | {.. | i|
|00002f70| 66 20 28 50 43 2e 44 65 | 66 65 6e 64 65 72 54 65 |f (PC.De|fenderTe|
|00002f80| 61 6d 49 6e 64 65 78 20 | 21 3d 20 50 61 77 6e 4f |amIndex |!= PawnO|
|00002f90| 77 6e 65 72 50 52 49 2e | 54 65 61 6d 2e 54 65 61 |wnerPRI.|Team.Tea|
|00002fa0| 6d 49 6e 64 65 78 29 0d | 0a 20 20 20 20 20 20 20 |mIndex).|. |
|00002fb0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 28 50 43 2e | ret|urn (PC.|
|00002fc0| 50 6f 77 65 72 65 64 42 | 79 28 50 61 77 6e 4f 77 |PoweredB|y(PawnOw|
|00002fd0| 6e 65 72 50 52 49 2e 54 | 65 61 6d 2e 54 65 61 6d |nerPRI.T|eam.Team|
|00002fe0| 49 6e 64 65 78 29 29 3b | 0d 0a 20 20 20 20 20 20 |Index));|.. |
|00002ff0| 20 20 65 6c 73 65 0d 0a | 20 20 20 20 20 20 20 20 | else..| |
|00003000| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 69 |{.. | i|
|00003010| 66 20 28 50 61 77 6e 4f | 77 6e 65 72 50 52 49 2e |f (PawnO|wnerPRI.|
|00003020| 54 65 61 6d 2e 54 65 61 | 6d 49 6e 64 65 78 20 3d |Team.Tea|mIndex =|
|00003030| 3d 20 30 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |= 0).. | |
|00003040| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 28 50 43 | re|turn (PC|
|00003050| 2e 50 6f 77 65 72 65 64 | 42 79 28 31 29 29 3b 0d |.Powered|By(1));.|
|00003060| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 73 |. | els|
|00003070| 65 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e.. | |
|00003080| 20 20 20 72 65 74 75 72 | 6e 20 28 50 43 2e 50 6f | retur|n (PC.Po|
|00003090| 77 65 72 65 64 42 79 28 | 30 29 29 3b 0d 0a 20 20 |weredBy(|0));.. |
|000030a0| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 7d 0d 0a | }.|. }..|
|000030b0| 0d 0a 20 20 20 20 72 65 | 74 75 72 6e 20 46 61 6c |.. re|turn Fal|
|000030c0| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |se;..}..|..simula|
|000030d0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 53 68 6f |ted func|tion Sho|
|000030e0| 77 54 65 61 6d 53 63 6f | 72 65 50 61 73 73 41 28 |wTeamSco|rePassA(|
|000030f0| 43 61 6e 76 61 73 20 43 | 29 0d 0a 7b 0d 0a 09 6c |Canvas C|)..{...l|
|00003100| 6f 63 61 6c 20 69 6e 74 | 20 78 3b 0d 0a 0d 0a 09 |ocal int| x;.....|
|00003110| 53 75 70 65 72 2e 53 68 | 6f 77 54 65 61 6d 53 63 |Super.Sh|owTeamSc|
|00003120| 6f 72 65 50 61 73 73 41 | 28 43 29 3b 0d 0a 0d 0a |orePassA|(C);....|
|00003130| 09 69 66 20 28 62 53 68 | 6f 77 50 6f 69 6e 74 73 |.if (bSh|owPoints|
|00003140| 29 0d 0a 09 09 66 6f 72 | 20 28 78 20 3d 20 30 3b |)....for| (x = 0;|
|00003150| 20 78 20 3c 20 32 3b 20 | 78 2b 2b 29 0d 0a 09 09 | x < 2; |x++)....|
|00003160| 7b 0d 0a 09 09 09 44 72 | 61 77 53 70 72 69 74 65 |{.....Dr|awSprite|
|00003170| 57 69 64 67 65 74 20 28 | 43 2c 20 53 79 6d 62 6f |Widget (|C, Symbo|
|00003180| 6c 47 42 5b 78 5d 29 3b | 0d 0a 0d 0a 09 09 09 69 |lGB[x]);|.......i|
|00003190| 66 20 28 46 69 6e 61 6c | 43 6f 72 65 5b 78 5d 20 |f (Final|Core[x] |
|000031a0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 46 69 6e 61 6c |!= None |&& Final|
|000031b0| 43 6f 72 65 5b 78 5d 2e | 43 6f 72 65 53 74 61 67 |Core[x].|CoreStag|
|000031c0| 65 20 3d 3d 20 30 29 0d | 0a 09 09 09 7b 0d 0a 09 |e == 0).|....{...|
|000031d0| 09 09 09 44 72 61 77 53 | 70 72 69 74 65 57 69 64 |...DrawS|priteWid|
|000031e0| 67 65 74 20 28 43 2c 20 | 43 6f 72 65 57 69 64 67 |get (C, |CoreWidg|
|000031f0| 65 74 73 5b 78 5d 29 3b | 0d 0a 0d 0a 09 09 09 09 |ets[x]);|........|
|00003200| 69 66 20 28 46 69 6e 61 | 6c 43 6f 72 65 5b 78 5d |if (Fina|lCore[x]|
|00003210| 2e 62 55 6e 64 65 72 41 | 74 74 61 63 6b 29 0d 0a |.bUnderA|ttack)..|
|00003220| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 43 6f 72 65 |....{...|....Core|
|00003230| 48 65 61 6c 74 68 57 69 | 64 67 65 74 73 5b 78 5d |HealthWi|dgets[x]|
|00003240| 2e 54 69 6e 74 73 5b 54 | 65 61 6d 49 6e 64 65 78 |.Tints[T|eamIndex|
|00003250| 5d 2e 47 20 3d 20 32 35 | 35 20 2a 20 43 6f 6c 6f |].G = 25|5 * Colo|
|00003260| 72 50 65 72 63 65 6e 74 | 3b 0d 0a 09 09 09 09 09 |rPercent|;.......|
|00003270| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003280| 73 5b 78 5d 2e 54 69 6e | 74 73 5b 54 65 61 6d 49 |s[x].Tin|ts[TeamI|
|00003290| 6e 64 65 78 5d 2e 42 20 | 3d 20 32 35 35 20 2a 20 |ndex].B |= 255 * |
|000032a0| 43 6f 6c 6f 72 50 65 72 | 63 65 6e 74 3b 0d 0a 09 |ColorPer|cent;...|
|000032b0| 09 09 09 7d 0d 0a 09 09 | 09 09 65 6c 73 65 0d 0a |...}....|..else..|
|000032c0| 09 09 09 09 09 43 6f 72 | 65 48 65 61 6c 74 68 57 |.....Cor|eHealthW|
|000032d0| 69 64 67 65 74 73 5b 78 | 5d 2e 54 69 6e 74 73 5b |idgets[x|].Tints[|
|000032e0| 54 65 61 6d 49 6e 64 65 | 78 5d 20 3d 20 57 68 69 |TeamInde|x] = Whi|
|000032f0| 74 65 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 09 09 09 09 |teColor;|........|
|00003300| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003310| 73 5b 78 5d 2e 56 61 6c | 75 65 20 3d 20 72 6f 75 |s[x].Val|ue = rou|
|00003320| 6e 64 28 28 66 6c 6f 61 | 74 28 46 69 6e 61 6c 43 |nd((floa|t(FinalC|
|00003330| 6f 72 65 5b 78 5d 2e 48 | 65 61 6c 74 68 29 20 2f |ore[x].H|ealth) /|
|00003340| 20 46 69 6e 61 6c 43 6f | 72 65 5b 78 5d 2e 44 61 | FinalCo|re[x].Da|
|00003350| 6d 61 67 65 43 61 70 61 | 63 69 74 79 29 20 2a 20 |mageCapa|city) * |
|00003360| 31 30 30 29 3b 0d 0a 09 | 09 09 09 44 72 61 77 4e |100);...|...DrawN|
|00003370| 75 6d 65 72 69 63 57 69 | 64 67 65 74 28 43 2c 20 |umericWi|dget(C, |
|00003380| 43 6f 72 65 48 65 61 6c | 74 68 57 69 64 67 65 74 |CoreHeal|thWidget|
|00003390| 73 5b 78 5d 2c 20 44 69 | 67 69 74 73 42 69 67 29 |s[x], Di|gitsBig)|
|000033a0| 3b 0d 0a 0d 0a 09 09 09 | 09 2f 2f 43 2e 44 72 61 |;.......|.//C.Dra|
|000033b0| 77 43 6f 6c 6f 72 20 3d | 20 48 75 64 43 6f 6c 6f |wColor =| HudColo|
|000033c0| 72 48 69 67 68 4c 69 67 | 68 74 3b 0d 0a 09 09 09 |rHighLig|ht;.....|
|000033d0| 09 2f 2f 44 72 61 77 32 | 44 4c 6f 63 61 74 69 6f |.//Draw2|DLocatio|
|000033e0| 6e 44 6f 74 28 43 2c 20 | 46 69 6e 61 6c 43 6f 72 |nDot(C, |FinalCor|
|000033f0| 65 5b 78 5d 2e 4c 6f 63 | 61 74 69 6f 6e 2c 30 2e |e[x].Loc|ation,0.|
|00003400| 35 20 2b 20 74 6d 70 50 | 6f 73 58 5b 78 5d 2a 48 |5 + tmpP|osX[x]*H|
|00003410| 55 44 53 63 61 6c 65 2c | 20 74 6d 70 50 6f 73 59 |UDScale,| tmpPosY|
|00003420| 2a 48 55 44 53 63 61 6c | 65 2c 20 74 6d 70 53 63 |*HUDScal|e, tmpSc|
|00003430| 61 6c 65 58 2a 48 55 44 | 53 63 61 6c 65 2c 20 74 |aleX*HUD|Scale, t|
|00003440| 6d 70 53 63 61 6c 65 59 | 2a 48 55 44 53 63 61 6c |mpScaleY|*HUDScal|
|00003450| 65 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |e);.....|}....}..|
|00003460| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00003470| 75 6e 63 74 69 6f 6e 20 | 53 68 6f 77 54 65 61 6d |unction |ShowTeam|
|00003480| 53 63 6f 72 65 50 61 73 | 73 43 28 43 61 6e 76 61 |ScorePas|sC(Canva|
|00003490| 73 20 43 29 0d 0a 7b 0d | 0a 20 20 20 20 6c 6f 63 |s C)..{.|. loc|
|000034a0| 61 6c 20 66 6c 6f 61 74 | 20 52 61 64 61 72 57 69 |al float| RadarWi|
|000034b0| 64 74 68 2c 20 43 65 6e | 74 65 72 52 61 64 61 72 |dth, Cen|terRadar|
|000034c0| 50 6f 73 58 2c 20 43 65 | 6e 74 65 72 52 61 64 61 |PosX, Ce|nterRada|
|000034d0| 72 50 6f 73 59 3b 0d 0a | 0d 0a 20 20 20 20 69 66 |rPosY;..|.. if|
|000034e0| 20 28 4c 65 76 65 6c 2e | 62 53 68 6f 77 52 61 64 | (Level.|bShowRad|
|000034f0| 61 72 4d 61 70 20 26 26 | 20 21 62 4d 61 70 44 69 |arMap &&| !bMapDi|
|00003500| 73 61 62 6c 65 64 29 0d | 0a 20 20 20 20 7b 0d 0a |sabled).|. {..|
|00003510| 20 20 20 20 20 20 20 20 | 52 61 64 61 72 57 69 64 | |RadarWid|
|00003520| 74 68 20 3d 20 30 2e 35 | 20 2a 20 52 61 64 61 72 |th = 0.5| * Radar|
|00003530| 53 63 61 6c 65 20 2a 20 | 48 55 44 53 63 61 6c 65 |Scale * |HUDScale|
|00003540| 20 2a 20 43 2e 43 6c 69 | 70 58 3b 0d 0a 20 20 20 | * C.Cli|pX;.. |
|00003550| 20 20 20 20 20 43 65 6e | 74 65 72 52 61 64 61 72 | Cen|terRadar|
|00003560| 50 6f 73 58 20 3d 20 28 | 52 61 64 61 72 50 6f 73 |PosX = (|RadarPos|
|00003570| 58 20 2a 20 43 2e 43 6c | 69 70 58 29 20 2d 20 52 |X * C.Cl|ipX) - R|
|00003580| 61 64 61 72 57 69 64 74 | 68 3b 0d 0a 20 20 20 20 |adarWidt|h;.. |
|00003590| 20 20 20 20 43 65 6e 74 | 65 72 52 61 64 61 72 50 | Cent|erRadarP|
|000035a0| 6f 73 59 20 3d 20 28 52 | 61 64 61 72 50 6f 73 59 |osY = (R|adarPosY|
|000035b0| 20 2a 20 43 2e 43 6c 69 | 70 59 29 20 2b 20 52 61 | * C.Cli|pY) + Ra|
|000035c0| 64 61 72 57 69 64 74 68 | 3b 0d 0a 20 20 20 20 20 |darWidth|;.. |
|000035d0| 20 20 20 44 72 61 77 52 | 61 64 61 72 4d 61 70 28 | DrawR|adarMap(|
|000035e0| 43 2c 20 43 65 6e 74 65 | 72 52 61 64 61 72 50 6f |C, Cente|rRadarPo|
|000035f0| 73 58 2c 20 43 65 6e 74 | 65 72 52 61 64 61 72 50 |sX, Cent|erRadarP|
|00003600| 6f 73 59 2c 20 52 61 64 | 61 72 57 69 64 74 68 2c |osY, Rad|arWidth,|
|00003610| 20 66 61 6c 73 65 29 3b | 0d 0a 20 20 20 20 7d 0d | false);|.. }.|
|00003620| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00003630| 66 75 6e 63 74 69 6f 6e | 20 44 72 61 77 4e 6f 64 |function| DrawNod|
|00003640| 65 4c 61 62 65 6c 28 43 | 61 6e 76 61 73 20 43 2c |eLabel(C|anvas C,|
|00003650| 20 76 65 63 74 6f 72 20 | 48 55 44 4c 6f 63 61 74 | vector |HUDLocat|
|00003660| 69 6f 6e 2c 20 66 6c 6f | 61 74 20 49 63 6f 6e 53 |ion, flo|at IconS|
|00003670| 63 61 6c 69 6e 67 2c 20 | 66 6c 6f 61 74 20 48 55 |caling, |float HU|
|00003680| 44 53 63 61 6c 69 6e 67 | 2c 20 43 6f 6c 6f 72 20 |DScaling|, Color |
|00003690| 4c 61 62 65 6c 43 6f 6c | 6f 72 2c 20 69 6e 74 20 |LabelCol|or, int |
|000036a0| 4e 75 6d 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Num)..{.|..local |
|000036b0| 66 6c 6f 61 74 20 4c 61 | 62 65 6c 49 63 6f 6e 53 |float La|belIconS|
|000036c0| 69 7a 65 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |ize;...l|ocal int|
|000036d0| 20 54 65 6e 73 50 6c 61 | 63 65 2c 72 6f 77 2c 63 | TensPla|ce,row,c|
|000036e0| 6f 6c 3b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |ol;...lo|cal floa|
|000036f0| 74 20 78 2c 79 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |t x,y;..|...if ( |
|00003700| 43 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 4e 75 6d |C == Non|e || Num|
|00003710| 20 3e 3d 20 31 30 30 29 | 0d 0a 09 09 72 65 74 75 | >= 100)|....retu|
|00003720| 72 6e 3b 0d 0a 0d 0a 09 | 4c 61 62 65 6c 49 63 6f |rn;.....|LabelIco|
|00003730| 6e 53 69 7a 65 20 3d 20 | 49 63 6f 6e 53 63 61 6c |nSize = |IconScal|
|00003740| 69 6e 67 20 2a 20 31 36 | 20 2a 20 43 2e 43 6c 69 |ing * 16| * C.Cli|
|00003750| 70 58 20 2a 20 48 55 44 | 53 63 61 6c 69 6e 67 2f |pX * HUD|Scaling/|
|00003760| 31 36 30 30 3b 0d 0a 20 | 20 20 20 43 2e 44 72 61 |1600;.. | C.Dra|
|00003770| 77 43 6f 6c 6f 72 20 3d | 20 57 68 69 74 65 43 6f |wColor =| WhiteCo|
|00003780| 6c 6f 72 3b 0d 0a 0d 0a | 09 69 66 20 28 4e 75 6d |lor;....|.if (Num|
|00003790| 20 3e 20 39 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 | > 9).. | {.. |
|000037a0| 20 20 20 20 20 20 54 65 | 6e 73 50 6c 61 63 65 20 | Te|nsPlace |
|000037b0| 3d 20 4e 75 6d 20 2f 20 | 31 30 3b 0d 0a 20 20 20 |= Num / |10;.. |
|000037c0| 20 20 20 20 20 4e 75 6d | 20 3d 20 4e 75 6d 20 2d | Num| = Num -|
|000037d0| 20 28 54 65 6e 73 50 6c | 61 63 65 20 2a 20 31 30 | (TensPl|ace * 10|
|000037e0| 29 3b 0d 0a 0d 0a 09 09 | 58 20 3d 20 48 55 44 4c |);......|X = HUDL|
|000037f0| 6f 63 61 74 69 6f 6e 2e | 58 20 2d 20 28 31 2e 35 |ocation.|X - (1.5|
|00003800| 20 2a 20 4c 61 62 65 6c | 49 63 6f 6e 53 69 7a 65 | * Label|IconSize|
|00003810| 20 2a 20 31 2e 35 29 3b | 0d 0a 09 09 59 20 3d 20 | * 1.5);|....Y = |
|00003820| 48 55 44 4c 6f 63 61 74 | 69 6f 6e 2e 59 20 2d 20 |HUDLocat|ion.Y - |
|00003830| 4c 61 62 65 6c 49 63 6f | 6e 53 69 7a 65 20 2a 20 |LabelIco|nSize * |
|00003840| 31 2e 35 3b 0d 0a 09 09 | 43 2e 53 65 74 44 72 61 |1.5;....|C.SetDra|
|00003850| 77 43 6f 6c 6f 72 28 30 | 2c 30 2c 30 2c 32 35 35 |wColor(0|,0,0,255|
|00003860| 29 3b 0d 0a 09 09 66 6f | 72 20 28 52 6f 77 3d 2d |);....fo|r (Row=-|
|00003870| 31 3b 52 6f 77 3c 32 3b | 52 6f 77 2b 2b 29 0d 0a |1;Row<2;|Row++)..|
|00003880| 09 09 7b 0d 0a 09 09 09 | 66 6f 72 20 28 43 6f 6c |..{.....|for (Col|
|00003890| 3d 2d 31 3b 43 6f 6c 3c | 32 3b 43 6f 6c 2b 2b 29 |=-1;Col<|2;Col++)|
|000038a0| 0d 0a 09 09 09 7b 0d 0a | 09 09 20 20 20 20 20 20 |.....{..|.. |
|000038b0| 20 20 43 2e 53 65 74 50 | 6f 73 28 58 2b 43 6f 6c | C.SetP|os(X+Col|
|000038c0| 2c 59 2b 52 6f 77 20 29 | 3b 0d 0a 09 09 20 20 20 |,Y+Row )|;.... |
|000038d0| 20 20 20 20 20 43 2e 44 | 72 61 77 54 69 6c 65 28 | C.D|rawTile(|
|000038e0| 44 69 67 69 74 73 42 69 | 67 2e 44 69 67 69 74 54 |DigitsBi|g.DigitT|
|000038f0| 65 78 74 75 72 65 2c 20 | 4c 61 62 65 6c 49 63 6f |exture, |LabelIco|
|00003900| 6e 53 69 7a 65 2c 20 4c | 61 62 65 6c 49 63 6f 6e |nSize, L|abelIcon|
|00003910| 53 69 7a 65 2c 20 44 69 | 67 69 74 73 42 69 67 2e |Size, Di|gitsBig.|
|00003920| 54 65 78 74 75 72 65 43 | 6f 6f 72 64 73 5b 54 65 |TextureC|oords[Te|
|00003930| 6e 73 50 6c 61 63 65 5d | 2e 58 31 2c 20 44 69 67 |nsPlace]|.X1, Dig|
|00003940| 69 74 73 42 69 67 2e 54 | 65 78 74 75 72 65 43 6f |itsBig.T|extureCo|
|00003950| 6f 72 64 73 5b 54 65 6e | 73 50 6c 61 63 65 5d 2e |ords[Ten|sPlace].|
|00003960| 59 31 2c 20 44 69 67 69 | 74 73 42 69 67 2e 54 65 |Y1, Digi|tsBig.Te|
|00003970| 78 74 75 72 65 43 6f 6f | 72 64 73 5b 30 5d 2e 58 |xtureCoo|rds[0].X|
|00003980| 32 2c 20 44 69 67 69 74 | 73 42 69 67 2e 54 65 78 |2, Digit|sBig.Tex|
|00003990| 74 75 72 65 43 6f 6f 72 | 64 73 5b 30 5d 2e 59 32 |tureCoor|ds[0].Y2|
|000039a0| 29 3b 0d 0a 09 09 20 20 | 20 20 7d 0d 0a 09 09 7d |);.... | }....}|
|000039b0| 0d 0a 0d 0a 09 09 43 2e | 53 65 74 44 72 61 77 43 |......C.|SetDrawC|
|000039c0| 6f 6c 6f 72 28 32 35 35 | 2c 32 35 35 2c 30 2c 32 |olor(255|,255,0,2|
|000039d0| 35 35 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 43 2e |55);.. | C.|
|000039e0| 53 65 74 50 6f 73 28 58 | 2c 59 29 3b 0d 0a 20 20 |SetPos(X|,Y);.. |
|000039f0| 20 20 20 20 20 20 43 2e | 44 72 61 77 54 69 6c 65 | C.|DrawTile|
|00003a00| 28 44 69 67 69 74 73 42 | 69 67 2e 44 69 67 69 74 |(DigitsB|ig.Digit|
|00003a10| 54 65 78 74 75 72 65 2c | 20 4c 61 62 65 6c 49 63 |Texture,| LabelIc|
|00003a20| 6f 6e 53 69 7a 65 2c 20 | 4c 61 62 65 6c 49 63 6f |onSize, |LabelIco|
|00003a30| 6e 53 69 7a 65 2c 20 44 | 69 67 69 74 73 42 69 67 |nSize, D|igitsBig|
|00003a40| 2e 54 65 78 74 75 72 65 | 43 6f 6f 72 64 73 5b 54 |.Texture|Coords[T|
|00003a50| 65 6e 73 50 6c 61 63 65 | 5d 2e 58 31 2c 20 44 69 |ensPlace|].X1, Di|
|00003a60| 67 69 74 73 42 69 67 2e | 54 65 78 74 75 72 65 43 |gitsBig.|TextureC|
|00003a70| 6f 6f 72 64 73 5b 54 65 | 6e 73 50 6c 61 63 65 5d |oords[Te|nsPlace]|
|00003a80| 2e 59 31 2c 20 44 69 67 | 69 74 73 42 69 67 2e 54 |.Y1, Dig|itsBig.T|
|00003a90| 65 78 74 75 72 65 43 6f | 6f 72 64 73 5b 30 5d 2e |extureCo|ords[0].|
|00003aa0| 58 32 2c 20 44 69 67 69 | 74 73 42 69 67 2e 54 65 |X2, Digi|tsBig.Te|
|00003ab0| 78 74 75 72 65 43 6f 6f | 72 64 73 5b 30 5d 2e 59 |xtureCoo|rds[0].Y|
|00003ac0| 32 29 3b 0d 0a 20 20 20 | 20 7d 0d 0a 0d 0a 09 58 |2);.. | }.....X|
|00003ad0| 20 3d 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2e 58 | = HUDLo|cation.X|
|00003ae0| 20 2d 20 4c 61 62 65 6c | 49 63 6f 6e 53 69 7a 65 | - Label|IconSize|
|00003af0| 20 2a 20 31 2e 35 3b 0d | 0a 09 59 20 3d 20 48 55 | * 1.5;.|..Y = HU|
|00003b00| 44 4c 6f 63 61 74 69 6f | 6e 2e 59 20 2d 20 4c 61 |DLocatio|n.Y - La|
|00003b10| 62 65 6c 49 63 6f 6e 53 | 69 7a 65 20 2a 20 31 2e |belIconS|ize * 1.|
|00003b20| 35 3b 0d 0a 0d 0a 09 43 | 2e 53 65 74 44 72 61 77 |5;.....C|.SetDraw|
|00003b30| 43 6f 6c 6f 72 28 30 2c | 30 2c 30 2c 32 35 35 29 |Color(0,|0,0,255)|
|00003b40| 3b 0d 0a 09 66 6f 72 20 | 28 52 6f 77 3d 2d 31 3b |;...for |(Row=-1;|
|00003b50| 52 6f 77 3c 32 3b 52 6f | 77 2b 2b 29 0d 0a 09 7b |Row<2;Ro|w++)...{|
|00003b60| 0d 0a 09 09 66 6f 72 20 | 28 43 6f 6c 3d 2d 31 3b |....for |(Col=-1;|
|00003b70| 43 6f 6c 3c 32 3b 43 6f | 6c 2b 2b 29 0d 0a 09 09 |Col<2;Co|l++)....|
|00003b80| 7b 0d 0a 09 09 20 20 20 | 20 43 2e 53 65 74 50 6f |{.... | C.SetPo|
|00003b90| 73 28 78 2b 43 6f 6c 2c | 79 2b 52 6f 77 29 3b 0d |s(x+Col,|y+Row);.|
|00003ba0| 0a 09 09 20 20 20 20 43 | 2e 44 72 61 77 54 69 6c |... C|.DrawTil|
|00003bb0| 65 28 44 69 67 69 74 73 | 42 69 67 2e 44 69 67 69 |e(Digits|Big.Digi|
|00003bc0| 74 54 65 78 74 75 72 65 | 2c 20 4c 61 62 65 6c 49 |tTexture|, LabelI|
|00003bd0| 63 6f 6e 53 69 7a 65 2c | 20 4c 61 62 65 6c 49 63 |conSize,| LabelIc|
|00003be0| 6f 6e 53 69 7a 65 2c 20 | 44 69 67 69 74 73 42 69 |onSize, |DigitsBi|
|00003bf0| 67 2e 54 65 78 74 75 72 | 65 43 6f 6f 72 64 73 5b |g.Textur|eCoords[|
|00003c00| 4e 75 6d 5d 2e 58 31 2c | 20 44 69 67 69 74 73 42 |Num].X1,| DigitsB|
|00003c10| 69 67 2e 54 65 78 74 75 | 72 65 43 6f 6f 72 64 73 |ig.Textu|reCoords|
|00003c20| 5b 4e 75 6d 5d 2e 59 31 | 2c 20 44 69 67 69 74 73 |[Num].Y1|, Digits|
|00003c30| 42 69 67 2e 54 65 78 74 | 75 72 65 43 6f 6f 72 64 |Big.Text|ureCoord|
|00003c40| 73 5b 30 5d 2e 58 32 2c | 20 44 69 67 69 74 73 42 |s[0].X2,| DigitsB|
|00003c50| 69 67 2e 54 65 78 74 75 | 72 65 43 6f 6f 72 64 73 |ig.Textu|reCoords|
|00003c60| 5b 30 5d 2e 59 32 29 3b | 0d 0a 09 09 7d 0d 0a 09 |[0].Y2);|....}...|
|00003c70| 7d 0d 0a 09 43 2e 53 65 | 74 44 72 61 77 43 6f 6c |}...C.Se|tDrawCol|
|00003c80| 6f 72 28 32 35 35 2c 32 | 35 35 2c 30 2c 32 35 35 |or(255,2|55,0,255|
|00003c90| 29 3b 0d 0a 20 20 20 20 | 43 2e 53 65 74 50 6f 73 |);.. |C.SetPos|
|00003ca0| 28 78 2c 79 29 3b 0d 0a | 20 20 20 20 43 2e 44 72 |(x,y);..| C.Dr|
|00003cb0| 61 77 54 69 6c 65 28 44 | 69 67 69 74 73 42 69 67 |awTile(D|igitsBig|
|00003cc0| 2e 44 69 67 69 74 54 65 | 78 74 75 72 65 2c 20 4c |.DigitTe|xture, L|
|00003cd0| 61 62 65 6c 49 63 6f 6e | 53 69 7a 65 2c 20 4c 61 |abelIcon|Size, La|
|00003ce0| 62 65 6c 49 63 6f 6e 53 | 69 7a 65 2c 20 44 69 67 |belIconS|ize, Dig|
|00003cf0| 69 74 73 42 69 67 2e 54 | 65 78 74 75 72 65 43 6f |itsBig.T|extureCo|
|00003d00| 6f 72 64 73 5b 4e 75 6d | 5d 2e 58 31 2c 20 44 69 |ords[Num|].X1, Di|
|00003d10| 67 69 74 73 42 69 67 2e | 54 65 78 74 75 72 65 43 |gitsBig.|TextureC|
|00003d20| 6f 6f 72 64 73 5b 4e 75 | 6d 5d 2e 59 31 2c 20 44 |oords[Nu|m].Y1, D|
|00003d30| 69 67 69 74 73 42 69 67 | 2e 54 65 78 74 75 72 65 |igitsBig|.Texture|
|00003d40| 43 6f 6f 72 64 73 5b 30 | 5d 2e 58 32 2c 20 44 69 |Coords[0|].X2, Di|
|00003d50| 67 69 74 73 42 69 67 2e | 54 65 78 74 75 72 65 43 |gitsBig.|TextureC|
|00003d60| 6f 6f 72 64 73 5b 30 5d | 2e 59 32 29 3b 0d 0a 0d |oords[0]|.Y2);...|
|00003d70| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00003d80| 66 75 6e 63 74 69 6f 6e | 20 44 72 61 77 48 65 61 |function| DrawHea|
|00003d90| 6c 74 68 42 61 72 28 43 | 61 6e 76 61 73 20 43 2c |lthBar(C|anvas C,|
|00003da0| 20 41 63 74 6f 72 20 41 | 2c 20 69 6e 74 20 48 65 | Actor A|, int He|
|00003db0| 61 6c 74 68 2c 20 69 6e | 74 20 4d 61 78 48 65 61 |alth, in|t MaxHea|
|00003dc0| 6c 74 68 2c 20 66 6c 6f | 61 74 20 48 65 69 67 68 |lth, flo|at Heigh|
|00003dd0| 74 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 76 65 |t)..{...|local ve|
|00003de0| 63 74 6f 72 09 09 43 61 | 6d 65 72 61 4c 6f 63 61 |ctor..Ca|meraLoca|
|00003df0| 74 69 6f 6e 2c 20 43 61 | 6d 44 69 72 2c 20 54 61 |tion, Ca|mDir, Ta|
|00003e00| 72 67 65 74 4c 6f 63 61 | 74 69 6f 6e 2c 20 48 42 |rgetLoca|tion, HB|
|00003e10| 53 63 72 65 65 6e 50 6f | 73 3b 0d 0a 09 6c 6f 63 |ScreenPo|s;...loc|
|00003e20| 61 6c 20 72 6f 74 61 74 | 6f 72 09 09 43 61 6d 65 |al rotat|or..Came|
|00003e30| 72 61 52 6f 74 61 74 69 | 6f 6e 3b 0d 0a 09 6c 6f |raRotati|on;...lo|
|00003e40| 63 61 6c 20 66 6c 6f 61 | 74 09 09 09 44 69 73 74 |cal floa|t...Dist|
|00003e50| 2c 20 48 65 61 6c 74 68 | 50 63 74 3b 0d 0a 09 6c |, Health|Pct;...l|
|00003e60| 6f 63 61 6c 20 63 6f 6c | 6f 72 20 20 20 20 20 20 |ocal col|or |
|00003e70| 20 20 20 4f 6c 64 44 72 | 61 77 43 6f 6c 6f 72 3b | OldDr|awColor;|
|00003e80| 0d 0a 0d 0a 09 2f 2f 20 | 72 6a 70 20 2d 2d 20 20 |.....// |rjp -- |
|00003e90| 64 6f 6e 27 74 20 64 72 | 61 77 20 74 68 65 20 68 |don't dr|aw the h|
|00003ea0| 65 61 6c 74 68 20 62 61 | 72 20 69 66 20 6d 65 6e |ealth ba|r if men|
|00003eb0| 75 73 20 61 72 65 20 6f | 70 65 6e 0d 0a 09 69 66 |us are o|pen...if|
|00003ec0| 20 28 20 50 6c 61 79 65 | 72 4f 77 6e 65 72 2e 50 | ( Playe|rOwner.P|
|00003ed0| 6c 61 79 65 72 2e 47 55 | 49 43 6f 6e 74 72 6f 6c |layer.GU|IControl|
|00003ee0| 6c 65 72 2e 62 41 63 74 | 69 76 65 20 29 0d 0a 09 |ler.bAct|ive )...|
|00003ef0| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 4f 6c 64 |.return;|.....Old|
|00003f00| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 43 2e 44 72 |DrawColo|r = C.Dr|
|00003f10| 61 77 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 09 43 2e 47 |awColor;|.....C.G|
|00003f20| 65 74 43 61 6d 65 72 61 | 4c 6f 63 61 74 69 6f 6e |etCamera|Location|
|00003f30| 28 20 43 61 6d 65 72 61 | 4c 6f 63 61 74 69 6f 6e |( Camera|Location|
|00003f40| 2c 20 43 61 6d 65 72 61 | 52 6f 74 61 74 69 6f 6e |, Camera|Rotation|
|00003f50| 20 29 3b 0d 0a 09 54 61 | 72 67 65 74 4c 6f 63 61 | );...Ta|rgetLoca|
|00003f60| 74 69 6f 6e 20 3d 20 41 | 2e 4c 6f 63 61 74 69 6f |tion = A|.Locatio|
|00003f70| 6e 20 2b 20 76 65 63 74 | 28 30 2c 30 2c 31 29 20 |n + vect|(0,0,1) |
|00003f80| 2a 20 48 65 69 67 68 74 | 3b 0d 0a 09 44 69 73 74 |* Height|;...Dist|
|00003f90| 20 3d 20 56 53 69 7a 65 | 28 54 61 72 67 65 74 4c | = VSize|(TargetL|
|00003fa0| 6f 63 61 74 69 6f 6e 20 | 2d 20 43 61 6d 65 72 61 |ocation |- Camera|
|00003fb0| 4c 6f 63 61 74 69 6f 6e | 29 3b 0d 0a 0d 0a 09 2f |Location|);...../|
|00003fc0| 2f 20 43 68 65 63 6b 20 | 44 69 73 74 61 6e 63 65 |/ Check |Distance|
|00003fd0| 20 54 68 72 65 73 68 6f | 6c 64 0d 0a 09 69 66 20 | Thresho|ld...if |
|00003fe0| 28 44 69 73 74 20 3e 20 | 48 65 61 6c 74 68 42 61 |(Dist > |HealthBa|
|00003ff0| 72 56 69 65 77 44 69 73 | 74 29 0d 0a 09 09 72 65 |rViewDis|t)....re|
|00004000| 74 75 72 6e 3b 0d 0a 0d | 0a 09 43 61 6d 44 69 72 |turn;...|..CamDir|
|00004010| 09 3d 20 76 65 63 74 6f | 72 28 43 61 6d 65 72 61 |.= vecto|r(Camera|
|00004020| 52 6f 74 61 74 69 6f 6e | 29 3b 0d 0a 0d 0a 09 2f |Rotation|);...../|
|00004030| 2f 20 54 61 72 67 65 74 | 20 69 73 20 6c 6f 63 61 |/ Target| is loca|
|00004040| 74 65 64 20 62 65 68 69 | 6e 64 20 63 61 6d 65 72 |ted behi|nd camer|
|00004050| 61 0d 0a 09 48 42 53 63 | 72 65 65 6e 50 6f 73 20 |a...HBSc|reenPos |
|00004060| 3d 20 43 2e 57 6f 72 6c | 64 54 6f 53 63 72 65 65 |= C.Worl|dToScree|
|00004070| 6e 28 54 61 72 67 65 74 | 4c 6f 63 61 74 69 6f 6e |n(Target|Location|
|00004080| 29 3b 0d 0a 09 69 66 20 | 28 28 54 61 72 67 65 74 |);...if |((Target|
|00004090| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 43 61 6d 65 72 |Location| - Camer|
|000040a0| 61 4c 6f 63 61 74 69 6f | 6e 29 20 64 6f 74 20 43 |aLocatio|n) dot C|
|000040b0| 61 6d 44 69 72 20 3c 20 | 30 20 7c 7c 20 48 42 53 |amDir < |0 || HBS|
|000040c0| 63 72 65 65 6e 50 6f 73 | 2e 58 20 3c 3d 20 30 20 |creenPos|.X <= 0 |
|000040d0| 7c 7c 20 48 42 53 63 72 | 65 65 6e 50 6f 73 2e 58 ||| HBScr|eenPos.X|
|000040e0| 20 3e 3d 20 43 2e 53 69 | 7a 65 58 20 7c 7c 20 48 | >= C.Si|zeX || H|
|000040f0| 42 53 63 72 65 65 6e 50 | 6f 73 2e 59 20 3c 3d 20 |BScreenP|os.Y <= |
|00004100| 30 20 7c 7c 20 48 42 53 | 63 72 65 65 6e 50 6f 73 |0 || HBS|creenPos|
|00004110| 2e 59 20 3e 3d 20 43 2e | 53 69 7a 65 59 29 0d 0a |.Y >= C.|SizeY)..|
|00004120| 09 7b 0d 0a 09 09 54 61 | 72 67 65 74 4c 6f 63 61 |.{....Ta|rgetLoca|
|00004130| 74 69 6f 6e 20 3d 20 41 | 2e 4c 6f 63 61 74 69 6f |tion = A|.Locatio|
|00004140| 6e 20 2b 20 76 65 63 74 | 28 30 2c 30 2c 31 29 20 |n + vect|(0,0,1) |
|00004150| 2a 20 41 2e 43 6f 6c 6c | 69 73 69 6f 6e 48 65 69 |* A.Coll|isionHei|
|00004160| 67 68 74 3b 0d 0a 09 09 | 69 66 20 28 28 54 61 72 |ght;....|if ((Tar|
|00004170| 67 65 74 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 43 61 |getLocat|ion - Ca|
|00004180| 6d 65 72 61 4c 6f 63 61 | 74 69 6f 6e 29 20 64 6f |meraLoca|tion) do|
|00004190| 74 20 43 61 6d 44 69 72 | 20 3c 20 30 29 0d 0a 09 |t CamDir| < 0)...|
|000041a0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 09 48 42 53 |..return|;....HBS|
|000041b0| 63 72 65 65 6e 50 6f 73 | 20 3d 20 43 2e 57 6f 72 |creenPos| = C.Wor|
|000041c0| 6c 64 54 6f 53 63 72 65 | 65 6e 28 54 61 72 67 65 |ldToScre|en(Targe|
|000041d0| 74 4c 6f 63 61 74 69 6f | 6e 29 3b 0d 0a 09 09 69 |tLocatio|n);....i|
|000041e0| 66 20 28 48 42 53 63 72 | 65 65 6e 50 6f 73 2e 58 |f (HBScr|eenPos.X|
|000041f0| 20 3c 3d 20 30 20 7c 7c | 20 48 42 53 63 72 65 65 | <= 0 ||| HBScree|
|00004200| 6e 50 6f 73 2e 58 20 3e | 3d 20 43 2e 43 6c 69 70 |nPos.X >|= C.Clip|
|00004210| 58 20 7c 7c 20 48 42 53 | 63 72 65 65 6e 50 6f 73 |X || HBS|creenPos|
|00004220| 2e 59 20 3c 3d 20 30 20 | 7c 7c 20 48 42 53 63 72 |.Y <= 0 ||| HBScr|
|00004230| 65 65 6e 50 6f 73 2e 59 | 20 3e 3d 20 43 2e 43 6c |eenPos.Y| >= C.Cl|
|00004240| 69 70 59 29 0d 0a 09 09 | 09 72 65 74 75 72 6e 3b |ipY)....|.return;|
|00004250| 0d 0a 09 7d 0d 0a 0d 0a | 09 69 66 20 28 46 61 73 |...}....|.if (Fas|
|00004260| 74 54 72 61 63 65 28 54 | 61 72 67 65 74 4c 6f 63 |tTrace(T|argetLoc|
|00004270| 61 74 69 6f 6e 2c 20 43 | 61 6d 65 72 61 4c 6f 63 |ation, C|ameraLoc|
|00004280| 61 74 69 6f 6e 29 29 0d | 0a 09 7b 0d 0a 09 20 20 |ation)).|..{... |
|00004290| 20 20 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 3d | .C.Dra|wColor =|
|000042a0| 20 57 68 69 74 65 43 6f | 6c 6f 72 3b 0d 0a 0d 0a | WhiteCo|lor;....|
|000042b0| 09 20 20 20 20 09 43 2e | 53 65 74 50 6f 73 28 48 |. .C.|SetPos(H|
|000042c0| 42 53 63 72 65 65 6e 50 | 6f 73 2e 58 20 2d 20 48 |BScreenP|os.X - H|
|000042d0| 65 61 6c 74 68 42 61 72 | 57 69 64 74 68 20 2a 20 |ealthBar|Width * |
|000042e0| 30 2e 35 2c 20 48 42 53 | 63 72 65 65 6e 50 6f 73 |0.5, HBS|creenPos|
|000042f0| 2e 59 29 3b 0d 0a 09 20 | 20 20 20 09 43 2e 44 72 |.Y);... | .C.Dr|
|00004300| 61 77 54 69 6c 65 53 74 | 72 65 74 63 68 65 64 28 |awTileSt|retched(|
|00004310| 48 65 61 6c 74 68 42 61 | 72 42 61 63 6b 4d 61 74 |HealthBa|rBackMat|
|00004320| 2c 20 48 65 61 6c 74 68 | 42 61 72 57 69 64 74 68 |, Health|BarWidth|
|00004330| 2c 20 48 65 61 6c 74 68 | 42 61 72 48 65 69 67 68 |, Health|BarHeigh|
|00004340| 74 29 3b 0d 0a 0d 0a 09 | 20 20 20 20 09 48 65 61 |t);.....| .Hea|
|00004350| 6c 74 68 50 63 74 20 3d | 20 31 2e 30 66 20 2a 20 |lthPct =| 1.0f * |
|00004360| 48 65 61 6c 74 68 20 2f | 20 4d 61 78 48 65 61 6c |Health /| MaxHeal|
|00004370| 74 68 3b 0d 0a 0d 0a 09 | 20 20 20 20 09 69 66 20 |th;.....| .if |
|00004380| 28 48 65 61 6c 74 68 50 | 63 74 20 3c 20 30 2e 33 |(HealthP|ct < 0.3|
|00004390| 35 29 0d 0a 09 20 20 20 | 20 09 20 20 20 43 2e 44 |5)... | . C.D|
|000043a0| 72 61 77 43 6f 6c 6f 72 | 20 3d 20 52 65 64 43 6f |rawColor| = RedCo|
|000043b0| 6c 6f 72 3b 0d 0a 09 20 | 20 20 20 09 65 6c 73 65 |lor;... | .else|
|000043c0| 20 69 66 20 28 48 65 61 | 6c 74 68 50 63 74 20 3c | if (Hea|lthPct <|
|000043d0| 20 30 2e 37 30 29 0d 0a | 09 20 20 20 20 09 20 20 | 0.70)..|. . |
|000043e0| 20 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 47 | C.DrawC|olor = G|
|000043f0| 6f 6c 64 43 6f 6c 6f 72 | 3b 0d 0a 09 20 20 20 20 |oldColor|;... |
|00004400| 09 65 6c 73 65 0d 0a 09 | 20 20 20 20 09 20 20 20 |.else...| . |
|00004410| 43 2e 44 72 61 77 43 6f | 6c 6f 72 20 3d 20 47 72 |C.DrawCo|lor = Gr|
|00004420| 65 65 6e 43 6f 6c 6f 72 | 3b 0d 0a 0d 0a 09 20 20 |eenColor|;..... |
|00004430| 20 20 09 43 2e 53 65 74 | 50 6f 73 28 48 42 53 63 | .C.Set|Pos(HBSc|
|00004440| 72 65 65 6e 50 6f 73 2e | 58 20 2d 20 48 65 61 6c |reenPos.|X - Heal|
|00004450| 74 68 42 61 72 57 69 64 | 74 68 20 2a 20 30 2e 35 |thBarWid|th * 0.5|
|00004460| 2c 20 48 42 53 63 72 65 | 65 6e 50 6f 73 2e 59 29 |, HBScre|enPos.Y)|
|00004470| 3b 0d 0a 09 20 20 20 20 | 09 43 2e 44 72 61 77 54 |;... |.C.DrawT|
|00004480| 69 6c 65 53 74 72 65 74 | 63 68 65 64 28 48 65 61 |ileStret|ched(Hea|
|00004490| 6c 74 68 42 61 72 4d 61 | 74 2c 20 48 65 61 6c 74 |lthBarMa|t, Healt|
|000044a0| 68 42 61 72 57 69 64 74 | 68 20 2a 20 48 65 61 6c |hBarWidt|h * Heal|
|000044b0| 74 68 50 63 74 2c 20 48 | 65 61 6c 74 68 42 61 72 |thPct, H|ealthBar|
|000044c0| 48 65 69 67 68 74 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |Height);|...}....|
|000044d0| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 4f |.C.DrawC|olor = O|
|000044e0| 6c 64 44 72 61 77 43 6f | 6c 6f 72 3b 0d 0a 7d 0d |ldDrawCo|lor;..}.|
|000044f0| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00004500| 63 74 69 6f 6e 20 54 69 | 6d 65 72 28 29 0d 0a 7b |ction Ti|mer()..{|
|00004510| 0d 0a 09 6c 6f 63 61 6c | 20 4f 4e 53 50 6f 77 65 |...local| ONSPowe|
|00004520| 72 43 6f 72 65 20 43 3b | 0d 0a 0d 0a 09 69 66 20 |rCore C;|.....if |
|00004530| 28 50 6c 61 79 65 72 4f | 77 6e 65 72 2e 50 61 77 |(PlayerO|wner.Paw|
|00004540| 6e 20 21 3d 20 4e 6f 6e | 65 20 26 26 20 4f 77 6e |n != Non|e && Own|
|00004550| 65 72 50 52 49 20 21 3d | 20 4e 6f 6e 65 20 26 26 |erPRI !=| None &&|
|00004560| 20 4f 77 6e 65 72 50 52 | 49 2e 54 65 61 6d 20 21 | OwnerPR|I.Team !|
|00004570| 3d 20 4e 6f 6e 65 29 0d | 0a 09 7b 0d 0a 09 09 43 |= None).|..{....C|
|00004580| 20 3d 20 4f 77 6e 65 72 | 50 52 49 2e 47 65 74 43 | = Owner|PRI.GetC|
|00004590| 75 72 72 65 6e 74 4e 6f | 64 65 28 29 3b 0d 0a 09 |urrentNo|de();...|
|000045a0| 09 69 66 20 28 43 20 21 | 3d 20 4e 6f 6e 65 29 0d |.if (C !|= None).|
|000045b0| 0a 09 09 09 50 6c 61 79 | 65 72 4f 77 6e 65 72 2e |....Play|erOwner.|
|000045c0| 52 65 63 65 69 76 65 4c | 6f 63 61 6c 69 7a 65 64 |ReceiveL|ocalized|
|000045d0| 4d 65 73 73 61 67 65 28 | 63 6c 61 73 73 27 4f 4e |Message(|class'ON|
|000045e0| 53 4f 6e 73 6c 61 75 67 | 68 74 4d 65 73 73 61 67 |SOnslaug|htMessag|
|000045f0| 65 27 2c 20 32 32 29 3b | 0d 0a 09 7d 0d 0a 7d 0d |e', 22);|...}..}.|
|00004600| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00004610| 63 74 69 6f 6e 20 54 69 | 63 6b 28 66 6c 6f 61 74 |ction Ti|ck(float|
|00004620| 20 64 65 6c 74 61 54 69 | 6d 65 29 0d 0a 7b 0d 0a | deltaTi|me)..{..|
|00004630| 20 20 20 20 6c 6f 63 61 | 6c 20 4f 4e 53 50 6f 77 | loca|l ONSPow|
|00004640| 65 72 43 6f 72 65 20 43 | 6f 72 65 3b 0d 0a 0d 0a |erCore C|ore;....|
|00004650| 09 53 75 70 65 72 2e 54 | 69 63 6b 28 64 65 6c 74 |.Super.T|ick(delt|
|00004660| 61 54 69 6d 65 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |aTime);.|....if (|
|00004670| 20 4f 77 6e 65 72 50 52 | 49 20 3d 3d 20 4e 6f 6e | OwnerPR|I == Non|
|00004680| 65 20 26 26 20 50 61 77 | 6e 4f 77 6e 65 72 50 52 |e && Paw|nOwnerPR|
|00004690| 49 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 4f |I != Non|e )....O|
|000046a0| 77 6e 65 72 50 52 49 20 | 3d 20 4f 4e 53 50 6c 61 |wnerPRI |= ONSPla|
|000046b0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000046c0| 66 6f 28 50 61 77 6e 4f | 77 6e 65 72 50 52 49 29 |fo(PawnO|wnerPRI)|
|000046d0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 46 69 6e 61 6c 43 |;.....if| (FinalC|
|000046e0| 6f 72 65 5b 30 5d 2e 44 | 65 66 65 6e 64 65 72 54 |ore[0].D|efenderT|
|000046f0| 65 61 6d 49 6e 64 65 78 | 20 21 3d 20 30 29 0d 0a |eamIndex| != 0)..|
|00004700| 09 7b 0d 0a 20 20 20 20 | 09 66 6f 72 65 61 63 68 |.{.. |.foreach|
|00004710| 20 41 6c 6c 41 63 74 6f | 72 73 28 20 63 6c 61 73 | AllActo|rs( clas|
|00004720| 73 27 4f 4e 53 50 6f 77 | 65 72 43 6f 72 65 27 2c |s'ONSPow|erCore',|
|00004730| 20 43 6f 72 65 20 29 0d | 0a 20 20 20 20 09 09 69 | Core ).|. ..i|
|00004740| 66 20 28 20 43 6f 72 65 | 2e 62 46 69 6e 61 6c 43 |f ( Core|.bFinalC|
|00004750| 6f 72 65 20 26 26 20 28 | 43 6f 72 65 2e 44 65 66 |ore && (|Core.Def|
|00004760| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3c |enderTea|mIndex <|
|00004770| 20 32 29 20 29 0d 0a 20 | 20 20 20 09 09 09 46 69 | 2) ).. | ...Fi|
|00004780| 6e 61 6c 43 6f 72 65 5b | 43 6f 72 65 2e 44 65 66 |nalCore[|Core.Def|
|00004790| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 5d 20 |enderTea|mIndex] |
|000047a0| 3d 20 43 6f 72 65 3b 0d | 0a 20 20 20 20 7d 0d 0a |= Core;.|. }..|
|000047b0| 0d 0a 09 69 66 20 28 20 | 21 62 52 65 63 65 69 76 |...if ( |!bReceiv|
|000047c0| 65 64 4c 69 6e 6b 73 20 | 26 26 20 4f 77 6e 65 72 |edLinks |&& Owner|
|000047d0| 50 52 49 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |PRI != N|one )...|
|000047e0| 7b 0d 0a 09 09 43 6c 65 | 61 72 4c 69 6e 6b 73 28 |{....Cle|arLinks(|
|000047f0| 29 3b 0d 0a 09 09 52 65 | 71 75 65 73 74 50 6f 77 |);....Re|questPow|
|00004800| 65 72 4c 69 6e 6b 73 28 | 29 3b 0d 0a 09 7d 0d 0a |erLinks(|);...}..|
|00004810| 0d 0a 09 43 6f 6c 6f 72 | 50 65 72 63 65 6e 74 20 |...Color|Percent |
|00004820| 3d 20 30 2e 35 66 20 2b | 20 43 6f 73 28 28 4c 65 |= 0.5f +| Cos((Le|
|00004830| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 20 |vel.Time|Seconds |
|00004840| 2a 20 34 2e 30 29 20 2a | 20 33 2e 31 34 31 35 39 |* 4.0) *| 3.14159|
|00004850| 20 2a 20 30 2e 35 66 29 | 20 2a 20 30 2e 35 66 3b | * 0.5f)| * 0.5f;|
|00004860| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|00004870| 20 66 75 6e 63 74 69 6f | 6e 20 52 65 71 75 65 73 | functio|n Reques|
|00004880| 74 50 6f 77 65 72 4c 69 | 6e 6b 73 28 29 0d 0a 7b |tPowerLi|nks()..{|
|00004890| 0d 0a 09 69 66 20 28 20 | 4f 77 6e 65 72 50 52 49 |...if ( |OwnerPRI|
|000048a0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | != None| )...{..|
|000048b0| 09 09 4f 77 6e 65 72 50 | 52 49 2e 4f 6e 52 65 63 |..OwnerP|RI.OnRec|
|000048c0| 65 69 76 65 4c 69 6e 6b | 20 3d 20 52 65 63 65 69 |eiveLink| = Recei|
|000048d0| 76 65 4c 69 6e 6b 3b 0d | 0a 09 09 4f 77 6e 65 72 |veLink;.|...Owner|
|000048e0| 50 52 49 2e 4f 6e 52 65 | 6d 6f 76 65 4c 69 6e 6b |PRI.OnRe|moveLink|
|000048f0| 20 3d 20 52 65 6d 6f 76 | 65 4c 69 6e 6b 3b 0d 0a | = Remov|eLink;..|
|00004900| 09 09 4f 77 6e 65 72 50 | 52 49 2e 52 65 73 65 74 |..OwnerP|RI.Reset|
|00004910| 4c 69 6e 6b 73 20 3d 20 | 52 65 73 65 74 4c 69 6e |Links = |ResetLin|
|00004920| 6b 73 3b 0d 0a 09 09 4f | 77 6e 65 72 50 52 49 2e |ks;....O|wnerPRI.|
|00004930| 53 65 72 76 65 72 53 65 | 6e 64 50 6f 77 65 72 4c |ServerSe|ndPowerL|
|00004940| 69 6e 6b 73 28 29 3b 0d | 0a 09 09 62 52 65 63 65 |inks();.|...bRece|
|00004950| 69 76 65 64 4c 69 6e 6b | 73 20 3d 20 74 72 75 65 |ivedLink|s = true|
|00004960| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 65 78 65 63 |;...}..}|....exec|
|00004970| 20 66 75 6e 63 74 69 6f | 6e 20 54 6f 67 67 6c 65 | functio|n Toggle|
|00004980| 52 61 64 61 72 4d 61 70 | 28 29 0d 0a 7b 0d 0a 09 |RadarMap|()..{...|
|00004990| 62 4d 61 70 44 69 73 61 | 62 6c 65 64 20 3d 20 21 |bMapDisa|bled = !|
|000049a0| 62 4d 61 70 44 69 73 61 | 62 6c 65 64 3b 0d 0a 7d |bMapDisa|bled;..}|
|000049b0| 0d 0a 0d 0a 2f 2f 65 78 | 65 63 20 66 75 6e 63 74 |....//ex|ec funct|
|000049c0| 69 6f 6e 20 5a 6f 6f 6d | 49 6e 52 61 64 61 72 4d |ion Zoom|InRadarM|
|000049d0| 61 70 28 29 0d 0a 2f 2f | 7b 0d 0a 2f 2f 20 20 20 |ap()..//|{..// |
|000049e0| 20 52 61 64 61 72 52 61 | 6e 67 65 20 3d 20 4d 61 | RadarRa|nge = Ma|
|000049f0| 78 28 52 61 64 61 72 52 | 61 6e 67 65 20 2d 20 28 |x(RadarR|ange - (|
|00004a00| 52 61 64 61 72 4d 61 78 | 52 61 6e 67 65 20 2a 20 |RadarMax|Range * |
|00004a10| 30 2e 31 29 2c 20 33 30 | 30 30 2e 30 29 3b 0d 0a |0.1), 30|00.0);..|
|00004a20| 2f 2f 7d 0d 0a 2f 2f 0d | 0a 2f 2f 65 78 65 63 20 |//}..//.|.//exec |
|00004a30| 66 75 6e 63 74 69 6f 6e | 20 5a 6f 6f 6d 4f 75 74 |function| ZoomOut|
|00004a40| 52 61 64 61 72 4d 61 70 | 28 29 0d 0a 2f 2f 7b 0d |RadarMap|()..//{.|
|00004a50| 0a 2f 2f 20 20 20 20 52 | 61 64 61 72 52 61 6e 67 |.// R|adarRang|
|00004a60| 65 20 3d 20 4d 69 6e 28 | 52 61 64 61 72 52 61 6e |e = Min(|RadarRan|
|00004a70| 67 65 20 2b 20 28 52 61 | 64 61 72 4d 61 78 52 61 |ge + (Ra|darMaxRa|
|00004a80| 6e 67 65 20 2a 20 30 2e | 31 29 2c 20 52 61 64 61 |nge * 0.|1), Rada|
|00004a90| 72 4d 61 78 52 61 6e 67 | 65 29 3b 0d 0a 2f 2f 7d |rMaxRang|e);..//}|
|00004aa0| 0d 0a 0d 0a 65 78 65 63 | 20 66 75 6e 63 74 69 6f |....exec| functio|
|00004ab0| 6e 20 4c 69 6e 6b 44 65 | 73 69 67 6e 65 72 28 29 |n LinkDe|signer()|
|00004ac0| 0d 0a 7b 0d 0a 20 20 20 | 20 69 66 20 28 4f 77 6e |..{.. | if (Own|
|00004ad0| 65 72 50 52 49 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |erPRI !=| None)..|
|00004ae0| 09 09 4f 77 6e 65 72 50 | 52 49 2e 52 65 71 75 65 |..OwnerP|RI.Reque|
|00004af0| 73 74 4c 69 6e 6b 44 65 | 73 69 67 6e 65 72 28 29 |stLinkDe|signer()|
|00004b00| 3b 0d 0a 7d 0d 0a 0d 0a | 65 78 65 63 20 66 75 6e |;..}....|exec fun|
|00004b10| 63 74 69 6f 6e 20 43 6f | 70 79 4c 69 6e 6b 53 65 |ction Co|pyLinkSe|
|00004b20| 74 75 70 28 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |tup()..{|...local|
|00004b30| 20 4f 4e 53 50 6f 77 65 | 72 4c 69 6e 6b 4f 66 66 | ONSPowe|rLinkOff|
|00004b40| 69 63 69 61 6c 53 65 74 | 75 70 20 53 3b 0d 0a 09 |icialSet|up S;...|
|00004b50| 6c 6f 63 61 6c 20 4f 4e | 53 4f 6e 73 6c 61 75 67 |local ON|SOnslaug|
|00004b60| 68 74 47 61 6d 65 2e 50 | 6f 77 65 72 4c 69 6e 6b |htGame.P|owerLink|
|00004b70| 53 65 74 75 70 20 42 6c | 61 6e 6b 53 65 74 75 70 |Setup Bl|ankSetup|
|00004b80| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 4f 4e 53 50 6f 77 |;...loca|l ONSPow|
|00004b90| 65 72 43 6f 72 65 20 4f | 3b 0d 0a 09 6c 6f 63 61 |erCore O|;...loca|
|00004ba0| 6c 20 69 6e 74 20 78 2c | 20 79 3b 0d 0a 0d 0a 09 |l int x,| y;.....|
|00004bb0| 53 20 3d 20 73 70 61 77 | 6e 28 63 6c 61 73 73 27 |S = spaw|n(class'|
|00004bc0| 4f 4e 53 50 6f 77 65 72 | 4c 69 6e 6b 4f 66 66 69 |ONSPower|LinkOffi|
|00004bd0| 63 69 61 6c 53 65 74 75 | 70 27 29 3b 0d 0a 09 66 |cialSetu|p');...f|
|00004be0| 6f 72 65 61 63 68 20 44 | 79 6e 61 6d 69 63 41 63 |oreach D|ynamicAc|
|00004bf0| 74 6f 72 73 28 63 6c 61 | 73 73 27 4f 4e 53 50 6f |tors(cla|ss'ONSPo|
|00004c00| 77 65 72 43 6f 72 65 27 | 2c 20 4f 29 0d 0a 09 7b |werCore'|, O)...{|
|00004c10| 0d 0a 09 09 53 2e 4c 69 | 6e 6b 53 65 74 75 70 73 |....S.Li|nkSetups|
|00004c20| 5b 78 5d 20 3d 20 42 6c | 61 6e 6b 53 65 74 75 70 |[x] = Bl|ankSetup|
|00004c30| 3b 0d 0a 09 09 53 2e 4c | 69 6e 6b 53 65 74 75 70 |;....S.L|inkSetup|
|00004c40| 73 5b 78 5d 2e 42 61 73 | 65 4e 6f 64 65 20 3d 20 |s[x].Bas|eNode = |
|00004c50| 4f 2e 4e 61 6d 65 3b 0d | 0a 09 09 66 6f 72 20 28 |O.Name;.|...for (|
|00004c60| 79 20 3d 20 30 3b 20 79 | 20 3c 20 4f 2e 50 6f 77 |y = 0; y| < O.Pow|
|00004c70| 65 72 4c 69 6e 6b 73 2e | 6c 65 6e 67 74 68 3b 20 |erLinks.|length; |
|00004c80| 79 2b 2b 29 0d 0a 09 09 | 09 53 2e 4c 69 6e 6b 53 |y++)....|.S.LinkS|
|00004c90| 65 74 75 70 73 5b 78 5d | 2e 4c 69 6e 6b 65 64 4e |etups[x]|.LinkedN|
|00004ca0| 6f 64 65 73 5b 79 5d 20 | 3d 20 4f 2e 50 6f 77 65 |odes[y] |= O.Powe|
|00004cb0| 72 4c 69 6e 6b 73 5b 79 | 5d 2e 4e 61 6d 65 3b 0d |rLinks[y|].Name;.|
|00004cc0| 0a 09 09 78 2b 2b 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |...x++;.|..}.....|
|00004cd0| 43 6f 70 79 4f 62 6a 65 | 63 74 54 6f 43 6c 69 70 |CopyObje|ctToClip|
|00004ce0| 62 6f 61 72 64 28 53 29 | 3b 0d 0a 09 53 2e 44 65 |board(S)|;...S.De|
|00004cf0| 73 74 72 6f 79 28 29 3b | 0d 0a 0d 0a 09 50 6c 61 |stroy();|.....Pla|
|00004d00| 79 65 72 4f 77 6e 65 72 | 2e 43 6c 69 65 6e 74 4d |yerOwner|.ClientM|
|00004d10| 65 73 73 61 67 65 28 22 | 4c 69 6e 6b 20 73 65 74 |essage("|Link set|
|00004d20| 75 70 20 63 6f 70 69 65 | 64 20 74 6f 20 63 6c 69 |up copie|d to cli|
|00004d30| 70 62 6f 61 72 64 22 29 | 3b 0d 0a 7d 0d 0a 0d 0a |pboard")|;..}....|
|00004d40| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00004d50| 6f 6e 20 55 70 64 61 74 | 65 50 72 65 63 61 63 68 |on Updat|ePrecach|
|00004d60| 65 4d 61 74 65 72 69 61 | 6c 73 28 29 0d 0a 7b 0d |eMateria|ls()..{.|
|00004d70| 0a 20 20 20 20 4c 65 76 | 65 6c 2e 41 64 64 50 72 |. Lev|el.AddPr|
|00004d80| 65 63 61 63 68 65 4d 61 | 74 65 72 69 61 6c 28 4d |ecacheMa|terial(M|
|00004d90| 61 74 65 72 69 61 6c 27 | 48 75 64 43 6f 6e 74 65 |aterial'|HudConte|
|00004da0| 6e 74 2e 47 65 6e 65 72 | 69 63 2e 4e 6f 45 6e 74 |nt.Gener|ic.NoEnt|
|00004db0| 72 79 27 29 3b 0d 0a 20 | 20 20 20 4c 65 76 65 6c |ry');.. | Level|
|00004dc0| 2e 41 64 64 50 72 65 63 | 61 63 68 65 4d 61 74 65 |.AddPrec|acheMate|
|00004dd0| 72 69 61 6c 28 4d 61 74 | 65 72 69 61 6c 27 48 75 |rial(Mat|erial'Hu|
|00004de0| 64 43 6f 6e 74 65 6e 74 | 2e 47 65 6e 65 72 69 63 |dContent|.Generic|
|00004df0| 2e 48 55 44 27 29 3b 0d | 0a 20 20 20 20 4c 65 76 |.HUD');.|. Lev|
|00004e00| 65 6c 2e 41 64 64 50 72 | 65 63 61 63 68 65 4d 61 |el.AddPr|ecacheMa|
|00004e10| 74 65 72 69 61 6c 28 4d | 61 74 65 72 69 61 6c 27 |terial(M|aterial'|
|00004e20| 49 6e 74 65 72 66 61 63 | 65 43 6f 6e 74 65 6e 74 |Interfac|eContent|
|00004e30| 2e 42 6f 72 64 65 72 42 | 6f 78 44 27 29 3b 0d 0a |.BorderB|oxD');..|
|00004e40| 20 20 20 20 4c 65 76 65 | 6c 2e 41 64 64 50 72 65 | Leve|l.AddPre|
|00004e50| 63 61 63 68 65 4d 61 74 | 65 72 69 61 6c 28 4d 61 |cacheMat|erial(Ma|
|00004e60| 74 65 72 69 61 6c 27 4f | 4e 53 49 6e 74 65 72 66 |terial'O|NSInterf|
|00004e70| 61 63 65 2d 54 58 2e 48 | 65 61 6c 74 68 42 61 72 |ace-TX.H|ealthBar|
|00004e80| 27 29 3b 0d 0a 20 20 20 | 20 4c 65 76 65 6c 2e 41 |');.. | Level.A|
|00004e90| 64 64 50 72 65 63 61 63 | 68 65 4d 61 74 65 72 69 |ddPrecac|heMateri|
|00004ea0| 61 6c 28 4d 61 74 65 72 | 69 61 6c 27 4f 4e 53 49 |al(Mater|ial'ONSI|
|00004eb0| 6e 74 65 72 66 61 63 65 | 2d 54 58 2e 4d 61 70 42 |nterface|-TX.MapB|
|00004ec0| 6f 72 64 65 72 54 65 78 | 27 29 3b 0d 0a 20 20 20 |orderTex|');.. |
|00004ed0| 20 4c 65 76 65 6c 2e 41 | 64 64 50 72 65 63 61 63 | Level.A|ddPrecac|
|00004ee0| 68 65 4d 61 74 65 72 69 | 61 6c 28 4d 61 74 65 72 |heMateri|al(Mater|
|00004ef0| 69 61 6c 27 4f 4e 53 49 | 6e 74 65 72 66 61 63 65 |ial'ONSI|nterface|
|00004f00| 2d 54 58 2e 4e 65 77 48 | 55 44 69 63 6f 6e 73 27 |-TX.NewH|UDicons'|
|00004f10| 29 3b 0d 0a 20 20 20 20 | 4c 65 76 65 6c 2e 41 64 |);.. |Level.Ad|
|00004f20| 64 50 72 65 63 61 63 68 | 65 4d 61 74 65 72 69 61 |dPrecach|eMateria|
|00004f30| 6c 28 4d 61 74 65 72 69 | 61 6c 27 4f 4e 53 49 6e |l(Materi|al'ONSIn|
|00004f40| 74 65 72 66 61 63 65 2d | 54 58 2e 43 75 72 72 65 |terface-|TX.Curre|
|00004f50| 6e 74 50 6c 61 79 65 72 | 49 63 6f 6e 27 29 3b 0d |ntPlayer|Icon');.|
|00004f60| 0a 0d 0a 09 53 75 70 65 | 72 2e 55 70 64 61 74 65 |....Supe|r.Update|
|00004f70| 50 72 65 63 61 63 68 65 | 4d 61 74 65 72 69 61 6c |Precache|Material|
|00004f80| 73 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |s();..}.|...simul|
|00004f90| 61 74 65 64 20 73 74 61 | 74 69 63 20 66 75 6e 63 |ated sta|tic func|
|00004fa0| 74 69 6f 6e 20 62 6f 6f | 6c 20 43 6f 72 65 57 6f |tion boo|l CoreWo|
|00004fb0| 72 6c 64 54 6f 53 63 72 | 65 65 6e 28 20 4f 4e 53 |rldToScr|een( ONS|
|00004fc0| 50 6f 77 65 72 43 6f 72 | 65 20 43 6f 72 65 2c 20 |PowerCor|e Core, |
|00004fd0| 6f 75 74 20 76 65 63 74 | 6f 72 20 53 63 72 65 65 |out vect|or Scree|
|00004fe0| 6e 50 6f 73 2c 20 66 6c | 6f 61 74 20 53 63 72 65 |nPos, fl|oat Scre|
|00004ff0| 65 6e 58 2c 20 66 6c 6f | 61 74 20 53 63 72 65 65 |enX, flo|at Scree|
|00005000| 6e 59 2c 20 66 6c 6f 61 | 74 20 52 61 64 61 72 57 |nY, floa|t RadarW|
|00005010| 69 64 74 68 2c 20 66 6c | 6f 61 74 20 52 61 6e 67 |idth, fl|oat Rang|
|00005020| 65 2c 20 76 65 63 74 6f | 72 20 43 65 6e 74 65 72 |e, vecto|r Center|
|00005030| 2c 20 6f 70 74 69 6f 6e | 61 6c 20 62 6f 6f 6c 20 |, option|al bool |
|00005040| 62 49 67 6e 6f 72 65 52 | 61 6e 67 65 20 29 0d 0a |bIgnoreR|ange )..|
|00005050| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 76 65 63 74 6f 72 |{...loca|l vector|
|00005060| 20 53 63 72 65 65 6e 4c | 6f 63 61 74 69 6f 6e 3b | ScreenL|ocation;|
|00005070| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 44 |...local| float D|
|00005080| 69 73 74 3b 0d 0a 0d 0a | 09 69 66 20 28 20 43 6f |ist;....|.if ( Co|
|00005090| 72 65 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |re == No|ne )....|
|000050a0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|000050b0| 0a 20 20 20 20 53 63 72 | 65 65 6e 4c 6f 63 61 74 |. Scr|eenLocat|
|000050c0| 69 6f 6e 20 3d 20 43 6f | 72 65 2e 4c 6f 63 61 74 |ion = Co|re.Locat|
|000050d0| 69 6f 6e 20 2d 20 43 65 | 6e 74 65 72 3b 0d 0a 20 |ion - Ce|nter;.. |
|000050e0| 20 20 20 53 63 72 65 65 | 6e 4c 6f 63 61 74 69 6f | Scree|nLocatio|
|000050f0| 6e 2e 5a 20 3d 20 30 3b | 0d 0a 09 44 69 73 74 20 |n.Z = 0;|...Dist |
|00005100| 3d 20 56 53 69 7a 65 28 | 53 63 72 65 65 6e 4c 6f |= VSize(|ScreenLo|
|00005110| 63 61 74 69 6f 6e 29 3b | 0d 0a 09 69 66 20 28 20 |cation);|...if ( |
|00005120| 62 49 67 6e 6f 72 65 52 | 61 6e 67 65 20 7c 7c 20 |bIgnoreR|ange || |
|00005130| 28 44 69 73 74 20 3c 20 | 28 52 61 6e 67 65 20 2a |(Dist < |(Range *|
|00005140| 20 30 2e 39 35 29 29 20 | 29 0d 0a 09 7b 0d 0a 20 | 0.95)) |)...{.. |
|00005150| 20 20 20 20 20 20 20 53 | 63 72 65 65 6e 50 6f 73 | S|creenPos|
|00005160| 2e 58 20 3d 20 53 63 72 | 65 65 6e 58 20 2b 20 53 |.X = Scr|eenX + S|
|00005170| 63 72 65 65 6e 4c 6f 63 | 61 74 69 6f 6e 2e 58 20 |creenLoc|ation.X |
|00005180| 2a 20 28 52 61 64 61 72 | 57 69 64 74 68 2f 52 61 |* (Radar|Width/Ra|
|00005190| 6e 67 65 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 53 |nge);.. | S|
|000051a0| 63 72 65 65 6e 50 6f 73 | 2e 59 20 3d 20 53 63 72 |creenPos|.Y = Scr|
|000051b0| 65 65 6e 59 20 2b 20 53 | 63 72 65 65 6e 4c 6f 63 |eenY + S|creenLoc|
|000051c0| 61 74 69 6f 6e 2e 59 20 | 2a 20 28 52 61 64 61 72 |ation.Y |* (Radar|
|000051d0| 57 69 64 74 68 2f 52 61 | 6e 67 65 29 3b 0d 0a 20 |Width/Ra|nge);.. |
|000051e0| 20 20 20 20 20 20 20 53 | 63 72 65 65 6e 50 6f 73 | S|creenPos|
|000051f0| 2e 5a 20 3d 20 30 3b 0d | 0a 20 20 20 20 20 20 20 |.Z = 0;.|. |
|00005200| 20 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 20 | return |true;.. |
|00005210| 20 20 20 7d 0d 0a 0d 0a | 20 20 20 20 72 65 74 75 | }....| retu|
|00005220| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 7d 0d 0a 0d 0a |rn false|;..}....|
|00005230| 73 69 6d 75 6c 61 74 65 | 64 20 73 74 61 74 69 63 |simulate|d static|
|00005240| 20 66 75 6e 63 74 69 6f | 6e 20 44 72 61 77 4d 61 | functio|n DrawMa|
|00005250| 70 49 6d 61 67 65 28 20 | 43 61 6e 76 61 73 20 43 |pImage( |Canvas C|
|00005260| 2c 20 4d 61 74 65 72 69 | 61 6c 20 49 6d 61 67 65 |, Materi|al Image|
|00005270| 2c 20 66 6c 6f 61 74 20 | 4d 61 70 58 2c 20 66 6c |, float |MapX, fl|
|00005280| 6f 61 74 20 4d 61 70 59 | 2c 20 66 6c 6f 61 74 20 |oat MapY|, float |
|00005290| 50 6c 61 79 65 72 58 2c | 20 66 6c 6f 61 74 20 50 |PlayerX,| float P|
|000052a0| 6c 61 79 65 72 59 2c 20 | 76 65 63 74 6f 72 20 44 |layerY, |vector D|
|000052b0| 69 6d 65 6e 73 69 6f 6e | 73 20 29 0d 0a 7b 0d 0a |imension|s )..{..|
|000052c0| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 4d 61 70 |.local f|loat Map|
|000052d0| 53 63 61 6c 65 2c 20 4d | 61 70 53 69 7a 65 3b 0d |Scale, M|apSize;.|
|000052e0| 0a 09 6c 6f 63 61 6c 20 | 62 79 74 65 20 20 53 61 |..local |byte Sa|
|000052f0| 76 65 64 41 6c 70 68 61 | 3b 0d 0a 0d 0a 09 2f 2a |vedAlpha|;...../*|
|00005300| 0d 0a 09 44 69 6d 65 6e | 73 69 6f 6e 73 2e 58 20 |...Dimen|sions.X |
|00005310| 3d 20 57 69 64 74 68 0d | 0a 09 44 69 6d 65 6e 73 |= Width.|..Dimens|
|00005320| 69 6f 6e 73 2e 59 20 3d | 20 52 61 6e 67 65 0d 0a |ions.Y =| Range..|
|00005330| 09 44 69 6d 65 6e 73 69 | 6f 6e 73 2e 5a 20 3d 20 |.Dimensi|ons.Z = |
|00005340| 41 6c 70 68 61 0d 0a 0d | 0a 09 2a 2f 0d 0a 0d 0a |Alpha...|..*/....|
|00005350| 09 69 66 20 28 20 49 6d | 61 67 65 20 3d 3d 20 4e |.if ( Im|age == N|
|00005360| 6f 6e 65 20 7c 7c 20 43 | 20 3d 3d 20 4e 6f 6e 65 |one || C| == None|
|00005370| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 0d | )....re|turn;...|
|00005380| 0a 09 4d 61 70 53 69 7a | 65 20 3d 20 49 6d 61 67 |..MapSiz|e = Imag|
|00005390| 65 2e 4d 61 74 65 72 69 | 61 6c 55 53 69 7a 65 28 |e.Materi|alUSize(|
|000053a0| 29 3b 0d 0a 09 4d 61 70 | 53 63 61 6c 65 20 3d 20 |);...Map|Scale = |
|000053b0| 4d 61 70 53 69 7a 65 20 | 2f 20 28 44 69 6d 65 6e |MapSize |/ (Dimen|
|000053c0| 73 69 6f 6e 73 2e 59 20 | 2a 20 32 29 3b 0d 0a 0d |sions.Y |* 2);...|
|000053d0| 0a 09 53 61 76 65 64 41 | 6c 70 68 61 20 3d 20 43 |..SavedA|lpha = C|
|000053e0| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 41 3b 0d 0a 0d |.DrawCol|or.A;...|
|000053f0| 0a 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 20 3d 20 |..C.Draw|Color = |
|00005400| 64 65 66 61 75 6c 74 2e | 57 68 69 74 65 43 6f 6c |default.|WhiteCol|
|00005410| 6f 72 3b 0d 0a 09 43 2e | 44 72 61 77 43 6f 6c 6f |or;...C.|DrawColo|
|00005420| 72 2e 41 20 3d 20 44 69 | 6d 65 6e 73 69 6f 6e 73 |r.A = Di|mensions|
|00005430| 2e 5a 3b 0d 0a 0d 0a 09 | 43 2e 53 65 74 50 6f 73 |.Z;.....|C.SetPos|
|00005440| 28 20 4d 61 70 58 20 2d | 20 44 69 6d 65 6e 73 69 |( MapX -| Dimensi|
|00005450| 6f 6e 73 2e 58 2c 20 4d | 61 70 59 20 2d 20 44 69 |ons.X, M|apY - Di|
|00005460| 6d 65 6e 73 69 6f 6e 73 | 2e 58 20 29 3b 0d 0a 09 |mensions|.X );...|
|00005470| 43 2e 44 72 61 77 54 69 | 6c 65 28 20 49 6d 61 67 |C.DrawTi|le( Imag|
|00005480| 65 2c 20 44 69 6d 65 6e | 73 69 6f 6e 73 2e 58 20 |e, Dimen|sions.X |
|00005490| 2a 20 32 2e 30 2c 20 44 | 69 6d 65 6e 73 69 6f 6e |* 2.0, D|imension|
|000054a0| 73 2e 58 20 2a 20 32 2e | 30 2c 0d 0a 09 20 20 20 |s.X * 2.|0,... |
|000054b0| 20 20 20 20 20 20 20 20 | 28 50 6c 61 79 65 72 58 | |(PlayerX|
|000054c0| 20 2d 20 44 69 6d 65 6e | 73 69 6f 6e 73 2e 59 29 | - Dimen|sions.Y)|
|000054d0| 20 2a 20 4d 61 70 53 63 | 61 6c 65 20 2b 20 4d 61 | * MapSc|ale + Ma|
|000054e0| 70 53 69 7a 65 20 2f 20 | 32 2e 30 2c 0d 0a 09 09 |pSize / |2.0,....|
|000054f0| 09 20 20 20 28 50 6c 61 | 79 65 72 59 20 2d 20 44 |. (Pla|yerY - D|
|00005500| 69 6d 65 6e 73 69 6f 6e | 73 2e 59 29 20 2a 20 4d |imension|s.Y) * M|
|00005510| 61 70 53 63 61 6c 65 20 | 2b 20 4d 61 70 53 69 7a |apScale |+ MapSiz|
|00005520| 65 20 2f 20 32 2e 30 2c | 0d 0a 09 09 09 20 20 20 |e / 2.0,|..... |
|00005530| 44 69 6d 65 6e 73 69 6f | 6e 73 2e 59 20 2a 20 32 |Dimensio|ns.Y * 2|
|00005540| 20 2a 20 4d 61 70 53 63 | 61 6c 65 2c 20 44 69 6d | * MapSc|ale, Dim|
|00005550| 65 6e 73 69 6f 6e 73 2e | 59 20 2a 20 32 20 2a 20 |ensions.|Y * 2 * |
|00005560| 4d 61 70 53 63 61 6c 65 | 20 29 3b 0d 0a 0d 0a 09 |MapScale| );.....|
|00005570| 43 2e 44 72 61 77 43 6f | 6c 6f 72 2e 41 20 3d 20 |C.DrawCo|lor.A = |
|00005580| 53 61 76 65 64 41 6c 70 | 68 61 3b 0d 0a 7d 0d 0a |SavedAlp|ha;..}..|
|00005590| 0d 0a 73 69 6d 75 6c 61 | 74 65 64 20 73 74 61 74 |..simula|ted stat|
|000055a0| 69 63 20 66 75 6e 63 74 | 69 6f 6e 20 44 72 61 77 |ic funct|ion Draw|
|000055b0| 41 74 74 61 63 6b 49 63 | 6f 6e 28 20 43 61 6e 76 |AttackIc|on( Canv|
|000055c0| 61 73 20 43 2c 20 4f 4e | 53 50 6f 77 65 72 43 6f |as C, ON|SPowerCo|
|000055d0| 72 65 20 43 75 72 43 6f | 72 65 2c 20 76 65 63 74 |re CurCo|re, vect|
|000055e0| 6f 72 20 48 55 44 4c 6f | 63 61 74 69 6f 6e 2c 20 |or HUDLo|cation, |
|000055f0| 66 6c 6f 61 74 20 49 63 | 6f 6e 53 63 61 6c 69 6e |float Ic|onScalin|
|00005600| 67 2c 20 66 6c 6f 61 74 | 20 48 55 44 53 63 61 6c |g, float| HUDScal|
|00005610| 69 6e 67 2c 20 66 6c 6f | 61 74 20 43 6f 6c 6f 72 |ing, flo|at Color|
|00005620| 50 65 72 63 65 6e 74 61 | 67 65 20 29 0d 0a 7b 0d |Percenta|ge )..{.|
|00005630| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 41 74 |..local |float At|
|00005640| 74 61 63 6b 49 63 6f 6e | 53 69 7a 65 2c 20 43 6f |tackIcon|Size, Co|
|00005650| 72 65 49 63 6f 6e 53 69 | 7a 65 3b 0d 0a 09 6c 6f |reIconSi|ze;...lo|
|00005660| 63 61 6c 20 63 6f 6c 6f | 72 20 48 6f 6c 64 43 6f |cal colo|r HoldCo|
|00005670| 6c 6f 72 3b 0d 0a 0d 0a | 09 69 66 20 28 20 43 20 |lor;....|.if ( C |
|00005680| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |== None |)....ret|
|00005690| 75 72 6e 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |urn;....| if (|
|000056a0| 43 75 72 43 6f 72 65 2e | 62 46 69 6e 61 6c 43 6f |CurCore.|bFinalCo|
|000056b0| 72 65 29 0d 0a 09 20 20 | 20 43 6f 72 65 49 63 6f |re)... | CoreIco|
|000056c0| 6e 53 69 7a 65 20 3d 20 | 32 2e 30 20 2a 20 49 63 |nSize = |2.0 * Ic|
|000056d0| 6f 6e 53 63 61 6c 69 6e | 67 20 2a 20 31 36 20 2a |onScalin|g * 16 *|
|000056e0| 20 43 2e 43 6c 69 70 58 | 20 2a 20 48 55 44 53 63 | C.ClipX| * HUDSc|
|000056f0| 61 6c 69 6e 67 2f 31 36 | 30 30 3b 0d 0a 09 65 6c |aling/16|00;...el|
|00005700| 73 65 0d 0a 09 20 20 20 | 43 6f 72 65 49 63 6f 6e |se... |CoreIcon|
|00005710| 53 69 7a 65 20 3d 20 49 | 63 6f 6e 53 63 61 6c 69 |Size = I|conScali|
|00005720| 6e 67 20 2a 20 31 36 20 | 2a 20 43 2e 43 6c 69 70 |ng * 16 |* C.Clip|
|00005730| 58 20 2a 20 48 55 44 53 | 63 61 6c 69 6e 67 2f 31 |X * HUDS|caling/1|
|00005740| 36 30 30 3b 0d 0a 0d 0a | 20 20 20 20 41 74 74 61 |600;....| Atta|
|00005750| 63 6b 49 63 6f 6e 53 69 | 7a 65 20 3d 20 43 6f 72 |ckIconSi|ze = Cor|
|00005760| 65 49 63 6f 6e 53 69 7a | 65 20 2a 20 28 32 2e 35 |eIconSiz|e * (2.5|
|00005770| 20 2b 20 31 2e 35 20 2a | 20 43 6f 6c 6f 72 50 65 | + 1.5 *| ColorPe|
|00005780| 72 63 65 6e 74 61 67 65 | 29 3b 0d 0a 0d 0a 20 20 |rcentage|);.... |
|00005790| 20 20 48 6f 6c 64 43 6f | 6c 6f 72 20 3d 20 43 2e | HoldCo|lor = C.|
|000057a0| 44 72 61 77 43 6f 6c 6f | 72 3b 0d 0a 0d 0a 20 20 |DrawColo|r;.... |
|000057b0| 20 20 69 66 20 28 43 75 | 72 43 6f 72 65 2e 62 53 | if (Cu|rCore.bS|
|000057c0| 65 76 65 72 65 64 20 26 | 26 20 43 75 72 43 6f 72 |evered &|& CurCor|
|000057d0| 65 2e 43 6f 72 65 53 74 | 61 67 65 20 3d 3d 20 30 |e.CoreSt|age == 0|
|000057e0| 29 0d 0a 20 20 20 20 20 | 20 20 20 43 2e 44 72 61 |).. | C.Dra|
|000057f0| 77 43 6f 6c 6f 72 20 3d | 20 64 65 66 61 75 6c 74 |wColor =| default|
|00005800| 2e 53 65 76 65 72 65 64 | 43 6f 6c 6f 72 41 20 2a |.Severed|ColorA *|
|00005810| 20 43 6f 6c 6f 72 50 65 | 72 63 65 6e 74 61 67 65 | ColorPe|rcentage|
|00005820| 20 2b 20 64 65 66 61 75 | 6c 74 2e 53 65 76 65 72 | + defau|lt.Sever|
|00005830| 65 64 43 6f 6c 6f 72 42 | 20 2a 20 28 31 2e 30 20 |edColorB| * (1.0 |
|00005840| 2d 20 43 6f 6c 6f 72 50 | 65 72 63 65 6e 74 61 67 |- ColorP|ercentag|
|00005850| 65 29 3b 0d 0a 20 20 20 | 20 65 6c 73 65 0d 0a 20 |e);.. | else.. |
|00005860| 20 20 20 20 20 20 20 43 | 2e 44 72 61 77 43 6f 6c | C|.DrawCol|
|00005870| 6f 72 20 3d 20 64 65 66 | 61 75 6c 74 2e 41 74 74 |or = def|ault.Att|
|00005880| 61 63 6b 43 6f 6c 6f 72 | 41 20 2a 20 43 6f 6c 6f |ackColor|A * Colo|
|00005890| 72 50 65 72 63 65 6e 74 | 61 67 65 20 2b 20 64 65 |rPercent|age + de|
|000058a0| 66 61 75 6c 74 2e 41 74 | 74 61 63 6b 43 6f 6c 6f |fault.At|tackColo|
|000058b0| 72 42 20 2a 20 28 31 2e | 30 20 2d 20 43 6f 6c 6f |rB * (1.|0 - Colo|
|000058c0| 72 50 65 72 63 65 6e 74 | 61 67 65 29 3b 0d 0a 0d |rPercent|age);...|
|000058d0| 0a 20 20 20 20 43 2e 53 | 65 74 50 6f 73 28 48 55 |. C.S|etPos(HU|
|000058e0| 44 4c 6f 63 61 74 69 6f | 6e 2e 58 20 2d 20 41 74 |DLocatio|n.X - At|
|000058f0| 74 61 63 6b 49 63 6f 6e | 53 69 7a 65 20 2a 20 30 |tackIcon|Size * 0|
|00005900| 2e 35 2c 20 48 55 44 4c | 6f 63 61 74 69 6f 6e 2e |.5, HUDL|ocation.|
|00005910| 59 20 2d 20 41 74 74 61 | 63 6b 49 63 6f 6e 53 69 |Y - Atta|ckIconSi|
|00005920| 7a 65 20 2a 20 30 2e 35 | 29 3b 0d 0a 20 20 20 20 |ze * 0.5|);.. |
|00005930| 43 2e 44 72 61 77 54 69 | 6c 65 28 4d 61 74 65 72 |C.DrawTi|le(Mater|
|00005940| 69 61 6c 27 4e 65 77 48 | 55 44 49 63 6f 6e 73 27 |ial'NewH|UDIcons'|
|00005950| 2c 20 41 74 74 61 63 6b | 49 63 6f 6e 53 69 7a 65 |, Attack|IconSize|
|00005960| 2c 20 41 74 74 61 63 6b | 49 63 6f 6e 53 69 7a 65 |, Attack|IconSize|
|00005970| 2c 20 30 2c 20 36 34 2c | 20 36 34 2c 20 36 34 29 |, 0, 64,| 64, 64)|
|00005980| 3b 0d 0a 20 20 20 20 43 | 2e 44 72 61 77 43 6f 6c |;.. C|.DrawCol|
|00005990| 6f 72 20 3d 20 48 6f 6c | 64 43 6f 6c 6f 72 3b 0d |or = Hol|dColor;.|
|000059a0| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|000059b0| 73 74 61 74 69 63 20 66 | 75 6e 63 74 69 6f 6e 20 |static f|unction |
|000059c0| 44 72 61 77 43 6f 72 65 | 49 63 6f 6e 28 20 43 61 |DrawCore|Icon( Ca|
|000059d0| 6e 76 61 73 20 43 2c 20 | 76 65 63 74 6f 72 20 48 |nvas C, |vector H|
|000059e0| 55 44 4c 6f 63 61 74 69 | 6f 6e 2c 20 62 6f 6f 6c |UDLocati|on, bool|
|000059f0| 20 62 41 74 74 61 63 6b | 61 62 6c 65 2c 20 66 6c | bAttack|able, fl|
|00005a00| 6f 61 74 20 49 63 6f 6e | 53 63 61 6c 69 6e 67 2c |oat Icon|Scaling,|
|00005a10| 20 66 6c 6f 61 74 20 48 | 55 44 53 63 61 6c 69 6e | float H|UDScalin|
|00005a20| 67 2c 20 66 6c 6f 61 74 | 20 43 6f 6c 6f 72 50 65 |g, float| ColorPe|
|00005a30| 72 63 65 6e 74 61 67 65 | 20 29 0d 0a 7b 0d 0a 09 |rcentage| )..{...|
|00005a40| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 43 6f 72 65 |local fl|oat Core|
|00005a50| 49 63 6f 6e 53 69 7a 65 | 3b 0d 0a 2f 2f 09 6c 6f |IconSize|;..//.lo|
|00005a60| 63 61 6c 20 63 6f 6c 6f | 72 20 48 6f 6c 64 43 6f |cal colo|r HoldCo|
|00005a70| 6c 6f 72 3b 0d 0a 0d 0a | 09 69 66 20 28 20 43 20 |lor;....|.if ( C |
|00005a80| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |== None |)....ret|
|00005a90| 75 72 6e 3b 0d 0a 0d 0a | 09 43 6f 72 65 49 63 6f |urn;....|.CoreIco|
|00005aa0| 6e 53 69 7a 65 20 3d 20 | 49 63 6f 6e 53 63 61 6c |nSize = |IconScal|
|00005ab0| 69 6e 67 20 2a 20 31 36 | 20 2a 20 43 2e 43 6c 69 |ing * 16| * C.Cli|
|00005ac0| 70 58 20 2a 20 48 55 44 | 53 63 61 6c 69 6e 67 2f |pX * HUD|Scaling/|
|00005ad0| 31 36 30 30 3b 0d 0a 20 | 20 20 20 43 2e 53 65 74 |1600;.. | C.Set|
|00005ae0| 50 6f 73 28 48 55 44 4c | 6f 63 61 74 69 6f 6e 2e |Pos(HUDL|ocation.|
|00005af0| 58 20 2d 20 43 6f 72 65 | 49 63 6f 6e 53 69 7a 65 |X - Core|IconSize|
|00005b00| 20 2a 20 33 2e 30 20 2a | 20 30 2e 35 2c 20 48 55 | * 3.0 *| 0.5, HU|
|00005b10| 44 4c 6f 63 61 74 69 6f | 6e 2e 59 20 2d 20 43 6f |DLocatio|n.Y - Co|
|00005b20| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 33 2e 30 |reIconSi|ze * 3.0|
|00005b30| 20 2a 20 30 2e 35 29 3b | 0d 0a 0d 0a 2f 2f 20 20 | * 0.5);|....// |
|00005b40| 20 20 48 6f 6c 64 43 6f | 6c 6f 72 20 3d 20 43 2e | HoldCo|lor = C.|
|00005b50| 44 72 61 77 43 6f 6c 6f | 72 3b 0d 0a 0d 0a 20 20 |DrawColo|r;.... |
|00005b60| 20 20 69 66 20 28 62 41 | 74 74 61 63 6b 61 62 6c | if (bA|ttackabl|
|00005b70| 65 29 0d 0a 20 20 20 20 | 20 20 20 20 43 2e 44 72 |e).. | C.Dr|
|00005b80| 61 77 43 6f 6c 6f 72 20 | 3d 20 43 2e 44 72 61 77 |awColor |= C.Draw|
|00005b90| 43 6f 6c 6f 72 20 2a 20 | 43 6f 6c 6f 72 50 65 72 |Color * |ColorPer|
|00005ba0| 63 65 6e 74 61 67 65 20 | 2b 20 28 43 2e 44 72 61 |centage |+ (C.Dra|
|00005bb0| 77 43 6f 6c 6f 72 20 2a | 20 30 2e 35 29 20 2a 20 |wColor *| 0.5) * |
|00005bc0| 28 31 2e 30 20 2d 20 43 | 6f 6c 6f 72 50 65 72 63 |(1.0 - C|olorPerc|
|00005bd0| 65 6e 74 61 67 65 29 3b | 0d 0a 0d 0a 20 20 20 20 |entage);|.... |
|00005be0| 43 2e 44 72 61 77 54 69 | 6c 65 28 4d 61 74 65 72 |C.DrawTi|le(Mater|
|00005bf0| 69 61 6c 27 4e 65 77 48 | 55 44 49 63 6f 6e 73 27 |ial'NewH|UDIcons'|
|00005c00| 2c 20 43 6f 72 65 49 63 | 6f 6e 53 69 7a 65 20 2a |, CoreIc|onSize *|
|00005c10| 20 33 2e 30 2c 20 43 6f | 72 65 49 63 6f 6e 53 69 | 3.0, Co|reIconSi|
|00005c20| 7a 65 20 2a 20 33 2e 30 | 2c 20 36 34 2c 20 30 2c |ze * 3.0|, 64, 0,|
|00005c30| 20 36 34 2c 20 36 34 29 | 3b 0d 0a 2f 2f 20 20 20 | 64, 64)|;..// |
|00005c40| 20 43 2e 44 72 61 77 43 | 6f 6c 6f 72 20 3d 20 48 | C.DrawC|olor = H|
|00005c50| 6f 6c 64 43 6f 6c 6f 72 | 3b 0d 0a 7d 0d 0a 0d 0a |oldColor|;..}....|
|00005c60| 73 69 6d 75 6c 61 74 65 | 64 20 73 74 61 74 69 63 |simulate|d static|
|00005c70| 20 66 75 6e 63 74 69 6f | 6e 20 44 72 61 77 4e 6f | functio|n DrawNo|
|00005c80| 64 65 49 63 6f 6e 28 20 | 43 61 6e 76 61 73 20 43 |deIcon( |Canvas C|
|00005c90| 2c 20 76 65 63 74 6f 72 | 20 48 55 44 4c 6f 63 61 |, vector| HUDLoca|
|00005ca0| 74 69 6f 6e 2c 20 62 6f | 6f 6c 20 62 41 74 74 61 |tion, bo|ol bAtta|
|00005cb0| 63 6b 61 62 6c 65 2c 20 | 62 79 74 65 20 53 74 61 |ckable, |byte Sta|
|00005cc0| 67 65 2c 20 66 6c 6f 61 | 74 20 49 63 6f 6e 53 63 |ge, floa|t IconSc|
|00005cd0| 61 6c 69 6e 67 2c 20 66 | 6c 6f 61 74 20 48 55 44 |aling, f|loat HUD|
|00005ce0| 53 63 61 6c 69 6e 67 2c | 20 66 6c 6f 61 74 20 43 |Scaling,| float C|
|00005cf0| 6f 6c 6f 72 50 65 72 63 | 65 6e 74 61 67 65 20 29 |olorPerc|entage )|
|00005d00| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |..{...lo|cal floa|
|00005d10| 74 20 43 6f 72 65 49 63 | 6f 6e 53 69 7a 65 3b 0d |t CoreIc|onSize;.|
|00005d20| 0a 0d 0a 09 69 66 20 28 | 20 43 20 3d 3d 20 4e 6f |....if (| C == No|
|00005d30| 6e 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |ne )....|return;.|
|00005d40| 0a 0d 0a 09 43 6f 72 65 | 49 63 6f 6e 53 69 7a 65 |....Core|IconSize|
|00005d50| 20 3d 20 49 63 6f 6e 53 | 63 61 6c 69 6e 67 20 2a | = IconS|caling *|
|00005d60| 20 31 36 20 2a 20 43 2e | 43 6c 69 70 58 20 2a 20 | 16 * C.|ClipX * |
|00005d70| 48 55 44 53 63 61 6c 69 | 6e 67 2f 31 36 30 30 3b |HUDScali|ng/1600;|
|00005d80| 0d 0a 20 20 20 20 69 66 | 20 28 53 74 61 67 65 20 |.. if| (Stage |
|00005d90| 3d 3d 20 34 20 7c 7c 20 | 53 74 61 67 65 20 3d 3d |== 4 || |Stage ==|
|00005da0| 20 31 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 | 1).. | {.. |
|00005db0| 20 20 20 20 69 66 20 28 | 62 41 74 74 61 63 6b 61 | if (|bAttacka|
|00005dc0| 62 6c 65 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |ble).. | {.|
|00005dd0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 43 2e 53 |. | C.S|
|00005de0| 65 74 50 6f 73 28 48 55 | 44 4c 6f 63 61 74 69 6f |etPos(HU|DLocatio|
|00005df0| 6e 2e 58 20 2d 20 43 6f | 72 65 49 63 6f 6e 53 69 |n.X - Co|reIconSi|
|00005e00| 7a 65 20 2a 20 30 2e 37 | 35 20 2a 20 30 2e 35 2c |ze * 0.7|5 * 0.5,|
|00005e10| 20 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2e 59 20 2d | HUDLoca|tion.Y -|
|00005e20| 20 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 2a 20 | CoreIco|nSize * |
|00005e30| 30 2e 37 35 20 2a 20 30 | 2e 35 29 3b 0d 0a 20 20 |0.75 * 0|.5);.. |
|00005e40| 20 20 20 20 20 20 20 20 | 20 20 43 2e 44 72 61 77 | | C.Draw|
|00005e50| 54 69 6c 65 28 4d 61 74 | 65 72 69 61 6c 27 4e 65 |Tile(Mat|erial'Ne|
|00005e60| 77 48 55 44 49 63 6f 6e | 73 27 2c 20 43 6f 72 65 |wHUDIcon|s', Core|
|00005e70| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 30 2e 37 35 2c |IconSize| * 0.75,|
|00005e80| 20 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 2a 20 | CoreIco|nSize * |
|00005e90| 30 2e 37 35 2c 20 30 2c | 20 30 2c 20 33 32 2c 20 |0.75, 0,| 0, 32, |
|00005ea0| 33 32 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 7d 0d |32);.. | }.|
|00005eb0| 0a 20 20 20 20 20 20 20 | 20 65 6c 73 65 0d 0a 20 |. | else.. |
|00005ec0| 20 20 20 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 | {|.. |
|00005ed0| 20 20 20 20 20 20 43 2e | 53 65 74 50 6f 73 28 48 | C.|SetPos(H|
|00005ee0| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2d 20 43 |UDLocati|on.X - C|
|00005ef0| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 20 2a 20 31 2e |oreIconS|ize * 1.|
|00005f00| 37 35 20 2a 20 30 2e 35 | 2c 20 48 55 44 4c 6f 63 |75 * 0.5|, HUDLoc|
|00005f10| 61 74 69 6f 6e 2e 59 20 | 2d 20 43 6f 72 65 49 63 |ation.Y |- CoreIc|
|00005f20| 6f 6e 53 69 7a 65 20 2a | 20 31 2e 37 35 20 2a 20 |onSize *| 1.75 * |
|00005f30| 30 2e 35 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |0.5);.. | |
|00005f40| 20 20 20 43 2e 44 72 61 | 77 54 69 6c 65 28 4d 61 | C.Dra|wTile(Ma|
|00005f50| 74 65 72 69 61 6c 27 4e | 65 77 48 55 44 49 63 6f |terial'N|ewHUDIco|
|00005f60| 6e 73 27 2c 20 43 6f 72 | 65 49 63 6f 6e 53 69 7a |ns', Cor|eIconSiz|
|00005f70| 65 20 2a 20 31 2e 37 35 | 2c 20 43 6f 72 65 49 63 |e * 1.75|, CoreIc|
|00005f80| 6f 6e 53 69 7a 65 20 2a | 20 31 2e 37 35 2c 20 30 |onSize *| 1.75, 0|
|00005f90| 2c 20 33 32 2c 20 33 32 | 2c 20 33 32 29 3b 0d 0a |, 32, 32|, 32);..|
|00005fa0| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 7d | |}.. }|
|00005fb0| 0d 0a 20 20 20 20 65 6c | 73 65 0d 0a 09 7b 0d 0a |.. el|se...{..|
|00005fc0| 09 09 69 66 20 28 20 53 | 74 61 67 65 20 21 3d 20 |..if ( S|tage != |
|00005fd0| 30 20 29 0d 0a 09 09 09 | 43 2e 44 72 61 77 43 6f |0 ).....|C.DrawCo|
|00005fe0| 6c 6f 72 20 3d 20 43 2e | 44 72 61 77 43 6f 6c 6f |lor = C.|DrawColo|
|00005ff0| 72 20 2a 20 43 6f 6c 6f | 72 50 65 72 63 65 6e 74 |r * Colo|rPercent|
|00006000| 61 67 65 20 2b 20 64 65 | 66 61 75 6c 74 2e 4c 69 |age + de|fault.Li|
|00006010| 6e 6b 43 6f 6c 6f 72 5b | 32 5d 20 2a 20 28 31 2e |nkColor[|2] * (1.|
|00006020| 30 20 2d 20 43 6f 6c 6f | 72 50 65 72 63 65 6e 74 |0 - Colo|rPercent|
|00006030| 61 67 65 29 3b 0d 0a 0d | 0a 09 09 69 66 20 28 62 |age);...|...if (b|
|00006040| 41 74 74 61 63 6b 61 62 | 6c 65 29 0d 0a 09 20 20 |Attackab|le)... |
|00006050| 20 20 7b 0d 0a 09 20 20 | 20 20 20 20 20 20 43 2e | {... | C.|
|00006060| 53 65 74 50 6f 73 28 48 | 55 44 4c 6f 63 61 74 69 |SetPos(H|UDLocati|
|00006070| 6f 6e 2e 58 20 2d 20 43 | 6f 72 65 49 63 6f 6e 53 |on.X - C|oreIconS|
|00006080| 69 7a 65 20 2a 20 32 2e | 30 20 2a 20 30 2e 35 2c |ize * 2.|0 * 0.5,|
|00006090| 20 48 55 44 4c 6f 63 61 | 74 69 6f 6e 2e 59 20 2d | HUDLoca|tion.Y -|
|000060a0| 20 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 2a 20 | CoreIco|nSize * |
|000060b0| 32 2e 30 20 2a 20 30 2e | 35 29 3b 0d 0a 09 20 20 |2.0 * 0.|5);... |
|000060c0| 20 20 20 20 20 20 43 2e | 44 72 61 77 54 69 6c 65 | C.|DrawTile|
|000060d0| 28 4d 61 74 65 72 69 61 | 6c 27 4e 65 77 48 55 44 |(Materia|l'NewHUD|
|000060e0| 49 63 6f 6e 73 27 2c 20 | 43 6f 72 65 49 63 6f 6e |Icons', |CoreIcon|
|000060f0| 53 69 7a 65 20 2a 20 32 | 2e 30 2c 20 43 6f 72 65 |Size * 2|.0, Core|
|00006100| 49 63 6f 6e 53 69 7a 65 | 20 2a 20 32 2e 30 2c 20 |IconSize| * 2.0, |
|00006110| 33 32 2c 20 30 2c 20 33 | 32 2c 20 33 32 29 3b 0d |32, 0, 3|2, 32);.|
|00006120| 0a 09 20 20 20 20 7d 0d | 0a 09 20 20 20 20 65 6c |.. }.|.. el|
|00006130| 73 65 0d 0a 09 20 20 20 | 20 7b 0d 0a 09 20 20 20 |se... | {... |
|00006140| 20 20 20 20 20 43 2e 53 | 65 74 50 6f 73 28 48 55 | C.S|etPos(HU|
|00006150| 44 4c 6f 63 61 74 69 6f | 6e 2e 58 20 2d 20 43 6f |DLocatio|n.X - Co|
|00006160| 72 65 49 63 6f 6e 53 69 | 7a 65 20 2a 20 31 2e 37 |reIconSi|ze * 1.7|
|00006170| 35 20 2a 20 30 2e 35 2c | 20 48 55 44 4c 6f 63 61 |5 * 0.5,| HUDLoca|
|00006180| 74 69 6f 6e 2e 59 20 2d | 20 43 6f 72 65 49 63 6f |tion.Y -| CoreIco|
|00006190| 6e 53 69 7a 65 20 2a 20 | 31 2e 37 35 20 2a 20 30 |nSize * |1.75 * 0|
|000061a0| 2e 35 29 3b 0d 0a 09 20 | 20 20 20 20 20 20 20 43 |.5);... | C|
|000061b0| 2e 44 72 61 77 54 69 6c | 65 28 4d 61 74 65 72 69 |.DrawTil|e(Materi|
|000061c0| 61 6c 27 4e 65 77 48 55 | 44 49 63 6f 6e 73 27 2c |al'NewHU|DIcons',|
|000061d0| 20 43 6f 72 65 49 63 6f | 6e 53 69 7a 65 20 2a 20 | CoreIco|nSize * |
|000061e0| 31 2e 37 35 2c 20 43 6f | 72 65 49 63 6f 6e 53 69 |1.75, Co|reIconSi|
|000061f0| 7a 65 20 2a 20 31 2e 37 | 35 2c 20 30 2c 20 33 32 |ze * 1.7|5, 0, 32|
|00006200| 2c 20 33 32 2c 20 33 32 | 29 3b 0d 0a 09 20 20 20 |, 32, 32|);... |
|00006210| 20 7d 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 73 69 6d | }...}..|}....sim|
|00006220| 75 6c 61 74 65 64 20 73 | 74 61 74 69 63 20 66 75 |ulated s|tatic fu|
|00006230| 6e 63 74 69 6f 6e 20 44 | 72 61 77 53 70 61 77 6e |nction D|rawSpawn|
|00006240| 49 63 6f 6e 28 20 43 61 | 6e 76 61 73 20 43 2c 20 |Icon( Ca|nvas C, |
|00006250| 76 65 63 74 6f 72 20 48 | 55 44 4c 6f 63 61 74 69 |vector H|UDLocati|
|00006260| 6f 6e 2c 20 62 6f 6f 6c | 20 62 46 69 6e 61 6c 43 |on, bool| bFinalC|
|00006270| 6f 72 65 2c 20 66 6c 6f | 61 74 20 49 63 6f 6e 53 |ore, flo|at IconS|
|00006280| 63 61 6c 69 6e 67 2c 20 | 66 6c 6f 61 74 20 48 55 |caling, |float HU|
|00006290| 44 53 63 61 6c 69 6e 67 | 20 29 0d 0a 7b 0d 0a 09 |DScaling| )..{...|
|000062a0| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 43 6f 72 65 |local fl|oat Core|
|000062b0| 49 63 6f 6e 53 69 7a 65 | 3b 0d 0a 0d 0a 09 69 66 |IconSize|;.....if|
|000062c0| 20 28 20 43 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a | ( C == |None )..|
|000062d0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 09 43 6f |..return|;.....Co|
|000062e0| 72 65 49 63 6f 6e 53 69 | 7a 65 20 3d 20 49 63 6f |reIconSi|ze = Ico|
|000062f0| 6e 53 63 61 6c 69 6e 67 | 20 2a 20 31 36 20 2a 20 |nScaling| * 16 * |
|00006300| 43 2e 43 6c 69 70 58 20 | 2a 20 48 55 44 53 63 61 |C.ClipX |* HUDSca|
|00006310| 6c 69 6e 67 2f 31 36 30 | 30 3b 0d 0a 20 20 20 20 |ling/160|0;.. |
|00006320| 43 2e 44 72 61 77 43 6f | 6c 6f 72 2e 42 20 3d 20 |C.DrawCo|lor.B = |
|00006330| 30 3b 0d 0a 20 20 20 20 | 43 2e 44 72 61 77 43 6f |0;.. |C.DrawCo|
|00006340| 6c 6f 72 2e 47 20 3d 20 | 32 30 30 3b 0d 0a 20 20 |lor.G = |200;.. |
|00006350| 20 20 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 52 20 | C.Draw|Color.R |
|00006360| 3d 20 30 3b 0d 0a 20 20 | 20 20 43 2e 44 72 61 77 |= 0;.. | C.Draw|
|00006370| 43 6f 6c 6f 72 2e 41 20 | 3d 20 32 35 35 3b 0d 0a |Color.A |= 255;..|
|00006380| 0d 0a 20 20 20 20 69 66 | 20 28 62 46 69 6e 61 6c |.. if| (bFinal|
|00006390| 43 6f 72 65 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 |Core).. | {.. |
|000063a0| 20 20 20 20 20 20 43 2e | 53 65 74 50 6f 73 28 48 | C.|SetPos(H|
|000063b0| 55 44 4c 6f 63 61 74 69 | 6f 6e 2e 58 20 2d 20 43 |UDLocati|on.X - C|
|000063c0| 6f 72 65 49 63 6f 6e 53 | 69 7a 65 20 2a 20 35 2e |oreIconS|ize * 5.|
|000063d0| 35 20 2a 20 30 2e 35 2c | 20 48 55 44 4c 6f 63 61 |5 * 0.5,| HUDLoca|
|000063e0| 74 69 6f 6e 2e 59 20 2d | 20 43 6f 72 65 49 63 6f |tion.Y -| CoreIco|
|000063f0| 6e 53 69 7a 65 20 2a 20 | 35 2e 35 20 2a 20 30 2e |nSize * |5.5 * 0.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.