home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 July & August / Gamestar_64_2004-07-08_dvd.iso / Patche / ut2004-winpatch3204.exe / UT2004-Patch / System / UnrealGame.u / ScriptText11.TextBuffer < prev    next >
Unknown  |  2004-05-10  |  11.5 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

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

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4f b7 01 63 6c 61 73 73 |........|O..class|
|00000010| 20 44 65 73 74 72 6f 79 | 61 62 6c 65 4f 62 6a 65 | Destroy|ableObje|
|00000020| 63 74 69 76 65 20 65 78 | 74 65 6e 64 73 20 47 61 |ctive ex|tends Ga|
|00000030| 6d 65 4f 62 6a 65 63 74 | 69 76 65 3b 0d 0a 0d 0a |meObject|ive;....|
|00000040| 2f 2f 20 54 72 69 67 67 | 65 72 20 74 79 70 65 2e |// Trigg|er type.|
|00000050| 0d 0a 76 61 72 28 29 20 | 65 6e 75 6d 20 45 43 6f |..var() |enum ECo|
|00000060| 6e 73 74 72 61 69 6e 74 | 49 6e 73 74 69 67 61 74 |nstraint|Instigat|
|00000070| 6f 72 0d 0a 7b 0d 0a 09 | 43 49 5f 41 6c 6c 2c 09 |or..{...|CI_All,.|
|00000080| 09 09 09 2f 2f 20 41 6e | 79 74 68 69 6e 67 20 63 |...// An|ything c|
|00000090| 61 6e 20 64 65 61 6c 20 | 64 61 6d 61 67 65 20 74 |an deal |damage t|
|000000a0| 6f 20 6f 62 6a 65 63 74 | 69 76 65 0d 0a 09 43 49 |o object|ive...CI|
|000000b0| 5f 50 61 77 6e 43 6c 61 | 73 73 2c 09 09 2f 2f 20 |_PawnCla|ss,..// |
|000000c0| 4f 6e 6c 79 20 46 6f 72 | 63 65 64 20 50 61 77 6e |Only For|ced Pawn|
|000000d0| 20 63 6c 61 73 73 20 63 | 61 6e 20 64 65 61 6c 20 | class c|an deal |
|000000e0| 64 61 6d 61 67 65 20 74 | 6f 20 6f 62 6a 65 63 74 |damage t|o object|
|000000f0| 69 76 65 0d 0a 7d 20 43 | 6f 6e 73 74 72 61 69 6e |ive..} C|onstrain|
|00000100| 74 49 6e 73 74 69 67 61 | 74 6f 72 3b 0d 0a 0d 0a |tInstiga|tor;....|
|00000110| 76 61 72 28 29 09 63 6c | 61 73 73 3c 50 61 77 6e |var().cl|ass<Pawn|
|00000120| 3e 09 43 6f 6e 73 74 72 | 61 69 6e 74 50 61 77 6e |>.Constr|aintPawn|
|00000130| 43 6c 61 73 73 3b 0d 0a | 0d 0a 76 61 72 28 29 09 |Class;..|..var().|
|00000140| 69 6e 74 09 09 44 61 6d | 61 67 65 43 61 70 61 63 |int..Dam|ageCapac|
|00000150| 69 74 79 3b 09 09 09 2f | 2f 20 61 6d 6f 75 6e 74 |ity;.../|/ amount|
|00000160| 20 6f 66 20 64 61 6d 61 | 67 65 20 74 68 61 74 20 | of dama|ge that |
|00000170| 63 61 6e 20 62 65 20 74 | 61 6b 65 6e 20 62 65 66 |can be t|aken bef|
|00000180| 6f 72 65 20 64 65 73 74 | 72 6f 79 65 64 0d 0a 76 |ore dest|royed..v|
|00000190| 61 72 28 29 09 6e 61 6d | 65 09 54 61 6b 65 44 61 |ar().nam|e.TakeDa|
|000001a0| 6d 61 67 65 45 76 65 6e | 74 3b 0d 0a 76 61 72 28 |mageEven|t;..var(|
|000001b0| 29 09 69 6e 74 09 09 44 | 61 6d 61 67 65 45 76 65 |).int..D|amageEve|
|000001c0| 6e 74 54 68 72 65 73 68 | 6f 6c 64 3b 09 2f 2f 20 |ntThresh|old;.// |
|000001d0| 74 72 69 67 67 65 72 20 | 64 61 6d 61 67 65 20 65 |trigger |damage e|
|000001e0| 76 65 6e 74 20 77 68 65 | 6e 65 76 65 72 20 74 68 |vent whe|never th|
|000001f0| 69 73 20 61 6d 6f 75 6e | 74 20 6f 66 20 64 61 6d |is amoun|t of dam|
|00000200| 61 67 65 20 69 73 20 74 | 61 6b 65 6e 0d 0a 76 61 |age is t|aken..va|
|00000210| 72 09 09 69 6e 74 09 09 | 41 63 63 75 6d 75 6c 61 |r..int..|Accumula|
|00000220| 74 65 64 44 61 6d 61 67 | 65 3b 0d 0a 76 61 72 09 |tedDamag|e;..var.|
|00000230| 09 69 6e 74 09 09 48 65 | 61 6c 74 68 3b 0d 0a 76 |.int..He|alth;..v|
|00000240| 61 72 09 09 66 6c 6f 61 | 74 09 4c 69 6e 6b 48 65 |ar..floa|t.LinkHe|
|00000250| 61 6c 4d 75 6c 74 3b 09 | 09 09 2f 2f 20 49 66 20 |alMult;.|..// If |
|00000260| 3e 20 30 2c 20 4c 69 6e | 6b 20 47 75 6e 20 73 65 |> 0, Lin|k Gun se|
|00000270| 63 6f 6e 64 61 72 79 20 | 68 65 61 6c 73 20 61 6e |condary |heals an|
|00000280| 20 61 6d 6f 75 6e 74 20 | 65 71 75 61 6c 20 74 6f | amount |equal to|
|00000290| 20 69 74 73 20 64 61 6d | 61 67 65 20 74 69 6d 65 | its dam|age time|
|000002a0| 73 20 74 68 69 73 0d 0a | 76 61 72 28 29 09 66 6c |s this..|var().fl|
|000002b0| 6f 61 74 09 56 65 68 69 | 63 6c 65 44 61 6d 61 67 |oat.Vehi|cleDamag|
|000002c0| 65 53 63 61 6c 69 6e 67 | 3b 0d 0a 76 61 72 28 29 |eScaling|;..var()|
|000002d0| 20 20 20 76 65 63 74 6f | 72 20 20 41 49 53 68 6f | vecto|r AISho|
|000002e0| 6f 74 4f 66 66 73 65 74 | 3b 20 2f 2f 61 64 6a 75 |otOffset|; //adju|
|000002f0| 73 74 20 77 68 65 72 65 | 20 41 49 20 73 68 6f 75 |st where| AI shou|
|00000300| 6c 64 20 74 72 79 20 74 | 6f 20 73 68 6f 6f 74 20 |ld try t|o shoot |
|00000310| 74 68 69 73 20 6f 62 6a | 65 63 74 69 76 65 0d 0a |this obj|ective..|
|00000320| 76 61 72 20 53 68 6f 6f | 74 54 61 72 67 65 74 20 |var Shoo|tTarget |
|00000330| 53 68 6f 6f 74 54 61 72 | 67 65 74 3b 0d 0a 0d 0a |ShootTar|get;....|
|00000340| 76 61 72 28 29 09 62 6f | 6f 6c 09 62 43 61 6e 44 |var().bo|ol.bCanD|
|00000350| 65 66 65 6e 64 65 72 44 | 61 6d 61 67 65 3b 09 09 |efenderD|amage;..|
|00000360| 2f 2f 20 63 61 6e 20 64 | 65 66 65 6e 64 65 72 20 |// can d|efender |
|00000370| 64 61 6d 61 67 65 20 6f | 62 6a 65 63 74 69 76 65 |damage o|bjective|
|00000380| 20 3f 0d 0a 76 61 72 20 | 20 20 20 20 62 6f 6f 6c | ?..var | bool|
|00000390| 20 20 20 20 62 52 65 70 | 6c 69 63 61 74 65 48 65 | bRep|licateHe|
|000003a0| 61 6c 74 68 3b 0d 0a 76 | 61 72 20 62 6f 6f 6c 09 |alth;..v|ar bool.|
|000003b0| 09 62 4d 6f 6e 69 74 6f | 72 55 6e 64 65 72 41 74 |.bMonito|rUnderAt|
|000003c0| 74 61 63 6b 3b 0d 0a 76 | 61 72 09 62 6f 6f 6c 09 |tack;..v|ar.bool.|
|000003d0| 09 62 49 73 55 6e 64 65 | 72 41 74 74 61 63 6b 3b |.bIsUnde|rAttack;|
|000003e0| 0d 0a 76 61 72 09 56 6f | 6c 75 6d 65 54 69 6d 65 |..var.Vo|lumeTime|
|000003f0| 72 09 55 6e 64 65 72 41 | 74 74 61 63 6b 54 69 6d |r.UnderA|ttackTim|
|00000400| 65 72 3b 0d 0a 76 61 72 | 20 66 6c 6f 61 74 09 09 |er;..var| float..|
|00000410| 4c 61 73 74 44 61 6d 61 | 67 65 54 69 6d 65 3b 0d |LastDama|geTime;.|
|00000420| 0a 76 61 72 20 66 6c 6f | 61 74 09 09 4c 61 73 74 |.var flo|at..Last|
|00000430| 57 61 72 6e 54 69 6d 65 | 3b 0d 0a 0d 0a 72 65 70 |WarnTime|;....rep|
|00000440| 6c 69 63 61 74 69 6f 6e | 0d 0a 7b 0d 0a 20 20 20 |lication|..{.. |
|00000450| 20 72 65 6c 69 61 62 6c | 65 20 69 66 20 28 20 62 | reliabl|e if ( b|
|00000460| 52 65 70 6c 69 63 61 74 | 65 48 65 61 6c 74 68 20 |Replicat|eHealth |
|00000470| 26 26 20 28 52 6f 6c 65 | 20 3d 3d 20 52 4f 4c 45 |&& (Role| == ROLE|
|00000480| 5f 41 75 74 68 6f 72 69 | 74 79 29 20 29 0d 0a 20 |_Authori|ty) ).. |
|00000490| 20 20 20 20 20 20 20 48 | 65 61 6c 74 68 3b 0d 0a | H|ealth;..|
|000004a0| 0d 0a 09 75 6e 72 65 6c | 69 61 62 6c 65 20 69 66 |...unrel|iable if|
|000004b0| 20 28 20 62 4d 6f 6e 69 | 74 6f 72 55 6e 64 65 72 | ( bMoni|torUnder|
|000004c0| 41 74 74 61 63 6b 20 26 | 26 20 28 52 6f 6c 65 3d |Attack &|& (Role=|
|000004d0| 3d 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 29 |=ROLE_Au|thority)|
|000004e0| 20 26 26 20 62 52 65 70 | 6c 69 63 61 74 65 4f 62 | && bRep|licateOb|
|000004f0| 6a 65 63 74 69 76 65 20 | 26 26 20 62 4e 65 74 44 |jective |&& bNetD|
|00000500| 69 72 74 79 20 29 0d 0a | 09 09 62 49 73 55 6e 64 |irty )..|..bIsUnd|
|00000510| 65 72 41 74 74 61 63 6b | 3b 0d 0a 7d 0d 0a 0d 0a |erAttack|;..}....|
|00000520| 66 75 6e 63 74 69 6f 6e | 20 50 6f 73 74 42 65 67 |function| PostBeg|
|00000530| 69 6e 50 6c 61 79 28 29 | 0d 0a 7b 0d 0a 09 73 75 |inPlay()|..{...su|
|00000540| 70 65 72 2e 50 6f 73 74 | 42 65 67 69 6e 50 6c 61 |per.Post|BeginPla|
|00000550| 79 28 29 3b 0d 0a 09 69 | 66 20 28 41 49 53 68 6f |y();...i|f (AISho|
|00000560| 6f 74 4f 66 66 73 65 74 | 20 21 3d 20 76 65 63 74 |otOffset| != vect|
|00000570| 28 30 2c 30 2c 30 29 29 | 0d 0a 09 7b 0d 0a 09 09 |(0,0,0))|...{....|
|00000580| 53 68 6f 6f 74 54 61 72 | 67 65 74 20 3d 20 73 70 |ShootTar|get = sp|
|00000590| 61 77 6e 28 63 6c 61 73 | 73 27 53 68 6f 6f 74 54 |awn(clas|s'ShootT|
|000005a0| 61 72 67 65 74 27 2c 20 | 73 65 6c 66 2c 2c 20 4c |arget', |self,, L|
|000005b0| 6f 63 61 74 69 6f 6e 20 | 2b 20 41 49 53 68 6f 6f |ocation |+ AIShoo|
|000005c0| 74 4f 66 66 73 65 74 29 | 3b 0d 0a 09 09 53 68 6f |tOffset)|;....Sho|
|000005d0| 6f 74 54 61 72 67 65 74 | 2e 53 65 74 42 61 73 65 |otTarget|.SetBase|
|000005e0| 28 73 65 6c 66 29 3b 0d | 0a 09 7d 0d 0a 09 52 65 |(self);.|..}...Re|
|000005f0| 73 65 74 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 65 76 65 |set();..|}....eve|
|00000600| 6e 74 20 69 6e 74 20 53 | 70 65 63 69 61 6c 43 6f |nt int S|pecialCo|
|00000610| 73 74 28 50 61 77 6e 20 | 4f 74 68 65 72 2c 20 52 |st(Pawn |Other, R|
|00000620| 65 61 63 68 53 70 65 63 | 20 50 61 74 68 29 0d 0a |eachSpec| Path)..|
|00000630| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 30 3b 0d 0a 7d |{...retu|rn 0;..}|
|00000640| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |....func|tion Set|
|00000650| 44 65 6c 61 79 65 64 44 | 61 6d 61 67 65 49 6e 73 |DelayedD|amageIns|
|00000660| 74 69 67 61 74 6f 72 43 | 6f 6e 74 72 6f 6c 6c 65 |tigatorC|ontrolle|
|00000670| 72 28 43 6f 6e 74 72 6f | 6c 6c 65 72 20 43 29 0d |r(Contro|ller C).|
|00000680| 0a 7b 0d 0a 09 44 65 6c | 61 79 65 64 44 61 6d 61 |.{...Del|ayedDama|
|00000690| 67 65 49 6e 73 74 69 67 | 61 74 6f 72 43 6f 6e 74 |geInstig|atorCont|
|000006a0| 72 6f 6c 6c 65 72 20 3d | 20 43 3b 0d 0a 7d 0d 0a |roller =| C;..}..|
|000006b0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 65 73 74 72 |..functi|on Destr|
|000006c0| 6f 79 65 64 28 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |oyed()..|{...if (|
|000006d0| 20 55 6e 64 65 72 41 74 | 74 61 63 6b 54 69 6d 65 | UnderAt|tackTime|
|000006e0| 72 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 7b 0d |r != Non|e )...{.|
|000006f0| 0a 09 09 55 6e 64 65 72 | 41 74 74 61 63 6b 54 69 |...Under|AttackTi|
|00000700| 6d 65 72 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |mer.Dest|roy();..|
|00000710| 09 09 55 6e 64 65 72 41 | 74 74 61 63 6b 54 69 6d |..UnderA|ttackTim|
|00000720| 65 72 20 3d 20 4e 6f 6e | 65 3b 0d 0a 09 7d 0d 0a |er = Non|e;...}..|
|00000730| 0d 0a 09 73 75 70 65 72 | 2e 44 65 73 74 72 6f 79 |...super|.Destroy|
|00000740| 65 64 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ed();..}|....simu|
|00000750| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 62 |lated fu|nction b|
|00000760| 6f 6f 6c 20 54 65 61 6d | 4c 69 6e 6b 28 69 6e 74 |ool Team|Link(int|
|00000770| 20 54 65 61 6d 4e 75 6d | 29 0d 0a 7b 0d 0a 09 72 | TeamNum|)..{...r|
|00000780| 65 74 75 72 6e 20 28 20 | 4c 69 6e 6b 48 65 61 6c |eturn ( |LinkHeal|
|00000790| 4d 75 6c 74 20 3e 20 30 | 20 26 26 20 28 44 65 66 |Mult > 0| && (Def|
|000007a0| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3d |enderTea|mIndex =|
|000007b0| 3d 20 54 65 61 6d 4e 75 | 6d 29 20 29 3b 0d 0a 7d |= TeamNu|m) );..}|
|000007c0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 41 63 74 |....func|tion Act|
|000007d0| 6f 72 20 47 65 74 53 68 | 6f 6f 74 54 61 72 67 65 |or GetSh|ootTarge|
|000007e0| 74 28 29 0d 0a 7b 0d 0a | 09 69 66 20 28 53 68 6f |t()..{..|.if (Sho|
|000007f0| 6f 74 54 61 72 67 65 74 | 20 21 3d 20 4e 6f 6e 65 |otTarget| != None|
|00000800| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 53 68 6f 6f |)....ret|urn Shoo|
|00000810| 74 54 61 72 67 65 74 3b | 0d 0a 0d 0a 09 72 65 74 |tTarget;|.....ret|
|00000820| 75 72 6e 20 73 65 6c 66 | 3b 0d 0a 7d 0d 0a 0d 0a |urn self|;..}....|
|00000830| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 4b 69 |function| bool Ki|
|00000840| 6c 6c 45 6e 65 6d 79 46 | 69 72 73 74 28 42 6f 74 |llEnemyF|irst(Bot|
|00000850| 20 42 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 | B)..{..|.return |
|00000860| 66 61 6c 73 65 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2a 20 |false;..|}..../* |
|00000870| 54 65 6c 6c 42 6f 74 48 | 6f 77 54 6f 44 69 73 61 |TellBotH|owToDisa|
|00000880| 62 6c 65 28 29 0d 0a 74 | 65 6c 6c 20 62 6f 74 20 |ble()..t|ell bot |
|00000890| 77 68 61 74 20 74 6f 20 | 64 6f 20 74 6f 20 64 69 |what to |do to di|
|000008a0| 73 61 62 6c 65 20 6d 65 | 2e 0d 0a 72 65 74 75 72 |sable me|...retur|
|000008b0| 6e 20 74 72 75 65 20 69 | 66 20 76 61 6c 69 64 2f |n true i|f valid/|
|000008c0| 75 73 65 61 62 6c 65 20 | 69 6e 73 74 72 75 63 74 |useable |instruct|
|000008d0| 69 6f 6e 73 20 77 65 72 | 65 20 67 69 76 65 6e 0d |ions wer|e given.|
|000008e0| 0a 2a 2f 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |.*/..fun|ction bo|
|000008f0| 6f 6c 20 54 65 6c 6c 42 | 6f 74 48 6f 77 54 6f 44 |ol TellB|otHowToD|
|00000900| 69 73 61 62 6c 65 28 42 | 6f 74 20 42 29 0d 0a 7b |isable(B|ot B)..{|
|00000910| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 69 3b 0d |...local| int i;.|
|00000920| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 42 65 |..local |float Be|
|00000930| 73 74 2c 20 4e 65 78 74 | 3b 0d 0a 09 6c 6f 63 61 |st, Next|;...loca|
|00000940| 6c 20 76 65 63 74 6f 72 | 20 44 69 72 3b 0d 0a 09 |l vector| Dir;...|
|00000950| 6c 6f 63 61 6c 20 4e 61 | 76 69 67 61 74 69 6f 6e |local Na|vigation|
|00000960| 50 6f 69 6e 74 20 42 65 | 73 74 50 61 74 68 3b 0d |Point Be|stPath;.|
|00000970| 0a 09 6c 6f 63 61 6c 20 | 62 6f 6f 6c 20 62 52 65 |..local |bool bRe|
|00000980| 73 75 6c 74 3b 0d 0a 0d | 0a 09 2f 2f 20 4f 6e 6c |sult;...|..// Onl|
|00000990| 79 20 61 20 73 70 65 63 | 69 66 69 63 20 50 61 77 |y a spec|ific Paw|
|000009a0| 6e 20 63 61 6e 20 64 65 | 61 6c 20 64 61 6d 61 67 |n can de|al damag|
|000009b0| 65 20 74 6f 20 6f 62 6a | 65 63 74 69 76 65 20 3f |e to obj|ective ?|
|000009c0| 0d 0a 09 69 66 20 28 20 | 43 6f 6e 73 74 72 61 69 |...if ( |Constrai|
|000009d0| 6e 74 49 6e 73 74 69 67 | 61 74 6f 72 20 3d 3d 20 |ntInstig|ator == |
|000009e0| 43 49 5f 50 61 77 6e 43 | 6c 61 73 73 20 26 26 20 |CI_PawnC|lass && |
|000009f0| 21 43 6c 61 73 73 49 73 | 43 68 69 6c 64 4f 66 28 |!ClassIs|ChildOf(|
|00000a00| 42 2e 50 61 77 6e 2e 43 | 6c 61 73 73 2c 20 43 6f |B.Pawn.C|lass, Co|
|00000a10| 6e 73 74 72 61 69 6e 74 | 50 61 77 6e 43 6c 61 73 |nstraint|PawnClas|
|00000a20| 73 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 66 |s) )....|return f|
|00000a30| 61 6c 73 65 3b 0d 0a 0d | 0a 09 69 66 20 28 20 28 |alse;...|..if ( (|
|00000a40| 42 2e 50 61 77 6e 2e 50 | 68 79 73 69 63 73 20 3d |B.Pawn.P|hysics =|
|00000a50| 3d 20 50 48 59 53 5f 46 | 6c 79 69 6e 67 29 20 26 |= PHYS_F|lying) &|
|00000a60| 26 20 28 42 2e 50 61 77 | 6e 2e 4d 69 6e 46 6c 79 |& (B.Paw|n.MinFly|
|00000a70| 53 70 65 65 64 20 3e 20 | 30 29 20 29 0d 0a 09 7b |Speed > |0) )...{|
|00000a80| 0d 0a 09 09 69 66 20 28 | 20 28 56 65 68 69 63 6c |....if (| (Vehicl|
|00000a90| 65 50 61 74 68 20 21 3d | 20 4e 6f 6e 65 29 20 26 |ePath !=| None) &|
|00000aa0| 26 20 42 2e 50 61 77 6e | 2e 52 65 61 63 68 65 64 |& B.Pawn|.Reached|
|00000ab0| 44 65 73 74 69 6e 61 74 | 69 6f 6e 28 56 65 68 69 |Destinat|ion(Vehi|
|00000ac0| 63 6c 65 50 61 74 68 29 | 20 29 0d 0a 09 09 7b 0d |clePath)| )....{.|
|00000ad0| 0a 09 09 09 42 2e 50 61 | 77 6e 2e 41 69 72 53 70 |....B.Pa|wn.AirSp|
|00000ae0| 65 65 64 20 3d 20 46 4d | 69 6e 28 42 2e 50 61 77 |eed = FM|in(B.Paw|
|00000af0| 6e 2e 41 69 72 53 70 65 | 65 64 2c 20 31 2e 30 35 |n.AirSpe|ed, 1.05|
|00000b00| 20 2a 20 42 2e 50 61 77 | 6e 2e 4d 69 6e 46 6c 79 | * B.Paw|n.MinFly|
|00000b10| 53 70 65 65 64 29 3b 0d | 0a 09 09 09 42 2e 50 61 |Speed);.|....B.Pa|
|00000b20| 77 6e 2e 62 54 68 75 6d | 70 65 64 20 3d 20 74 72 |wn.bThum|ped = tr|
|00000b30| 75 65 3b 0d 0a 09 09 09 | 44 69 72 20 3d 20 4e 6f |ue;.....|Dir = No|
|00000b40| 72 6d 61 6c 28 42 2e 50 | 61 77 6e 2e 56 65 6c 6f |rmal(B.P|awn.Velo|
|00000b50| 63 69 74 79 29 3b 0d 0a | 09 09 09 2f 2f 20 67 6f |city);..|...// go|
|00000b60| 20 6f 6e 20 74 6f 20 6e | 65 78 74 20 70 61 74 68 | on to n|ext path|
|00000b70| 6e 6f 64 65 20 70 61 73 | 74 20 56 65 68 69 63 6c |node pas|t Vehicl|
|00000b80| 65 50 61 74 68 0d 0a 09 | 09 09 66 6f 72 20 28 20 |ePath...|..for ( |
|00000b90| 69 3d 30 3b 20 69 3c 56 | 65 68 69 63 6c 65 50 61 |i=0; i<V|ehiclePa|
|00000ba0| 74 68 2e 50 61 74 68 4c | 69 73 74 2e 4c 65 6e 67 |th.PathL|ist.Leng|
|00000bb0| 74 68 3b 20 69 2b 2b 20 | 29 0d 0a 09 09 09 7b 0d |th; i++ |).....{.|
|00000bc0| 0a 09 09 09 09 69 66 20 | 28 20 42 65 73 74 50 61 |.....if |( BestPa|
|00000bd0| 74 68 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |th == No|ne )....|
|00000be0| 09 09 7b 0d 0a 09 09 09 | 09 09 42 65 73 74 50 61 |..{.....|..BestPa|
|00000bf0| 74 68 20 3d 20 56 65 68 | 69 63 6c 65 50 61 74 68 |th = Veh|iclePath|
|00000c00| 2e 50 61 74 68 4c 69 73 | 74 5b 69 5d 2e 45 6e 64 |.PathLis|t[i].End|
|00000c10| 3b 0d 0a 09 09 09 09 09 | 42 65 73 74 20 3d 20 44 |;.......|Best = D|
|00000c20| 69 72 20 44 6f 74 20 4e | 6f 72 6d 61 6c 28 42 65 |ir Dot N|ormal(Be|
|00000c30| 73 74 50 61 74 68 2e 4c | 6f 63 61 74 69 6f 6e 20 |stPath.L|ocation |
|00000c40| 2d 20 56 65 68 69 63 6c | 65 50 61 74 68 2e 4c 6f |- Vehicl|ePath.Lo|
|00000c50| 63 61 74 69 6f 6e 29 3b | 0d 0a 09 09 09 09 7d 0d |cation);|......}.|
|00000c60| 0a 09 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 09 7b |.....els|e......{|
|00000c70| 0d 0a 09 09 09 09 09 4e | 65 78 74 20 3d 20 44 69 |.......N|ext = Di|
|00000c80| 72 20 44 6f 74 20 4e 6f | 72 6d 61 6c 28 56 65 68 |r Dot No|rmal(Veh|
|00000c90| 69 63 6c 65 50 61 74 68 | 2e 50 61 74 68 4c 69 73 |iclePath|.PathLis|
|00000ca0| 74 5b 69 5d 2e 45 6e 64 | 2e 4c 6f 63 61 74 69 6f |t[i].End|.Locatio|
|00000cb0| 6e 20 2d 20 56 65 68 69 | 63 6c 65 50 61 74 68 2e |n - Vehi|clePath.|
|00000cc0| 4c 6f 63 61 74 69 6f 6e | 29 3b 0d 0a 09 09 09 09 |Location|);......|
|00000cd0| 09 69 66 20 28 20 4e 65 | 78 74 20 3e 20 42 65 73 |.if ( Ne|xt > Bes|
|00000ce0| 74 20 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |t ).....|..{.....|
|00000cf0| 09 09 09 42 65 73 74 20 | 3d 20 4e 65 78 74 3b 0d |...Best |= Next;.|
|00000d00| 0a 09 09 09 09 09 09 42 | 65 73 74 50 61 74 68 20 |.......B|estPath |
|00000d10| 3d 20 56 65 68 69 63 6c | 65 50 61 74 68 2e 50 61 |= Vehicl|ePath.Pa|
|00000d20| 74 68 4c 69 73 74 5b 69 | 5d 2e 45 6e 64 3b 0d 0a |thList[i|].End;..|
|00000d30| 09 09 09 09 09 7d 0d 0a | 09 09 09 09 7d 0d 0a 09 |.....}..|....}...|
|00000d40| 09 09 7d 0d 0a 09 09 09 | 69 66 20 28 20 42 65 73 |..}.....|if ( Bes|
|00000d50| 74 50 61 74 68 20 21 3d | 20 4e 6f 6e 65 20 29 0d |tPath !=| None ).|
|00000d60| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 42 2e 4d 6f 76 |....{...|...B.Mov|
|00000d70| 65 54 61 72 67 65 74 20 | 3d 20 42 65 73 74 50 61 |eTarget |= BestPa|
|00000d80| 74 68 3b 0d 0a 09 09 09 | 09 42 2e 53 65 74 41 74 |th;.....|.B.SetAt|
|00000d90| 74 72 61 63 74 69 6f 6e | 53 74 61 74 65 28 29 3b |traction|State();|
|00000da0| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00000db0| 65 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 7d 0d 0a 09 |e;.....}|....}...|
|00000dc0| 09 69 66 20 28 20 42 2e | 43 61 6e 41 74 74 61 63 |.if ( B.|CanAttac|
|00000dd0| 6b 28 47 65 74 53 68 6f | 6f 74 54 61 72 67 65 74 |k(GetSho|otTarget|
|00000de0| 28 29 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 42 |()) )...|.{.....B|
|00000df0| 2e 50 61 77 6e 2e 41 69 | 72 53 70 65 65 64 20 3d |.Pawn.Ai|rSpeed =|
|00000e00| 20 46 4d 69 6e 28 42 2e | 50 61 77 6e 2e 41 69 72 | FMin(B.|Pawn.Air|
|00000e10| 53 70 65 65 64 2c 20 31 | 2e 30 35 20 2a 20 42 2e |Speed, 1|.05 * B.|
|00000e20| 50 61 77 6e 2e 4d 69 6e | 46 6c 79 53 70 65 65 64 |Pawn.Min|FlySpeed|
|00000e30| 29 3b 0d 0a 09 09 09 42 | 2e 46 6f 63 75 73 20 3d |);.....B|.Focus =|
|00000e40| 20 73 65 6c 66 3b 0d 0a | 09 09 09 42 2e 46 69 72 | self;..|...B.Fir|
|00000e50| 65 57 65 61 70 6f 6e 41 | 74 28 73 65 6c 66 29 3b |eWeaponA|t(self);|
|00000e60| 0d 0a 09 09 09 42 2e 47 | 6f 61 6c 53 74 72 69 6e |.....B.G|oalStrin|
|00000e70| 67 20 3d 20 22 41 74 74 | 61 63 6b 20 4f 62 6a 65 |g = "Att|ack Obje|
|00000e80| 63 74 69 76 65 22 3b 0d | 0a 09 09 09 69 66 20 28 |ctive";.|....if (|
|00000e90| 20 21 42 2e 53 71 75 61 | 64 2e 46 69 6e 64 50 61 | !B.Squa|d.FindPa|
|00000ea0| 74 68 54 6f 4f 62 6a 65 | 63 74 69 76 65 28 42 2c |thToObje|ctive(B,|
|00000eb0| 73 65 6c 66 29 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |self) ).|....{...|
|00000ec0| 09 09 09 42 2e 44 6f 52 | 61 6e 67 65 64 41 74 74 |...B.DoR|angedAtt|
|00000ed0| 61 63 6b 4f 6e 28 47 65 | 74 53 68 6f 6f 74 54 61 |ackOn(Ge|tShootTa|
|00000ee0| 72 67 65 74 28 29 29 3b | 0d 0a 09 09 09 09 42 2e |rget());|......B.|
|00000ef0| 50 61 77 6e 2e 41 63 63 | 65 6c 65 72 61 74 69 6f |Pawn.Acc|eleratio|
|00000f00| 6e 20 3d 20 42 2e 50 61 | 77 6e 2e 41 63 63 65 6c |n = B.Pa|wn.Accel|
|00000f10| 52 61 74 65 20 2a 20 4e | 6f 72 6d 61 6c 28 4c 6f |Rate * N|ormal(Lo|
|00000f20| 63 61 74 69 6f 6e 20 2d | 20 42 2e 50 61 77 6e 2e |cation -| B.Pawn.|
|00000f30| 4c 6f 63 61 74 69 6f 6e | 29 3b 0d 0a 09 09 09 7d |Location|);.....}|
|00000f40| 0d 0a 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 09 72 |.....els|e......r|
|00000f50| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 7d |eturn tr|ue;....}|
|00000f60| 0d 0a 09 09 62 52 65 73 | 75 6c 74 20 3d 20 53 75 |....bRes|ult = Su|
|00000f70| 70 65 72 2e 54 65 6c 6c | 42 6f 74 48 6f 77 54 6f |per.Tell|BotHowTo|
|00000f80| 44 69 73 61 62 6c 65 28 | 42 29 3b 0d 0a 09 09 69 |Disable(|B);....i|
|00000f90| 66 20 28 20 62 52 65 73 | 75 6c 74 20 26 26 20 28 |f ( bRes|ult && (|
|00000fa0| 46 6c 79 69 6e 67 50 61 | 74 68 4e 6f 64 65 28 42 |FlyingPa|thNode(B|
|00000fb0| 2e 4d 6f 76 65 54 61 72 | 67 65 74 29 20 21 3d 20 |.MoveTar|get) != |
|00000fc0| 4e 6f 6e 65 29 20 26 26 | 20 28 42 2e 4d 6f 76 65 |None) &&| (B.Move|
|00000fd0| 54 61 72 67 65 74 2e 43 | 6f 6c 6c 69 73 69 6f 6e |Target.C|ollision|
|00000fe0| 52 61 64 69 75 73 20 3c | 20 31 30 30 30 29 20 29 |Radius <| 1000) )|
|00000ff0| 0d 0a 09 09 09 42 2e 50 | 61 77 6e 2e 41 69 72 53 |.....B.P|awn.AirS|
|00001000| 70 65 65 64 20 3d 20 46 | 4d 69 6e 28 42 2e 50 61 |peed = F|Min(B.Pa|
|00001010| 77 6e 2e 41 69 72 53 70 | 65 65 64 2c 20 31 2e 30 |wn.AirSp|eed, 1.0|
|00001020| 35 20 2a 20 42 2e 50 61 | 77 6e 2e 4d 69 6e 46 6c |5 * B.Pa|wn.MinFl|
|00001030| 79 53 70 65 65 64 29 3b | 0d 0a 09 09 65 6c 73 65 |ySpeed);|....else|
|00001040| 0d 0a 09 09 09 42 2e 50 | 61 77 6e 2e 41 69 72 53 |.....B.P|awn.AirS|
|00001050| 70 65 65 64 20 3d 20 42 | 2e 50 61 77 6e 2e 44 65 |peed = B|.Pawn.De|
|00001060| 66 61 75 6c 74 2e 41 69 | 72 53 70 65 65 64 3b 0d |fault.Ai|rSpeed;.|
|00001070| 0a 09 09 72 65 74 75 72 | 6e 20 62 52 65 73 75 6c |...retur|n bResul|
|00001080| 74 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 20 69 66 |t;...}..|.else if|
|00001090| 20 28 20 21 42 2e 50 61 | 77 6e 2e 62 53 74 61 74 | ( !B.Pa|wn.bStat|
|000010a0| 69 6f 6e 61 72 79 20 26 | 26 20 42 2e 50 61 77 6e |ionary &|& B.Pawn|
|000010b0| 2e 54 6f 6f 43 6c 6f 73 | 65 54 6f 41 74 74 61 63 |.TooClos|eToAttac|
|000010c0| 6b 28 47 65 74 53 68 6f | 6f 74 54 61 72 67 65 74 |k(GetSho|otTarget|
|000010d0| 28 29 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 42 2e 47 |()) )...|{....B.G|
|000010e0| 6f 61 6c 53 74 72 69 6e | 67 20 3d 20 22 42 61 63 |oalStrin|g = "Bac|
|000010f0| 6b 20 6f 66 66 20 66 72 | 6f 6d 20 6f 62 6a 65 63 |k off fr|om objec|
|00001100| 74 69 76 65 22 3b 0d 0a | 09 09 42 2e 52 6f 75 74 |tive";..|..B.Rout|
|00001110| 65 47 6f 61 6c 20 3d 20 | 42 2e 46 69 6e 64 52 61 |eGoal = |B.FindRa|
|00001120| 6e 64 6f 6d 44 65 73 74 | 28 29 3b 0d 0a 09 09 42 |ndomDest|();....B|
|00001130| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 42 2e |.MoveTar|get = B.|
|00001140| 52 6f 75 74 65 43 61 63 | 68 65 5b 30 5d 3b 0d 0a |RouteCac|he[0];..|
|00001150| 09 09 42 2e 53 65 74 41 | 74 74 72 61 63 74 69 6f |..B.SetA|ttractio|
|00001160| 6e 53 74 61 74 65 28 29 | 3b 0d 0a 09 09 72 65 74 |nState()|;....ret|
|00001170| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 09 |urn true|;...}...|
|00001180| 65 6c 73 65 20 69 66 20 | 28 20 42 2e 43 61 6e 41 |else if |( B.CanA|
|00001190| 74 74 61 63 6b 28 47 65 | 74 53 68 6f 6f 74 54 61 |ttack(Ge|tShootTa|
|000011a0| 72 67 65 74 28 29 29 20 | 29 0d 0a 09 7b 0d 0a 09 |rget()) |)...{...|
|000011b0| 09 69 66 20 28 4b 69 6c | 6c 45 6e 65 6d 79 46 69 |.if (Kil|lEnemyFi|
|000011c0| 72 73 74 28 42 29 29 0d | 0a 09 09 09 72 65 74 75 |rst(B)).|....retu|
|000011d0| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 0d 0a 09 09 42 |rn false|;......B|
|000011e0| 2e 47 6f 61 6c 53 74 72 | 69 6e 67 20 3d 20 22 41 |.GoalStr|ing = "A|
|000011f0| 74 74 61 63 6b 20 4f 62 | 6a 65 63 74 69 76 65 22 |ttack Ob|jective"|
|00001200| 3b 0d 0a 09 09 42 2e 44 | 6f 52 61 6e 67 65 64 41 |;....B.D|oRangedA|
|00001210| 74 74 61 63 6b 4f 6e 28 | 47 65 74 53 68 6f 6f 74 |ttackOn(|GetShoot|
|00001220| 54 61 72 67 65 74 28 29 | 29 3b 0d 0a 09 09 72 65 |Target()|);....re|
|00001230| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 7d 0d 0a |turn tru|e;...}..|
|00001240| 0d 0a 09 72 65 74 75 72 | 6e 20 53 75 70 65 72 2e |...retur|n Super.|
|00001250| 54 65 6c 6c 42 6f 74 48 | 6f 77 54 6f 44 69 73 61 |TellBotH|owToDisa|
|00001260| 62 6c 65 28 42 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |ble(B);.|.}....fu|
|00001270| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 4e 65 61 72 |nction b|ool Near|
|00001280| 4f 62 6a 65 63 74 69 76 | 65 28 50 61 77 6e 20 50 |Objectiv|e(Pawn P|
|00001290| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 50 2e 43 61 |)..{...i|f ( P.Ca|
|000012a0| 6e 41 74 74 61 63 6b 28 | 47 65 74 53 68 6f 6f 74 |nAttack(|GetShoot|
|000012b0| 54 61 72 67 65 74 28 29 | 29 20 29 0d 0a 09 09 72 |Target()|) )....r|
|000012c0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 72 65 |eturn tr|ue;...re|
|000012d0| 74 75 72 6e 20 53 75 70 | 65 72 2e 4e 65 61 72 4f |turn Sup|er.NearO|
|000012e0| 62 6a 65 63 74 69 76 65 | 28 50 29 3b 0d 0a 7d 0d |bjective|(P);..}.|
|000012f0| 0a 0d 0a 2f 2a 20 54 65 | 6c 6c 42 6f 74 48 6f 77 |.../* Te|llBotHow|
|00001300| 54 6f 48 65 61 6c 28 29 | 0d 0a 74 65 6c 6c 20 62 |ToHeal()|..tell b|
|00001310| 6f 74 20 77 68 61 74 20 | 74 6f 20 64 6f 20 74 6f |ot what |to do to|
|00001320| 20 68 65 61 6c 20 6d 65 | 0d 0a 72 65 74 75 72 6e | heal me|..return|
|00001330| 20 74 72 75 65 20 69 66 | 20 76 61 6c 69 64 2f 75 | true if| valid/u|
|00001340| 73 65 61 62 6c 65 20 69 | 6e 73 74 72 75 63 74 69 |seable i|nstructi|
|00001350| 6f 6e 73 20 77 65 72 65 | 20 67 69 76 65 6e 0d 0a |ons were| given..|
|00001360| 2a 2f 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |*/..func|tion boo|
|00001370| 6c 20 54 65 6c 6c 42 6f | 74 48 6f 77 54 6f 48 65 |l TellBo|tHowToHe|
|00001380| 61 6c 28 42 6f 74 20 42 | 29 0d 0a 7b 0d 0a 09 6c |al(Bot B|)..{...l|
|00001390| 6f 63 61 6c 20 56 65 68 | 69 63 6c 65 20 4f 6c 64 |ocal Veh|icle Old|
|000013a0| 56 65 68 69 63 6c 65 3b | 0d 0a 0d 0a 09 69 66 20 |Vehicle;|.....if |
|000013b0| 28 21 54 65 61 6d 4c 69 | 6e 6b 28 42 2e 47 65 74 |(!TeamLi|nk(B.Get|
|000013c0| 54 65 61 6d 4e 75 6d 28 | 29 29 20 7c 7c 20 48 65 |TeamNum(|)) || He|
|000013d0| 61 6c 74 68 20 3e 3d 20 | 44 61 6d 61 67 65 43 61 |alth >= |DamageCa|
|000013e0| 70 61 63 69 74 79 29 0d | 0a 09 09 72 65 74 75 72 |pacity).|...retur|
|000013f0| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 69 66 20 |n false;|.....if |
|00001400| 28 42 2e 53 71 75 61 64 | 2e 53 71 75 61 64 4f 62 |(B.Squad|.SquadOb|
|00001410| 6a 65 63 74 69 76 65 20 | 3d 3d 20 4e 6f 6e 65 29 |jective |== None)|
|00001420| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 56 65 68 69 |...{....|if (Vehi|
|00001430| 63 6c 65 28 42 2e 50 61 | 77 6e 29 20 21 3d 20 4e |cle(B.Pa|wn) != N|
|00001440| 6f 6e 65 29 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |one)....|.return |
|00001450| 66 61 6c 73 65 3b 0d 0a | 09 09 2f 2f 68 61 63 6b |false;..|..//hack|
|00001460| 20 2d 20 69 66 20 62 6f | 74 20 68 61 73 20 6e 6f | - if bo|t has no|
|00001470| 20 73 71 75 61 64 6f 62 | 6a 65 63 74 69 76 65 2c | squadob|jective,|
|00001480| 20 6e 65 65 64 20 74 68 | 69 73 20 66 6f 72 20 53 | need th|is for S|
|00001490| 77 69 74 63 68 54 6f 42 | 65 73 74 57 65 61 70 6f |witchToB|estWeapo|
|000014a0| 6e 28 29 20 73 6f 20 62 | 6f 74 27 73 20 77 65 61 |n() so b|ot's wea|
|000014b0| 70 6f 6e 73 27 20 47 65 | 74 41 49 52 61 74 69 6e |pons' Ge|tAIRatin|
|000014c0| 67 28 29 0d 0a 09 09 2f | 2f 68 61 73 20 73 6f 6d |g()..../|/has som|
|000014d0| 65 20 77 61 79 20 6f 66 | 20 66 69 67 75 72 69 6e |e way of| figurin|
|000014e0| 67 20 6f 75 74 20 62 6f | 74 20 69 73 20 74 72 79 |g out bo|t is try|
|000014f0| 69 6e 67 20 74 6f 20 68 | 65 61 6c 20 6d 65 0d 0a |ing to h|eal me..|
|00001500| 09 09 42 2e 44 6f 52 61 | 6e 67 65 64 41 74 74 61 |..B.DoRa|ngedAtta|
|00001510| 63 6b 4f 6e 28 73 65 6c | 66 29 3b 0d 0a 09 7d 0d |ckOn(sel|f);...}.|
|00001520| 0a 0d 0a 09 69 66 20 28 | 56 65 68 69 63 6c 65 28 |....if (|Vehicle(|
|00001530| 42 2e 50 61 77 6e 29 20 | 21 3d 20 4e 6f 6e 65 20 |B.Pawn) |!= None |
|00001540| 26 26 20 21 56 65 68 69 | 63 6c 65 28 42 2e 50 61 |&& !Vehi|cle(B.Pa|
|00001550| 77 6e 29 2e 62 4b 65 79 | 56 65 68 69 63 6c 65 20 |wn).bKey|Vehicle |
|00001560| 26 26 20 28 42 2e 45 6e | 65 6d 79 20 3d 3d 20 4e |&& (B.En|emy == N|
|00001570| 6f 6e 65 20 7c 7c 20 28 | 21 42 2e 45 6e 65 6d 79 |one || (|!B.Enemy|
|00001580| 56 69 73 69 62 6c 65 28 | 29 20 26 26 20 4c 65 76 |Visible(|) && Lev|
|00001590| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2d |el.TimeS|econds -|
|000015a0| 20 42 2e 4c 61 73 74 53 | 65 65 6e 54 69 6d 65 20 | B.LastS|eenTime |
|000015b0| 3e 20 33 29 29 29 0d 0a | 09 7b 0d 0a 09 09 4f 6c |> 3)))..|.{....Ol|
|000015c0| 64 56 65 68 69 63 6c 65 | 20 3d 20 56 65 68 69 63 |dVehicle| = Vehic|
|000015d0| 6c 65 28 42 2e 50 61 77 | 6e 29 3b 0d 0a 09 09 56 |le(B.Paw|n);....V|
|000015e0| 65 68 69 63 6c 65 28 42 | 2e 50 61 77 6e 29 2e 4b |ehicle(B|.Pawn).K|
|000015f0| 44 72 69 76 65 72 4c 65 | 61 76 65 28 66 61 6c 73 |DriverLe|ave(fals|
|00001600| 65 29 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |e);...}.|....if (|
|00001610| 42 2e 50 61 77 6e 2e 57 | 65 61 70 6f 6e 20 21 3d |B.Pawn.W|eapon !=|
|00001620| 20 4e 6f 6e 65 20 26 26 | 20 42 2e 50 61 77 6e 2e | None &&| B.Pawn.|
|00001630| 57 65 61 70 6f 6e 2e 43 | 61 6e 48 65 61 6c 28 73 |Weapon.C|anHeal(s|
|00001640| 65 6c 66 29 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |elf))...|{....if |
|00001650| 28 21 42 2e 50 61 77 6e | 2e 43 61 6e 41 74 74 61 |(!B.Pawn|.CanAtta|
|00001660| 63 6b 28 47 65 74 53 68 | 6f 6f 74 54 61 72 67 65 |ck(GetSh|ootTarge|
|00001670| 74 28 29 29 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 2f |t()))...|.{...../|
|00001680| 2f 6e 65 65 64 20 74 6f | 20 6d 6f 76 65 20 74 6f |/need to| move to|
|00001690| 20 73 6f 6d 65 77 68 65 | 72 65 20 65 6c 73 65 20 | somewhe|re else |
|000016a0| 6e 65 61 72 20 6f 62 6a | 65 63 74 69 76 65 0d 0a |near obj|ective..|
|000016b0| 09 09 09 42 2e 47 6f 61 | 6c 53 74 72 69 6e 67 20 |...B.Goa|lString |
|000016c0| 3d 20 22 43 61 6e 27 74 | 20 73 68 6f 6f 74 22 40 |= "Can't| shoot"@|
|000016d0| 73 65 6c 66 40 22 28 6f | 62 73 74 72 75 63 74 65 |self@"(o|bstructe|
|000016e0| 64 29 22 3b 0d 0a 09 09 | 09 42 2e 52 6f 75 74 65 |d)";....|.B.Route|
|000016f0| 47 6f 61 6c 20 3d 20 42 | 2e 46 69 6e 64 52 61 6e |Goal = B|.FindRan|
|00001700| 64 6f 6d 44 65 73 74 28 | 29 3b 0d 0a 09 09 09 42 |domDest(|);.....B|
|00001710| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 42 2e |.MoveTar|get = B.|
|00001720| 52 6f 75 74 65 43 61 63 | 68 65 5b 30 5d 3b 0d 0a |RouteCac|he[0];..|
|00001730| 09 09 09 42 2e 53 65 74 | 41 74 74 72 61 63 74 69 |...B.Set|Attracti|
|00001740| 6f 6e 53 74 61 74 65 28 | 29 3b 0d 0a 09 09 09 72 |onState(|);.....r|
|00001750| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 7d |eturn tr|ue;....}|
|00001760| 0d 0a 09 09 42 2e 47 6f | 61 6c 53 74 72 69 6e 67 |....B.Go|alString|
|00001770| 20 3d 20 22 48 65 61 6c | 20 22 24 73 65 6c 66 3b | = "Heal| "$self;|
|00001780| 0d 0a 09 09 42 2e 44 6f | 52 61 6e 67 65 64 41 74 |....B.Do|RangedAt|
|00001790| 74 61 63 6b 4f 6e 28 47 | 65 74 53 68 6f 6f 74 54 |tackOn(G|etShootT|
|000017a0| 61 72 67 65 74 28 29 29 | 3b 0d 0a 09 09 72 65 74 |arget())|;....ret|
|000017b0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 09 |urn true|;...}...|
|000017c0| 65 6c 73 65 0d 0a 09 7b | 0d 0a 09 09 42 2e 53 77 |else...{|....B.Sw|
|000017d0| 69 74 63 68 54 6f 42 65 | 73 74 57 65 61 70 6f 6e |itchToBe|stWeapon|
|000017e0| 28 29 3b 0d 0a 09 09 69 | 66 20 28 42 2e 50 61 77 |();....i|f (B.Paw|
|000017f0| 6e 2e 50 65 6e 64 69 6e | 67 57 65 61 70 6f 6e 20 |n.Pendin|gWeapon |
|00001800| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 42 2e 50 61 77 |!= None |&& B.Paw|
|00001810| 6e 2e 50 65 6e 64 69 6e | 67 57 65 61 70 6f 6e 2e |n.Pendin|gWeapon.|
|00001820| 43 61 6e 48 65 61 6c 28 | 73 65 6c 66 29 29 0d 0a |CanHeal(|self))..|
|00001830| 09 09 7b 0d 0a 09 09 09 | 69 66 20 28 21 42 2e 50 |..{.....|if (!B.P|
|00001840| 61 77 6e 2e 43 61 6e 41 | 74 74 61 63 6b 28 47 65 |awn.CanA|ttack(Ge|
|00001850| 74 53 68 6f 6f 74 54 61 | 72 67 65 74 28 29 29 29 |tShootTa|rget()))|
|00001860| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 2f 2f 6e 65 |.....{..|....//ne|
|00001870| 65 64 20 74 6f 20 6d 6f | 76 65 20 74 6f 20 73 6f |ed to mo|ve to so|
|00001880| 6d 65 77 68 65 72 65 20 | 65 6c 73 65 20 6e 65 61 |mewhere |else nea|
|00001890| 72 20 6f 62 6a 65 63 74 | 69 76 65 0d 0a 09 09 09 |r object|ive.....|
|000018a0| 09 42 2e 47 6f 61 6c 53 | 74 72 69 6e 67 20 3d 20 |.B.GoalS|tring = |
|000018b0| 22 43 61 6e 27 74 20 73 | 68 6f 6f 74 22 40 73 65 |"Can't s|hoot"@se|
|000018c0| 6c 66 40 22 28 6f 62 73 | 74 72 75 63 74 65 64 29 |lf@"(obs|tructed)|
|000018d0| 22 3b 0d 0a 09 09 09 09 | 42 2e 52 6f 75 74 65 47 |";......|B.RouteG|
|000018e0| 6f 61 6c 20 3d 20 42 2e | 46 69 6e 64 52 61 6e 64 |oal = B.|FindRand|
|000018f0| 6f 6d 44 65 73 74 28 29 | 3b 0d 0a 09 09 09 09 42 |omDest()|;......B|
|00001900| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 20 42 2e |.MoveTar|get = B.|
|00001910| 52 6f 75 74 65 43 61 63 | 68 65 5b 30 5d 3b 0d 0a |RouteCac|he[0];..|
|00001920| 09 09 09 09 42 2e 53 65 | 74 41 74 74 72 61 63 74 |....B.Se|tAttract|
|00001930| 69 6f 6e 53 74 61 74 65 | 28 29 3b 0d 0a 09 09 09 |ionState|();.....|
|00001940| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00001950| 09 09 7d 0d 0a 09 09 09 | 42 2e 47 6f 61 6c 53 74 |..}.....|B.GoalSt|
|00001960| 72 69 6e 67 20 3d 20 22 | 48 65 61 6c 20 22 24 73 |ring = "|Heal "$s|
|00001970| 65 6c 66 3b 0d 0a 09 09 | 09 42 2e 44 6f 52 61 6e |elf;....|.B.DoRan|
|00001980| 67 65 64 41 74 74 61 63 | 6b 4f 6e 28 47 65 74 53 |gedAttac|kOn(GetS|
|00001990| 68 6f 6f 74 54 61 72 67 | 65 74 28 29 29 3b 0d 0a |hootTarg|et());..|
|000019a0| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000019b0| 0a 09 09 7d 0d 0a 09 09 | 69 66 20 28 42 2e 46 69 |...}....|if (B.Fi|
|000019c0| 6e 64 49 6e 76 65 6e 74 | 6f 72 79 47 6f 61 6c 28 |ndInvent|oryGoal(|
|000019d0| 30 2e 30 30 30 35 29 29 | 20 2f 2f 74 72 79 20 74 |0.0005))| //try t|
|000019e0| 6f 20 66 69 6e 64 20 61 | 20 77 65 61 70 6f 6e 20 |o find a| weapon |
|000019f0| 74 6f 20 68 65 61 6c 20 | 74 68 65 20 6f 62 6a 65 |to heal |the obje|
|00001a00| 63 74 69 76 65 0d 0a 09 | 09 7b 0d 0a 09 09 09 42 |ctive...|.{.....B|
|00001a10| 2e 47 6f 61 6c 53 74 72 | 69 6e 67 20 3d 20 22 46 |.GoalStr|ing = "F|
|00001a20| 69 6e 64 20 77 65 61 70 | 6f 6e 20 6f 72 20 61 6d |ind weap|on or am|
|00001a30| 6d 6f 20 74 6f 20 68 65 | 61 6c 20 22 24 73 65 6c |mo to he|al "$sel|
|00001a40| 66 3b 0d 0a 09 09 09 42 | 2e 53 65 74 41 74 74 72 |f;.....B|.SetAttr|
|00001a50| 61 63 74 69 6f 6e 53 74 | 61 74 65 28 29 3b 0d 0a |actionSt|ate();..|
|00001a60| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00001a70| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 69 66 20 |...}...}|.....if |
|00001a80| 28 4f 6c 64 56 65 68 69 | 63 6c 65 20 21 3d 20 4e |(OldVehi|cle != N|
|00001a90| 6f 6e 65 29 0d 0a 09 09 | 4f 6c 64 56 65 68 69 63 |one)....|OldVehic|
|00001aa0| 6c 65 2e 55 73 65 64 42 | 79 28 42 2e 50 61 77 6e |le.UsedB|y(B.Pawn|
|00001ab0| 29 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 66 61 |);.....r|eturn fa|
|00001ac0| 6c 73 65 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2a 20 52 65 |lse;..}.|.../* Re|
|00001ad0| 73 65 74 28 29 0d 0a 72 | 65 73 65 74 20 61 63 74 |set()..r|eset act|
|00001ae0| 6f 72 20 74 6f 20 69 6e | 69 74 69 61 6c 20 73 74 |or to in|itial st|
|00001af0| 61 74 65 20 2d 20 75 73 | 65 64 20 77 68 65 6e 20 |ate - us|ed when |
|00001b00| 72 65 73 74 61 72 74 69 | 6e 67 20 6c 65 76 65 6c |restarti|ng level|
|00001b10| 20 77 69 74 68 6f 75 74 | 20 72 65 6c 6f 61 64 69 | without| reloadi|
|00001b20| 6e 67 2e 0d 0a 2a 2f 0d | 0a 66 75 6e 63 74 69 6f |ng...*/.|.functio|
|00001b30| 6e 20 52 65 73 65 74 28 | 29 0d 0a 7b 0d 0a 09 48 |n Reset(|)..{...H|
|00001b40| 65 61 6c 74 68 09 09 09 | 09 3d 20 44 61 6d 61 67 |ealth...|.= Damag|
|00001b50| 65 43 61 70 61 63 69 74 | 79 3b 0d 0a 09 41 63 63 |eCapacit|y;...Acc|
|00001b60| 75 6d 75 6c 61 74 65 64 | 44 61 6d 61 67 65 09 3d |umulated|Damage.=|
|00001b70| 20 30 3b 0d 0a 09 62 50 | 72 6f 6a 54 61 72 67 65 | 0;...bP|rojTarge|
|00001b80| 74 09 09 09 3d 20 74 72 | 75 65 3b 0d 0a 09 62 49 |t...= tr|ue;...bI|
|00001b90| 73 55 6e 64 65 72 41 74 | 74 61 63 6b 09 09 3d 20 |sUnderAt|tack..= |
|00001ba0| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 53 65 74 43 6f |false;..|...SetCo|
|00001bb0| 6c 6c 69 73 69 6f 6e 28 | 74 72 75 65 2c 20 62 42 |llision(|true, bB|
|00001bc0| 6c 6f 63 6b 41 63 74 6f | 72 73 29 3b 0d 0a 0d 0a |lockActo|rs);....|
|00001bd0| 09 69 66 20 28 20 55 6e | 64 65 72 41 74 74 61 63 |.if ( Un|derAttac|
|00001be0| 6b 54 69 6d 65 72 20 21 | 3d 20 4e 6f 6e 65 20 29 |kTimer !|= None )|
|00001bf0| 0d 0a 09 7b 0d 0a 09 09 | 55 6e 64 65 72 41 74 74 |...{....|UnderAtt|
|00001c00| 61 63 6b 54 69 6d 65 72 | 2e 44 65 73 74 72 6f 79 |ackTimer|.Destroy|
|00001c10| 28 29 3b 0d 0a 09 09 55 | 6e 64 65 72 41 74 74 61 |();....U|nderAtta|
|00001c20| 63 6b 54 69 6d 65 72 20 | 3d 20 4e 6f 6e 65 3b 0d |ckTimer |= None;.|
|00001c30| 0a 09 7d 0d 0a 0d 0a 09 | 73 75 70 65 72 2e 52 65 |..}.....|super.Re|
|00001c40| 73 65 74 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |set();..|}....fun|
|00001c50| 63 74 69 6f 6e 20 54 61 | 6b 65 44 61 6d 61 67 65 |ction Ta|keDamage|
|00001c60| 28 20 69 6e 74 20 44 61 | 6d 61 67 65 2c 20 50 61 |( int Da|mage, Pa|
|00001c70| 77 6e 20 69 6e 73 74 69 | 67 61 74 65 64 42 79 2c |wn insti|gatedBy,|
|00001c80| 20 56 65 63 74 6f 72 20 | 68 69 74 6c 6f 63 61 74 | Vector |hitlocat|
|00001c90| 69 6f 6e 2c 0d 0a 09 09 | 09 09 09 09 56 65 63 74 |ion,....|....Vect|
|00001ca0| 6f 72 20 6d 6f 6d 65 6e | 74 75 6d 2c 20 63 6c 61 |or momen|tum, cla|
|00001cb0| 73 73 3c 44 61 6d 61 67 | 65 54 79 70 65 3e 20 64 |ss<Damag|eType> d|
|00001cc0| 61 6d 61 67 65 54 79 70 | 65 29 0d 0a 7b 0d 0a 09 |amageTyp|e)..{...|
|00001cd0| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 09 09 09 44 61 |local fl|oat...Da|
|00001ce0| 6d 61 67 65 50 63 74 2c | 20 48 65 61 6c 74 68 54 |magePct,| HealthT|
|00001cf0| 61 6b 65 6e 3b 0d 0a 09 | 6c 6f 63 61 6c 20 43 6f |aken;...|local Co|
|00001d00| 6e 74 72 6f 6c 6c 65 72 | 09 49 6e 73 74 69 67 61 |ntroller|.Instiga|
|00001d10| 74 6f 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 3b 0d 0a |torContr|oller;..|
|00001d20| 09 6c 6f 63 61 6c 20 50 | 61 77 6e 20 43 75 72 72 |.local P|awn Curr|
|00001d30| 65 6e 74 49 6e 73 74 69 | 67 61 74 6f 72 3b 0d 0a |entInsti|gator;..|
|00001d40| 0d 0a 09 69 66 20 28 20 | 21 62 41 63 74 69 76 65 |...if ( |!bActive|
|00001d50| 20 7c 7c 20 62 44 69 73 | 61 62 6c 65 64 20 7c 7c | || bDis|abled |||
|00001d60| 20 28 44 61 6d 61 67 65 | 20 3c 3d 20 30 29 20 7c | (Damage| <= 0) ||
|00001d70| 7c 20 21 55 6e 72 65 61 | 6c 4d 50 47 61 6d 65 49 || !Unrea|lMPGameI|
|00001d80| 6e 66 6f 28 4c 65 76 65 | 6c 2e 47 61 6d 65 29 2e |nfo(Leve|l.Game).|
|00001d90| 43 61 6e 44 69 73 61 62 | 6c 65 4f 62 6a 65 63 74 |CanDisab|leObject|
|00001da0| 69 76 65 28 20 53 65 6c | 66 20 29 20 29 0d 0a 09 |ive( Sel|f ) )...|
|00001db0| 09 72 65 74 75 72 6e 3b | 0d 0a 0d 0a 09 43 75 72 |.return;|.....Cur|
|00001dc0| 72 65 6e 74 49 6e 73 74 | 69 67 61 74 6f 72 20 3d |rentInst|igator =|
|00001dd0| 20 49 6e 73 74 69 67 61 | 74 65 64 42 79 3b 0d 0a | Instiga|tedBy;..|
|00001de0| 09 69 66 20 28 20 56 65 | 68 69 63 6c 65 28 69 6e |.if ( Ve|hicle(in|
|00001df0| 73 74 69 67 61 74 65 64 | 42 79 29 20 21 3d 20 4e |stigated|By) != N|
|00001e00| 6f 6e 65 20 29 0d 0a 09 | 09 44 61 6d 61 67 65 20 |one )...|.Damage |
|00001e10| 2a 3d 20 56 65 68 69 63 | 6c 65 44 61 6d 61 67 65 |*= Vehic|leDamage|
|00001e20| 53 63 61 6c 69 6e 67 3b | 0d 0a 0d 0a 09 69 66 20 |Scaling;|.....if |
|00001e30| 28 20 64 61 6d 61 67 65 | 54 79 70 65 20 21 3d 20 |( damage|Type != |
|00001e40| 4e 6f 6e 65 29 0d 0a 09 | 09 44 61 6d 61 67 65 20 |None)...|.Damage |
|00001e50| 2a 3d 20 64 61 6d 61 67 | 65 54 79 70 65 2e 64 65 |*= damag|eType.de|
|00001e60| 66 61 75 6c 74 2e 56 65 | 68 69 63 6c 65 44 61 6d |fault.Ve|hicleDam|
|00001e70| 61 67 65 53 63 61 6c 69 | 6e 67 3b 0d 0a 0d 0a 09 |ageScali|ng;.....|
|00001e80| 69 66 20 28 20 28 69 6e | 73 74 69 67 61 74 65 64 |if ( (in|stigated|
|00001e90| 42 79 20 3d 3d 20 4e 6f | 6e 65 20 7c 7c 20 69 6e |By == No|ne || in|
|00001ea0| 73 74 69 67 61 74 65 64 | 42 79 2e 43 6f 6e 74 72 |stigated|By.Contr|
|00001eb0| 6f 6c 6c 65 72 20 3d 3d | 20 4e 6f 6e 65 29 20 26 |oller ==| None) &|
|00001ec0| 26 20 28 44 65 6c 61 79 | 65 64 44 61 6d 61 67 65 |& (Delay|edDamage|
|00001ed0| 49 6e 73 74 69 67 61 74 | 6f 72 43 6f 6e 74 72 6f |Instigat|orContro|
|00001ee0| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 29 20 29 0d |ller != |None) ).|
|00001ef0| 0a 09 7b 0d 0a 09 09 69 | 6e 73 74 69 67 61 74 65 |..{....i|nstigate|
|00001f00| 64 42 79 09 09 09 3d 20 | 44 65 6c 61 79 65 64 44 |dBy...= |DelayedD|
|00001f10| 61 6d 61 67 65 49 6e 73 | 74 69 67 61 74 6f 72 43 |amageIns|tigatorC|
|00001f20| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 50 61 77 6e 3b 0d |ontrolle|r.Pawn;.|
|00001f30| 0a 09 09 49 6e 73 74 69 | 67 61 74 6f 72 43 6f 6e |...Insti|gatorCon|
|00001f40| 74 72 6f 6c 6c 65 72 09 | 3d 20 44 65 6c 61 79 65 |troller.|= Delaye|
|00001f50| 64 44 61 6d 61 67 65 49 | 6e 73 74 69 67 61 74 6f |dDamageI|nstigato|
|00001f60| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 3b 0d 0a 09 7d |rControl|ler;...}|
|00001f70| 0d 0a 0d 0a 09 69 66 20 | 28 20 69 6e 73 74 69 67 |.....if |( instig|
|00001f80| 61 74 65 64 42 79 20 21 | 3d 20 4e 6f 6e 65 20 29 |atedBy !|= None )|
|00001f90| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 49 6e 73 |...{....|if ( Ins|
|00001fa0| 74 69 67 61 74 65 64 42 | 79 2e 43 6f 6e 74 72 6f |tigatedB|y.Contro|
|00001fb0| 6c 6c 65 72 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ller != |None )..|
|00001fc0| 09 09 09 49 6e 73 74 69 | 67 61 74 6f 72 43 6f 6e |...Insti|gatorCon|
|00001fd0| 74 72 6f 6c 6c 65 72 20 | 3d 20 49 6e 73 74 69 67 |troller |= Instig|
|00001fe0| 61 74 65 64 42 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |atedBy.C|ontrolle|
|00001ff0| 72 3b 0d 0a 09 09 69 66 | 20 28 20 69 6e 73 74 69 |r;....if| ( insti|
|00002000| 67 61 74 65 64 42 79 2e | 48 61 73 55 44 61 6d 61 |gatedBy.|HasUDama|
|00002010| 67 65 28 29 20 29 0d 0a | 09 09 09 44 61 6d 61 67 |ge() )..|...Damag|
|00002020| 65 20 2a 3d 20 32 3b 0d | 0a 09 09 44 61 6d 61 67 |e *= 2;.|...Damag|
|00002030| 65 20 2a 3d 20 69 6e 73 | 74 69 67 61 74 65 64 42 |e *= ins|tigatedB|
|00002040| 79 2e 44 61 6d 61 67 65 | 53 63 61 6c 69 6e 67 3b |y.Damage|Scaling;|
|00002050| 0d 0a 09 7d 0d 0a 0d 0a | 09 2f 2f 20 4f 6e 6c 79 |...}....|.// Only|
|00002060| 20 61 20 73 70 65 63 69 | 66 69 63 20 50 61 77 6e | a speci|fic Pawn|
|00002070| 20 63 61 6e 20 64 65 61 | 6c 20 64 61 6d 61 67 65 | can dea|l damage|
|00002080| 20 74 6f 20 6f 62 6a 65 | 63 74 69 76 65 20 3f 0d | to obje|ctive ?.|
|00002090| 0a 09 69 66 20 28 20 43 | 6f 6e 73 74 72 61 69 6e |..if ( C|onstrain|
|000020a0| 74 49 6e 73 74 69 67 61 | 74 6f 72 20 3d 3d 20 43 |tInstiga|tor == C|
|000020b0| 49 5f 50 61 77 6e 43 6c | 61 73 73 0d 0a 09 09 26 |I_PawnCl|ass....&|
|000020c0| 26 20 28 28 49 6e 73 74 | 69 67 61 74 65 64 42 79 |& ((Inst|igatedBy|
|000020d0| 20 3d 3d 20 4e 6f 6e 65 | 29 20 7c 7c 20 21 43 6c | == None|) || !Cl|
|000020e0| 61 73 73 49 73 43 68 69 | 6c 64 4f 66 28 69 6e 73 |assIsChi|ldOf(ins|
|000020f0| 74 69 67 61 74 65 64 42 | 79 2e 43 6c 61 73 73 2c |tigatedB|y.Class,|
|00002100| 20 43 6f 6e 73 74 72 61 | 69 6e 74 50 61 77 6e 43 | Constra|intPawnC|
|00002110| 6c 61 73 73 29 29 20 29 | 0d 0a 09 09 72 65 74 75 |lass)) )|....retu|
|00002120| 72 6e 3b 0d 0a 0d 0a 09 | 2f 2f 20 43 61 6e 20 64 |rn;.....|// Can d|
|00002130| 65 66 65 6e 64 65 72 73 | 20 64 61 6d 61 67 65 20 |efenders| damage |
|00002140| 4f 62 6a 65 63 74 69 76 | 65 20 3f 0d 0a 09 69 66 |Objectiv|e ?...if|
|00002150| 20 28 20 21 62 43 61 6e | 44 65 66 65 6e 64 65 72 | ( !bCan|Defender|
|00002160| 44 61 6d 61 67 65 0d 0a | 09 09 26 26 20 28 20 28 |Damage..|..&& ( (|
|00002170| 49 6e 73 74 69 67 61 74 | 65 64 42 79 20 21 3d 20 |Instigat|edBy != |
|00002180| 4e 6f 6e 65 20 26 26 20 | 49 6e 73 74 69 67 61 74 |None && |Instigat|
|00002190| 65 64 42 79 2e 47 65 74 | 54 65 61 6d 4e 75 6d 28 |edBy.Get|TeamNum(|
|000021a0| 29 20 3d 3d 20 44 65 66 | 65 6e 64 65 72 54 65 61 |) == Def|enderTea|
|000021b0| 6d 49 6e 64 65 78 29 0d | 0a 09 09 7c 7c 20 28 49 |mIndex).|...|| (I|
|000021c0| 6e 73 74 69 67 61 74 6f | 72 43 6f 6e 74 72 6f 6c |nstigato|rControl|
|000021d0| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 20 26 26 20 49 |ler != N|one && I|
|000021e0| 6e 73 74 69 67 61 74 6f | 72 43 6f 6e 74 72 6f 6c |nstigato|rControl|
|000021f0| 6c 65 72 2e 47 65 74 54 | 65 61 6d 4e 75 6d 28 29 |ler.GetT|eamNum()|
|00002200| 20 3d 3d 20 44 65 66 65 | 6e 64 65 72 54 65 61 6d | == Defe|nderTeam|
|00002210| 49 6e 64 65 78 29 20 29 | 20 29 0d 0a 09 09 72 65 |Index) )| )....re|
|00002220| 74 75 72 6e 3b 0d 0a 0d | 0a 09 44 61 6d 61 67 65 |turn;...|..Damage|
|00002230| 20 3d 20 55 6e 72 65 61 | 6c 4d 50 47 61 6d 65 49 | = Unrea|lMPGameI|
|00002240| 6e 66 6f 28 4c 65 76 65 | 6c 2e 47 61 6d 65 29 2e |nfo(Leve|l.Game).|
|00002250| 41 64 6a 75 73 74 44 65 | 73 74 72 6f 79 4f 62 6a |AdjustDe|stroyObj|
|00002260| 65 63 74 69 76 65 44 61 | 6d 61 67 65 28 20 44 61 |ectiveDa|mage( Da|
|00002270| 6d 61 67 65 2c 20 49 6e | 73 74 69 67 61 74 6f 72 |mage, In|stigator|
|00002280| 43 6f 6e 74 72 6f 6c 6c | 65 72 2c 20 53 65 6c 66 |Controll|er, Self|
|00002290| 20 29 3b 0d 0a 09 4e 65 | 74 55 70 64 61 74 65 54 | );...Ne|tUpdateT|
|000022a0| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|000022b0| 53 65 63 6f 6e 64 73 20 | 2d 20 31 3b 0d 0a 09 41 |Seconds |- 1;...A|
|000022c0| 63 63 75 6d 75 6c 61 74 | 65 64 44 61 6d 61 67 65 |ccumulat|edDamage|
|000022d0| 20 2b 3d 20 44 61 6d 61 | 67 65 3b 0d 0a 09 69 66 | += Dama|ge;...if|
|000022e0| 20 28 20 28 44 61 6d 61 | 67 65 45 76 65 6e 74 54 | ( (Dama|geEventT|
|000022f0| 68 72 65 73 68 6f 6c 64 | 20 3e 20 30 29 20 26 26 |hreshold| > 0) &&|
|00002300| 20 28 41 63 63 75 6d 75 | 6c 61 74 65 64 44 61 6d | (Accumu|latedDam|
|00002310| 61 67 65 20 3e 3d 20 44 | 61 6d 61 67 65 45 76 65 |age >= D|amageEve|
|00002320| 6e 74 54 68 72 65 73 68 | 6f 6c 64 29 20 29 0d 0a |ntThresh|old) )..|
|00002330| 09 7b 0d 0a 09 09 54 72 | 69 67 67 65 72 45 76 65 |.{....Tr|iggerEve|
|00002340| 6e 74 28 54 61 6b 65 44 | 61 6d 61 67 65 45 76 65 |nt(TakeD|amageEve|
|00002350| 6e 74 2c 20 53 65 6c 66 | 2c 20 49 6e 73 74 69 67 |nt, Self|, Instig|
|00002360| 61 74 65 64 42 79 29 3b | 0d 0a 09 09 41 63 63 75 |atedBy);|....Accu|
|00002370| 6d 75 6c 61 74 65 64 44 | 61 6d 61 67 65 20 3d 20 |mulatedD|amage = |
|00002380| 30 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 48 65 61 6c 74 |0;...}..|...Healt|
|00002390| 68 54 61 6b 65 6e 20 3d | 20 4d 69 6e 28 44 61 6d |hTaken =| Min(Dam|
|000023a0| 61 67 65 2c 20 48 65 61 | 6c 74 68 29 3b 0d 0a 09 |age, Hea|lth);...|
|000023b0| 48 65 61 6c 74 68 09 2d | 3d 20 44 61 6d 61 67 65 |Health.-|= Damage|
|000023c0| 3b 0d 0a 09 69 66 20 28 | 28 44 65 66 65 6e 73 65 |;...if (|(Defense|
|000023d0| 53 71 75 61 64 20 21 3d | 20 4e 6f 6e 65 29 20 26 |Squad !=| None) &|
|000023e0| 26 20 28 43 75 72 72 65 | 6e 74 49 6e 73 74 69 67 |& (Curre|ntInstig|
|000023f0| 61 74 6f 72 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |ator != |None) &&|
|00002400| 20 28 43 75 72 72 65 6e | 74 49 6e 73 74 69 67 61 | (Curren|tInstiga|
|00002410| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 21 |tor.Cont|roller !|
|00002420| 3d 20 4e 6f 6e 65 29 20 | 26 26 20 28 4c 65 76 65 |= None) |&& (Leve|
|00002430| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 2d 20 |l.TimeSe|conds - |
|00002440| 4c 61 73 74 57 61 72 6e | 54 69 6d 65 20 3e 20 30 |LastWarn|Time > 0|
|00002450| 2e 35 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 4c 61 73 |.5) )...|{....Las|
|00002460| 74 57 61 72 6e 54 69 6d | 65 20 3d 20 4c 65 76 65 |tWarnTim|e = Leve|
|00002470| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 3b 0d 0a |l.TimeSe|conds;..|
|00002480| 09 09 44 65 66 65 6e 73 | 65 53 71 75 61 64 2e 54 |..Defens|eSquad.T|
|00002490| 65 61 6d 2e 41 49 2e 43 | 72 69 74 69 63 61 6c 4f |eam.AI.C|riticalO|
|000024a0| 62 6a 65 63 74 69 76 65 | 57 61 72 6e 69 6e 67 28 |bjective|Warning(|
|000024b0| 73 65 6c 66 2c 20 43 75 | 72 72 65 6e 74 49 6e 73 |self, Cu|rrentIns|
|000024c0| 74 69 67 61 74 6f 72 29 | 3b 0d 0a 09 7d 0d 0a 0d |tigator)|;...}...|
|000024d0| 0a 09 2f 2f 20 6d 6f 6e | 69 74 6f 72 20 70 65 72 |..// mon|itor per|
|000024e0| 63 65 6e 74 61 67 65 20 | 6f 66 20 64 61 6d 61 67 |centage |of damag|
|000024f0| 65 20 64 6f 6e 65 20 66 | 6f 72 20 73 63 6f 72 65 |e done f|or score|
|00002500| 20 73 68 61 72 69 6e 67 | 0d 0a 09 44 61 6d 61 67 | sharing|...Damag|
|00002510| 65 50 63 74 20 3d 20 48 | 65 61 6c 74 68 54 61 6b |ePct = H|ealthTak|
|00002520| 65 6e 20 2f 20 66 6c 6f | 61 74 28 44 61 6d 61 67 |en / flo|at(Damag|
|00002530| 65 43 61 70 61 63 69 74 | 79 29 3b 0d 0a 09 69 66 |eCapacit|y);...if|
|00002540| 20 28 20 49 6e 73 74 69 | 67 61 74 65 64 42 79 20 | ( Insti|gatedBy |
|00002550| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 49 6e 73 74 69 |!= None |&& Insti|
|00002560| 67 61 74 65 64 42 79 2e | 43 6f 6e 74 72 6f 6c 6c |gatedBy.|Controll|
|00002570| 65 72 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |er != No|ne )....|
|00002580| 41 64 64 53 63 6f 72 65 | 72 28 20 49 6e 73 74 69 |AddScore|r( Insti|
|00002590| 67 61 74 65 64 42 79 2e | 43 6f 6e 74 72 6f 6c 6c |gatedBy.|Controll|
|000025a0| 65 72 2c 20 44 61 6d 61 | 67 65 50 63 74 20 29 3b |er, Dama|gePct );|
|000025b0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 44 65 6c |...else |if ( Del|
|000025c0| 61 79 65 64 44 61 6d 61 | 67 65 49 6e 73 74 69 67 |ayedDama|geInstig|
|000025d0| 61 74 6f 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 21 |atorCont|roller !|
|000025e0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 41 64 64 53 |= None )|....AddS|
|000025f0| 63 6f 72 65 72 28 20 44 | 65 6c 61 79 65 64 44 61 |corer( D|elayedDa|
|00002600| 6d 61 67 65 49 6e 73 74 | 69 67 61 74 6f 72 43 6f |mageInst|igatorCo|
|00002610| 6e 74 72 6f 6c 6c 65 72 | 2c 20 44 61 6d 61 67 65 |ntroller|, Damage|
|00002620| 50 63 74 20 29 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |Pct );..|...if ( |
|00002630| 48 65 61 6c 74 68 20 3c | 20 31 20 29 0d 0a 09 09 |Health <| 1 )....|
|00002640| 44 69 73 61 62 6c 65 4f | 62 6a 65 63 74 69 76 65 |DisableO|bjective|
|00002650| 28 20 69 6e 73 74 69 67 | 61 74 65 64 42 79 20 29 |( instig|atedBy )|
|00002660| 3b 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 62 4d |;...else| if ( bM|
|00002670| 6f 6e 69 74 6f 72 55 6e | 64 65 72 41 74 74 61 63 |onitorUn|derAttac|
|00002680| 6b 20 29 0d 0a 09 7b 0d | 0a 09 09 62 49 73 55 6e |k )...{.|...bIsUn|
|00002690| 64 65 72 41 74 74 61 63 | 6b 09 20 3d 20 74 72 75 |derAttac|k. = tru|
|000026a0| 65 3b 0d 0a 09 09 4c 61 | 73 74 44 61 6d 61 67 65 |e;....La|stDamage|
|000026b0| 54 69 6d 65 09 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |Time. = |Level.Ti|
|000026c0| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 09 09 43 68 |meSecond|s;....Ch|
|000026d0| 65 63 6b 50 6c 61 79 43 | 72 69 74 69 63 61 6c 41 |eckPlayC|riticalA|
|000026e0| 6c 61 72 6d 28 29 3b 0d | 0a 0d 0a 09 09 69 66 20 |larm();.|.....if |
|000026f0| 28 20 55 6e 64 65 72 41 | 74 74 61 63 6b 54 69 6d |( UnderA|ttackTim|
|00002700| 65 72 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |er == No|ne )....|
|00002710| 09 55 6e 64 65 72 41 74 | 74 61 63 6b 54 69 6d 65 |.UnderAt|tackTime|
|00002720| 72 20 3d 20 53 70 61 77 | 6e 28 63 6c 61 73 73 27 |r = Spaw|n(class'|
|00002730| 56 6f 6c 75 6d 65 54 69 | 6d 65 72 27 2c 20 53 65 |VolumeTi|mer', Se|
|00002740| 6c 66 29 3b 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 2f |lf);...}|..}..../|
|00002750| 2a 20 41 77 61 72 64 20 | 41 73 73 61 75 6c 74 20 |* Award |Assault |
|00002760| 73 63 6f 72 65 20 74 6f | 20 70 6c 61 79 65 72 28 |score to| player(|
|00002770| 73 29 20 77 68 6f 20 63 | 6f 6d 70 6c 65 74 65 64 |s) who c|ompleted|
|00002780| 20 74 68 65 20 6f 62 6a | 65 63 74 69 76 65 20 2a | the obj|ective *|
|00002790| 2f 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 41 77 61 72 |/..funct|ion Awar|
|000027a0| 64 41 73 73 61 75 6c 74 | 53 63 6f 72 65 28 20 69 |dAssault|Score( i|
|000027b0| 6e 74 20 53 63 6f 72 65 | 20 29 0d 0a 7b 0d 0a 09 |nt Score| )..{...|
|000027c0| 53 68 61 72 65 53 63 6f | 72 65 28 20 53 63 6f 72 |ShareSco|re( Scor|
|000027d0| 65 2c 20 22 4f 62 6a 65 | 63 74 69 76 65 5f 43 6f |e, "Obje|ctive_Co|
|000027e0| 6d 70 6c 65 74 65 64 22 | 20 29 3b 0d 0a 7d 0d 0a |mpleted"| );..}..|
|000027f0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00002800| 48 65 61 6c 44 61 6d 61 | 67 65 28 69 6e 74 20 41 |HealDama|ge(int A|
|00002810| 6d 6f 75 6e 74 2c 20 43 | 6f 6e 74 72 6f 6c 6c 65 |mount, C|ontrolle|
|00002820| 72 20 48 65 61 6c 65 72 | 2c 20 63 6c 61 73 73 3c |r Healer|, class<|
|00002830| 44 61 6d 61 67 65 54 79 | 70 65 3e 20 44 61 6d 61 |DamageTy|pe> Dama|
|00002840| 67 65 54 79 70 65 29 0d | 0a 7b 0d 0a 09 69 66 20 |geType).|.{...if |
|00002850| 28 20 21 62 41 63 74 69 | 76 65 20 7c 7c 20 62 44 |( !bActi|ve || bD|
|00002860| 69 73 61 62 6c 65 64 20 | 7c 7c 20 48 65 61 6c 74 |isabled ||| Healt|
|00002870| 68 20 3c 3d 20 30 20 7c | 7c 20 48 65 61 6c 74 68 |h <= 0 ||| Health|
|00002880| 20 3e 3d 20 44 61 6d 61 | 67 65 43 61 70 61 63 69 | >= Dama|geCapaci|
|00002890| 74 79 20 7c 7c 20 41 6d | 6f 75 6e 74 20 3c 3d 20 |ty || Am|ount <= |
|000028a0| 30 0d 0a 09 20 20 20 20 | 20 7c 7c 20 48 65 61 6c |0... | || Heal|
|000028b0| 65 72 20 3d 3d 20 4e 6f | 6e 65 20 7c 7c 20 21 54 |er == No|ne || !T|
|000028c0| 65 61 6d 4c 69 6e 6b 28 | 48 65 61 6c 65 72 2e 47 |eamLink(|Healer.G|
|000028d0| 65 74 54 65 61 6d 4e 75 | 6d 28 29 29 20 29 0d 0a |etTeamNu|m()) )..|
|000028e0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000028f0| 0a 0d 0a 09 48 65 61 6c | 74 68 20 3d 20 4d 69 6e |....Heal|th = Min|
|00002900| 28 48 65 61 6c 74 68 20 | 2b 20 28 41 6d 6f 75 6e |(Health |+ (Amoun|
|00002910| 74 20 2a 20 4c 69 6e 6b | 48 65 61 6c 4d 75 6c 74 |t * Link|HealMult|
|00002920| 29 2c 20 44 61 6d 61 67 | 65 43 61 70 61 63 69 74 |), Damag|eCapacit|
|00002930| 79 29 3b 0d 0a 09 4e 65 | 74 55 70 64 61 74 65 54 |y);...Ne|tUpdateT|
|00002940| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|00002950| 53 65 63 6f 6e 64 73 20 | 2d 20 31 3b 0d 0a 09 72 |Seconds |- 1;...r|
|00002960| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 7d 0d 0a |eturn tr|ue;..}..|
|00002970| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 69 73 61 62 |..functi|on Disab|
|00002980| 6c 65 4f 62 6a 65 63 74 | 69 76 65 28 50 61 77 6e |leObject|ive(Pawn|
|00002990| 20 49 6e 73 74 69 67 61 | 74 6f 72 29 0d 0a 7b 0d | Instiga|tor)..{.|
|000029a0| 0a 09 69 66 20 28 20 21 | 62 41 63 74 69 76 65 20 |..if ( !|bActive |
|000029b0| 7c 7c 20 62 44 69 73 61 | 62 6c 65 64 20 7c 7c 20 ||| bDisa|bled || |
|000029c0| 21 55 6e 72 65 61 6c 4d | 50 47 61 6d 65 49 6e 66 |!UnrealM|PGameInf|
|000029d0| 6f 28 4c 65 76 65 6c 2e | 47 61 6d 65 29 2e 43 61 |o(Level.|Game).Ca|
|000029e0| 6e 44 69 73 61 62 6c 65 | 4f 62 6a 65 63 74 69 76 |nDisable|Objectiv|
|000029f0| 65 28 20 53 65 6c 66 20 | 29 20 29 0d 0a 09 09 72 |e( Self |) )....r|
|00002a00| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 53 65 74 43 6f |eturn;..|...SetCo|
|00002a10| 6c 6c 69 73 69 6f 6e 28 | 66 61 6c 73 65 2c 20 62 |llision(|false, b|
|00002a20| 42 6c 6f 63 6b 41 63 74 | 6f 72 73 29 3b 0d 0a 09 |BlockAct|ors);...|
|00002a30| 62 50 72 6f 6a 54 61 72 | 67 65 74 09 09 3d 20 66 |bProjTar|get..= f|
|00002a40| 61 6c 73 65 3b 0d 0a 09 | 62 49 73 55 6e 64 65 72 |alse;...|bIsUnder|
|00002a50| 41 74 74 61 63 6b 09 3d | 20 66 61 6c 73 65 3b 0d |Attack.=| false;.|
|00002a60| 0a 0d 0a 09 69 66 20 28 | 20 55 6e 64 65 72 41 74 |....if (| UnderAt|
|00002a70| 74 61 63 6b 54 69 6d 65 | 72 20 21 3d 20 4e 6f 6e |tackTime|r != Non|
|00002a80| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 55 6e 64 65 72 |e )...{.|...Under|
|00002a90| 41 74 74 61 63 6b 54 69 | 6d 65 72 2e 44 65 73 74 |AttackTi|mer.Dest|
|00002aa0| 72 6f 79 28 29 3b 0d 0a | 09 09 55 6e 64 65 72 41 |roy();..|..UnderA|
|00002ab0| 74 74 61 63 6b 54 69 6d | 65 72 20 3d 20 4e 6f 6e |ttackTim|er = Non|
|00002ac0| 65 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 73 75 70 65 72 |e;...}..|...super|
|00002ad0| 2e 44 69 73 61 62 6c 65 | 4f 62 6a 65 63 74 69 76 |.Disable|Objectiv|
|00002ae0| 65 28 49 6e 73 74 69 67 | 61 74 6f 72 29 3b 0d 0a |e(Instig|ator);..|
|00002af0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 54 69 |}....fun|ction Ti|
|00002b00| 6d 65 72 50 6f 70 28 56 | 6f 6c 75 6d 65 54 69 6d |merPop(V|olumeTim|
|00002b10| 65 72 20 54 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |er T)..{|...if ( |
|00002b20| 62 49 73 55 6e 64 65 72 | 41 74 74 61 63 6b 20 26 |bIsUnder|Attack &|
|00002b30| 26 20 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f |& Level.|TimeSeco|
|00002b40| 6e 64 73 20 3e 20 4c 61 | 73 74 44 61 6d 61 67 65 |nds > La|stDamage|
|00002b50| 54 69 6d 65 20 2b 20 34 | 20 29 0d 0a 09 7b 0d 0a |Time + 4| )...{..|
|00002b60| 09 09 62 49 73 55 6e 64 | 65 72 41 74 74 61 63 6b |..bIsUnd|erAttack|
|00002b70| 09 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 43 68 65 |.= false|;....Che|
|00002b80| 63 6b 50 6c 61 79 43 72 | 69 74 69 63 61 6c 41 6c |ckPlayCr|iticalAl|
|00002b90| 61 72 6d 28 29 3b 0d 0a | 0d 0a 09 09 69 66 20 28 |arm();..|....if (|
|00002ba0| 20 55 6e 64 65 72 41 74 | 74 61 63 6b 54 69 6d 65 | UnderAt|tackTime|
|00002bb0| 72 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 7b |r != Non|e )....{|
|00002bc0| 0d 0a 09 09 09 55 6e 64 | 65 72 41 74 74 61 63 6b |.....Und|erAttack|
|00002bd0| 54 69 6d 65 72 2e 44 65 | 73 74 72 6f 79 28 29 3b |Timer.De|stroy();|
|00002be0| 0d 0a 09 09 09 55 6e 64 | 65 72 41 74 74 61 63 6b |.....Und|erAttack|
|00002bf0| 54 69 6d 65 72 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 09 |Timer = |None;...|
|00002c00| 09 7d 0d 0a 09 7d 0d 0a | 7d 0d 0a 0d 0a 2f 2a 20 |.}...}..|}..../* |
|00002c10| 44 65 73 74 72 6f 79 61 | 62 6c 65 4f 62 6a 65 63 |Destroya|bleObjec|
|00002c20| 74 69 76 65 73 20 61 72 | 65 20 69 6e 20 64 61 6e |tives ar|e in dan|
|00002c30| 67 65 72 20 77 68 65 6e | 20 43 72 69 74 69 63 61 |ger when| Critica|
|00002c40| 6c 56 6f 6c 75 6d 65 20 | 69 73 20 62 72 65 61 63 |lVolume |is breac|
|00002c50| 68 65 64 20 6f 72 20 4f | 62 6a 65 63 74 69 76 65 |hed or O|bjective|
|00002c60| 20 69 73 20 64 61 6d 61 | 67 65 64 0d 0a 09 28 49 | is dama|ged...(I|
|00002c70| 6e 20 63 61 73 65 20 4f | 62 6a 65 63 74 69 76 65 |n case O|bjective|
|00002c80| 20 63 61 6e 20 62 65 20 | 64 61 6d 61 67 65 64 20 | can be |damaged |
|00002c90| 66 72 6f 6d 20 61 20 67 | 72 65 61 74 20 64 69 73 |from a g|reat dis|
|00002ca0| 74 61 6e 63 65 20 2a 2f | 0d 0a 73 69 6d 75 6c 61 |tance */|..simula|
|00002cb0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |ted func|tion boo|
|00002cc0| 6c 20 49 73 43 72 69 74 | 69 63 61 6c 28 29 0d 0a |l IsCrit|ical()..|
|00002cd0| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 28 49 73 41 63 |{...retu|rn (IsAc|
|00002ce0| 74 69 76 65 28 29 20 26 | 26 20 28 62 49 73 43 72 |tive() &|& (bIsCr|
|00002cf0| 69 74 69 63 61 6c 20 7c | 7c 20 62 49 73 55 6e 64 |itical ||| bIsUnd|
|00002d00| 65 72 41 74 74 61 63 6b | 29 29 3b 0d 0a 7d 0d 0a |erAttack|));..}..|
|00002d10| 0d 0a 2f 2a 20 72 65 74 | 75 72 6e 73 20 6f 62 6a |../* ret|urns obj|
|00002d20| 65 63 74 69 76 65 27 73 | 20 70 72 6f 67 72 65 73 |ective's| progres|
|00002d30| 73 20 73 74 61 74 75 73 | 20 31 2d 3e 30 20 28 3d |s status| 1->0 (=|
|00002d40| 64 69 73 61 62 6c 65 64 | 29 20 2a 2f 0d 0a 73 69 |disabled|) */..si|
|00002d50| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00002d60| 20 66 6c 6f 61 74 20 47 | 65 74 4f 62 6a 65 63 74 | float G|etObject|
|00002d70| 69 76 65 50 72 6f 67 72 | 65 73 73 28 29 0d 0a 7b |iveProgr|ess()..{|
|00002d80| 0d 0a 09 69 66 20 28 20 | 62 44 69 73 61 62 6c 65 |...if ( |bDisable|
|00002d90| 64 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 30 3b |d )....r|eturn 0;|
|00002da0| 0d 0a 09 72 65 74 75 72 | 6e 20 28 66 6c 6f 61 74 |...retur|n (float|
|00002db0| 28 48 65 61 6c 74 68 29 | 20 2f 20 66 6c 6f 61 74 |(Health)| / float|
|00002dc0| 28 44 61 6d 61 67 65 43 | 61 70 61 63 69 74 79 29 |(DamageC|apacity)|
|00002dd0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 00 |);..}...|.. |
+--------+-------------------------+-------------------------+--------+--------+