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 / UT2K4Assault.u / ASGameReplicationInfo_AssaultSquadAI_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-05-10  |  11.0 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 | 51 af 01 63 6c 61 73 73 |........|Q..class|
|00000010| 20 41 73 73 61 75 6c 74 | 53 71 75 61 64 41 49 20 | Assault|SquadAI |
|00000020| 65 78 74 65 6e 64 73 20 | 53 71 75 61 64 41 49 3b |extends |SquadAI;|
|00000030| 0d 0a 0d 0a 76 61 72 20 | 50 61 77 6e 20 46 6f 63 |....var |Pawn Foc|
|00000040| 75 73 50 61 77 6e 3b 0d | 0a 76 61 72 20 62 6f 6f |usPawn;.|.var boo|
|00000050| 6c 20 62 56 65 68 69 63 | 6c 65 45 6e 74 72 69 65 |l bVehic|leEntrie|
|00000060| 73 49 6e 69 74 69 61 6c | 69 7a 65 64 3b 0d 0a 76 |sInitial|ized;..v|
|00000070| 61 72 20 61 72 72 61 79 | 3c 54 72 69 67 67 65 72 |ar array|<Trigger|
|00000080| 5f 41 53 55 73 65 41 6e | 64 52 65 73 70 61 77 6e |_ASUseAn|dRespawn|
|00000090| 3e 20 45 6e 74 72 79 54 | 72 69 67 67 65 72 73 3b |> EntryT|riggers;|
|000000a0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 52 65 73 |....func|tion Res|
|000000b0| 65 74 28 29 0d 0a 7b 0d | 0a 09 53 75 70 65 72 2e |et()..{.|..Super.|
|000000c0| 52 65 73 65 74 28 29 3b | 0d 0a 0d 0a 09 46 6f 63 |Reset();|.....Foc|
|000000d0| 75 73 50 61 77 6e 20 3d | 20 4e 6f 6e 65 3b 0d 0a |usPawn =| None;..|
|000000e0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|000000f0| 6f 6c 20 53 68 6f 75 6c | 64 53 75 70 70 72 65 73 |ol Shoul|dSuppres|
|00000100| 73 45 6e 65 6d 79 28 42 | 6f 74 20 42 29 0d 0a 7b |sEnemy(B|ot B)..{|
|00000110| 0d 0a 09 72 65 74 75 72 | 6e 20 28 20 28 56 53 69 |...retur|n ( (VSi|
|00000120| 7a 65 28 42 2e 50 61 77 | 6e 2e 4c 6f 63 61 74 69 |ze(B.Paw|n.Locati|
|00000130| 6f 6e 20 2d 20 42 2e 46 | 6f 63 61 6c 50 6f 69 6e |on - B.F|ocalPoin|
|00000140| 74 29 20 3e 20 33 30 30 | 29 0d 0a 09 09 09 26 26 |t) > 300|).....&&|
|00000150| 20 28 4c 65 76 65 6c 2e | 54 69 6d 65 53 65 63 6f | (Level.|TimeSeco|
|00000160| 6e 64 73 20 2d 20 42 2e | 4c 61 73 74 53 65 65 6e |nds - B.|LastSeen|
|00000170| 54 69 6d 65 20 3c 20 38 | 29 20 29 3b 0d 0a 7d 0d |Time < 8|) );..}.|
|00000180| 0a 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|00000190| 63 74 69 6f 6e 20 53 74 | 72 69 6e 67 20 47 65 74 |ction St|ring Get|
|000001a0| 4f 72 64 65 72 53 74 72 | 69 6e 67 46 6f 72 28 54 |OrderStr|ingFor(T|
|000001b0| 65 61 6d 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |eamPlaye|rReplica|
|000001c0| 74 69 6f 6e 49 6e 66 6f | 20 50 52 49 29 0d 0a 7b |tionInfo| PRI)..{|
|000001d0| 0d 0a 09 69 66 20 28 20 | 28 4c 65 61 64 65 72 50 |...if ( |(LeaderP|
|000001e0| 52 49 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 21 |RI != No|ne) && !|
|000001f0| 4c 65 61 64 65 72 50 52 | 49 2e 62 42 6f 74 20 29 |LeaderPR|I.bBot )|
|00000200| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 20 46 49 58 4d 45 |...{....|// FIXME|
|00000210| 20 2d 20 68 6f 6c 64 69 | 6e 67 20 72 65 70 6c 69 | - holdi|ng repli|
|00000220| 63 61 74 69 6f 6e 0d 0a | 09 09 69 66 20 28 20 50 |cation..|..if ( P|
|00000230| 52 49 2e 62 48 6f 6c 64 | 69 6e 67 20 29 0d 0a 09 |RI.bHold|ing )...|
|00000240| 09 09 72 65 74 75 72 6e | 20 48 6f 6c 64 53 74 72 |..return| HoldStr|
|00000250| 69 6e 67 3b 0d 0a 0d 0a | 09 09 72 65 74 75 72 6e |ing;....|..return|
|00000260| 20 53 75 70 70 6f 72 74 | 53 74 72 69 6e 67 40 4c | Support|String@L|
|00000270| 65 61 64 65 72 50 52 49 | 2e 50 6c 61 79 65 72 4e |eaderPRI|.PlayerN|
|00000280| 61 6d 65 40 53 75 70 70 | 6f 72 74 53 74 72 69 6e |ame@Supp|ortStrin|
|00000290| 67 54 72 61 69 6c 65 72 | 3b 0d 0a 09 7d 0d 0a 09 |gTrailer|;...}...|
|000002a0| 69 66 20 28 20 62 46 72 | 65 65 6c 61 6e 63 65 20 |if ( bFr|eelance |
|000002b0| 7c 7c 20 28 53 71 75 61 | 64 4f 62 6a 65 63 74 69 ||| (Squa|dObjecti|
|000002c0| 76 65 20 3d 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |ve == No|ne) )...|
|000002d0| 09 72 65 74 75 72 6e 20 | 46 72 65 65 6c 61 6e 63 |.return |Freelanc|
|000002e0| 65 53 74 72 69 6e 67 3b | 0d 0a 09 65 6c 73 65 0d |eString;|...else.|
|000002f0| 0a 09 7b 0d 0a 09 09 47 | 65 74 4f 72 64 65 72 73 |..{....G|etOrders|
|00000300| 28 29 3b 0d 0a 09 09 69 | 66 20 28 20 43 75 72 72 |();....i|f ( Curr|
|00000310| 65 6e 74 4f 72 64 65 72 | 73 20 3d 3d 20 27 64 65 |entOrder|s == 'de|
|00000320| 66 65 6e 64 27 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |fend' ).|...{....|
|00000330| 09 69 66 20 28 20 53 71 | 75 61 64 4f 62 6a 65 63 |.if ( Sq|uadObjec|
|00000340| 74 69 76 65 2e 4f 62 6a | 65 63 74 69 76 65 5f 49 |tive.Obj|ective_I|
|00000350| 6e 66 6f 5f 44 65 66 65 | 6e 64 65 72 20 21 3d 20 |nfo_Defe|nder != |
|00000360| 53 71 75 61 64 4f 62 6a | 65 63 74 69 76 65 2e 44 |SquadObj|ective.D|
|00000370| 65 66 61 75 6c 74 2e 4f | 62 6a 65 63 74 69 76 65 |efault.O|bjective|
|00000380| 5f 49 6e 66 6f 5f 44 65 | 66 65 6e 64 65 72 20 29 |_Info_De|fender )|
|00000390| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 53 71 75 |......re|turn Squ|
|000003a0| 61 64 4f 62 6a 65 63 74 | 69 76 65 2e 4f 62 6a 65 |adObject|ive.Obje|
|000003b0| 63 74 69 76 65 5f 49 6e | 66 6f 5f 44 65 66 65 6e |ctive_In|fo_Defen|
|000003c0| 64 65 72 3b 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |der;....|.return |
|000003d0| 44 65 66 65 6e 64 53 74 | 72 69 6e 67 40 53 71 75 |DefendSt|ring@Squ|
|000003e0| 61 64 4f 62 6a 65 63 74 | 69 76 65 2e 47 65 74 48 |adObject|ive.GetH|
|000003f0| 75 6d 61 6e 52 65 61 64 | 61 62 6c 65 4e 61 6d 65 |umanRead|ableName|
|00000400| 28 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 69 66 20 28 |();....}|....if (|
|00000410| 20 43 75 72 72 65 6e 74 | 4f 72 64 65 72 73 20 3d | Current|Orders =|
|00000420| 3d 20 27 61 74 74 61 63 | 6b 27 20 29 0d 0a 09 09 |= 'attac|k' )....|
|00000430| 7b 0d 0a 09 09 09 69 66 | 20 28 20 53 71 75 61 64 |{.....if| ( Squad|
|00000440| 4f 62 6a 65 63 74 69 76 | 65 2e 4f 62 6a 65 63 74 |Objectiv|e.Object|
|00000450| 69 76 65 5f 49 6e 66 6f | 5f 41 74 74 61 63 6b 65 |ive_Info|_Attacke|
|00000460| 72 20 21 3d 20 53 71 75 | 61 64 4f 62 6a 65 63 74 |r != Squ|adObject|
|00000470| 69 76 65 2e 44 65 66 61 | 75 6c 74 2e 4f 62 6a 65 |ive.Defa|ult.Obje|
|00000480| 63 74 69 76 65 5f 49 6e | 66 6f 5f 41 74 74 61 63 |ctive_In|fo_Attac|
|00000490| 6b 65 72 20 29 0d 0a 09 | 09 09 09 72 65 74 75 72 |ker )...|...retur|
|000004a0| 6e 20 53 71 75 61 64 4f | 62 6a 65 63 74 69 76 65 |n SquadO|bjective|
|000004b0| 2e 4f 62 6a 65 63 74 69 | 76 65 5f 49 6e 66 6f 5f |.Objecti|ve_Info_|
|000004c0| 41 74 74 61 63 6b 65 72 | 3b 0d 0a 09 09 09 72 65 |Attacker|;.....re|
|000004d0| 74 75 72 6e 20 41 74 74 | 61 63 6b 53 74 72 69 6e |turn Att|ackStrin|
|000004e0| 67 40 53 71 75 61 64 4f | 62 6a 65 63 74 69 76 65 |g@SquadO|bjective|
|000004f0| 2e 47 65 74 48 75 6d 61 | 6e 52 65 61 64 61 62 6c |.GetHuma|nReadabl|
|00000500| 65 4e 61 6d 65 28 29 3b | 0d 0a 09 09 7d 0d 0a 09 |eName();|....}...|
|00000510| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 73 74 72 69 6e |}...retu|rn strin|
|00000520| 67 28 43 75 72 72 65 6e | 74 4f 72 64 65 72 73 29 |g(Curren|tOrders)|
|00000530| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000540| 20 62 6f 6f 6c 20 4e 65 | 76 65 72 42 61 69 6c 28 | bool Ne|verBail(|
|00000550| 50 61 77 6e 20 50 29 0d | 0a 7b 0d 0a 09 69 66 20 |Pawn P).|.{...if |
|00000560| 28 20 54 65 61 6d 2e 53 | 69 7a 65 20 3d 3d 20 31 |( Team.S|ize == 1|
|00000570| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c | )....re|turn fal|
|00000580| 73 65 3b 0d 0a 09 69 66 | 20 28 20 28 54 65 61 6d |se;...if| ( (Team|
|00000590| 2e 53 69 7a 65 20 3d 3d | 20 32 29 20 26 26 20 50 |.Size ==| 2) && P|
|000005a0| 2e 62 53 74 61 74 69 6f | 6e 61 72 79 20 29 0d 0a |.bStatio|nary )..|
|000005b0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000005c0| 0a 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|000005d0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 66 6c |}....fun|ction fl|
|000005e0| 6f 61 74 20 4d 61 78 56 | 65 68 69 63 6c 65 44 69 |oat MaxV|ehicleDi|
|000005f0| 73 74 28 50 61 77 6e 20 | 50 29 0d 0a 7b 0d 0a 09 |st(Pawn |P)..{...|
|00000600| 69 66 20 28 20 47 65 74 | 4f 72 64 65 72 73 28 29 |if ( Get|Orders()|
|00000610| 20 21 3d 20 27 41 74 74 | 61 63 6b 27 20 29 0d 0a | != 'Att|ack' )..|
|00000620| 09 09 72 65 74 75 72 6e | 20 33 30 30 30 3b 0d 0a |..return| 3000;..|
|00000630| 09 69 66 20 28 20 53 71 | 75 61 64 4f 62 6a 65 63 |.if ( Sq|uadObjec|
|00000640| 74 69 76 65 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |tive == |None )..|
|00000650| 09 09 72 65 74 75 72 6e | 20 38 30 30 30 3b 0d 0a |..return| 8000;..|
|00000660| 09 72 65 74 75 72 6e 20 | 46 4d 69 6e 28 38 30 30 |.return |FMin(800|
|00000670| 30 2c 20 56 53 69 7a 65 | 28 50 2e 4c 6f 63 61 74 |0, VSize|(P.Locat|
|00000680| 69 6f 6e 20 2d 20 53 71 | 75 61 64 4f 62 6a 65 63 |ion - Sq|uadObjec|
|00000690| 74 69 76 65 2e 4c 6f 63 | 61 74 69 6f 6e 29 29 3b |tive.Loc|ation));|
|000006a0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000006b0| 56 65 68 69 63 6c 65 20 | 47 65 74 4b 65 79 56 65 |Vehicle |GetKeyVe|
|000006c0| 68 69 63 6c 65 28 42 6f | 74 20 42 29 0d 0a 7b 0d |hicle(Bo|t B)..{.|
|000006d0| 0a 09 6c 6f 63 61 6c 20 | 56 65 68 69 63 6c 65 20 |..local |Vehicle |
|000006e0| 56 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 41 53 47 61 |V;.....i|f ( ASGa|
|000006f0| 6d 65 49 6e 66 6f 28 4c | 65 76 65 6c 2e 47 61 6d |meInfo(L|evel.Gam|
|00000700| 65 29 2e 4b 65 79 56 65 | 68 69 63 6c 65 20 21 3d |e).KeyVe|hicle !=|
|00000710| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 72 65 74 75 72 | None ).|...retur|
|00000720| 6e 20 41 53 47 61 6d 65 | 49 6e 66 6f 28 4c 65 76 |n ASGame|Info(Lev|
|00000730| 65 6c 2e 47 61 6d 65 29 | 2e 4b 65 79 56 65 68 69 |el.Game)|.KeyVehi|
|00000740| 63 6c 65 3b 0d 0a 0d 0a | 09 56 20 3d 20 56 65 68 |cle;....|.V = Veh|
|00000750| 69 63 6c 65 28 53 71 75 | 61 64 4c 65 61 64 65 72 |icle(Squ|adLeader|
|00000760| 2e 50 61 77 6e 29 3b 0d | 0a 09 69 66 20 28 20 28 |.Pawn);.|..if ( (|
|00000770| 56 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 56 2e |V != Non|e) && V.|
|00000780| 62 4b 65 79 56 65 68 69 | 63 6c 65 20 29 0d 0a 09 |bKeyVehi|cle )...|
|00000790| 09 41 53 47 61 6d 65 49 | 6e 66 6f 28 4c 65 76 65 |.ASGameI|nfo(Leve|
|000007a0| 6c 2e 47 61 6d 65 29 2e | 4b 65 79 56 65 68 69 63 |l.Game).|KeyVehic|
|000007b0| 6c 65 20 3d 20 56 3b 0d | 0a 0d 0a 09 69 66 20 28 |le = V;.|....if (|
|000007c0| 20 28 56 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 | (V == N|one) || |
|000007d0| 28 42 2e 45 6e 65 6d 79 | 20 3d 3d 20 4e 6f 6e 65 |(B.Enemy| == None|
|000007e0| 29 20 7c 7c 20 56 2e 62 | 4b 65 79 56 65 68 69 63 |) || V.b|KeyVehic|
|000007f0| 6c 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 56 |le )....|return V|
|00000800| 3b 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 4e 6f 6e |;.....re|turn Non|
|00000810| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00000820| 6e 20 56 65 68 69 63 6c | 65 20 47 65 74 4c 69 6e |n Vehicl|e GetLin|
|00000830| 6b 56 65 68 69 63 6c 65 | 28 42 6f 74 20 42 29 0d |kVehicle|(Bot B).|
|00000840| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 56 65 68 69 63 |.{...loc|al Vehic|
|00000850| 6c 65 20 56 3b 0d 0a 0d | 0a 09 69 66 20 28 20 28 |le V;...|..if ( (|
|00000860| 41 53 47 61 6d 65 49 6e | 66 6f 28 4c 65 76 65 6c |ASGameIn|fo(Level|
|00000870| 2e 47 61 6d 65 29 2e 4b | 65 79 56 65 68 69 63 6c |.Game).K|eyVehicl|
|00000880| 65 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 42 2e |e != Non|e) && B.|
|00000890| 53 61 6d 65 54 65 61 6d | 41 73 28 41 53 47 61 6d |SameTeam|As(ASGam|
|000008a0| 65 49 6e 66 6f 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |eInfo(Le|vel.Game|
|000008b0| 29 2e 4b 65 79 56 65 68 | 69 63 6c 65 2e 43 6f 6e |).KeyVeh|icle.Con|
|000008c0| 74 72 6f 6c 6c 65 72 29 | 20 29 0d 0a 09 09 72 65 |troller)| )....re|
|000008d0| 74 75 72 6e 20 41 53 47 | 61 6d 65 49 6e 66 6f 28 |turn ASG|ameInfo(|
|000008e0| 4c 65 76 65 6c 2e 47 61 | 6d 65 29 2e 4b 65 79 56 |Level.Ga|me).KeyV|
|000008f0| 65 68 69 63 6c 65 3b 0d | 0a 0d 0a 09 69 66 20 28 |ehicle;.|....if (|
|00000900| 20 28 53 71 75 61 64 4f | 62 6a 65 63 74 69 76 65 | (SquadO|bjective|
|00000910| 20 21 3d 20 4e 6f 6e 65 | 29 20 26 26 20 28 53 71 | != None|) && (Sq|
|00000920| 75 61 64 4f 62 6a 65 63 | 74 69 76 65 2e 44 65 66 |uadObjec|tive.Def|
|00000930| 65 6e 64 65 72 54 65 61 | 6d 49 6e 64 65 78 20 3d |enderTea|mIndex =|
|00000940| 3d 20 54 65 61 6d 2e 54 | 65 61 6d 49 6e 64 65 78 |= Team.T|eamIndex|
|00000950| 29 20 26 26 20 28 44 65 | 73 74 72 6f 79 56 65 68 |) && (De|stroyVeh|
|00000960| 69 63 6c 65 4f 62 6a 65 | 63 74 69 76 65 28 53 71 |icleObje|ctive(Sq|
|00000970| 75 61 64 4f 62 6a 65 63 | 74 69 76 65 29 20 21 3d |uadObjec|tive) !=|
|00000980| 20 4e 6f 6e 65 29 0d 0a | 09 20 20 20 20 20 26 26 | None)..|. &&|
|00000990| 20 28 44 65 73 74 72 6f | 79 56 65 68 69 63 6c 65 | (Destro|yVehicle|
|000009a0| 4f 62 6a 65 63 74 69 76 | 65 28 53 71 75 61 64 4f |Objectiv|e(SquadO|
|000009b0| 62 6a 65 63 74 69 76 65 | 29 2e 54 61 72 67 65 74 |bjective|).Target|
|000009c0| 56 65 68 69 63 6c 65 20 | 21 3d 20 4e 6f 6e 65 29 |Vehicle |!= None)|
|000009d0| 20 29 0d 0a 09 20 20 20 | 20 20 09 72 65 74 75 72 | )... | .retur|
|000009e0| 6e 20 44 65 73 74 72 6f | 79 56 65 68 69 63 6c 65 |n Destro|yVehicle|
|000009f0| 4f 62 6a 65 63 74 69 76 | 65 28 53 71 75 61 64 4f |Objectiv|e(SquadO|
|00000a00| 62 6a 65 63 74 69 76 65 | 29 2e 54 61 72 67 65 74 |bjective|).Target|
|00000a10| 56 65 68 69 63 6c 65 3b | 0d 0a 0d 0a 09 56 20 3d |Vehicle;|.....V =|
|00000a20| 20 56 65 68 69 63 6c 65 | 28 53 71 75 61 64 4c 65 | Vehicle|(SquadLe|
|00000a30| 61 64 65 72 2e 50 61 77 | 6e 29 3b 0d 0a 09 69 66 |ader.Paw|n);...if|
|00000a40| 20 28 20 56 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a | ( V == |None )..|
|00000a50| 09 09 72 65 74 75 72 6e | 20 4e 6f 6e 65 3b 0d 0a |..return| None;..|
|00000a60| 09 69 66 20 28 20 56 2e | 62 4b 65 79 56 65 68 69 |.if ( V.|bKeyVehi|
|00000a70| 63 6c 65 20 29 0d 0a 09 | 09 41 53 47 61 6d 65 49 |cle )...|.ASGameI|
|00000a80| 6e 66 6f 28 4c 65 76 65 | 6c 2e 47 61 6d 65 29 2e |nfo(Leve|l.Game).|
|00000a90| 4b 65 79 56 65 68 69 63 | 6c 65 20 3d 20 56 3b 0d |KeyVehic|le = V;.|
|00000aa0| 0a 0d 0a 09 69 66 20 28 | 20 28 42 2e 45 6e 65 6d |....if (| (B.Enem|
|00000ab0| 79 20 3d 3d 20 4e 6f 6e | 65 29 20 7c 7c 20 56 65 |y == Non|e) || Ve|
|00000ac0| 68 69 63 6c 65 28 53 71 | 75 61 64 4c 65 61 64 65 |hicle(Sq|uadLeade|
|00000ad0| 72 2e 50 61 77 6e 29 2e | 62 4b 65 79 56 65 68 69 |r.Pawn).|bKeyVehi|
|00000ae0| 63 6c 65 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |cle )...|.return |
|00000af0| 56 65 68 69 63 6c 65 28 | 53 71 75 61 64 4c 65 61 |Vehicle(|SquadLea|
|00000b00| 64 65 72 2e 50 61 77 6e | 29 3b 0d 0a 09 72 65 74 |der.Pawn|);...ret|
|00000b10| 75 72 6e 20 4e 6f 6e 65 | 3b 0d 0a 7d 0d 0a 0d 0a |urn None|;..}....|
|00000b20| 66 75 6e 63 74 69 6f 6e | 20 42 6f 74 45 6e 74 65 |function| BotEnte|
|00000b30| 72 65 64 56 65 68 69 63 | 6c 65 28 42 6f 74 20 42 |redVehic|le(Bot B|
|00000b40| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 50 6c 61 79 |)..{...i|f ( Play|
|00000b50| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 53 71 75 |erContro|ller(Squ|
|00000b60| 61 64 4c 65 61 64 65 72 | 29 20 3d 3d 20 4e 6f 6e |adLeader|) == Non|
|00000b70| 65 20 29 0d 0a 09 09 50 | 69 63 6b 4e 65 77 4c 65 |e )....P|ickNewLe|
|00000b80| 61 64 65 72 28 29 3b 0d | 0a 09 53 75 70 65 72 2e |ader();.|..Super.|
|00000b90| 42 6f 74 45 6e 74 65 72 | 65 64 56 65 68 69 63 6c |BotEnter|edVehicl|
|00000ba0| 65 28 42 29 3b 0d 0a 7d | 0d 0a 0d 0a 2f 2f 20 64 |e(B);..}|....// d|
|00000bb0| 6f 6e 27 74 20 61 63 74 | 75 61 6c 6c 79 20 6d 65 |on't act|ually me|
|00000bc0| 72 67 65 20 73 71 75 61 | 64 73 20 69 6e 20 61 73 |rge squa|ds in as|
|00000bd0| 73 61 75 6c 74 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |sault..f|unction |
|00000be0| 4d 65 72 67 65 57 69 74 | 68 28 53 71 75 61 64 41 |MergeWit|h(SquadA|
|00000bf0| 49 20 53 29 0d 0a 7b 0d | 0a 09 53 71 75 61 64 4f |I S)..{.|..SquadO|
|00000c00| 62 6a 65 63 74 69 76 65 | 20 3d 20 53 2e 53 71 75 |bjective| = S.Squ|
|00000c10| 61 64 4f 62 6a 65 63 74 | 69 76 65 3b 0d 0a 7d 0d |adObject|ive;..}.|
|00000c20| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 69 63 6b |...funct|ion Pick|
|00000c30| 4e 65 77 4c 65 61 64 65 | 72 28 29 0d 0a 7b 0d 0a |NewLeade|r()..{..|
|00000c40| 09 6c 6f 63 61 6c 20 42 | 6f 74 20 42 3b 0d 0a 0d |.local B|ot B;...|
|00000c50| 0a 09 66 6f 72 20 28 20 | 42 3d 53 71 75 61 64 4d |..for ( |B=SquadM|
|00000c60| 65 6d 62 65 72 73 3b 20 | 42 21 3d 4e 6f 6e 65 3b |embers; |B!=None;|
|00000c70| 20 42 3d 42 2e 4e 65 78 | 74 53 71 75 61 64 4d 65 | B=B.Nex|tSquadMe|
|00000c80| 6d 62 65 72 20 29 0d 0a | 09 09 69 66 20 28 20 28 |mber )..|..if ( (|
|00000c90| 56 65 68 69 63 6c 65 28 | 42 2e 50 61 77 6e 29 20 |Vehicle(|B.Pawn) |
|00000ca0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 21 42 2e 50 |!= None)| && !B.P|
|00000cb0| 61 77 6e 2e 62 53 74 61 | 74 69 6f 6e 61 72 79 20 |awn.bSta|tionary |
|00000cc0| 29 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 0d 0a |).....br|eak;....|
|00000cd0| 09 69 66 20 28 20 42 20 | 3d 3d 20 4e 6f 6e 65 20 |.if ( B |== None |
|00000ce0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2f 20 70 69 63 6b |)...{...|.// pick|
|00000cf0| 20 61 20 6c 65 61 64 65 | 72 20 74 68 61 74 20 69 | a leade|r that i|
|00000d00| 73 6e 27 74 20 6f 75 74 | 20 6f 66 20 74 68 65 20 |sn't out| of the |
|00000d10| 67 61 6d 65 0d 0a 09 09 | 66 6f 72 20 28 20 42 3d |game....|for ( B=|
|00000d20| 53 71 75 61 64 4d 65 6d | 62 65 72 73 3b 20 42 21 |SquadMem|bers; B!|
|00000d30| 3d 4e 6f 6e 65 3b 20 42 | 3d 42 2e 4e 65 78 74 53 |=None; B|=B.NextS|
|00000d40| 71 75 61 64 4d 65 6d 62 | 65 72 20 29 0d 0a 09 09 |quadMemb|er )....|
|00000d50| 09 69 66 20 28 20 21 42 | 2e 50 6c 61 79 65 72 52 |.if ( !B|.PlayerR|
|00000d60| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 62 |eplicati|onInfo.b|
|00000d70| 4f 75 74 4f 66 4c 69 76 | 65 73 20 29 0d 0a 09 09 |OutOfLiv|es )....|
|00000d80| 09 09 62 72 65 61 6b 3b | 0d 0a 09 7d 0d 0a 0d 0a |..break;|...}....|
|00000d90| 09 53 71 75 61 64 4c 65 | 61 64 65 72 20 3d 20 42 |.SquadLe|ader = B|
|00000da0| 3b 0d 0a 09 69 66 20 28 | 20 53 71 75 61 64 4c 65 |;...if (| SquadLe|
|00000db0| 61 64 65 72 20 3d 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ader == |None )..|
|00000dc0| 09 09 4c 65 61 64 65 72 | 50 52 49 20 3d 20 4e 6f |..Leader|PRI = No|
|00000dd0| 6e 65 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 4c 65 |ne;...el|se....Le|
|00000de0| 61 64 65 72 50 52 49 20 | 3d 20 54 65 61 6d 50 6c |aderPRI |= TeamPl|
|00000df0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00000e00| 6e 66 6f 28 53 71 75 61 | 64 4c 65 61 64 65 72 2e |nfo(Squa|dLeader.|
|00000e10| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000e20| 6e 49 6e 66 6f 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |nInfo);.|.}....fu|
|00000e30| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 41 73 73 69 |nction b|ool Assi|
|00000e40| 67 6e 53 71 75 61 64 52 | 65 73 70 6f 6e 73 69 62 |gnSquadR|esponsib|
|00000e50| 69 6c 69 74 79 28 42 6f | 74 20 42 29 0d 0a 7b 0d |ility(Bo|t B)..{.|
|00000e60| 0a 09 6c 6f 63 61 6c 20 | 54 72 69 67 67 65 72 5f |..local |Trigger_|
|00000e70| 41 53 55 73 65 41 6e 64 | 52 65 73 70 61 77 6e 20 |ASUseAnd|Respawn |
|00000e80| 54 2c 42 65 73 74 3b 0d | 0a 09 6c 6f 63 61 6c 20 |T,Best;.|..local |
|00000e90| 66 6c 6f 61 74 20 42 65 | 73 74 44 69 73 74 2c 20 |float Be|stDist, |
|00000ea0| 4e 65 77 44 69 73 74 3b | 0d 0a 09 6c 6f 63 61 6c |NewDist;|...local|
|00000eb0| 20 69 6e 74 20 69 3b 0d | 0a 09 6c 6f 63 61 6c 20 | int i;.|..local |
|00000ec0| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 43 3b 0d 0a 09 |Controll|er C;...|
|00000ed0| 6c 6f 63 61 6c 20 63 6c | 61 73 73 3c 50 61 77 6e |local cl|ass<Pawn|
|00000ee0| 3e 20 46 6f 63 75 73 50 | 61 77 6e 43 6c 61 73 73 |> FocusP|awnClass|
|00000ef0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 20 28 53 71 75 61 |;.....if| ( (Squa|
|00000f00| 64 4f 62 6a 65 63 74 69 | 76 65 20 3d 3d 20 4e 6f |dObjecti|ve == No|
|00000f10| 6e 65 29 20 7c 7c 20 53 | 71 75 61 64 4f 62 6a 65 |ne) || S|quadObje|
|00000f20| 63 74 69 76 65 2e 62 44 | 69 73 61 62 6c 65 64 20 |ctive.bD|isabled |
|00000f30| 7c 7c 20 21 53 71 75 61 | 64 4f 62 6a 65 63 74 69 ||| !Squa|dObjecti|
|00000f40| 76 65 2e 62 41 63 74 69 | 76 65 20 7c 7c 20 21 55 |ve.bActi|ve || !U|
|00000f50| 6e 72 65 61 6c 4d 50 47 | 61 6d 65 49 6e 66 6f 28 |nrealMPG|ameInfo(|
|00000f60| 4c 65 76 65 6c 2e 47 61 | 6d 65 29 2e 43 61 6e 44 |Level.Ga|me).CanD|
|00000f70| 69 73 61 62 6c 65 4f 62 | 6a 65 63 74 69 76 65 28 |isableOb|jective(|
|00000f80| 20 53 71 75 61 64 4f 62 | 6a 65 63 74 69 76 65 20 | SquadOb|jective |
|00000f90| 29 20 29 0d 0a 20 09 7b | 0d 0a 09 09 54 65 61 6d |) ).. .{|....Team|
|00000fa0| 2e 41 49 2e 46 69 6e 64 | 4e 65 77 4f 62 6a 65 63 |.AI.Find|NewObjec|
|00000fb0| 74 69 76 65 46 6f 72 28 | 73 65 6c 66 2c 74 72 75 |tiveFor(|self,tru|
|00000fc0| 65 29 3b 0d 0a 09 09 69 | 66 20 28 20 28 53 71 75 |e);....i|f ( (Squ|
|00000fd0| 61 64 4f 62 6a 65 63 74 | 69 76 65 20 3d 3d 20 4e |adObject|ive == N|
|00000fe0| 6f 6e 65 29 20 7c 7c 20 | 53 71 75 61 64 4f 62 6a |one) || |SquadObj|
|00000ff0| 65 63 74 69 76 65 2e 62 | 44 69 73 61 62 6c 65 64 |ective.b|Disabled|
|00001000| 20 7c 7c 20 21 53 71 75 | 61 64 4f 62 6a 65 63 74 | || !Squ|adObject|
|00001010| 69 76 65 2e 62 41 63 74 | 69 76 65 20 29 0d 0a 09 |ive.bAct|ive )...|
|00001020| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 28 50 6c 61 |.{.....i|f ( (Pla|
|00001030| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 53 71 |yerContr|oller(Sq|
|00001040| 75 61 64 4c 65 61 64 65 | 72 29 20 21 3d 20 4e 6f |uadLeade|r) != No|
|00001050| 6e 65 29 20 26 26 20 28 | 48 6f 6c 64 53 70 6f 74 |ne) && (|HoldSpot|
|00001060| 28 42 2e 47 6f 61 6c 53 | 63 72 69 70 74 29 20 3d |(B.GoalS|cript) =|
|00001070| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 09 09 7b 0d |= None) |).....{.|
|00001080| 0a 09 09 09 09 69 66 20 | 28 43 68 65 63 6b 56 65 |.....if |(CheckVe|
|00001090| 68 69 63 6c 65 28 42 29 | 29 0d 0a 09 09 09 09 09 |hicle(B)|).......|
|000010a0| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 09 |return t|rue;....|
|000010b0| 09 09 72 65 74 75 72 6e | 20 54 65 6c 6c 42 6f 74 |..return| TellBot|
|000010c0| 54 6f 46 6f 6c 6c 6f 77 | 28 42 2c 53 71 75 61 64 |ToFollow|(B,Squad|
|000010d0| 4c 65 61 64 65 72 29 3b | 0d 0a 09 09 09 7d 0d 0a |Leader);|.....}..|
|000010e0| 09 09 09 69 66 20 28 20 | 42 2e 45 6e 65 6d 79 20 |...if ( |B.Enemy |
|000010f0| 3d 3d 20 4e 6f 6e 65 20 | 26 26 20 21 42 2e 50 61 |== None |&& !B.Pa|
|00001100| 77 6e 2e 62 53 74 61 74 | 69 6f 6e 61 72 79 20 29 |wn.bStat|ionary )|
|00001110| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 2f 2f 20 73 |.....{..|....// s|
|00001120| 75 67 67 65 73 74 20 69 | 6e 76 65 6e 74 6f 72 79 |uggest i|nventory|
|00001130| 20 68 75 6e 74 0d 0a 09 | 09 09 09 69 66 20 28 20 | hunt...|...if ( |
|00001140| 42 2e 46 69 6e 64 49 6e | 76 65 6e 74 6f 72 79 47 |B.FindIn|ventoryG|
|00001150| 6f 61 6c 28 30 29 20 29 | 0d 0a 09 09 09 09 7b 0d |oal(0) )|......{.|
|00001160| 0a 09 09 09 09 09 42 2e | 53 65 74 41 74 74 72 61 |......B.|SetAttra|
|00001170| 63 74 69 6f 6e 53 74 61 | 74 65 28 29 3b 0d 0a 09 |ctionSta|te();...|
|00001180| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00001190| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 09 |......}.|....}...|
|000011a0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|000011b0| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 69 66 20 |...}...}|.....if |
|000011c0| 28 20 28 56 65 68 69 63 | 6c 65 28 42 2e 50 61 77 |( (Vehic|le(B.Paw|
|000011d0| 6e 29 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 21 |n) != No|ne) && !|
|000011e0| 42 2e 50 61 77 6e 2e 62 | 53 74 61 74 69 6f 6e 61 |B.Pawn.b|Stationa|
|000011f0| 72 79 20 26 26 20 56 65 | 68 69 63 6c 65 28 42 2e |ry && Ve|hicle(B.|
|00001200| 50 61 77 6e 29 2e 62 4b | 65 79 56 65 68 69 63 6c |Pawn).bK|eyVehicl|
|00001210| 65 20 26 26 20 28 53 71 | 75 61 64 4f 62 6a 65 63 |e && (Sq|uadObjec|
|00001220| 74 69 76 65 2e 44 65 66 | 65 6e 64 65 72 54 65 61 |tive.Def|enderTea|
|00001230| 6d 49 6e 64 65 78 20 21 | 3d 20 54 65 61 6d 2e 54 |mIndex !|= Team.T|
|00001240| 65 61 6d 49 6e 64 65 78 | 29 20 29 0d 0a 09 7b 0d |eamIndex|) )...{.|
|00001250| 0a 09 09 69 66 20 28 20 | 53 71 75 61 64 4f 62 6a |...if ( |SquadObj|
|00001260| 65 63 74 69 76 65 2e 62 | 44 69 73 61 62 6c 65 64 |ective.b|Disabled|
|00001270| 20 7c 7c 20 21 53 71 75 | 61 64 4f 62 6a 65 63 74 | || !Squ|adObject|
|00001280| 69 76 65 2e 62 41 63 74 | 69 76 65 20 29 0d 0a 09 |ive.bAct|ive )...|
|00001290| 09 7b 0d 0a 09 09 09 42 | 2e 47 6f 61 6c 53 74 72 |.{.....B|.GoalStr|
|000012a0| 69 6e 67 20 3d 20 22 4f | 62 6a 65 63 74 69 76 65 |ing = "O|bjective|
|000012b0| 20 61 6c 72 65 61 64 79 | 20 64 69 73 61 62 6c 65 | already| disable|
|000012c0| 64 22 3b 0d 0a 09 09 09 | 72 65 74 75 72 6e 20 66 |d";.....|return f|
|000012d0| 61 6c 73 65 3b 0d 0a 09 | 09 7d 0d 0a 09 09 42 2e |alse;...|.}....B.|
|000012e0| 47 6f 61 6c 53 74 72 69 | 6e 67 20 3d 20 22 44 69 |GoalStri|ng = "Di|
|000012f0| 73 61 62 6c 65 20 4f 62 | 6a 65 63 74 69 76 65 20 |sable Ob|jective |
|00001300| 22 24 53 71 75 61 64 4f | 62 6a 65 63 74 69 76 65 |"$SquadO|bjective|
|00001310| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 20 53 71 75 61 |;....ret|urn Squa|
|00001320| 64 4f 62 6a 65 63 74 69 | 76 65 2e 54 65 6c 6c 42 |dObjecti|ve.TellB|
|00001330| 6f 74 48 6f 77 54 6f 44 | 69 73 61 62 6c 65 28 42 |otHowToD|isable(B|
|00001340| 29 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 2f 2f 20 68 61 |);...}..|...// ha|
|00001350| 63 6b 20 66 6f 72 20 67 | 65 74 74 69 6e 67 20 69 |ck for g|etting i|
|00001360| 6e 74 6f 20 73 70 61 63 | 65 66 69 67 68 74 65 72 |nto spac|efighter|
|00001370| 73 0d 0a 09 69 66 20 28 | 20 53 71 75 61 64 4f 62 |s...if (| SquadOb|
|00001380| 6a 65 63 74 69 76 65 2e | 62 4d 75 73 74 42 6f 61 |jective.|bMustBoa|
|00001390| 72 64 56 65 68 69 63 6c | 65 46 69 72 73 74 20 29 |rdVehicl|eFirst )|
|000013a0| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 56 65 68 |...{....|if ( Veh|
|000013b0| 69 63 6c 65 28 42 2e 50 | 61 77 6e 29 20 3d 3d 20 |icle(B.P|awn) == |
|000013c0| 4e 6f 6e 65 20 29 0d 0a | 09 09 7b 0d 0a 09 09 09 |None )..|..{.....|
|000013d0| 69 66 20 28 20 54 72 69 | 67 67 65 72 5f 41 53 55 |if ( Tri|gger_ASU|
|000013e0| 73 65 41 6e 64 52 65 73 | 70 61 77 6e 28 42 2e 52 |seAndRes|pawn(B.R|
|000013f0| 6f 75 74 65 47 6f 61 6c | 29 20 21 3d 20 4e 6f 6e |outeGoal|) != Non|
|00001400| 65 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 69 |e ).....|{......i|
|00001410| 66 20 28 20 42 2e 50 61 | 77 6e 2e 52 65 61 63 68 |f ( B.Pa|wn.Reach|
|00001420| 65 64 44 65 73 74 69 6e | 61 74 69 6f 6e 28 42 2e |edDestin|ation(B.|
|00001430| 52 6f 75 74 65 47 6f 61 | 6c 29 20 29 0d 0a 09 09 |RouteGoa|l) )....|
|00001440| 09 09 7b 0d 0a 09 09 09 | 09 09 54 72 69 67 67 65 |..{.....|..Trigge|
|00001450| 72 5f 41 53 55 73 65 41 | 6e 64 52 65 73 70 61 77 |r_ASUseA|ndRespaw|
|00001460| 6e 28 42 2e 52 6f 75 74 | 65 47 6f 61 6c 29 2e 55 |n(B.Rout|eGoal).U|
|00001470| 73 65 64 42 79 28 42 2e | 50 61 77 6e 29 3b 0d 0a |sedBy(B.|Pawn);..|
|00001480| 09 09 09 09 09 42 2e 47 | 6f 61 6c 53 74 72 69 6e |.....B.G|oalStrin|
|00001490| 67 20 3d 20 22 47 65 74 | 74 69 6e 67 20 69 6e 20 |g = "Get|ting in |
|000014a0| 76 65 68 69 63 6c 65 22 | 3b 0d 0a 09 09 09 09 09 |vehicle"|;.......|
|000014b0| 72 65 74 75 72 6e 20 53 | 75 70 65 72 2e 41 73 73 |return S|uper.Ass|
|000014c0| 69 67 6e 53 71 75 61 64 | 52 65 73 70 6f 6e 73 69 |ignSquad|Responsi|
|000014d0| 62 69 6c 69 74 79 28 42 | 29 3b 0d 0a 09 09 09 09 |bility(B|);......|
|000014e0| 7d 0d 0a 09 09 09 7d 0d | 0a 09 09 09 65 6c 73 65 |}.....}.|....else|
|000014f0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 69 66 20 28 |.....{..|....if (|
|00001500| 20 21 62 56 65 68 69 63 | 6c 65 45 6e 74 72 69 65 | !bVehic|leEntrie|
|00001510| 73 49 6e 69 74 69 61 6c | 69 7a 65 64 20 29 0d 0a |sInitial|ized )..|
|00001520| 09 09 09 09 7b 0d 0a 09 | 09 09 09 09 62 56 65 68 |....{...|....bVeh|
|00001530| 69 63 6c 65 45 6e 74 72 | 69 65 73 49 6e 69 74 69 |icleEntr|iesIniti|
|00001540| 61 6c 69 7a 65 64 20 3d | 20 74 72 75 65 3b 0d 0a |alized =| true;..|
|00001550| 09 09 09 09 09 46 6f 72 | 45 61 63 68 20 44 79 6e |.....For|Each Dyn|
|00001560| 61 6d 69 63 41 63 74 6f | 72 73 28 63 6c 61 73 73 |amicActo|rs(class|
|00001570| 27 54 72 69 67 67 65 72 | 5f 41 53 55 73 65 41 6e |'Trigger|_ASUseAn|
|00001580| 64 52 65 73 70 61 77 6e | 27 2c 20 54 29 0d 0a 09 |dRespawn|', T)...|
|00001590| 09 09 09 09 09 45 6e 74 | 72 79 54 72 69 67 67 65 |.....Ent|ryTrigge|
|000015a0| 72 73 5b 45 6e 74 72 79 | 54 72 69 67 67 65 72 73 |rs[Entry|Triggers|
|000015b0| 2e 4c 65 6e 67 74 68 5d | 20 3d 20 54 3b 0d 0a 09 |.Length]| = T;...|
|000015c0| 09 09 09 7d 0d 0a 09 09 | 09 09 66 6f 72 20 28 20 |...}....|..for ( |
|000015d0| 69 3d 30 3b 20 69 3c 45 | 6e 74 72 79 54 72 69 67 |i=0; i<E|ntryTrig|
|000015e0| 67 65 72 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |gers.Len|gth; i++|
|000015f0| 20 29 0d 0a 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 | )......|{.......|
|00001600| 54 20 3d 20 45 6e 74 72 | 79 54 72 69 67 67 65 72 |T = Entr|yTrigger|
|00001610| 73 5b 69 5d 3b 0d 0a 0d | 0a 09 09 09 09 09 69 66 |s[i];...|......if|
|00001620| 20 28 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | ( Level|.TimeSec|
|00001630| 6f 6e 64 73 20 3e 20 54 | 2e 4c 61 73 74 46 61 69 |onds > T|.LastFai|
|00001640| 6c 54 69 6d 65 20 29 0d | 0a 09 09 09 09 09 7b 0d |lTime ).|......{.|
|00001650| 0a 09 09 09 09 09 09 4e | 65 77 44 69 73 74 20 3d |.......N|ewDist =|
|00001660| 20 56 53 69 7a 65 28 42 | 2e 50 61 77 6e 2e 4c 6f | VSize(B|.Pawn.Lo|
|00001670| 63 61 74 69 6f 6e 20 2d | 20 54 2e 4c 6f 63 61 74 |cation -| T.Locat|
|00001680| 69 6f 6e 29 3b 0d 0a 09 | 09 09 09 09 09 69 66 20 |ion);...|.....if |
|00001690| 28 20 28 42 65 73 74 20 | 3d 3d 20 4e 6f 6e 65 29 |( (Best |== None)|
|000016a0| 20 7c 7c 20 28 4e 65 77 | 44 69 73 74 20 3c 20 42 | || (New|Dist < B|
|000016b0| 65 73 74 44 69 73 74 29 | 20 20 29 0d 0a 09 09 09 |estDist)| ).....|
|000016c0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 09 09 42 65 73 |...{....|.....Bes|
|000016d0| 74 20 3d 20 54 3b 0d 0a | 09 09 09 09 09 09 09 42 |t = T;..|.......B|
|000016e0| 65 73 74 44 69 73 74 20 | 3d 20 4e 65 77 44 69 73 |estDist |= NewDis|
|000016f0| 74 3b 0d 0a 09 09 09 09 | 09 09 7d 0d 0a 09 09 09 |t;......|..}.....|
|00001700| 09 09 7d 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 09 |..}.....|.}......|
|00001710| 42 2e 52 6f 75 74 65 47 | 6f 61 6c 20 3d 20 42 65 |B.RouteG|oal = Be|
|00001720| 73 74 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 09 69 66 |st;.....|}.....if|
|00001730| 20 28 20 42 2e 52 6f 75 | 74 65 47 6f 61 6c 20 21 | ( B.Rou|teGoal !|
|00001740| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 7b 0d 0a |= None )|.....{..|
|00001750| 09 09 09 09 42 2e 4d 6f | 76 65 54 61 72 67 65 74 |....B.Mo|veTarget|
|00001760| 20 3d 20 42 2e 46 69 6e | 64 50 61 74 68 54 6f 77 | = B.Fin|dPathTow|
|00001770| 61 72 64 28 42 2e 52 6f | 75 74 65 47 6f 61 6c 2c |ard(B.Ro|uteGoal,|
|00001780| 20 66 61 6c 73 65 29 3b | 0d 0a 09 09 09 09 69 66 | false);|......if|
|00001790| 20 28 20 42 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 | ( B.Mov|eTarget |
|000017a0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 7b |!= None |)......{|
|000017b0| 0d 0a 09 09 09 09 09 42 | 2e 47 6f 61 6c 53 74 72 |.......B|.GoalStr|
|000017c0| 69 6e 67 20 3d 20 22 4d | 6f 76 65 20 74 6f 20 76 |ing = "M|ove to v|
|000017d0| 65 68 69 63 6c 65 20 65 | 6e 74 72 79 20 74 72 69 |ehicle e|ntry tri|
|000017e0| 67 67 65 72 20 22 24 42 | 2e 52 6f 75 74 65 47 6f |gger "$B|.RouteGo|
|000017f0| 61 6c 3b 0d 0a 09 09 09 | 09 09 42 2e 53 65 74 41 |al;.....|..B.SetA|
|00001800| 74 74 72 61 63 74 69 6f | 6e 53 74 61 74 65 28 29 |ttractio|nState()|
|00001810| 3b 0d 0a 09 09 09 09 09 | 72 65 74 75 72 6e 20 74 |;.......|return t|
|00001820| 72 75 65 3b 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 |rue;....|..}.....|
|00001830| 09 65 6c 73 65 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |.else...|...{....|
|00001840| 09 09 09 54 72 69 67 67 | 65 72 5f 41 53 55 73 65 |...Trigg|er_ASUse|
|00001850| 41 6e 64 52 65 73 70 61 | 77 6e 28 42 2e 52 6f 75 |AndRespa|wn(B.Rou|
|00001860| 74 65 47 6f 61 6c 29 2e | 4c 61 73 74 46 61 69 6c |teGoal).|LastFail|
|00001870| 54 69 6d 65 20 3d 20 4c | 65 76 65 6c 2e 54 69 6d |Time = L|evel.Tim|
|00001880| 65 53 65 63 6f 6e 64 73 | 20 2b 20 31 30 3b 0d 0a |eSeconds| + 10;..|
|00001890| 09 09 09 09 7d 0d 0a 09 | 09 09 7d 0d 0a 09 09 7d |....}...|..}....}|
|000018a0| 0d 0a 09 09 65 6c 73 65 | 20 69 66 20 28 20 42 2e |....else| if ( B.|
|000018b0| 50 61 77 6e 2e 62 54 68 | 75 6d 70 65 64 20 26 26 |Pawn.bTh|umped &&|
|000018c0| 20 28 42 2e 45 6e 65 6d | 79 20 21 3d 20 4e 6f 6e | (B.Enem|y != Non|
|000018d0| 65 29 20 26 26 20 28 50 | 72 6f 78 69 6d 69 74 79 |e) && (P|roximity|
|000018e0| 4f 62 6a 65 63 74 69 76 | 65 28 53 71 75 61 64 4f |Objectiv|e(SquadO|
|000018f0| 62 6a 65 63 74 69 76 65 | 29 20 3d 3d 20 4e 6f 6e |bjective|) == Non|
|00001900| 65 29 20 29 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |e) )....|.return |
|00001910| 66 61 6c 73 65 3b 0d 0a | 09 09 65 6c 73 65 20 69 |false;..|..else i|
|00001920| 66 20 28 20 47 65 74 4f | 72 64 65 72 73 28 29 20 |f ( GetO|rders() |
|00001930| 3d 3d 20 27 44 65 66 65 | 6e 64 27 20 29 0d 0a 09 |== 'Defe|nd' )...|
|00001940| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 42 2e 45 6e |.{.....i|f ( B.En|
|00001950| 65 6d 79 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |emy == N|one )...|
|00001960| 09 09 7b 0d 0a 09 09 09 | 09 66 6f 72 20 28 20 69 |..{.....|.for ( i|
|00001970| 3d 30 3b 20 69 3c 41 72 | 72 61 79 43 6f 75 6e 74 |=0; i<Ar|rayCount|
|00001980| 28 45 6e 65 6d 69 65 73 | 29 3b 20 69 2b 2b 20 29 |(Enemies|); i++ )|
|00001990| 0d 0a 09 09 09 09 09 69 | 66 20 28 20 45 6e 65 6d |.......i|f ( Enem|
|000019a0| 69 65 73 5b 69 5d 20 21 | 3d 20 4e 6f 6e 65 20 29 |ies[i] !|= None )|
|000019b0| 0d 0a 09 09 09 09 09 7b | 0d 0a 09 09 09 09 09 09 |.......{|........|
|000019c0| 53 65 74 45 6e 65 6d 79 | 28 42 2c 45 6e 65 6d 69 |SetEnemy|(B,Enemi|
|000019d0| 65 73 5b 69 5d 29 3b 0d | 0a 09 09 09 09 09 09 69 |es[i]);.|.......i|
|000019e0| 66 20 28 20 42 2e 45 6e | 65 6d 79 20 21 3d 20 4e |f ( B.En|emy != N|
|000019f0| 6f 6e 65 20 29 0d 0a 09 | 09 09 09 09 09 09 62 72 |one )...|......br|
|00001a00| 65 61 6b 3b 0d 0a 09 09 | 09 09 09 7d 0d 0a 09 09 |eak;....|...}....|
|00001a10| 09 09 69 66 20 28 20 42 | 2e 45 6e 65 6d 79 20 3d |..if ( B|.Enemy =|
|00001a20| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 09 7b 0d |= None )|......{.|
|00001a30| 0a 09 09 09 09 09 66 6f | 72 20 28 20 43 3d 4c 65 |......fo|r ( C=Le|
|00001a40| 76 65 6c 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 4c 69 |vel.Cont|rollerLi|
|00001a50| 73 74 3b 20 43 21 3d 4e | 6f 6e 65 3b 20 43 3d 43 |st; C!=N|one; C=C|
|00001a60| 2e 4e 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.NextCon|troller |
|00001a70| 29 0d 0a 09 09 09 09 09 | 09 69 66 20 28 20 28 43 |).......|.if ( (C|
|00001a80| 2e 50 61 77 6e 20 21 3d | 20 4e 6f 6e 65 29 20 26 |.Pawn !=| None) &|
|00001a90| 26 20 43 2e 62 49 73 50 | 6c 61 79 65 72 20 26 26 |& C.bIsP|layer &&|
|00001aa0| 20 21 43 2e 53 61 6d 65 | 54 65 61 6d 41 73 28 42 | !C.Same|TeamAs(B|
|00001ab0| 29 20 29 0d 0a 09 09 09 | 09 09 09 7b 0d 0a 09 09 |) ).....|...{....|
|00001ac0| 09 09 09 09 09 53 65 74 | 45 6e 65 6d 79 28 42 2c |.....Set|Enemy(B,|
|00001ad0| 43 2e 50 61 77 6e 29 3b | 0d 0a 09 09 09 09 09 09 |C.Pawn);|........|
|00001ae0| 09 69 66 20 28 20 42 2e | 45 6e 65 6d 79 20 21 3d |.if ( B.|Enemy !=|
|00001af0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 09 09 09 09 | None ).|........|
|00001b00| 09 62 72 65 61 6b 3b 0d | 0a 09 09 09 09 09 09 7d |.break;.|.......}|
|00001b10| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 09 |......}.|....}...|
|00001b20| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00001b30| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 46 6f 63 |...}...}|.....Foc|
|00001b40| 75 73 50 61 77 6e 43 6c | 61 73 73 20 3d 20 4f 62 |usPawnCl|ass = Ob|
|00001b50| 6a 65 63 74 69 76 65 43 | 6f 6e 73 74 72 61 69 6e |jectiveC|onstrain|
|00001b60| 74 43 6c 61 73 73 28 29 | 3b 0d 0a 09 46 6f 63 75 |tClass()|;...Focu|
|00001b70| 73 50 61 77 6e 20 3d 20 | 47 65 74 4b 65 79 56 65 |sPawn = |GetKeyVe|
|00001b80| 68 69 63 6c 65 28 42 29 | 3b 0d 0a 0d 0a 09 69 66 |hicle(B)|;.....if|
|00001b90| 20 28 20 28 46 6f 63 75 | 73 50 61 77 6e 20 21 3d | ( (Focu|sPawn !=|
|00001ba0| 20 4e 6f 6e 65 29 20 26 | 26 20 28 42 2e 50 61 77 | None) &|& (B.Paw|
|00001bb0| 6e 20 21 3d 20 46 6f 63 | 75 73 50 61 77 6e 29 20 |n != Foc|usPawn) |
|00001bc0| 26 26 20 28 46 6f 63 75 | 73 50 61 77 6e 43 6c 61 |&& (Focu|sPawnCla|
|00001bd0| 73 73 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 09 09 26 |ss != No|ne)....&|
|00001be0| 26 20 43 6c 61 73 73 49 | 73 43 68 69 6c 64 4f 66 |& ClassI|sChildOf|
|00001bf0| 28 46 6f 63 75 73 50 61 | 77 6e 2e 43 6c 61 73 73 |(FocusPa|wn.Class|
|00001c00| 2c 46 6f 63 75 73 50 61 | 77 6e 43 6c 61 73 73 29 |,FocusPa|wnClass)|
|00001c10| 20 26 26 20 21 43 6c 61 | 73 73 49 73 43 68 69 6c | && !Cla|ssIsChil|
|00001c20| 64 4f 66 28 42 2e 50 61 | 77 6e 2e 43 6c 61 73 73 |dOf(B.Pa|wn.Class|
|00001c30| 2c 46 6f 63 75 73 50 61 | 77 6e 43 6c 61 73 73 29 |,FocusPa|wnClass)|
|00001c40| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 47 | )...{..|..if ( G|
|00001c50| 65 74 4f 72 64 65 72 73 | 28 29 20 3d 3d 20 27 41 |etOrders|() == 'A|
|00001c60| 54 54 41 43 4b 27 20 29 | 0d 0a 09 09 7b 0d 0a 09 |TTACK' )|....{...|
|00001c70| 09 09 69 66 20 28 20 46 | 6f 63 75 73 50 61 77 6e |..if ( F|ocusPawn|
|00001c80| 2e 43 6f 6e 74 72 6f 6c | 6c 65 72 20 21 3d 20 4e |.Control|ler != N|
|00001c90| 6f 6e 65 20 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |one )...|..{.....|
|00001ca0| 09 42 2e 47 6f 61 6c 53 | 74 72 69 6e 67 20 3d 20 |.B.GoalS|tring = |
|00001cb0| 22 53 75 70 70 6f 72 74 | 20 4b 65 79 20 56 65 68 |"Support| Key Veh|
|00001cc0| 69 63 6c 65 22 3b 0d 0a | 09 09 09 09 69 66 20 28 |icle";..|....if (|
|00001cd0| 20 28 42 2e 50 61 77 6e | 2e 57 65 61 70 6f 6e 20 | (B.Pawn|.Weapon |
|00001ce0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 42 2e 50 61 |!= None)| && B.Pa|
|00001cf0| 77 6e 2e 57 65 61 70 6f | 6e 2e 46 6f 63 75 73 4f |wn.Weapo|n.FocusO|
|00001d00| 6e 4c 65 61 64 65 72 28 | 66 61 6c 73 65 29 20 29 |nLeader(|false) )|
|00001d10| 0d 0a 09 09 09 09 09 42 | 2e 46 69 72 65 57 65 61 |.......B|.FireWea|
|00001d20| 70 6f 6e 41 74 28 42 2e | 46 6f 63 75 73 29 3b 0d |ponAt(B.|Focus);.|
|00001d30| 0a 09 09 09 09 69 66 20 | 28 20 28 42 2e 50 61 77 |.....if |( (B.Paw|
|00001d40| 6e 2e 47 65 74 56 65 68 | 69 63 6c 65 42 61 73 65 |n.GetVeh|icleBase|
|00001d50| 28 29 20 3d 3d 20 46 6f | 63 75 73 50 61 77 6e 29 |() == Fo|cusPawn)|
|00001d60| 0d 0a 09 09 09 09 20 20 | 20 20 20 7c 7c 20 28 28 |...... | || ((|
|00001d70| 56 53 69 7a 65 28 46 6f | 63 75 73 50 61 77 6e 2e |VSize(Fo|cusPawn.|
|00001d80| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 42 2e 50 61 77 |Location| - B.Paw|
|00001d90| 6e 2e 4c 6f 63 61 74 69 | 6f 6e 29 20 3c 20 38 30 |n.Locati|on) < 80|
|00001da0| 30 29 20 26 26 20 28 56 | 53 69 7a 65 28 46 6f 63 |0) && (V|Size(Foc|
|00001db0| 75 73 50 61 77 6e 2e 56 | 65 6c 6f 63 69 74 79 29 |usPawn.V|elocity)|
|00001dc0| 20 3c 20 31 30 30 29 29 | 20 29 0d 0a 09 09 09 09 | < 100))| )......|
|00001dd0| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00001de0| 09 09 09 09 42 2e 46 69 | 6e 64 42 65 73 74 50 61 |....B.Fi|ndBestPa|
|00001df0| 74 68 54 6f 77 61 72 64 | 28 46 6f 63 75 73 50 61 |thToward|(FocusPa|
|00001e00| 77 6e 2c 66 61 6c 73 65 | 2c 74 72 75 65 29 3b 0d |wn,false|,true);.|
|00001e10| 0a 09 09 09 09 69 66 20 | 28 20 42 2e 53 74 61 72 |.....if |( B.Star|
|00001e20| 74 4d 6f 76 65 54 6f 77 | 61 72 64 28 46 6f 63 75 |tMoveTow|ard(Focu|
|00001e30| 73 50 61 77 6e 29 20 29 | 0d 0a 09 09 09 09 09 72 |sPawn) )|.......r|
|00001e40| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 09 |eturn tr|ue;.....|
|00001e50| 7d 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 20 69 |}....}..|..else i|
|00001e60| 66 20 28 20 42 2e 45 6e | 65 6d 79 20 3d 3d 20 4e |f ( B.En|emy == N|
|00001e70| 6f 6e 65 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 69 |one )...|.{.....i|
|00001e80| 66 20 28 20 46 6f 63 75 | 73 50 61 77 6e 2e 43 6f |f ( Focu|sPawn.Co|
|00001e90| 6e 74 72 6f 6c 6c 65 72 | 20 3d 3d 20 4e 6f 6e 65 |ntroller| == None|
|00001ea0| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 42 2e | ).....{|......B.|
|00001eb0| 47 6f 61 6c 53 74 72 69 | 6e 67 20 3d 20 22 41 74 |GoalStri|ng = "At|
|00001ec0| 74 61 63 6b 20 4b 65 79 | 20 56 65 68 69 63 6c 65 |tack Key| Vehicle|
|00001ed0| 22 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 42 2e 43 |";......|if ( B.C|
|00001ee0| 61 6e 41 74 74 61 63 6b | 28 46 6f 63 75 73 50 61 |anAttack|(FocusPa|
|00001ef0| 77 6e 29 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |wn) )...|...{....|
|00001f00| 09 09 09 42 2e 44 6f 52 | 61 6e 67 65 64 41 74 74 |...B.DoR|angedAtt|
|00001f10| 61 63 6b 4f 6e 28 46 6f | 63 75 73 50 61 77 6e 29 |ackOn(Fo|cusPawn)|
|00001f20| 3b 0d 0a 09 09 09 09 09 | 72 65 74 75 72 6e 20 74 |;.......|return t|
|00001f30| 72 75 65 3b 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 |rue;....|..}.....|
|00001f40| 09 42 2e 46 69 6e 64 42 | 65 73 74 50 61 74 68 54 |.B.FindB|estPathT|
|00001f50| 6f 77 61 72 64 28 46 6f | 63 75 73 50 61 77 6e 2c |oward(Fo|cusPawn,|
|00001f60| 66 61 6c 73 65 2c 74 72 | 75 65 29 3b 0d 0a 09 09 |false,tr|ue);....|
|00001f70| 09 09 69 66 20 28 20 42 | 2e 53 74 61 72 74 4d 6f |..if ( B|.StartMo|
|00001f80| 76 65 54 6f 77 61 72 64 | 28 46 6f 63 75 73 50 61 |veToward|(FocusPa|
|00001f90| 77 6e 29 20 29 0d 0a 09 | 09 09 09 09 72 65 74 75 |wn) )...|....retu|
|00001fa0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a |rn true;|.....}..|
|00001fb0| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|00001fc0| 09 09 09 42 2e 47 6f 61 | 6c 53 74 72 69 6e 67 20 |...B.Goa|lString |
|00001fd0| 3d 20 22 46 69 67 68 74 | 20 4b 65 79 20 56 65 68 |= "Fight| Key Veh|
|00001fe0| 69 63 6c 65 22 3b 0d 0a | 09 09 09 09 53 65 74 45 |icle";..|....SetE|
|00001ff0| 6e 65 6d 79 28 42 2c 46 | 6f 63 75 73 50 61 77 6e |nemy(B,F|ocusPawn|
|00002000| 29 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 09 69 66 20 |);.....}|.....if |
|00002010| 28 20 42 2e 45 6e 65 6d | 79 20 3d 3d 20 46 6f 63 |( B.Enem|y == Foc|
|00002020| 75 73 50 61 77 6e 20 29 | 0d 0a 09 09 09 09 72 65 |usPawn )|......re|
|00002030| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 09 09 7d |turn fal|se;....}|
|00002040| 0d 0a 09 09 65 6c 73 65 | 20 69 66 20 28 20 42 2e |....else| if ( B.|
|00002050| 45 6e 65 6d 79 20 3d 3d | 20 46 6f 63 75 73 50 61 |Enemy ==| FocusPa|
|00002060| 77 6e 20 29 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |wn )....|.return |
|00002070| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 09 72 65 74 |false;..|.}...ret|
|00002080| 75 72 6e 20 53 75 70 65 | 72 2e 41 73 73 69 67 6e |urn Supe|r.Assign|
|00002090| 53 71 75 61 64 52 65 73 | 70 6f 6e 73 69 62 69 6c |SquadRes|ponsibil|
|000020a0| 69 74 79 28 42 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |ity(B);.|.}....fu|
|000020b0| 6e 63 74 69 6f 6e 20 63 | 6c 61 73 73 3c 50 61 77 |nction c|lass<Paw|
|000020c0| 6e 3e 20 4f 62 6a 65 63 | 74 69 76 65 43 6f 6e 73 |n> Objec|tiveCons|
|000020d0| 74 72 61 69 6e 74 43 6c | 61 73 73 28 29 0d 0a 7b |traintCl|ass()..{|
|000020e0| 0d 0a 09 69 66 20 28 20 | 44 65 73 74 72 6f 79 61 |...if ( |Destroya|
|000020f0| 62 6c 65 4f 62 6a 65 63 | 74 69 76 65 28 53 71 75 |bleObjec|tive(Squ|
|00002100| 61 64 4f 62 6a 65 63 74 | 69 76 65 29 20 21 3d 20 |adObject|ive) != |
|00002110| 4e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |None )..|..return|
|00002120| 20 44 65 73 74 72 6f 79 | 61 62 6c 65 4f 62 6a 65 | Destroy|ableObje|
|00002130| 63 74 69 76 65 28 53 71 | 75 61 64 4f 62 6a 65 63 |ctive(Sq|uadObjec|
|00002140| 74 69 76 65 29 2e 43 6f | 6e 73 74 72 61 69 6e 74 |tive).Co|nstraint|
|00002150| 50 61 77 6e 43 6c 61 73 | 73 3b 0d 0a 09 69 66 20 |PawnClas|s;...if |
|00002160| 28 20 50 72 6f 78 69 6d | 69 74 79 4f 62 6a 65 63 |( Proxim|ityObjec|
|00002170| 74 69 76 65 28 53 71 75 | 61 64 4f 62 6a 65 63 74 |tive(Squ|adObject|
|00002180| 69 76 65 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |ive) != |None )..|
|00002190| 09 09 72 65 74 75 72 6e | 20 50 72 6f 78 69 6d 69 |..return| Proximi|
|000021a0| 74 79 4f 62 6a 65 63 74 | 69 76 65 28 53 71 75 61 |tyObject|ive(Squa|
|000021b0| 64 4f 62 6a 65 63 74 69 | 76 65 29 2e 43 6f 6e 73 |dObjecti|ve).Cons|
|000021c0| 74 72 61 69 6e 74 50 61 | 77 6e 43 6c 61 73 73 3b |traintPa|wnClass;|
|000021d0| 0d 0a 09 72 65 74 75 72 | 6e 20 4e 6f 6e 65 3b 0d |...retur|n None;.|
|000021e0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|000021f0| 6f 6f 6c 20 4d 75 73 74 | 4b 65 65 70 45 6e 65 6d |ool Must|KeepEnem|
|00002200| 79 28 50 61 77 6e 20 45 | 29 0d 0a 7b 0d 0a 09 69 |y(Pawn E|)..{...i|
|00002210| 66 20 28 20 28 45 2e 50 | 6c 61 79 65 72 52 65 70 |f ( (E.P|layerRep|
|00002220| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 21 3d 20 |lication|Info != |
|00002230| 4e 6f 6e 65 29 20 26 26 | 20 28 45 2e 50 6c 61 79 |None) &&| (E.Play|
|00002240| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00002250| 6f 2e 48 61 73 46 6c 61 | 67 20 21 3d 20 4e 6f 6e |o.HasFla|g != Non|
|00002260| 65 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 74 |e) )....|return t|
|00002270| 72 75 65 3b 0d 0a 09 69 | 66 20 28 20 28 53 71 75 |rue;...i|f ( (Squ|
|00002280| 61 64 4f 62 6a 65 63 74 | 69 76 65 20 21 3d 20 4e |adObject|ive != N|
|00002290| 6f 6e 65 29 20 26 26 20 | 53 71 75 61 64 4f 62 6a |one) && |SquadObj|
|000022a0| 65 63 74 69 76 65 2e 4e | 65 61 72 4f 62 6a 65 63 |ective.N|earObjec|
|000022b0| 74 69 76 65 28 45 29 20 | 29 0d 0a 09 09 72 65 74 |tive(E) |)....ret|
|000022c0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 69 66 20 28 |urn true|;...if (|
|000022d0| 20 28 56 65 68 69 63 6c | 65 28 45 29 20 21 3d 20 | (Vehicl|e(E) != |
|000022e0| 4e 6f 6e 65 29 20 26 26 | 20 56 65 68 69 63 6c 65 |None) &&| Vehicle|
|000022f0| 28 45 29 2e 62 4b 65 79 | 56 65 68 69 63 6c 65 20 |(E).bKey|Vehicle |
|00002300| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |)....ret|urn true|
|00002310| 3b 0d 0a 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |;...retu|rn false|
|00002320| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00002330| 20 62 79 74 65 20 50 72 | 69 6f 72 69 74 79 4f 62 | byte Pr|iorityOb|
|00002340| 6a 65 63 74 69 76 65 28 | 42 6f 74 20 42 29 0d 0a |jective(|Bot B)..|
|00002350| 7b 0d 0a 09 69 66 20 28 | 20 42 2e 50 6c 61 79 65 |{...if (| B.Playe|
|00002360| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00002370| 2e 48 61 73 46 6c 61 67 | 20 21 3d 20 4e 6f 6e 65 |.HasFlag| != None|
|00002380| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 32 3b 0d | )....re|turn 2;.|
|00002390| 0a 09 69 66 20 28 20 28 | 56 65 68 69 63 6c 65 28 |..if ( (|Vehicle(|
|000023a0| 42 2e 50 61 77 6e 29 20 | 21 3d 20 4e 6f 6e 65 29 |B.Pawn) |!= None)|
|000023b0| 20 26 26 20 56 65 68 69 | 63 6c 65 28 42 2e 50 61 | && Vehi|cle(B.Pa|
|000023c0| 77 6e 29 2e 62 4b 65 79 | 56 65 68 69 63 6c 65 20 |wn).bKey|Vehicle |
|000023d0| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 32 3b 0d 0a |)....ret|urn 2;..|
|000023e0| 09 72 65 74 75 72 6e 20 | 30 3b 0d 0a 7d 0d 0a 0d |.return |0;..}...|
|000023f0| 0a 66 75 6e 63 74 69 6f | 6e 20 66 6c 6f 61 74 20 |.functio|n float |
|00002400| 4d 6f 64 69 66 79 54 68 | 72 65 61 74 28 66 6c 6f |ModifyTh|reat(flo|
|00002410| 61 74 20 63 75 72 72 65 | 6e 74 2c 20 50 61 77 6e |at curre|nt, Pawn|
|00002420| 20 4e 65 77 54 68 72 65 | 61 74 2c 20 62 6f 6f 6c | NewThre|at, bool|
|00002430| 20 62 54 68 72 65 61 74 | 56 69 73 69 62 6c 65 2c | bThreat|Visible,|
|00002440| 20 42 6f 74 20 42 29 0d | 0a 7b 0d 0a 09 6c 6f 63 | Bot B).|.{...loc|
|00002450| 61 6c 20 63 6c 61 73 73 | 3c 50 61 77 6e 3e 20 46 |al class|<Pawn> F|
|00002460| 6f 63 75 73 50 61 77 6e | 43 6c 61 73 73 3b 0d 0a |ocusPawn|Class;..|
|00002470| 0d 0a 09 69 66 20 28 20 | 47 65 74 4f 72 64 65 72 |...if ( |GetOrder|
|00002480| 73 28 29 20 3d 3d 20 27 | 44 65 66 65 6e 64 27 20 |s() == '|Defend' |
|00002490| 29 0d 0a 09 7b 0d 0a 09 | 09 46 6f 63 75 73 50 61 |)...{...|.FocusPa|
|000024a0| 77 6e 43 6c 61 73 73 20 | 3d 20 4f 62 6a 65 63 74 |wnClass |= Object|
|000024b0| 69 76 65 43 6f 6e 73 74 | 72 61 69 6e 74 43 6c 61 |iveConst|raintCla|
|000024c0| 73 73 28 29 3b 0d 0a 09 | 09 69 66 20 28 20 28 46 |ss();...|.if ( (F|
|000024d0| 6f 63 75 73 50 61 77 6e | 43 6c 61 73 73 20 21 3d |ocusPawn|Class !=|
|000024e0| 20 4e 6f 6e 65 29 20 26 | 26 20 21 43 6c 61 73 73 | None) &|& !Class|
|000024f0| 49 73 43 68 69 6c 64 4f | 66 28 4e 65 77 54 68 72 |IsChildO|f(NewThr|
|00002500| 65 61 74 2e 43 6c 61 73 | 73 2c 46 6f 63 75 73 50 |eat.Clas|s,FocusP|
|00002510| 61 77 6e 43 6c 61 73 73 | 29 20 29 0d 0a 09 09 09 |awnClass|) ).....|
|00002520| 72 65 74 75 72 6e 20 63 | 75 72 72 65 6e 74 20 2d |return c|urrent -|
|00002530| 20 30 2e 35 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 | 0.5;...|}.....if|
|00002540| 20 28 20 62 54 68 72 65 | 61 74 56 69 73 69 62 6c | ( bThre|atVisibl|
|00002550| 65 20 26 26 20 28 4e 65 | 77 54 68 72 65 61 74 2e |e && (Ne|wThreat.|
|00002560| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00002570| 6e 49 6e 66 6f 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |nInfo !=| None)..|
|00002580| 09 09 26 26 20 28 28 4e | 65 77 54 68 72 65 61 74 |..&& ((N|ewThreat|
|00002590| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|000025a0| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 20 21 |onInfo.H|asFlag !|
|000025b0| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 28 28 56 65 68 |= None) ||| ((Veh|
|000025c0| 69 63 6c 65 28 4e 65 77 | 54 68 72 65 61 74 29 20 |icle(New|Threat) |
|000025d0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 56 65 68 69 |!= None)| && Vehi|
|000025e0| 63 6c 65 28 4e 65 77 54 | 68 72 65 61 74 29 2e 62 |cle(NewT|hreat).b|
|000025f0| 4b 65 79 56 65 68 69 63 | 6c 65 29 29 20 29 0d 0a |KeyVehic|le)) )..|
|00002600| 09 7b 0d 0a 09 09 69 66 | 20 28 20 28 56 53 69 7a |.{....if| ( (VSiz|
|00002610| 65 28 42 2e 50 61 77 6e | 2e 4c 6f 63 61 74 69 6f |e(B.Pawn|.Locatio|
|00002620| 6e 20 2d 20 4e 65 77 54 | 68 72 65 61 74 2e 4c 6f |n - NewT|hreat.Lo|
|00002630| 63 61 74 69 6f 6e 29 20 | 3c 20 32 35 30 30 29 20 |cation) |< 2500) |
|00002640| 7c 7c 20 42 2e 50 61 77 | 6e 2e 57 65 61 70 6f 6e ||| B.Paw|n.Weapon|
|00002650| 2e 62 53 6e 69 70 69 6e | 67 20 29 0d 0a 09 09 09 |.bSnipin|g ).....|
|00002660| 72 65 74 75 72 6e 20 63 | 75 72 72 65 6e 74 20 2b |return c|urrent +|
|00002670| 20 36 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 | 6;....e|lse.....|
|00002680| 72 65 74 75 72 6e 20 63 | 75 72 72 65 6e 74 20 2b |return c|urrent +|
|00002690| 20 31 2e 35 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 | 1.5;...|}...else|
|000026a0| 20 69 66 20 28 20 28 53 | 71 75 61 64 4f 62 6a 65 | if ( (S|quadObje|
|000026b0| 63 74 69 76 65 20 21 3d | 20 4e 6f 6e 65 29 20 26 |ctive !=| None) &|
|000026c0| 26 20 28 53 71 75 61 64 | 4f 62 6a 65 63 74 69 76 |& (Squad|Objectiv|
|000026d0| 65 2e 44 65 66 65 6e 64 | 65 72 54 65 61 6d 49 6e |e.Defend|erTeamIn|
|000026e0| 64 65 78 20 3d 3d 20 54 | 65 61 6d 2e 54 65 61 6d |dex == T|eam.Team|
|000026f0| 49 6e 64 65 78 29 0d 0a | 09 09 09 26 26 20 28 53 |Index)..|...&& (S|
|00002700| 71 75 61 64 4f 62 6a 65 | 63 74 69 76 65 2e 4d 79 |quadObje|ctive.My|
|00002710| 42 61 73 65 56 6f 6c 75 | 6d 65 20 21 3d 20 4e 6f |BaseVolu|me != No|
|00002720| 6e 65 29 20 26 26 20 4e | 65 77 54 68 72 65 61 74 |ne) && N|ewThreat|
|00002730| 2e 49 73 49 6e 56 6f 6c | 75 6d 65 28 53 71 75 61 |.IsInVol|ume(Squa|
|00002740| 64 4f 62 6a 65 63 74 69 | 76 65 2e 4d 79 42 61 73 |dObjecti|ve.MyBas|
|00002750| 65 56 6f 6c 75 6d 65 29 | 20 29 0d 0a 09 09 72 65 |eVolume)| )....re|
|00002760| 74 75 72 6e 20 63 75 72 | 72 65 6e 74 20 2b 20 31 |turn cur|rent + 1|
|00002770| 2e 35 3b 0d 0a 09 65 6c | 73 65 20 69 66 20 28 20 |.5;...el|se if ( |
|00002780| 4e 65 77 54 68 72 65 61 | 74 2e 49 73 48 75 6d 61 |NewThrea|t.IsHuma|
|00002790| 6e 43 6f 6e 74 72 6f 6c | 6c 65 64 28 29 20 29 0d |nControl|led() ).|
|000027a0| 0a 09 09 72 65 74 75 72 | 6e 20 63 75 72 72 65 6e |...retur|n curren|
|000027b0| 74 20 2b 20 30 2e 35 3b | 0d 0a 09 65 6c 73 65 20 |t + 0.5;|...else |
|000027c0| 69 66 20 28 20 4e 65 77 | 54 68 72 65 61 74 2e 62 |if ( New|Threat.b|
|000027d0| 53 74 61 74 69 6f 6e 61 | 72 79 20 26 26 20 62 54 |Stationa|ry && bT|
|000027e0| 68 72 65 61 74 56 69 73 | 69 62 6c 65 20 29 0d 0a |hreatVis|ible )..|
|000027f0| 09 09 72 65 74 75 72 6e | 20 63 75 72 72 65 6e 74 |..return| current|
|00002800| 20 2b 20 30 2e 33 3b 0d | 0a 09 65 6c 73 65 0d 0a | + 0.3;.|..else..|
|00002810| 09 09 72 65 74 75 72 6e | 20 63 75 72 72 65 6e 74 |..return| current|
|00002820| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00002830| 20 6e 61 6d 65 20 47 65 | 74 4f 72 64 65 72 73 28 | name Ge|tOrders(|
|00002840| 29 0d 0a 7b 0d 0a 09 62 | 46 72 65 65 6c 61 6e 63 |)..{...b|Freelanc|
|00002850| 65 41 74 74 61 63 6b 20 | 3d 20 74 72 75 65 3b 0d |eAttack |= true;.|
|00002860| 0a 09 72 65 74 75 72 6e | 20 53 75 70 65 72 2e 47 |..return| Super.G|
|00002870| 65 74 4f 72 64 65 72 73 | 28 29 3b 0d 0a 7d 0d 0a |etOrders|();..}..|
|00002880| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 66 6c 6f 61 74 |..functi|on float|
|00002890| 20 41 73 73 65 73 73 54 | 68 72 65 61 74 28 20 42 | AssessT|hreat( B|
|000028a0| 6f 74 20 42 2c 20 50 61 | 77 6e 20 4e 65 77 54 68 |ot B, Pa|wn NewTh|
|000028b0| 72 65 61 74 2c 20 62 6f | 6f 6c 20 62 54 68 72 65 |reat, bo|ol bThre|
|000028c0| 61 74 56 69 73 69 62 6c | 65 20 29 0d 0a 7b 0d 0a |atVisibl|e )..{..|
|000028d0| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 54 68 72 |.local f|loat Thr|
|000028e0| 65 61 74 56 61 6c 75 65 | 2c 20 44 69 73 74 3b 0d |eatValue|, Dist;.|
|000028f0| 0a 0d 0a 09 69 66 20 28 | 20 28 56 65 68 69 63 6c |....if (| (Vehicl|
|00002900| 65 28 42 2e 50 61 77 6e | 29 20 3d 3d 20 4e 6f 6e |e(B.Pawn|) == Non|
|00002910| 65 29 20 7c 7c 20 21 56 | 65 68 69 63 6c 65 28 42 |e) || !V|ehicle(B|
|00002920| 2e 50 61 77 6e 29 2e 62 | 4b 65 79 56 65 68 69 63 |.Pawn).b|KeyVehic|
|00002930| 6c 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 53 |le )....|return S|
|00002940| 75 70 65 72 2e 41 73 73 | 65 73 73 54 68 72 65 61 |uper.Ass|essThrea|
|00002950| 74 28 42 2c 20 4e 65 77 | 54 68 72 65 61 74 2c 20 |t(B, New|Threat, |
|00002960| 62 54 68 72 65 61 74 56 | 69 73 69 62 6c 65 29 3b |bThreatV|isible);|
|00002970| 0d 0a 0d 0a 09 54 68 72 | 65 61 74 56 61 6c 75 65 |.....Thr|eatValue|
|00002980| 20 3d 20 31 3b 0d 0a 09 | 44 69 73 74 20 3d 20 56 | = 1;...|Dist = V|
|00002990| 53 69 7a 65 28 4e 65 77 | 54 68 72 65 61 74 2e 4c |Size(New|Threat.L|
|000029a0| 6f 63 61 74 69 6f 6e 20 | 2d 20 42 2e 50 61 77 6e |ocation |- B.Pawn|
|000029b0| 2e 4c 6f 63 61 74 69 6f | 6e 29 3b 0d 0a 09 69 66 |.Locatio|n);...if|
|000029c0| 20 28 20 44 69 73 74 20 | 3c 20 34 30 30 30 20 29 | ( Dist |< 4000 )|
|000029d0| 0d 0a 09 7b 0d 0a 09 09 | 54 68 72 65 61 74 56 61 |...{....|ThreatVa|
|000029e0| 6c 75 65 20 2b 3d 20 30 | 2e 32 3b 0d 0a 09 09 69 |lue += 0|.2;....i|
|000029f0| 66 20 28 20 44 69 73 74 | 20 3c 20 32 35 30 30 20 |f ( Dist| < 2500 |
|00002a00| 29 0d 0a 09 09 09 54 68 | 72 65 61 74 56 61 6c 75 |).....Th|reatValu|
|00002a10| 65 20 2b 3d 20 30 2e 32 | 3b 0d 0a 09 09 69 66 20 |e += 0.2|;....if |
|00002a20| 28 20 44 69 73 74 20 3c | 20 31 35 30 30 20 29 0d |( Dist <| 1500 ).|
|00002a30| 0a 09 09 09 54 68 72 65 | 61 74 56 61 6c 75 65 20 |....Thre|atValue |
|00002a40| 2b 3d 20 30 2e 32 3b 0d | 0a 09 09 69 66 20 28 20 |+= 0.2;.|...if ( |
|00002a50| 44 69 73 74 20 3c 20 31 | 30 30 30 20 29 0d 0a 09 |Dist < 1|000 )...|
|00002a60| 09 09 54 68 72 65 61 74 | 56 61 6c 75 65 20 2b 3d |..Threat|Value +=|
|00002a70| 20 30 2e 32 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 | 0.2;...|}.....if|
|00002a80| 20 28 20 62 54 68 72 65 | 61 74 56 69 73 69 62 6c | ( bThre|atVisibl|
|00002a90| 65 20 29 0d 0a 09 09 54 | 68 72 65 61 74 56 61 6c |e )....T|hreatVal|
|00002aa0| 75 65 20 2b 3d 20 33 3b | 0d 0a 09 69 66 20 28 20 |ue += 3;|...if ( |
|00002ab0| 28 4e 65 77 54 68 72 65 | 61 74 20 21 3d 20 42 2e |(NewThre|at != B.|
|00002ac0| 45 6e 65 6d 79 29 20 26 | 26 20 28 42 2e 45 6e 65 |Enemy) &|& (B.Ene|
|00002ad0| 6d 79 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |my != No|ne) )...|
|00002ae0| 7b 0d 0a 09 09 69 66 20 | 28 20 21 62 54 68 72 65 |{....if |( !bThre|
|00002af0| 61 74 56 69 73 69 62 6c | 65 20 29 0d 0a 09 09 09 |atVisibl|e ).....|
|00002b00| 54 68 72 65 61 74 56 61 | 6c 75 65 20 2d 3d 20 35 |ThreatVa|lue -= 5|
|00002b10| 3b 0d 0a 09 09 65 6c 73 | 65 20 69 66 20 28 20 4c |;....els|e if ( L|
|00002b20| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00002b30| 20 2d 20 42 2e 4c 61 73 | 74 53 65 65 6e 54 69 6d | - B.Las|tSeenTim|
|00002b40| 65 20 3e 20 32 20 29 0d | 0a 09 09 09 54 68 72 65 |e > 2 ).|....Thre|
|00002b50| 61 74 56 61 6c 75 65 20 | 2b 3d 20 31 3b 0d 0a 09 |atValue |+= 1;...|
|00002b60| 09 54 68 72 65 61 74 56 | 61 6c 75 65 20 2d 3d 20 |.ThreatV|alue -= |
|00002b70| 30 2e 35 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 54 68 72 |0.5;...}|.....Thr|
|00002b80| 65 61 74 56 61 6c 75 65 | 20 3d 20 4d 6f 64 69 66 |eatValue| = Modif|
|00002b90| 79 54 68 72 65 61 74 28 | 54 68 72 65 61 74 56 61 |yThreat(|ThreatVa|
|00002ba0| 6c 75 65 2c 4e 65 77 54 | 68 72 65 61 74 2c 62 54 |lue,NewT|hreat,bT|
|00002bb0| 68 72 65 61 74 56 69 73 | 69 62 6c 65 2c 42 29 3b |hreatVis|ible,B);|
|00002bc0| 0d 0a 09 72 65 74 75 72 | 6e 20 54 68 72 65 61 74 |...retur|n Threat|
|00002bd0| 56 61 6c 75 65 3b 0d 0a | 7d 0d 0a 00 |Value;..|}... |
+--------+-------------------------+-------------------------+--------+--------+