home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-02-15 | 11.7 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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4e bb 01 63 6c 61 73 73 |........|N..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 66 75 6e |false;..|}....fun|
|00000870| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 4c 65 67 69 74 |ction bo|ol Legit|
|00000880| 69 6d 61 74 65 54 61 72 | 67 65 74 4f 66 28 42 6f |imateTar|getOf(Bo|
|00000890| 74 20 42 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 43 |t B)..{.|..if ( C|
|000008a0| 6f 6e 73 74 72 61 69 6e | 74 49 6e 73 74 69 67 61 |onstrain|tInstiga|
|000008b0| 74 6f 72 20 3d 3d 20 43 | 49 5f 50 61 77 6e 43 6c |tor == C|I_PawnCl|
|000008c0| 61 73 73 20 26 26 20 21 | 43 6c 61 73 73 49 73 43 |ass && !|ClassIsC|
|000008d0| 68 69 6c 64 4f 66 28 42 | 2e 50 61 77 6e 2e 43 6c |hildOf(B|.Pawn.Cl|
|000008e0| 61 73 73 2c 20 43 6f 6e | 73 74 72 61 69 6e 74 50 |ass, Con|straintP|
|000008f0| 61 77 6e 43 6c 61 73 73 | 29 20 29 0d 0a 09 09 72 |awnClass|) )....r|
|00000900| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|00000910| 09 69 66 20 28 20 28 44 | 61 6d 61 67 65 43 61 70 |.if ( (D|amageCap|
|00000920| 61 63 69 74 79 20 3e 20 | 30 29 20 26 26 20 62 41 |acity > |0) && bA|
|00000930| 63 74 69 76 65 20 26 26 | 20 21 62 44 69 73 61 62 |ctive &&| !bDisab|
|00000940| 6c 65 64 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |led )...|.return |
|00000950| 74 72 75 65 3b 0d 0a 09 | 72 65 74 75 72 6e 20 66 |true;...|return f|
|00000960| 61 6c 73 65 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2a 20 54 |alse;..}|..../* T|
|00000970| 65 6c 6c 42 6f 74 48 6f | 77 54 6f 44 69 73 61 62 |ellBotHo|wToDisab|
|00000980| 6c 65 28 29 0d 0a 74 65 | 6c 6c 20 62 6f 74 20 77 |le()..te|ll bot w|
|00000990| 68 61 74 20 74 6f 20 64 | 6f 20 74 6f 20 64 69 73 |hat to d|o to dis|
|000009a0| 61 62 6c 65 20 6d 65 2e | 0d 0a 72 65 74 75 72 6e |able me.|..return|
|000009b0| 20 74 72 75 65 20 69 66 | 20 76 61 6c 69 64 2f 75 | true if| valid/u|
|000009c0| 73 65 61 62 6c 65 20 69 | 6e 73 74 72 75 63 74 69 |seable i|nstructi|
|000009d0| 6f 6e 73 20 77 65 72 65 | 20 67 69 76 65 6e 0d 0a |ons were| given..|
|000009e0| 2a 2f 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |*/..func|tion boo|
|000009f0| 6c 20 54 65 6c 6c 42 6f | 74 48 6f 77 54 6f 44 69 |l TellBo|tHowToDi|
|00000a00| 73 61 62 6c 65 28 42 6f | 74 20 42 29 0d 0a 7b 0d |sable(Bo|t B)..{.|
|00000a10| 0a 09 6c 6f 63 61 6c 20 | 69 6e 74 20 69 3b 0d 0a |..local |int i;..|
|00000a20| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 42 65 73 |.local f|loat Bes|
|00000a30| 74 2c 20 4e 65 78 74 3b | 0d 0a 09 6c 6f 63 61 6c |t, Next;|...local|
|00000a40| 20 76 65 63 74 6f 72 20 | 44 69 72 3b 0d 0a 09 6c | vector |Dir;...l|
|00000a50| 6f 63 61 6c 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |ocal Nav|igationP|
|00000a60| 6f 69 6e 74 20 42 65 73 | 74 50 61 74 68 3b 0d 0a |oint Bes|tPath;..|
|00000a70| 09 6c 6f 63 61 6c 20 62 | 6f 6f 6c 20 62 52 65 73 |.local b|ool bRes|
|00000a80| 75 6c 74 3b 0d 0a 0d 0a | 09 2f 2f 20 4f 6e 6c 79 |ult;....|.// Only|
|00000a90| 20 61 20 73 70 65 63 69 | 66 69 63 20 50 61 77 6e | a speci|fic Pawn|
|00000aa0| 20 63 61 6e 20 64 65 61 | 6c 20 64 61 6d 61 67 65 | can dea|l damage|
|00000ab0| 20 74 6f 20 6f 62 6a 65 | 63 74 69 76 65 20 3f 0d | to obje|ctive ?.|
|00000ac0| 0a 09 69 66 20 28 20 43 | 6f 6e 73 74 72 61 69 6e |..if ( C|onstrain|
|00000ad0| 74 49 6e 73 74 69 67 61 | 74 6f 72 20 3d 3d 20 43 |tInstiga|tor == C|
|00000ae0| 49 5f 50 61 77 6e 43 6c | 61 73 73 20 26 26 20 21 |I_PawnCl|ass && !|
|00000af0| 43 6c 61 73 73 49 73 43 | 68 69 6c 64 4f 66 28 42 |ClassIsC|hildOf(B|
|00000b00| 2e 50 61 77 6e 2e 43 6c | 61 73 73 2c 20 43 6f 6e |.Pawn.Cl|ass, Con|
|00000b10| 73 74 72 61 69 6e 74 50 | 61 77 6e 43 6c 61 73 73 |straintP|awnClass|
|00000b20| 29 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 66 61 |) )....r|eturn fa|
|00000b30| 6c 73 65 3b 0d 0a 0d 0a | 09 69 66 20 28 20 28 42 |lse;....|.if ( (B|
|00000b40| 2e 50 61 77 6e 2e 50 68 | 79 73 69 63 73 20 3d 3d |.Pawn.Ph|ysics ==|
|00000b50| 20 50 48 59 53 5f 46 6c | 79 69 6e 67 29 20 26 26 | PHYS_Fl|ying) &&|
|00000b60| 20 28 42 2e 50 61 77 6e | 2e 4d 69 6e 46 6c 79 53 | (B.Pawn|.MinFlyS|
|00000b70| 70 65 65 64 20 3e 20 30 | 29 20 29 0d 0a 09 7b 0d |peed > 0|) )...{.|
|00000b80| 0a 09 09 69 66 20 28 20 | 28 56 65 68 69 63 6c 65 |...if ( |(Vehicle|
|00000b90| 50 61 74 68 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |Path != |None) &&|
|00000ba0| 20 42 2e 50 61 77 6e 2e | 52 65 61 63 68 65 64 44 | B.Pawn.|ReachedD|
|00000bb0| 65 73 74 69 6e 61 74 69 | 6f 6e 28 56 65 68 69 63 |estinati|on(Vehic|
|00000bc0| 6c 65 50 61 74 68 29 20 | 29 0d 0a 09 09 7b 0d 0a |lePath) |)....{..|
|00000bd0| 09 09 09 42 2e 50 61 77 | 6e 2e 41 69 72 53 70 65 |...B.Paw|n.AirSpe|
|00000be0| 65 64 20 3d 20 46 4d 69 | 6e 28 42 2e 50 61 77 6e |ed = FMi|n(B.Pawn|
|00000bf0| 2e 41 69 72 53 70 65 65 | 64 2c 20 31 2e 30 35 20 |.AirSpee|d, 1.05 |
|00000c00| 2a 20 42 2e 50 61 77 6e | 2e 4d 69 6e 46 6c 79 53 |* B.Pawn|.MinFlyS|
|00000c10| 70 65 65 64 29 3b 0d 0a | 09 09 09 42 2e 50 61 77 |peed);..|...B.Paw|
|00000c20| 6e 2e 62 54 68 75 6d 70 | 65 64 20 3d 20 74 72 75 |n.bThump|ed = tru|
|00000c30| 65 3b 0d 0a 09 09 09 44 | 69 72 20 3d 20 4e 6f 72 |e;.....D|ir = Nor|
|00000c40| 6d 61 6c 28 42 2e 50 61 | 77 6e 2e 56 65 6c 6f 63 |mal(B.Pa|wn.Veloc|
|00000c50| 69 74 79 29 3b 0d 0a 09 | 09 09 2f 2f 20 67 6f 20 |ity);...|..// go |
|00000c60| 6f 6e 20 74 6f 20 6e 65 | 78 74 20 70 61 74 68 6e |on to ne|xt pathn|
|00000c70| 6f 64 65 20 70 61 73 74 | 20 56 65 68 69 63 6c 65 |ode past| Vehicle|
|00000c80| 50 61 74 68 0d 0a 09 09 | 09 66 6f 72 20 28 20 69 |Path....|.for ( i|
|00000c90| 3d 30 3b 20 69 3c 56 65 | 68 69 63 6c 65 50 61 74 |=0; i<Ve|hiclePat|
|00000ca0| 68 2e 50 61 74 68 4c 69 | 73 74 2e 4c 65 6e 67 74 |h.PathLi|st.Lengt|
|00000cb0| 68 3b 20 69 2b 2b 20 29 | 0d 0a 09 09 09 7b 0d 0a |h; i++ )|.....{..|
|00000cc0| 09 09 09 09 69 66 20 28 | 20 42 65 73 74 50 61 74 |....if (| BestPat|
|00000cd0| 68 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |h == Non|e ).....|
|00000ce0| 09 7b 0d 0a 09 09 09 09 | 09 42 65 73 74 50 61 74 |.{......|.BestPat|
|00000cf0| 68 20 3d 20 56 65 68 69 | 63 6c 65 50 61 74 68 2e |h = Vehi|clePath.|
|00000d00| 50 61 74 68 4c 69 73 74 | 5b 69 5d 2e 45 6e 64 3b |PathList|[i].End;|
|00000d10| 0d 0a 09 09 09 09 09 42 | 65 73 74 20 3d 20 44 69 |.......B|est = Di|
|00000d20| 72 20 44 6f 74 20 4e 6f | 72 6d 61 6c 28 42 65 73 |r Dot No|rmal(Bes|
|00000d30| 74 50 61 74 68 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |tPath.Lo|cation -|
|00000d40| 20 56 65 68 69 63 6c 65 | 50 61 74 68 2e 4c 6f 63 | Vehicle|Path.Loc|
|00000d50| 61 74 69 6f 6e 29 3b 0d | 0a 09 09 09 09 7d 0d 0a |ation);.|.....}..|
|00000d60| 09 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 7b 0d |....else|......{.|
|00000d70| 0a 09 09 09 09 09 4e 65 | 78 74 20 3d 20 44 69 72 |......Ne|xt = Dir|
|00000d80| 20 44 6f 74 20 4e 6f 72 | 6d 61 6c 28 56 65 68 69 | Dot Nor|mal(Vehi|
|00000d90| 63 6c 65 50 61 74 68 2e | 50 61 74 68 4c 69 73 74 |clePath.|PathList|
|00000da0| 5b 69 5d 2e 45 6e 64 2e | 4c 6f 63 61 74 69 6f 6e |[i].End.|Location|
|00000db0| 20 2d 20 56 65 68 69 63 | 6c 65 50 61 74 68 2e 4c | - Vehic|lePath.L|
|00000dc0| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 09 09 09 |ocation)|;.......|
|00000dd0| 69 66 20 28 20 4e 65 78 | 74 20 3e 20 42 65 73 74 |if ( Nex|t > Best|
|00000de0| 20 29 0d 0a 09 09 09 09 | 09 7b 0d 0a 09 09 09 09 | )......|.{......|
|00000df0| 09 09 42 65 73 74 20 3d | 20 4e 65 78 74 3b 0d 0a |..Best =| Next;..|
|00000e00| 09 09 09 09 09 09 42 65 | 73 74 50 61 74 68 20 3d |......Be|stPath =|
|00000e10| 20 56 65 68 69 63 6c 65 | 50 61 74 68 2e 50 61 74 | Vehicle|Path.Pat|
|00000e20| 68 4c 69 73 74 5b 69 5d | 2e 45 6e 64 3b 0d 0a 09 |hList[i]|.End;...|
|00000e30| 09 09 09 09 7d 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |....}...|...}....|
|00000e40| 09 7d 0d 0a 09 09 09 69 | 66 20 28 20 42 65 73 74 |.}.....i|f ( Best|
|00000e50| 50 61 74 68 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |Path != |None )..|
|00000e60| 09 09 09 7b 0d 0a 09 09 | 09 09 42 2e 4d 6f 76 65 |...{....|..B.Move|
|00000e70| 54 61 72 67 65 74 20 3d | 20 42 65 73 74 50 61 74 |Target =| BestPat|
|00000e80| 68 3b 0d 0a 09 09 09 09 | 42 2e 53 65 74 41 74 74 |h;......|B.SetAtt|
|00000e90| 72 61 63 74 69 6f 6e 53 | 74 61 74 65 28 29 3b 0d |ractionS|tate();.|
|00000ea0| 0a 09 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00000eb0| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 09 |;.....}.|...}....|
|00000ec0| 69 66 20 28 20 42 2e 43 | 61 6e 41 74 74 61 63 6b |if ( B.C|anAttack|
|00000ed0| 28 47 65 74 53 68 6f 6f | 74 54 61 72 67 65 74 28 |(GetShoo|tTarget(|
|00000ee0| 29 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 42 2e |)) )....|{.....B.|
|00000ef0| 50 61 77 6e 2e 41 69 72 | 53 70 65 65 64 20 3d 20 |Pawn.Air|Speed = |
|00000f00| 46 4d 69 6e 28 42 2e 50 | 61 77 6e 2e 41 69 72 53 |FMin(B.P|awn.AirS|
|00000f10| 70 65 65 64 2c 20 31 2e | 30 35 20 2a 20 42 2e 50 |peed, 1.|05 * B.P|
|00000f20| 61 77 6e 2e 4d 69 6e 46 | 6c 79 53 70 65 65 64 29 |awn.MinF|lySpeed)|
|00000f30| 3b 0d 0a 09 09 09 42 2e | 46 6f 63 75 73 20 3d 20 |;.....B.|Focus = |
|00000f40| 73 65 6c 66 3b 0d 0a 09 | 09 09 42 2e 46 69 72 65 |self;...|..B.Fire|
|00000f50| 57 65 61 70 6f 6e 41 74 | 28 73 65 6c 66 29 3b 0d |WeaponAt|(self);.|
|00000f60| 0a 09 09 09 42 2e 47 6f | 61 6c 53 74 72 69 6e 67 |....B.Go|alString|
|00000f70| 20 3d 20 22 41 74 74 61 | 63 6b 20 4f 62 6a 65 63 | = "Atta|ck Objec|
|00000f80| 74 69 76 65 22 3b 0d 0a | 09 09 09 69 66 20 28 20 |tive";..|...if ( |
|00000f90| 21 42 2e 53 71 75 61 64 | 2e 46 69 6e 64 50 61 74 |!B.Squad|.FindPat|
|00000fa0| 68 54 6f 4f 62 6a 65 63 | 74 69 76 65 28 42 2c 73 |hToObjec|tive(B,s|
|00000fb0| 65 6c 66 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |elf) )..|...{....|
|00000fc0| 09 09 42 2e 44 6f 52 61 | 6e 67 65 64 41 74 74 61 |..B.DoRa|ngedAtta|
|00000fd0| 63 6b 4f 6e 28 47 65 74 | 53 68 6f 6f 74 54 61 72 |ckOn(Get|ShootTar|
|00000fe0| 67 65 74 28 29 29 3b 0d | 0a 09 09 09 09 42 2e 50 |get());.|.....B.P|
|00000ff0| 61 77 6e 2e 41 63 63 65 | 6c 65 72 61 74 69 6f 6e |awn.Acce|leration|
|00001000| 20 3d 20 42 2e 50 61 77 | 6e 2e 41 63 63 65 6c 52 | = B.Paw|n.AccelR|
|00001010| 61 74 65 20 2a 20 4e 6f | 72 6d 61 6c 28 4c 6f 63 |ate * No|rmal(Loc|
|00001020| 61 74 69 6f 6e 20 2d 20 | 42 2e 50 61 77 6e 2e 4c |ation - |B.Pawn.L|
|00001030| 6f 63 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 09 7d 0d |ocation)|;.....}.|
|00001040| 0a 09 09 09 65 6c 73 65 | 0d 0a 09 09 09 09 72 65 |....else|......re|
|00001050| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 09 7d 0d |turn tru|e;....}.|
|00001060| 0a 09 09 62 52 65 73 75 | 6c 74 20 3d 20 53 75 70 |...bResu|lt = Sup|
|00001070| 65 72 2e 54 65 6c 6c 42 | 6f 74 48 6f 77 54 6f 44 |er.TellB|otHowToD|
|00001080| 69 73 61 62 6c 65 28 42 | 29 3b 0d 0a 09 09 69 66 |isable(B|);....if|
|00001090| 20 28 20 62 52 65 73 75 | 6c 74 20 26 26 20 28 46 | ( bResu|lt && (F|
|000010a0| 6c 79 69 6e 67 50 61 74 | 68 4e 6f 64 65 28 42 2e |lyingPat|hNode(B.|
|000010b0| 4d 6f 76 65 54 61 72 67 | 65 74 29 20 21 3d 20 4e |MoveTarg|et) != N|
|000010c0| 6f 6e 65 29 20 26 26 20 | 28 42 2e 4d 6f 76 65 54 |one) && |(B.MoveT|
|000010d0| 61 72 67 65 74 2e 43 6f | 6c 6c 69 73 69 6f 6e 52 |arget.Co|llisionR|
|000010e0| 61 64 69 75 73 20 3c 20 | 31 30 30 30 29 20 29 0d |adius < |1000) ).|
|000010f0| 0a 09 09 09 42 2e 50 61 | 77 6e 2e 41 69 72 53 70 |....B.Pa|wn.AirSp|
|00001100| 65 65 64 20 3d 20 46 4d | 69 6e 28 42 2e 50 61 77 |eed = FM|in(B.Paw|
|00001110| 6e 2e 41 69 72 53 70 65 | 65 64 2c 20 31 2e 30 35 |n.AirSpe|ed, 1.05|
|00001120| 20 2a 20 42 2e 50 61 77 | 6e 2e 4d 69 6e 46 6c 79 | * B.Paw|n.MinFly|
|00001130| 53 70 65 65 64 29 3b 0d | 0a 09 09 65 6c 73 65 0d |Speed);.|...else.|
|00001140| 0a 09 09 09 42 2e 50 61 | 77 6e 2e 41 69 72 53 70 |....B.Pa|wn.AirSp|
|00001150| 65 65 64 20 3d 20 42 2e | 50 61 77 6e 2e 44 65 66 |eed = B.|Pawn.Def|
|00001160| 61 75 6c 74 2e 41 69 72 | 53 70 65 65 64 3b 0d 0a |ault.Air|Speed;..|
|00001170| 09 09 72 65 74 75 72 6e | 20 62 52 65 73 75 6c 74 |..return| bResult|
|00001180| 3b 0d 0a 09 7d 0d 0a 09 | 65 6c 73 65 20 69 66 20 |;...}...|else if |
|00001190| 28 20 21 42 2e 50 61 77 | 6e 2e 62 53 74 61 74 69 |( !B.Paw|n.bStati|
|000011a0| 6f 6e 61 72 79 20 26 26 | 20 42 2e 50 61 77 6e 2e |onary &&| B.Pawn.|
|000011b0| 54 6f 6f 43 6c 6f 73 65 | 54 6f 41 74 74 61 63 6b |TooClose|ToAttack|
|000011c0| 28 47 65 74 53 68 6f 6f | 74 54 61 72 67 65 74 28 |(GetShoo|tTarget(|
|000011d0| 29 29 20 29 0d 0a 09 7b | 0d 0a 09 09 42 2e 47 6f |)) )...{|....B.Go|
|000011e0| 61 6c 53 74 72 69 6e 67 | 20 3d 20 22 42 61 63 6b |alString| = "Back|
|000011f0| 20 6f 66 66 20 66 72 6f | 6d 20 6f 62 6a 65 63 74 | off fro|m object|
|00001200| 69 76 65 22 3b 0d 0a 09 | 09 42 2e 52 6f 75 74 65 |ive";...|.B.Route|
|00001210| 47 6f 61 6c 20 3d 20 42 | 2e 46 69 6e 64 52 61 6e |Goal = B|.FindRan|
|00001220| 64 6f 6d 44 65 73 74 28 | 29 3b 0d 0a 09 09 42 2e |domDest(|);....B.|
|00001230| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 42 2e 52 |MoveTarg|et = B.R|
|00001240| 6f 75 74 65 43 61 63 68 | 65 5b 30 5d 3b 0d 0a 09 |outeCach|e[0];...|
|00001250| 09 42 2e 53 65 74 41 74 | 74 72 61 63 74 69 6f 6e |.B.SetAt|traction|
|00001260| 53 74 61 74 65 28 29 3b | 0d 0a 09 09 72 65 74 75 |State();|....retu|
|00001270| 72 6e 20 74 72 75 65 3b | 0d 0a 09 7d 0d 0a 09 65 |rn true;|...}...e|
|00001280| 6c 73 65 20 69 66 20 28 | 20 42 2e 43 61 6e 41 74 |lse if (| B.CanAt|
|00001290| 74 61 63 6b 28 47 65 74 | 53 68 6f 6f 74 54 61 72 |tack(Get|ShootTar|
|000012a0| 67 65 74 28 29 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |get()) )|...{....|
|000012b0| 69 66 20 28 4b 69 6c 6c | 45 6e 65 6d 79 46 69 72 |if (Kill|EnemyFir|
|000012c0| 73 74 28 42 29 29 0d 0a | 09 09 09 72 65 74 75 72 |st(B))..|...retur|
|000012d0| 6e 20 66 61 6c 73 65 3b | 0d 0a 0d 0a 09 09 42 2e |n false;|......B.|
|000012e0| 47 6f 61 6c 53 74 72 69 | 6e 67 20 3d 20 22 41 74 |GoalStri|ng = "At|
|000012f0| 74 61 63 6b 20 4f 62 6a | 65 63 74 69 76 65 22 3b |tack Obj|ective";|
|00001300| 0d 0a 09 09 42 2e 44 6f | 52 61 6e 67 65 64 41 74 |....B.Do|RangedAt|
|00001310| 74 61 63 6b 4f 6e 28 47 | 65 74 53 68 6f 6f 74 54 |tackOn(G|etShootT|
|00001320| 61 72 67 65 74 28 29 29 | 3b 0d 0a 09 09 72 65 74 |arget())|;....ret|
|00001330| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 0d |urn true|;...}...|
|00001340| 0a 09 72 65 74 75 72 6e | 20 53 75 70 65 72 2e 54 |..return| Super.T|
|00001350| 65 6c 6c 42 6f 74 48 6f | 77 54 6f 44 69 73 61 62 |ellBotHo|wToDisab|
|00001360| 6c 65 28 42 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |le(B);..|}....fun|
|00001370| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 4e 65 61 72 4f |ction bo|ol NearO|
|00001380| 62 6a 65 63 74 69 76 65 | 28 50 61 77 6e 20 50 29 |bjective|(Pawn P)|
|00001390| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 50 2e 43 61 6e |..{...if| ( P.Can|
|000013a0| 41 74 74 61 63 6b 28 47 | 65 74 53 68 6f 6f 74 54 |Attack(G|etShootT|
|000013b0| 61 72 67 65 74 28 29 29 | 20 29 0d 0a 09 09 72 65 |arget())| )....re|
|000013c0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 72 65 74 |turn tru|e;...ret|
|000013d0| 75 72 6e 20 53 75 70 65 | 72 2e 4e 65 61 72 4f 62 |urn Supe|r.NearOb|
|000013e0| 6a 65 63 74 69 76 65 28 | 50 29 3b 0d 0a 7d 0d 0a |jective(|P);..}..|
|000013f0| 0d 0a 2f 2a 20 54 65 6c | 6c 42 6f 74 48 6f 77 54 |../* Tel|lBotHowT|
|00001400| 6f 48 65 61 6c 28 29 0d | 0a 74 65 6c 6c 20 62 6f |oHeal().|.tell bo|
|00001410| 74 20 77 68 61 74 20 74 | 6f 20 64 6f 20 74 6f 20 |t what t|o do to |
|00001420| 68 65 61 6c 20 6d 65 0d | 0a 72 65 74 75 72 6e 20 |heal me.|.return |
|00001430| 74 72 75 65 20 69 66 20 | 76 61 6c 69 64 2f 75 73 |true if |valid/us|
|00001440| 65 61 62 6c 65 20 69 6e | 73 74 72 75 63 74 69 6f |eable in|structio|
|00001450| 6e 73 20 77 65 72 65 20 | 67 69 76 65 6e 0d 0a 2a |ns were |given..*|
|00001460| 2f 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |/..funct|ion bool|
|00001470| 20 54 65 6c 6c 42 6f 74 | 48 6f 77 54 6f 48 65 61 | TellBot|HowToHea|
|00001480| 6c 28 42 6f 74 20 42 29 | 0d 0a 7b 0d 0a 09 6c 6f |l(Bot B)|..{...lo|
|00001490| 63 61 6c 20 56 65 68 69 | 63 6c 65 20 4f 6c 64 56 |cal Vehi|cle OldV|
|000014a0| 65 68 69 63 6c 65 3b 0d | 0a 0d 0a 09 69 66 20 28 |ehicle;.|....if (|
|000014b0| 21 54 65 61 6d 4c 69 6e | 6b 28 42 2e 47 65 74 54 |!TeamLin|k(B.GetT|
|000014c0| 65 61 6d 4e 75 6d 28 29 | 29 20 7c 7c 20 48 65 61 |eamNum()|) || Hea|
|000014d0| 6c 74 68 20 3e 3d 20 44 | 61 6d 61 67 65 43 61 70 |lth >= D|amageCap|
|000014e0| 61 63 69 74 79 29 0d 0a | 09 09 72 65 74 75 72 6e |acity)..|..return|
|000014f0| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 69 66 20 28 | false;.|....if (|
|00001500| 42 2e 53 71 75 61 64 2e | 53 71 75 61 64 4f 62 6a |B.Squad.|SquadObj|
|00001510| 65 63 74 69 76 65 20 3d | 3d 20 4e 6f 6e 65 29 0d |ective =|= None).|
|00001520| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 56 65 68 69 63 |..{....i|f (Vehic|
|00001530| 6c 65 28 42 2e 50 61 77 | 6e 29 20 21 3d 20 4e 6f |le(B.Paw|n) != No|
|00001540| 6e 65 29 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 66 |ne).....|return f|
|00001550| 61 6c 73 65 3b 0d 0a 09 | 09 2f 2f 68 61 63 6b 20 |alse;...|.//hack |
|00001560| 2d 20 69 66 20 62 6f 74 | 20 68 61 73 20 6e 6f 20 |- if bot| has no |
|00001570| 73 71 75 61 64 6f 62 6a | 65 63 74 69 76 65 2c 20 |squadobj|ective, |
|00001580| 6e 65 65 64 20 74 68 69 | 73 20 66 6f 72 20 53 77 |need thi|s for Sw|
|00001590| 69 74 63 68 54 6f 42 65 | 73 74 57 65 61 70 6f 6e |itchToBe|stWeapon|
|000015a0| 28 29 20 73 6f 20 62 6f | 74 27 73 20 77 65 61 70 |() so bo|t's weap|
|000015b0| 6f 6e 73 27 20 47 65 74 | 41 49 52 61 74 69 6e 67 |ons' Get|AIRating|
|000015c0| 28 29 0d 0a 09 09 2f 2f | 68 61 73 20 73 6f 6d 65 |()....//|has some|
|000015d0| 20 77 61 79 20 6f 66 20 | 66 69 67 75 72 69 6e 67 | way of |figuring|
|000015e0| 20 6f 75 74 20 62 6f 74 | 20 69 73 20 74 72 79 69 | out bot| is tryi|
|000015f0| 6e 67 20 74 6f 20 68 65 | 61 6c 20 6d 65 0d 0a 09 |ng to he|al me...|
|00001600| 09 42 2e 44 6f 52 61 6e | 67 65 64 41 74 74 61 63 |.B.DoRan|gedAttac|
|00001610| 6b 4f 6e 28 73 65 6c 66 | 29 3b 0d 0a 09 7d 0d 0a |kOn(self|);...}..|
|00001620| 0d 0a 09 69 66 20 28 56 | 65 68 69 63 6c 65 28 42 |...if (V|ehicle(B|
|00001630| 2e 50 61 77 6e 29 20 21 | 3d 20 4e 6f 6e 65 20 26 |.Pawn) !|= None &|
|00001640| 26 20 21 56 65 68 69 63 | 6c 65 28 42 2e 50 61 77 |& !Vehic|le(B.Paw|
|00001650| 6e 29 2e 62 4b 65 79 56 | 65 68 69 63 6c 65 20 26 |n).bKeyV|ehicle &|
|00001660| 26 20 28 42 2e 45 6e 65 | 6d 79 20 3d 3d 20 4e 6f |& (B.Ene|my == No|
|00001670| 6e 65 20 7c 7c 20 28 21 | 42 2e 45 6e 65 6d 79 56 |ne || (!|B.EnemyV|
|00001680| 69 73 69 62 6c 65 28 29 | 20 26 26 20 4c 65 76 65 |isible()| && Leve|
|00001690| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 2d 20 |l.TimeSe|conds - |
|000016a0| 42 2e 4c 61 73 74 53 65 | 65 6e 54 69 6d 65 20 3e |B.LastSe|enTime >|
|000016b0| 20 33 29 29 29 0d 0a 09 | 7b 0d 0a 09 09 4f 6c 64 | 3)))...|{....Old|
|000016c0| 56 65 68 69 63 6c 65 20 | 3d 20 56 65 68 69 63 6c |Vehicle |= Vehicl|
|000016d0| 65 28 42 2e 50 61 77 6e | 29 3b 0d 0a 09 09 56 65 |e(B.Pawn|);....Ve|
|000016e0| 68 69 63 6c 65 28 42 2e | 50 61 77 6e 29 2e 4b 44 |hicle(B.|Pawn).KD|
|000016f0| 72 69 76 65 72 4c 65 61 | 76 65 28 66 61 6c 73 65 |riverLea|ve(false|
|00001700| 29 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 69 66 20 28 42 |);...}..|...if (B|
|00001710| 2e 50 61 77 6e 2e 57 65 | 61 70 6f 6e 20 21 3d 20 |.Pawn.We|apon != |
|00001720| 4e 6f 6e 65 20 26 26 20 | 42 2e 50 61 77 6e 2e 57 |None && |B.Pawn.W|
|00001730| 65 61 70 6f 6e 2e 43 61 | 6e 48 65 61 6c 28 73 65 |eapon.Ca|nHeal(se|
|00001740| 6c 66 29 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |lf))...{|....if (|
|00001750| 21 42 2e 50 61 77 6e 2e | 43 61 6e 41 74 74 61 63 |!B.Pawn.|CanAttac|
|00001760| 6b 28 47 65 74 53 68 6f | 6f 74 54 61 72 67 65 74 |k(GetSho|otTarget|
|00001770| 28 29 29 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 2f 2f |()))....|{.....//|
|00001780| 6e 65 65 64 20 74 6f 20 | 6d 6f 76 65 20 74 6f 20 |need to |move to |
|00001790| 73 6f 6d 65 77 68 65 72 | 65 20 65 6c 73 65 20 6e |somewher|e else n|
|000017a0| 65 61 72 20 6f 62 6a 65 | 63 74 69 76 65 0d 0a 09 |ear obje|ctive...|
|000017b0| 09 09 42 2e 47 6f 61 6c | 53 74 72 69 6e 67 20 3d |..B.Goal|String =|
|000017c0| 20 22 43 61 6e 27 74 20 | 73 68 6f 6f 74 22 40 73 | "Can't |shoot"@s|
|000017d0| 65 6c 66 40 22 28 6f 62 | 73 74 72 75 63 74 65 64 |elf@"(ob|structed|
|000017e0| 29 22 3b 0d 0a 09 09 09 | 42 2e 52 6f 75 74 65 47 |)";.....|B.RouteG|
|000017f0| 6f 61 6c 20 3d 20 42 2e | 46 69 6e 64 52 61 6e 64 |oal = B.|FindRand|
|00001800| 6f 6d 44 65 73 74 28 29 | 3b 0d 0a 09 09 09 42 2e |omDest()|;.....B.|
|00001810| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 42 2e 52 |MoveTarg|et = B.R|
|00001820| 6f 75 74 65 43 61 63 68 | 65 5b 30 5d 3b 0d 0a 09 |outeCach|e[0];...|
|00001830| 09 09 42 2e 53 65 74 41 | 74 74 72 61 63 74 69 6f |..B.SetA|ttractio|
|00001840| 6e 53 74 61 74 65 28 29 | 3b 0d 0a 09 09 09 72 65 |nState()|;.....re|
|00001850| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 09 7d 0d |turn tru|e;....}.|
|00001860| 0a 09 09 42 2e 47 6f 61 | 6c 53 74 72 69 6e 67 20 |...B.Goa|lString |
|00001870| 3d 20 22 48 65 61 6c 20 | 22 24 73 65 6c 66 3b 0d |= "Heal |"$self;.|
|00001880| 0a 09 09 42 2e 44 6f 52 | 61 6e 67 65 64 41 74 74 |...B.DoR|angedAtt|
|00001890| 61 63 6b 4f 6e 28 47 65 | 74 53 68 6f 6f 74 54 61 |ackOn(Ge|tShootTa|
|000018a0| 72 67 65 74 28 29 29 3b | 0d 0a 09 09 72 65 74 75 |rget());|....retu|
|000018b0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 7d 0d 0a 09 65 |rn true;|...}...e|
|000018c0| 6c 73 65 0d 0a 09 7b 0d | 0a 09 09 42 2e 53 77 69 |lse...{.|...B.Swi|
|000018d0| 74 63 68 54 6f 42 65 73 | 74 57 65 61 70 6f 6e 28 |tchToBes|tWeapon(|
|000018e0| 29 3b 0d 0a 09 09 69 66 | 20 28 42 2e 50 61 77 6e |);....if| (B.Pawn|
|000018f0| 2e 50 65 6e 64 69 6e 67 | 57 65 61 70 6f 6e 20 21 |.Pending|Weapon !|
|00001900| 3d 20 4e 6f 6e 65 20 26 | 26 20 42 2e 50 61 77 6e |= None &|& B.Pawn|
|00001910| 2e 50 65 6e 64 69 6e 67 | 57 65 61 70 6f 6e 2e 43 |.Pending|Weapon.C|
|00001920| 61 6e 48 65 61 6c 28 73 | 65 6c 66 29 29 0d 0a 09 |anHeal(s|elf))...|
|00001930| 09 7b 0d 0a 09 09 09 69 | 66 20 28 21 42 2e 50 61 |.{.....i|f (!B.Pa|
|00001940| 77 6e 2e 43 61 6e 41 74 | 74 61 63 6b 28 47 65 74 |wn.CanAt|tack(Get|
|00001950| 53 68 6f 6f 74 54 61 72 | 67 65 74 28 29 29 29 0d |ShootTar|get())).|
|00001960| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 2f 2f 6e 65 65 |....{...|...//nee|
|00001970| 64 20 74 6f 20 6d 6f 76 | 65 20 74 6f 20 73 6f 6d |d to mov|e to som|
|00001980| 65 77 68 65 72 65 20 65 | 6c 73 65 20 6e 65 61 72 |ewhere e|lse near|
|00001990| 20 6f 62 6a 65 63 74 69 | 76 65 0d 0a 09 09 09 09 | objecti|ve......|
|000019a0| 42 2e 47 6f 61 6c 53 74 | 72 69 6e 67 20 3d 20 22 |B.GoalSt|ring = "|
|000019b0| 43 61 6e 27 74 20 73 68 | 6f 6f 74 22 40 73 65 6c |Can't sh|oot"@sel|
|000019c0| 66 40 22 28 6f 62 73 74 | 72 75 63 74 65 64 29 22 |f@"(obst|ructed)"|
|000019d0| 3b 0d 0a 09 09 09 09 42 | 2e 52 6f 75 74 65 47 6f |;......B|.RouteGo|
|000019e0| 61 6c 20 3d 20 42 2e 46 | 69 6e 64 52 61 6e 64 6f |al = B.F|indRando|
|000019f0| 6d 44 65 73 74 28 29 3b | 0d 0a 09 09 09 09 42 2e |mDest();|......B.|
|00001a00| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 42 2e 52 |MoveTarg|et = B.R|
|00001a10| 6f 75 74 65 43 61 63 68 | 65 5b 30 5d 3b 0d 0a 09 |outeCach|e[0];...|
|00001a20| 09 09 09 42 2e 53 65 74 | 41 74 74 72 61 63 74 69 |...B.Set|Attracti|
|00001a30| 6f 6e 53 74 61 74 65 28 | 29 3b 0d 0a 09 09 09 09 |onState(|);......|
|00001a40| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 09 |return t|rue;....|
|00001a50| 09 7d 0d 0a 09 09 09 42 | 2e 47 6f 61 6c 53 74 72 |.}.....B|.GoalStr|
|00001a60| 69 6e 67 20 3d 20 22 48 | 65 61 6c 20 22 24 73 65 |ing = "H|eal "$se|
|00001a70| 6c 66 3b 0d 0a 09 09 09 | 42 2e 44 6f 52 61 6e 67 |lf;.....|B.DoRang|
|00001a80| 65 64 41 74 74 61 63 6b | 4f 6e 28 47 65 74 53 68 |edAttack|On(GetSh|
|00001a90| 6f 6f 74 54 61 72 67 65 | 74 28 29 29 3b 0d 0a 09 |ootTarge|t());...|
|00001aa0| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00001ab0| 09 09 7d 0d 0a 09 09 69 | 66 20 28 42 2e 46 69 6e |..}....i|f (B.Fin|
|00001ac0| 64 49 6e 76 65 6e 74 6f | 72 79 47 6f 61 6c 28 30 |dInvento|ryGoal(0|
|00001ad0| 2e 30 30 30 35 29 29 20 | 2f 2f 74 72 79 20 74 6f |.0005)) |//try to|
|00001ae0| 20 66 69 6e 64 20 61 20 | 77 65 61 70 6f 6e 20 74 | find a |weapon t|
|00001af0| 6f 20 68 65 61 6c 20 74 | 68 65 20 6f 62 6a 65 63 |o heal t|he objec|
|00001b00| 74 69 76 65 0d 0a 09 09 | 7b 0d 0a 09 09 09 42 2e |tive....|{.....B.|
|00001b10| 47 6f 61 6c 53 74 72 69 | 6e 67 20 3d 20 22 46 69 |GoalStri|ng = "Fi|
|00001b20| 6e 64 20 77 65 61 70 6f | 6e 20 6f 72 20 61 6d 6d |nd weapo|n or amm|
|00001b30| 6f 20 74 6f 20 68 65 61 | 6c 20 22 24 73 65 6c 66 |o to hea|l "$self|
|00001b40| 3b 0d 0a 09 09 09 42 2e | 53 65 74 41 74 74 72 61 |;.....B.|SetAttra|
|00001b50| 63 74 69 6f 6e 53 74 61 | 74 65 28 29 3b 0d 0a 09 |ctionSta|te();...|
|00001b60| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00001b70| 09 09 7d 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |..}...}.|....if (|
|00001b80| 4f 6c 64 56 65 68 69 63 | 6c 65 20 21 3d 20 4e 6f |OldVehic|le != No|
|00001b90| 6e 65 29 0d 0a 09 09 4f | 6c 64 56 65 68 69 63 6c |ne)....O|ldVehicl|
|00001ba0| 65 2e 55 73 65 64 42 79 | 28 42 2e 50 61 77 6e 29 |e.UsedBy|(B.Pawn)|
|00001bb0| 3b 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 66 61 6c |;.....re|turn fal|
|00001bc0| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 2f 2a 20 52 65 73 |se;..}..|../* Res|
|00001bd0| 65 74 28 29 0d 0a 72 65 | 73 65 74 20 61 63 74 6f |et()..re|set acto|
|00001be0| 72 20 74 6f 20 69 6e 69 | 74 69 61 6c 20 73 74 61 |r to ini|tial sta|
|00001bf0| 74 65 20 2d 20 75 73 65 | 64 20 77 68 65 6e 20 72 |te - use|d when r|
|00001c00| 65 73 74 61 72 74 69 6e | 67 20 6c 65 76 65 6c 20 |estartin|g level |
|00001c10| 77 69 74 68 6f 75 74 20 | 72 65 6c 6f 61 64 69 6e |without |reloadin|
|00001c20| 67 2e 0d 0a 2a 2f 0d 0a | 66 75 6e 63 74 69 6f 6e |g...*/..|function|
|00001c30| 20 52 65 73 65 74 28 29 | 0d 0a 7b 0d 0a 09 48 65 | Reset()|..{...He|
|00001c40| 61 6c 74 68 09 09 09 09 | 3d 20 44 61 6d 61 67 65 |alth....|= Damage|
|00001c50| 43 61 70 61 63 69 74 79 | 3b 0d 0a 09 41 63 63 75 |Capacity|;...Accu|
|00001c60| 6d 75 6c 61 74 65 64 44 | 61 6d 61 67 65 09 3d 20 |mulatedD|amage.= |
|00001c70| 30 3b 0d 0a 09 62 50 72 | 6f 6a 54 61 72 67 65 74 |0;...bPr|ojTarget|
|00001c80| 09 09 09 3d 20 74 72 75 | 65 3b 0d 0a 09 62 49 73 |...= tru|e;...bIs|
|00001c90| 55 6e 64 65 72 41 74 74 | 61 63 6b 09 09 3d 20 66 |UnderAtt|ack..= f|
|00001ca0| 61 6c 73 65 3b 0d 0a 0d | 0a 09 53 65 74 43 6f 6c |alse;...|..SetCol|
|00001cb0| 6c 69 73 69 6f 6e 28 74 | 72 75 65 2c 20 62 42 6c |lision(t|rue, bBl|
|00001cc0| 6f 63 6b 41 63 74 6f 72 | 73 29 3b 0d 0a 0d 0a 09 |ockActor|s);.....|
|00001cd0| 69 66 20 28 20 55 6e 64 | 65 72 41 74 74 61 63 6b |if ( Und|erAttack|
|00001ce0| 54 69 6d 65 72 20 21 3d | 20 4e 6f 6e 65 20 29 0d |Timer !=| None ).|
|00001cf0| 0a 09 7b 0d 0a 09 09 55 | 6e 64 65 72 41 74 74 61 |..{....U|nderAtta|
|00001d00| 63 6b 54 69 6d 65 72 2e | 44 65 73 74 72 6f 79 28 |ckTimer.|Destroy(|
|00001d10| 29 3b 0d 0a 09 09 55 6e | 64 65 72 41 74 74 61 63 |);....Un|derAttac|
|00001d20| 6b 54 69 6d 65 72 20 3d | 20 4e 6f 6e 65 3b 0d 0a |kTimer =| None;..|
|00001d30| 09 7d 0d 0a 0d 0a 09 73 | 75 70 65 72 2e 52 65 73 |.}.....s|uper.Res|
|00001d40| 65 74 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |et();..}|....func|
|00001d50| 74 69 6f 6e 20 54 61 6b | 65 44 61 6d 61 67 65 28 |tion Tak|eDamage(|
|00001d60| 20 69 6e 74 20 44 61 6d | 61 67 65 2c 20 50 61 77 | int Dam|age, Paw|
|00001d70| 6e 20 69 6e 73 74 69 67 | 61 74 65 64 42 79 2c 20 |n instig|atedBy, |
|00001d80| 56 65 63 74 6f 72 20 68 | 69 74 6c 6f 63 61 74 69 |Vector h|itlocati|
|00001d90| 6f 6e 2c 0d 0a 09 09 09 | 09 09 09 56 65 63 74 6f |on,.....|...Vecto|
|00001da0| 72 20 6d 6f 6d 65 6e 74 | 75 6d 2c 20 63 6c 61 73 |r moment|um, clas|
|00001db0| 73 3c 44 61 6d 61 67 65 | 54 79 70 65 3e 20 64 61 |s<Damage|Type> da|
|00001dc0| 6d 61 67 65 54 79 70 65 | 29 0d 0a 7b 0d 0a 09 6c |mageType|)..{...l|
|00001dd0| 6f 63 61 6c 20 66 6c 6f | 61 74 09 09 09 44 61 6d |ocal flo|at...Dam|
|00001de0| 61 67 65 50 63 74 2c 20 | 48 65 61 6c 74 68 54 61 |agePct, |HealthTa|
|00001df0| 6b 65 6e 3b 0d 0a 09 6c | 6f 63 61 6c 20 43 6f 6e |ken;...l|ocal Con|
|00001e00| 74 72 6f 6c 6c 65 72 09 | 49 6e 73 74 69 67 61 74 |troller.|Instigat|
|00001e10| 6f 72 43 6f 6e 74 72 6f | 6c 6c 65 72 3b 0d 0a 09 |orContro|ller;...|
|00001e20| 6c 6f 63 61 6c 20 50 61 | 77 6e 20 43 75 72 72 65 |local Pa|wn Curre|
|00001e30| 6e 74 49 6e 73 74 69 67 | 61 74 6f 72 3b 0d 0a 0d |ntInstig|ator;...|
|00001e40| 0a 09 69 66 20 28 20 21 | 62 41 63 74 69 76 65 20 |..if ( !|bActive |
|00001e50| 7c 7c 20 62 44 69 73 61 | 62 6c 65 64 20 7c 7c 20 ||| bDisa|bled || |
|00001e60| 28 44 61 6d 61 67 65 20 | 3c 3d 20 30 29 20 7c 7c |(Damage |<= 0) |||
|00001e70| 20 21 55 6e 72 65 61 6c | 4d 50 47 61 6d 65 49 6e | !Unreal|MPGameIn|
|00001e80| 66 6f 28 4c 65 76 65 6c | 2e 47 61 6d 65 29 2e 43 |fo(Level|.Game).C|
|00001e90| 61 6e 44 69 73 61 62 6c | 65 4f 62 6a 65 63 74 69 |anDisabl|eObjecti|
|00001ea0| 76 65 28 20 53 65 6c 66 | 20 29 20 29 0d 0a 09 09 |ve( Self| ) )....|
|00001eb0| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 43 75 72 72 |return;.|....Curr|
|00001ec0| 65 6e 74 49 6e 73 74 69 | 67 61 74 6f 72 20 3d 20 |entInsti|gator = |
|00001ed0| 49 6e 73 74 69 67 61 74 | 65 64 42 79 3b 0d 0a 09 |Instigat|edBy;...|
|00001ee0| 69 66 20 28 20 56 65 68 | 69 63 6c 65 28 69 6e 73 |if ( Veh|icle(ins|
|00001ef0| 74 69 67 61 74 65 64 42 | 79 29 20 21 3d 20 4e 6f |tigatedB|y) != No|
|00001f00| 6e 65 20 29 0d 0a 09 09 | 44 61 6d 61 67 65 20 2a |ne )....|Damage *|
|00001f10| 3d 20 56 65 68 69 63 6c | 65 44 61 6d 61 67 65 53 |= Vehicl|eDamageS|
|00001f20| 63 61 6c 69 6e 67 3b 0d | 0a 0d 0a 09 69 66 20 28 |caling;.|....if (|
|00001f30| 20 64 61 6d 61 67 65 54 | 79 70 65 20 21 3d 20 4e | damageT|ype != N|
|00001f40| 6f 6e 65 29 0d 0a 09 09 | 44 61 6d 61 67 65 20 2a |one)....|Damage *|
|00001f50| 3d 20 64 61 6d 61 67 65 | 54 79 70 65 2e 64 65 66 |= damage|Type.def|
|00001f60| 61 75 6c 74 2e 56 65 68 | 69 63 6c 65 44 61 6d 61 |ault.Veh|icleDama|
|00001f70| 67 65 53 63 61 6c 69 6e | 67 3b 0d 0a 0d 0a 09 69 |geScalin|g;.....i|
|00001f80| 66 20 28 20 28 69 6e 73 | 74 69 67 61 74 65 64 42 |f ( (ins|tigatedB|
|00001f90| 79 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 69 6e 73 |y == Non|e || 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 3d 3d 20 | 4e 6f 6e 65 29 20 26 26 |ller == |None) &&|
|00001fc0| 20 28 44 65 6c 61 79 65 | 64 44 61 6d 61 67 65 49 | (Delaye|dDamageI|
|00001fd0| 6e 73 74 69 67 61 74 6f | 72 43 6f 6e 74 72 6f 6c |nstigato|rControl|
|00001fe0| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 29 20 29 0d 0a |ler != N|one) )..|
|00001ff0| 09 7b 0d 0a 09 09 69 6e | 73 74 69 67 61 74 65 64 |.{....in|stigated|
|00002000| 42 79 09 09 09 3d 20 44 | 65 6c 61 79 65 64 44 61 |By...= D|elayedDa|
|00002010| 6d 61 67 65 49 6e 73 74 | 69 67 61 74 6f 72 43 6f |mageInst|igatorCo|
|00002020| 6e 74 72 6f 6c 6c 65 72 | 2e 50 61 77 6e 3b 0d 0a |ntroller|.Pawn;..|
|00002030| 09 09 49 6e 73 74 69 67 | 61 74 6f 72 43 6f 6e 74 |..Instig|atorCont|
|00002040| 72 6f 6c 6c 65 72 09 3d | 20 44 65 6c 61 79 65 64 |roller.=| Delayed|
|00002050| 44 61 6d 61 67 65 49 6e | 73 74 69 67 61 74 6f 72 |DamageIn|stigator|
|00002060| 43 6f 6e 74 72 6f 6c 6c | 65 72 3b 0d 0a 09 7d 0d |Controll|er;...}.|
|00002070| 0a 0d 0a 09 69 66 20 28 | 20 69 6e 73 74 69 67 61 |....if (| instiga|
|00002080| 74 65 64 42 79 20 21 3d | 20 4e 6f 6e 65 20 29 0d |tedBy !=| None ).|
|00002090| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 49 6e 73 74 |..{....i|f ( Inst|
|000020a0| 69 67 61 74 65 64 42 79 | 2e 43 6f 6e 74 72 6f 6c |igatedBy|.Control|
|000020b0| 6c 65 72 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ler != N|one )...|
|000020c0| 09 09 49 6e 73 74 69 67 | 61 74 6f 72 43 6f 6e 74 |..Instig|atorCont|
|000020d0| 72 6f 6c 6c 65 72 20 3d | 20 49 6e 73 74 69 67 61 |roller =| Instiga|
|000020e0| 74 65 64 42 79 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |tedBy.Co|ntroller|
|000020f0| 3b 0d 0a 09 09 69 66 20 | 28 20 69 6e 73 74 69 67 |;....if |( instig|
|00002100| 61 74 65 64 42 79 2e 48 | 61 73 55 44 61 6d 61 67 |atedBy.H|asUDamag|
|00002110| 65 28 29 20 29 0d 0a 09 | 09 09 44 61 6d 61 67 65 |e() )...|..Damage|
|00002120| 20 2a 3d 20 32 3b 0d 0a | 09 09 44 61 6d 61 67 65 | *= 2;..|..Damage|
|00002130| 20 2a 3d 20 69 6e 73 74 | 69 67 61 74 65 64 42 79 | *= inst|igatedBy|
|00002140| 2e 44 61 6d 61 67 65 53 | 63 61 6c 69 6e 67 3b 0d |.DamageS|caling;.|
|00002150| 0a 09 7d 0d 0a 0d 0a 09 | 2f 2f 20 4f 6e 6c 79 20 |..}.....|// Only |
|00002160| 61 20 73 70 65 63 69 66 | 69 63 20 50 61 77 6e 20 |a specif|ic Pawn |
|00002170| 63 61 6e 20 64 65 61 6c | 20 64 61 6d 61 67 65 20 |can deal| damage |
|00002180| 74 6f 20 6f 62 6a 65 63 | 74 69 76 65 20 3f 0d 0a |to objec|tive ?..|
|00002190| 09 69 66 20 28 20 43 6f | 6e 73 74 72 61 69 6e 74 |.if ( Co|nstraint|
|000021a0| 49 6e 73 74 69 67 61 74 | 6f 72 20 3d 3d 20 43 49 |Instigat|or == CI|
|000021b0| 5f 50 61 77 6e 43 6c 61 | 73 73 0d 0a 09 09 26 26 |_PawnCla|ss....&&|
|000021c0| 20 28 28 49 6e 73 74 69 | 67 61 74 65 64 42 79 20 | ((Insti|gatedBy |
|000021d0| 3d 3d 20 4e 6f 6e 65 29 | 20 7c 7c 20 21 43 6c 61 |== None)| || !Cla|
|000021e0| 73 73 49 73 43 68 69 6c | 64 4f 66 28 69 6e 73 74 |ssIsChil|dOf(inst|
|000021f0| 69 67 61 74 65 64 42 79 | 2e 43 6c 61 73 73 2c 20 |igatedBy|.Class, |
|00002200| 43 6f 6e 73 74 72 61 69 | 6e 74 50 61 77 6e 43 6c |Constrai|ntPawnCl|
|00002210| 61 73 73 29 29 20 29 0d | 0a 09 09 72 65 74 75 72 |ass)) ).|...retur|
|00002220| 6e 3b 0d 0a 0d 0a 09 2f | 2f 20 43 61 6e 20 64 65 |n;...../|/ Can de|
|00002230| 66 65 6e 64 65 72 73 20 | 64 61 6d 61 67 65 20 4f |fenders |damage O|
|00002240| 62 6a 65 63 74 69 76 65 | 20 3f 0d 0a 09 69 66 20 |bjective| ?...if |
|00002250| 28 20 21 62 43 61 6e 44 | 65 66 65 6e 64 65 72 44 |( !bCanD|efenderD|
|00002260| 61 6d 61 67 65 0d 0a 09 | 09 26 26 20 28 20 28 49 |amage...|.&& ( (I|
|00002270| 6e 73 74 69 67 61 74 65 | 64 42 79 20 21 3d 20 4e |nstigate|dBy != N|
|00002280| 6f 6e 65 20 26 26 20 49 | 6e 73 74 69 67 61 74 65 |one && I|nstigate|
|00002290| 64 42 79 2e 47 65 74 54 | 65 61 6d 4e 75 6d 28 29 |dBy.GetT|eamNum()|
|000022a0| 20 3d 3d 20 44 65 66 65 | 6e 64 65 72 54 65 61 6d | == Defe|nderTeam|
|000022b0| 49 6e 64 65 78 29 0d 0a | 09 09 7c 7c 20 28 49 6e |Index)..|..|| (In|
|000022c0| 73 74 69 67 61 74 6f 72 | 43 6f 6e 74 72 6f 6c 6c |stigator|Controll|
|000022d0| 65 72 20 21 3d 20 4e 6f | 6e 65 20 26 26 20 49 6e |er != No|ne && In|
|000022e0| 73 74 69 67 61 74 6f 72 | 43 6f 6e 74 72 6f 6c 6c |stigator|Controll|
|000022f0| 65 72 2e 47 65 74 54 65 | 61 6d 4e 75 6d 28 29 20 |er.GetTe|amNum() |
|00002300| 3d 3d 20 44 65 66 65 6e | 64 65 72 54 65 61 6d 49 |== Defen|derTeamI|
|00002310| 6e 64 65 78 29 20 29 20 | 29 0d 0a 09 09 72 65 74 |ndex) ) |)....ret|
|00002320| 75 72 6e 3b 0d 0a 0d 0a | 09 44 61 6d 61 67 65 20 |urn;....|.Damage |
|00002330| 3d 20 55 6e 72 65 61 6c | 4d 50 47 61 6d 65 49 6e |= Unreal|MPGameIn|
|00002340| 66 6f 28 4c 65 76 65 6c | 2e 47 61 6d 65 29 2e 41 |fo(Level|.Game).A|
|00002350| 64 6a 75 73 74 44 65 73 | 74 72 6f 79 4f 62 6a 65 |djustDes|troyObje|
|00002360| 63 74 69 76 65 44 61 6d | 61 67 65 28 20 44 61 6d |ctiveDam|age( Dam|
|00002370| 61 67 65 2c 20 49 6e 73 | 74 69 67 61 74 6f 72 43 |age, Ins|tigatorC|
|00002380| 6f 6e 74 72 6f 6c 6c 65 | 72 2c 20 53 65 6c 66 20 |ontrolle|r, Self |
|00002390| 29 3b 0d 0a 09 4e 65 74 | 55 70 64 61 74 65 54 69 |);...Net|UpdateTi|
|000023a0| 6d 65 20 3d 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |me = Lev|el.TimeS|
|000023b0| 65 63 6f 6e 64 73 20 2d | 20 31 3b 0d 0a 09 41 63 |econds -| 1;...Ac|
|000023c0| 63 75 6d 75 6c 61 74 65 | 64 44 61 6d 61 67 65 20 |cumulate|dDamage |
|000023d0| 2b 3d 20 44 61 6d 61 67 | 65 3b 0d 0a 09 69 66 20 |+= Damag|e;...if |
|000023e0| 28 20 28 44 61 6d 61 67 | 65 45 76 65 6e 74 54 68 |( (Damag|eEventTh|
|000023f0| 72 65 73 68 6f 6c 64 20 | 3e 20 30 29 20 26 26 20 |reshold |> 0) && |
|00002400| 28 41 63 63 75 6d 75 6c | 61 74 65 64 44 61 6d 61 |(Accumul|atedDama|
|00002410| 67 65 20 3e 3d 20 44 61 | 6d 61 67 65 45 76 65 6e |ge >= Da|mageEven|
|00002420| 74 54 68 72 65 73 68 6f | 6c 64 29 20 29 0d 0a 09 |tThresho|ld) )...|
|00002430| 7b 0d 0a 09 09 54 72 69 | 67 67 65 72 45 76 65 6e |{....Tri|ggerEven|
|00002440| 74 28 54 61 6b 65 44 61 | 6d 61 67 65 45 76 65 6e |t(TakeDa|mageEven|
|00002450| 74 2c 20 53 65 6c 66 2c | 20 49 6e 73 74 69 67 61 |t, Self,| Instiga|
|00002460| 74 65 64 42 79 29 3b 0d | 0a 09 09 41 63 63 75 6d |tedBy);.|...Accum|
|00002470| 75 6c 61 74 65 64 44 61 | 6d 61 67 65 20 3d 20 30 |ulatedDa|mage = 0|
|00002480| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 48 65 61 6c 74 68 |;...}...|..Health|
|00002490| 54 61 6b 65 6e 20 3d 20 | 4d 69 6e 28 44 61 6d 61 |Taken = |Min(Dama|
|000024a0| 67 65 2c 20 48 65 61 6c | 74 68 29 3b 0d 0a 09 48 |ge, Heal|th);...H|
|000024b0| 65 61 6c 74 68 09 2d 3d | 20 44 61 6d 61 67 65 3b |ealth.-=| Damage;|
|000024c0| 0d 0a 09 69 66 20 28 28 | 44 65 66 65 6e 73 65 53 |...if ((|DefenseS|
|000024d0| 71 75 61 64 20 21 3d 20 | 4e 6f 6e 65 29 20 26 26 |quad != |None) &&|
|000024e0| 20 28 43 75 72 72 65 6e | 74 49 6e 73 74 69 67 61 | (Curren|tInstiga|
|000024f0| 74 6f 72 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |tor != N|one) && |
|00002500| 28 43 75 72 72 65 6e 74 | 49 6e 73 74 69 67 61 74 |(Current|Instigat|
|00002510| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 21 3d |or.Contr|oller !=|
|00002520| 20 4e 6f 6e 65 29 20 26 | 26 20 28 4c 65 76 65 6c | None) &|& (Level|
|00002530| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2d 20 4c |.TimeSec|onds - L|
|00002540| 61 73 74 57 61 72 6e 54 | 69 6d 65 20 3e 20 30 2e |astWarnT|ime > 0.|
|00002550| 35 29 20 29 0d 0a 09 7b | 0d 0a 09 09 4c 61 73 74 |5) )...{|....Last|
|00002560| 57 61 72 6e 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |WarnTime| = Level|
|00002570| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 3b 0d 0a 09 |.TimeSec|onds;...|
|00002580| 09 44 65 66 65 6e 73 65 | 53 71 75 61 64 2e 54 65 |.Defense|Squad.Te|
|00002590| 61 6d 2e 41 49 2e 43 72 | 69 74 69 63 61 6c 4f 62 |am.AI.Cr|iticalOb|
|000025a0| 6a 65 63 74 69 76 65 57 | 61 72 6e 69 6e 67 28 73 |jectiveW|arning(s|
|000025b0| 65 6c 66 2c 20 43 75 72 | 72 65 6e 74 49 6e 73 74 |elf, Cur|rentInst|
|000025c0| 69 67 61 74 6f 72 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |igator);|...}....|
|000025d0| 09 2f 2f 20 6d 6f 6e 69 | 74 6f 72 20 70 65 72 63 |.// moni|tor perc|
|000025e0| 65 6e 74 61 67 65 20 6f | 66 20 64 61 6d 61 67 65 |entage o|f damage|
|000025f0| 20 64 6f 6e 65 20 66 6f | 72 20 73 63 6f 72 65 20 | done fo|r score |
|00002600| 73 68 61 72 69 6e 67 0d | 0a 09 44 61 6d 61 67 65 |sharing.|..Damage|
|00002610| 50 63 74 20 3d 20 48 65 | 61 6c 74 68 54 61 6b 65 |Pct = He|althTake|
|00002620| 6e 20 2f 20 66 6c 6f 61 | 74 28 44 61 6d 61 67 65 |n / floa|t(Damage|
|00002630| 43 61 70 61 63 69 74 79 | 29 3b 0d 0a 09 69 66 20 |Capacity|);...if |
|00002640| 28 20 49 6e 73 74 69 67 | 61 74 65 64 42 79 20 21 |( Instig|atedBy !|
|00002650| 3d 20 4e 6f 6e 65 20 26 | 26 20 49 6e 73 74 69 67 |= None &|& Instig|
|00002660| 61 74 65 64 42 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |atedBy.C|ontrolle|
|00002670| 72 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 41 |r != Non|e )....A|
|00002680| 64 64 53 63 6f 72 65 72 | 28 20 49 6e 73 74 69 67 |ddScorer|( Instig|
|00002690| 61 74 65 64 42 79 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |atedBy.C|ontrolle|
|000026a0| 72 2c 20 44 61 6d 61 67 | 65 50 63 74 20 29 3b 0d |r, Damag|ePct );.|
|000026b0| 0a 09 65 6c 73 65 20 69 | 66 20 28 20 44 65 6c 61 |..else i|f ( Dela|
|000026c0| 79 65 64 44 61 6d 61 67 | 65 49 6e 73 74 69 67 61 |yedDamag|eInstiga|
|000026d0| 74 6f 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 21 3d |torContr|oller !=|
|000026e0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 41 64 64 53 63 | None ).|...AddSc|
|000026f0| 6f 72 65 72 28 20 44 65 | 6c 61 79 65 64 44 61 6d |orer( De|layedDam|
|00002700| 61 67 65 49 6e 73 74 69 | 67 61 74 6f 72 43 6f 6e |ageInsti|gatorCon|
|00002710| 74 72 6f 6c 6c 65 72 2c | 20 44 61 6d 61 67 65 50 |troller,| DamageP|
|00002720| 63 74 20 29 3b 0d 0a 0d | 0a 09 69 66 20 28 20 48 |ct );...|..if ( H|
|00002730| 65 61 6c 74 68 20 3c 20 | 31 20 29 0d 0a 09 09 44 |ealth < |1 )....D|
|00002740| 69 73 61 62 6c 65 4f 62 | 6a 65 63 74 69 76 65 28 |isableOb|jective(|
|00002750| 20 69 6e 73 74 69 67 61 | 74 65 64 42 79 20 29 3b | instiga|tedBy );|
|00002760| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 62 4d 6f |...else |if ( bMo|
|00002770| 6e 69 74 6f 72 55 6e 64 | 65 72 41 74 74 61 63 6b |nitorUnd|erAttack|
|00002780| 20 29 0d 0a 09 7b 0d 0a | 09 09 62 49 73 55 6e 64 | )...{..|..bIsUnd|
|00002790| 65 72 41 74 74 61 63 6b | 09 20 3d 20 74 72 75 65 |erAttack|. = true|
|000027a0| 3b 0d 0a 09 09 4c 61 73 | 74 44 61 6d 61 67 65 54 |;....Las|tDamageT|
|000027b0| 69 6d 65 09 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |ime. = L|evel.Tim|
|000027c0| 65 53 65 63 6f 6e 64 73 | 3b 0d 0a 09 09 43 68 65 |eSeconds|;....Che|
|000027d0| 63 6b 50 6c 61 79 43 72 | 69 74 69 63 61 6c 41 6c |ckPlayCr|iticalAl|
|000027e0| 61 72 6d 28 29 3b 0d 0a | 0d 0a 09 09 69 66 20 28 |arm();..|....if (|
|000027f0| 20 55 6e 64 65 72 41 74 | 74 61 63 6b 54 69 6d 65 | UnderAt|tackTime|
|00002800| 72 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |r == Non|e ).....|
|00002810| 55 6e 64 65 72 41 74 74 | 61 63 6b 54 69 6d 65 72 |UnderAtt|ackTimer|
|00002820| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 56 | = Spawn|(class'V|
|00002830| 6f 6c 75 6d 65 54 69 6d | 65 72 27 2c 20 53 65 6c |olumeTim|er', Sel|
|00002840| 66 29 3b 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 2f 2a |f);...}.|.}..../*|
|00002850| 20 41 77 61 72 64 20 41 | 73 73 61 75 6c 74 20 73 | Award A|ssault s|
|00002860| 63 6f 72 65 20 74 6f 20 | 70 6c 61 79 65 72 28 73 |core to |player(s|
|00002870| 29 20 77 68 6f 20 63 6f | 6d 70 6c 65 74 65 64 20 |) who co|mpleted |
|00002880| 74 68 65 20 6f 62 6a 65 | 63 74 69 76 65 20 2a 2f |the obje|ctive */|
|00002890| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 41 77 61 72 64 |..functi|on Award|
|000028a0| 41 73 73 61 75 6c 74 53 | 63 6f 72 65 28 20 69 6e |AssaultS|core( in|
|000028b0| 74 20 53 63 6f 72 65 20 | 29 0d 0a 7b 0d 0a 09 53 |t Score |)..{...S|
|000028c0| 68 61 72 65 53 63 6f 72 | 65 28 20 53 63 6f 72 65 |hareScor|e( Score|
|000028d0| 2c 20 22 4f 62 6a 65 63 | 74 69 76 65 5f 43 6f 6d |, "Objec|tive_Com|
|000028e0| 70 6c 65 74 65 64 22 20 | 29 3b 0d 0a 7d 0d 0a 0d |pleted" |);..}...|
|000028f0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 48 |.functio|n bool H|
|00002900| 65 61 6c 44 61 6d 61 67 | 65 28 69 6e 74 20 41 6d |ealDamag|e(int Am|
|00002910| 6f 75 6e 74 2c 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |ount, Co|ntroller|
|00002920| 20 48 65 61 6c 65 72 2c | 20 63 6c 61 73 73 3c 44 | Healer,| class<D|
|00002930| 61 6d 61 67 65 54 79 70 | 65 3e 20 44 61 6d 61 67 |amageTyp|e> Damag|
|00002940| 65 54 79 70 65 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |eType)..|{...if (|
|00002950| 20 21 62 41 63 74 69 76 | 65 20 7c 7c 20 62 44 69 | !bActiv|e || bDi|
|00002960| 73 61 62 6c 65 64 20 7c | 7c 20 48 65 61 6c 74 68 |sabled ||| Health|
|00002970| 20 3c 3d 20 30 20 7c 7c | 20 48 65 61 6c 74 68 20 | <= 0 ||| Health |
|00002980| 3e 3d 20 44 61 6d 61 67 | 65 43 61 70 61 63 69 74 |>= Damag|eCapacit|
|00002990| 79 20 7c 7c 20 41 6d 6f | 75 6e 74 20 3c 3d 20 30 |y || Amo|unt <= 0|
|000029a0| 0d 0a 09 20 20 20 20 20 | 7c 7c 20 48 65 61 6c 65 |... ||| Heale|
|000029b0| 72 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 21 54 65 |r == Non|e || !Te|
|000029c0| 61 6d 4c 69 6e 6b 28 48 | 65 61 6c 65 72 2e 47 65 |amLink(H|ealer.Ge|
|000029d0| 74 54 65 61 6d 4e 75 6d | 28 29 29 20 29 0d 0a 09 |tTeamNum|()) )...|
|000029e0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|000029f0| 0d 0a 09 48 65 61 6c 74 | 68 20 3d 20 4d 69 6e 28 |...Healt|h = Min(|
|00002a00| 48 65 61 6c 74 68 20 2b | 20 28 41 6d 6f 75 6e 74 |Health +| (Amount|
|00002a10| 20 2a 20 4c 69 6e 6b 48 | 65 61 6c 4d 75 6c 74 29 | * LinkH|ealMult)|
|00002a20| 2c 20 44 61 6d 61 67 65 | 43 61 70 61 63 69 74 79 |, Damage|Capacity|
|00002a30| 29 3b 0d 0a 09 4e 65 74 | 55 70 64 61 74 65 54 69 |);...Net|UpdateTi|
|00002a40| 6d 65 20 3d 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |me = Lev|el.TimeS|
|00002a50| 65 63 6f 6e 64 73 20 2d | 20 31 3b 0d 0a 09 72 65 |econds -| 1;...re|
|00002a60| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |turn tru|e;..}...|
|00002a70| 0a 66 75 6e 63 74 69 6f | 6e 20 44 69 73 61 62 6c |.functio|n Disabl|
|00002a80| 65 4f 62 6a 65 63 74 69 | 76 65 28 50 61 77 6e 20 |eObjecti|ve(Pawn |
|00002a90| 49 6e 73 74 69 67 61 74 | 6f 72 29 0d 0a 7b 0d 0a |Instigat|or)..{..|
|00002aa0| 09 69 66 20 28 20 21 62 | 41 63 74 69 76 65 20 7c |.if ( !b|Active ||
|00002ab0| 7c 20 62 44 69 73 61 62 | 6c 65 64 20 7c 7c 20 21 || bDisab|led || !|
|00002ac0| 55 6e 72 65 61 6c 4d 50 | 47 61 6d 65 49 6e 66 6f |UnrealMP|GameInfo|
|00002ad0| 28 4c 65 76 65 6c 2e 47 | 61 6d 65 29 2e 43 61 6e |(Level.G|ame).Can|
|00002ae0| 44 69 73 61 62 6c 65 4f | 62 6a 65 63 74 69 76 65 |DisableO|bjective|
|00002af0| 28 20 53 65 6c 66 20 29 | 20 29 0d 0a 09 09 72 65 |( Self )| )....re|
|00002b00| 74 75 72 6e 3b 0d 0a 0d | 0a 09 53 65 74 43 6f 6c |turn;...|..SetCol|
|00002b10| 6c 69 73 69 6f 6e 28 66 | 61 6c 73 65 2c 20 62 42 |lision(f|alse, bB|
|00002b20| 6c 6f 63 6b 41 63 74 6f | 72 73 29 3b 0d 0a 09 62 |lockActo|rs);...b|
|00002b30| 50 72 6f 6a 54 61 72 67 | 65 74 09 09 3d 20 66 61 |ProjTarg|et..= fa|
|00002b40| 6c 73 65 3b 0d 0a 09 62 | 49 73 55 6e 64 65 72 41 |lse;...b|IsUnderA|
|00002b50| 74 74 61 63 6b 09 3d 20 | 66 61 6c 73 65 3b 0d 0a |ttack.= |false;..|
|00002b60| 0d 0a 09 69 66 20 28 20 | 55 6e 64 65 72 41 74 74 |...if ( |UnderAtt|
|00002b70| 61 63 6b 54 69 6d 65 72 | 20 21 3d 20 4e 6f 6e 65 |ackTimer| != None|
|00002b80| 20 29 0d 0a 09 7b 0d 0a | 09 09 55 6e 64 65 72 41 | )...{..|..UnderA|
|00002b90| 74 74 61 63 6b 54 69 6d | 65 72 2e 44 65 73 74 72 |ttackTim|er.Destr|
|00002ba0| 6f 79 28 29 3b 0d 0a 09 | 09 55 6e 64 65 72 41 74 |oy();...|.UnderAt|
|00002bb0| 74 61 63 6b 54 69 6d 65 | 72 20 3d 20 4e 6f 6e 65 |tackTime|r = None|
|00002bc0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 73 75 70 65 72 2e |;...}...|..super.|
|00002bd0| 44 69 73 61 62 6c 65 4f | 62 6a 65 63 74 69 76 65 |DisableO|bjective|
|00002be0| 28 49 6e 73 74 69 67 61 | 74 6f 72 29 3b 0d 0a 7d |(Instiga|tor);..}|
|00002bf0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 54 69 6d |....func|tion Tim|
|00002c00| 65 72 50 6f 70 28 56 6f | 6c 75 6d 65 54 69 6d 65 |erPop(Vo|lumeTime|
|00002c10| 72 20 54 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 62 |r T)..{.|..if ( b|
|00002c20| 49 73 55 6e 64 65 72 41 | 74 74 61 63 6b 20 26 26 |IsUnderA|ttack &&|
|00002c30| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00002c40| 64 73 20 3e 20 4c 61 73 | 74 44 61 6d 61 67 65 54 |ds > Las|tDamageT|
|00002c50| 69 6d 65 20 2b 20 34 20 | 29 0d 0a 09 7b 0d 0a 09 |ime + 4 |)...{...|
|00002c60| 09 62 49 73 55 6e 64 65 | 72 41 74 74 61 63 6b 09 |.bIsUnde|rAttack.|
|00002c70| 3d 20 66 61 6c 73 65 3b | 0d 0a 09 09 43 68 65 63 |= false;|....Chec|
|00002c80| 6b 50 6c 61 79 43 72 69 | 74 69 63 61 6c 41 6c 61 |kPlayCri|ticalAla|
|00002c90| 72 6d 28 29 3b 0d 0a 0d | 0a 09 09 69 66 20 28 20 |rm();...|...if ( |
|00002ca0| 55 6e 64 65 72 41 74 74 | 61 63 6b 54 69 6d 65 72 |UnderAtt|ackTimer|
|00002cb0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 7b 0d | != None| )....{.|
|00002cc0| 0a 09 09 09 55 6e 64 65 | 72 41 74 74 61 63 6b 54 |....Unde|rAttackT|
|00002cd0| 69 6d 65 72 2e 44 65 73 | 74 72 6f 79 28 29 3b 0d |imer.Des|troy();.|
|00002ce0| 0a 09 09 09 55 6e 64 65 | 72 41 74 74 61 63 6b 54 |....Unde|rAttackT|
|00002cf0| 69 6d 65 72 20 3d 20 4e | 6f 6e 65 3b 0d 0a 09 09 |imer = N|one;....|
|00002d00| 7d 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 2f 2a 20 44 |}...}..}|..../* D|
|00002d10| 65 73 74 72 6f 79 61 62 | 6c 65 4f 62 6a 65 63 74 |estroyab|leObject|
|00002d20| 69 76 65 73 20 61 72 65 | 20 69 6e 20 64 61 6e 67 |ives are| in dang|
|00002d30| 65 72 20 77 68 65 6e 20 | 43 72 69 74 69 63 61 6c |er when |Critical|
|00002d40| 56 6f 6c 75 6d 65 20 69 | 73 20 62 72 65 61 63 68 |Volume i|s breach|
|00002d50| 65 64 20 6f 72 20 4f 62 | 6a 65 63 74 69 76 65 20 |ed or Ob|jective |
|00002d60| 69 73 20 64 61 6d 61 67 | 65 64 0d 0a 09 28 49 6e |is damag|ed...(In|
|00002d70| 20 63 61 73 65 20 4f 62 | 6a 65 63 74 69 76 65 20 | case Ob|jective |
|00002d80| 63 61 6e 20 62 65 20 64 | 61 6d 61 67 65 64 20 66 |can be d|amaged f|
|00002d90| 72 6f 6d 20 61 20 67 72 | 65 61 74 20 64 69 73 74 |rom a gr|eat dist|
|00002da0| 61 6e 63 65 20 2a 2f 0d | 0a 73 69 6d 75 6c 61 74 |ance */.|.simulat|
|00002db0| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |ed funct|ion bool|
|00002dc0| 20 49 73 43 72 69 74 69 | 63 61 6c 28 29 0d 0a 7b | IsCriti|cal()..{|
|00002dd0| 0d 0a 09 72 65 74 75 72 | 6e 20 28 49 73 41 63 74 |...retur|n (IsAct|
|00002de0| 69 76 65 28 29 20 26 26 | 20 28 62 49 73 43 72 69 |ive() &&| (bIsCri|
|00002df0| 74 69 63 61 6c 20 7c 7c | 20 62 49 73 55 6e 64 65 |tical ||| bIsUnde|
|00002e00| 72 41 74 74 61 63 6b 29 | 29 3b 0d 0a 7d 0d 0a 0d |rAttack)|);..}...|
|00002e10| 0a 2f 2a 20 72 65 74 75 | 72 6e 73 20 6f 62 6a 65 |./* retu|rns obje|
|00002e20| 63 74 69 76 65 27 73 20 | 70 72 6f 67 72 65 73 73 |ctive's |progress|
|00002e30| 20 73 74 61 74 75 73 20 | 31 2d 3e 30 20 28 3d 64 | status |1->0 (=d|
|00002e40| 69 73 61 62 6c 65 64 29 | 20 2a 2f 0d 0a 73 69 6d |isabled)| */..sim|
|00002e50| 75 6c 61 74 65 64 20 66 | 75 6e 63 74 69 6f 6e 20 |ulated f|unction |
|00002e60| 66 6c 6f 61 74 20 47 65 | 74 4f 62 6a 65 63 74 69 |float Ge|tObjecti|
|00002e70| 76 65 50 72 6f 67 72 65 | 73 73 28 29 0d 0a 7b 0d |veProgre|ss()..{.|
|00002e80| 0a 09 69 66 20 28 20 62 | 44 69 73 61 62 6c 65 64 |..if ( b|Disabled|
|00002e90| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 30 3b 0d | )....re|turn 0;.|
|00002ea0| 0a 09 72 65 74 75 72 6e | 20 28 66 6c 6f 61 74 28 |..return| (float(|
|00002eb0| 48 65 61 6c 74 68 29 20 | 2f 20 66 6c 6f 61 74 28 |Health) |/ float(|
|00002ec0| 44 61 6d 61 67 65 43 61 | 70 61 63 69 74 79 29 29 |DamageCa|pacity))|
|00002ed0| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+