home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-05-10 | 9.1 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 69 91 01 0d 0a 2f 2f 3d |........|i....//=|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 0d 0a 2f 2f |========|====..//|
|00000060| 20 54 72 61 6e 73 6c 6f | 63 61 74 6f 72 20 42 65 | Translo|cator Be|
|00000070| 61 63 6f 6e 0d 0a 2f 2f | 3d 3d 3d 3d 3d 3d 3d 3d |acon..//|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000c0| 3d 3d 3d 3d 3d 0d 0a 63 | 6c 61 73 73 20 54 72 61 |=====..c|lass Tra|
|000000d0| 6e 73 42 65 61 63 6f 6e | 20 65 78 74 65 6e 64 73 |nsBeacon| extends|
|000000e0| 20 54 72 61 6e 73 6c 6f | 63 61 74 6f 72 42 65 61 | Translo|catorBea|
|000000f0| 63 6f 6e 3b 0d 0a 0d 0a | 76 61 72 20 62 6f 6f 6c |con;....|var bool|
|00000100| 20 62 43 61 6e 48 69 74 | 4f 77 6e 65 72 2c 20 62 | bCanHit|Owner, b|
|00000110| 48 69 74 57 61 74 65 72 | 3b 0d 0a 76 61 72 20 62 |HitWater|;..var b|
|00000120| 6f 6f 6c 20 62 44 61 6d | 61 67 65 64 3b 0d 0a 76 |ool bDam|aged;..v|
|00000130| 61 72 20 62 6f 6f 6c 20 | 62 4e 6f 41 49 3b 0d 0a |ar bool |bNoAI;..|
|00000140| 76 61 72 20 78 45 6d 69 | 74 74 65 72 20 54 72 61 |var xEmi|tter Tra|
|00000150| 69 6c 3b 0d 0a 76 61 72 | 20 78 45 6d 69 74 74 65 |il;..var| xEmitte|
|00000160| 72 20 46 6c 61 72 65 3b | 0d 0a 76 61 72 20 41 63 |r Flare;|..var Ac|
|00000170| 74 6f 72 20 54 72 61 6e | 73 6c 6f 63 61 74 69 6f |tor Tran|slocatio|
|00000180| 6e 54 61 72 67 65 74 3b | 09 2f 2f 20 66 6f 72 20 |nTarget;|.// for |
|00000190| 41 49 0d 0a 76 61 72 20 | 69 6e 74 20 44 69 73 72 |AI..var |int Disr|
|000001a0| 75 70 74 69 6f 6e 3b 0d | 0a 76 61 72 20 69 6e 74 |uption;.|.var int|
|000001b0| 20 44 69 73 72 75 70 74 | 69 6f 6e 54 68 72 65 73 | Disrupt|ionThres|
|000001c0| 68 6f 6c 64 3b 0d 0a 76 | 61 72 20 50 61 77 6e 20 |hold;..v|ar Pawn |
|000001d0| 44 69 73 72 75 70 74 6f | 72 3b 0d 0a 76 61 72 20 |Disrupto|r;..var |
|000001e0| 54 72 61 6e 73 42 65 61 | 63 6f 6e 53 70 61 72 6b |TransBea|conSpark|
|000001f0| 73 20 53 70 61 72 6b 73 | 3b 0d 0a 76 61 72 20 63 |s Sparks|;..var c|
|00000200| 6c 61 73 73 3c 54 72 61 | 6e 73 54 72 61 69 6c 3e |lass<Tra|nsTrail>|
|00000210| 20 54 72 61 6e 73 54 72 | 61 69 6c 43 6c 61 73 73 | TransTr|ailClass|
|00000220| 3b 0d 0a 76 61 72 20 63 | 6c 61 73 73 3c 54 72 61 |;..var c|lass<Tra|
|00000230| 6e 73 46 6c 61 72 65 42 | 6c 75 65 3e 20 54 72 61 |nsFlareB|lue> Tra|
|00000240| 6e 73 46 6c 61 72 65 43 | 6c 61 73 73 3b 0d 0a 0d |nsFlareC|lass;...|
|00000250| 0a 72 65 70 6c 69 63 61 | 74 69 6f 6e 0d 0a 7b 0d |.replica|tion..{.|
|00000260| 0a 20 20 20 20 72 65 6c | 69 61 62 6c 65 20 69 66 |. rel|iable if|
|00000270| 20 28 20 52 6f 6c 65 20 | 3d 3d 20 52 4f 4c 45 5f | ( Role |== ROLE_|
|00000280| 41 75 74 68 6f 72 69 74 | 79 20 29 0d 0a 20 20 20 |Authorit|y ).. |
|00000290| 20 20 20 20 20 44 69 73 | 72 75 70 74 69 6f 6e 3b | Dis|ruption;|
|000002a0| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|000002b0| 20 66 75 6e 63 74 69 6f | 6e 20 44 65 73 74 72 6f | functio|n Destro|
|000002c0| 79 65 64 28 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |yed()..{|.. if|
|000002d0| 20 28 20 54 72 61 69 6c | 20 21 3d 20 4e 6f 6e 65 | ( Trail| != None|
|000002e0| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 54 72 61 69 | ).. | Trai|
|000002f0| 6c 2e 6d 52 65 67 65 6e | 20 3d 20 66 61 6c 73 65 |l.mRegen| = false|
|00000300| 3b 0d 0a 20 20 20 20 69 | 66 20 28 20 46 6c 61 72 |;.. i|f ( Flar|
|00000310| 65 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 20 20 20 |e != Non|e ).. |
|00000320| 20 7b 0d 0a 09 09 46 6c | 61 72 65 2e 6d 52 65 67 | {....Fl|are.mReg|
|00000330| 65 6e 20 3d 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |en = fal|se;.. |
|00000340| 20 20 20 20 20 46 6c 61 | 72 65 2e 44 65 73 74 72 | Fla|re.Destr|
|00000350| 6f 79 28 29 3b 0d 0a 20 | 20 20 20 7d 0d 0a 20 20 |oy();.. | }.. |
|00000360| 20 20 69 66 20 28 20 53 | 70 61 72 6b 73 20 21 3d | if ( S|parks !=|
|00000370| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 20 20 20 | None ).|. |
|00000380| 20 53 70 61 72 6b 73 2e | 44 65 73 74 72 6f 79 28 | Sparks.|Destroy(|
|00000390| 29 3b 0d 0a 09 53 75 70 | 65 72 2e 44 65 73 74 72 |);...Sup|er.Destr|
|000003a0| 6f 79 65 64 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |oyed();.|.}....ev|
|000003b0| 65 6e 74 20 45 6e 63 72 | 6f 61 63 68 65 64 42 79 |ent Encr|oachedBy|
|000003c0| 28 20 61 63 74 6f 72 20 | 4f 74 68 65 72 20 29 0d |( actor |Other ).|
|000003d0| 0a 7b 0d 0a 09 69 66 20 | 28 20 4d 6f 76 65 72 28 |.{...if |( Mover(|
|000003e0| 4f 74 68 65 72 29 20 21 | 3d 20 4e 6f 6e 65 20 29 |Other) !|= None )|
|000003f0| 0d 0a 09 09 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |....Dest|roy();..|
|00000400| 7d 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |}....sim|ulated f|
|00000410| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 44 69 73 |unction |bool Dis|
|00000420| 72 75 70 74 65 64 28 29 | 0d 0a 7b 0d 0a 09 72 65 |rupted()|..{...re|
|00000430| 74 75 72 6e 20 28 20 44 | 69 73 72 75 70 74 69 6f |turn ( D|isruptio|
|00000440| 6e 20 3e 20 44 69 73 72 | 75 70 74 69 6f 6e 54 68 |n > Disr|uptionTh|
|00000450| 72 65 73 68 6f 6c 64 20 | 29 3b 0d 0a 7d 0d 0a 0d |reshold |);..}...|
|00000460| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00000470| 69 6f 6e 20 50 6f 73 74 | 42 65 67 69 6e 50 6c 61 |ion Post|BeginPla|
|00000480| 79 28 29 0d 0a 7b 0d 0a | 20 20 20 20 6c 6f 63 61 |y()..{..| loca|
|00000490| 6c 20 52 6f 74 61 74 6f | 72 20 72 3b 0d 0a 09 6c |l Rotato|r r;...l|
|000004a0| 6f 63 61 6c 20 69 6e 74 | 20 64 69 66 66 3b 0d 0a |ocal int| diff;..|
|000004b0| 0d 0a 20 20 20 20 53 75 | 70 65 72 2e 50 6f 73 74 |.. Su|per.Post|
|000004c0| 42 65 67 69 6e 50 6c 61 | 79 28 29 3b 0d 0a 0d 0a |BeginPla|y();....|
|000004d0| 20 20 20 20 69 66 20 28 | 20 52 6f 6c 65 20 3d 3d | if (| Role ==|
|000004e0| 20 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 20 | ROLE_Au|thority |
|000004f0| 29 0d 0a 20 20 20 20 7b | 0d 0a 09 09 52 20 3d 20 |).. {|....R = |
|00000500| 52 6f 74 61 74 69 6f 6e | 3b 0d 0a 09 09 69 66 20 |Rotation|;....if |
|00000510| 28 20 41 69 6d 55 70 28 | 29 20 29 0d 0a 09 09 7b |( AimUp(|) )....{|
|00000520| 0d 0a 09 09 09 52 2e 50 | 69 74 63 68 20 3d 20 52 |.....R.P|itch = R|
|00000530| 2e 50 69 74 63 68 20 26 | 20 36 35 35 33 35 3b 0d |.Pitch &| 65535;.|
|00000540| 0a 09 09 09 69 66 20 28 | 20 52 2e 50 69 74 63 68 |....if (| R.Pitch|
|00000550| 20 3e 20 33 32 37 36 38 | 20 29 0d 0a 09 09 09 09 | > 32768| )......|
|00000560| 64 69 66 66 20 3d 20 36 | 35 35 33 36 20 2d 20 52 |diff = 6|5536 - R|
|00000570| 2e 50 69 74 63 68 3b 0d | 0a 09 09 09 65 6c 73 65 |.Pitch;.|....else|
|00000580| 0d 0a 09 09 09 09 64 69 | 66 66 20 3d 20 52 2e 50 |......di|ff = R.P|
|00000590| 69 74 63 68 3b 0d 0a 09 | 09 09 52 2e 50 69 74 63 |itch;...|..R.Pitc|
|000005a0| 68 20 3d 20 52 2e 50 69 | 74 63 68 20 2b 20 28 33 |h = R.Pi|tch + (3|
|000005b0| 32 37 36 38 20 2d 20 64 | 69 66 66 29 2f 38 3b 0d |2768 - d|iff)/8;.|
|000005c0| 0a 09 09 7d 0d 0a 20 20 | 20 20 20 20 20 20 56 65 |...}.. | Ve|
|000005d0| 6c 6f 63 69 74 79 20 3d | 20 53 70 65 65 64 20 2a |locity =| Speed *|
|000005e0| 20 56 65 63 74 6f 72 28 | 52 29 3b 0d 0a 20 20 20 | Vector(|R);.. |
|000005f0| 20 20 20 20 20 52 2e 59 | 61 77 20 3d 20 52 6f 74 | R.Y|aw = Rot|
|00000600| 61 74 69 6f 6e 2e 59 61 | 77 3b 0d 0a 20 20 20 20 |ation.Ya|w;.. |
|00000610| 20 20 20 20 52 2e 50 69 | 74 63 68 20 3d 20 30 3b | R.Pi|tch = 0;|
|00000620| 0d 0a 20 20 20 20 20 20 | 20 20 52 2e 52 6f 6c 6c |.. | R.Roll|
|00000630| 20 3d 20 30 3b 0d 0a 20 | 20 20 20 20 20 20 20 53 | = 0;.. | S|
|00000640| 65 74 52 6f 74 61 74 69 | 6f 6e 28 52 29 3b 0d 0a |etRotati|on(R);..|
|00000650| 20 20 20 20 20 20 20 20 | 62 43 61 6e 48 69 74 4f | |bCanHitO|
|00000660| 77 6e 65 72 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 20 |wner = f|alse;.. |
|00000670| 20 20 20 7d 0d 0a 20 20 | 20 20 54 72 61 69 6c 20 | }.. | Trail |
|00000680| 3d 20 53 70 61 77 6e 28 | 54 72 61 6e 73 54 72 61 |= Spawn(|TransTra|
|00000690| 69 6c 43 6c 61 73 73 2c | 20 73 65 6c 66 2c 2c 20 |ilClass,| self,, |
|000006a0| 4c 6f 63 61 74 69 6f 6e | 2c 20 52 6f 74 61 74 69 |Location|, Rotati|
|000006b0| 6f 6e 29 3b 0d 0a 20 20 | 20 20 53 65 74 54 69 6d |on);.. | SetTim|
|000006c0| 65 72 28 30 2e 33 2c 66 | 61 6c 73 65 29 3b 0d 0a |er(0.3,f|alse);..|
|000006d0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 62 6f |}....fun|ction bo|
|000006e0| 6f 6c 20 41 69 6d 55 70 | 28 29 0d 0a 7b 0d 0a 09 |ol AimUp|()..{...|
|000006f0| 69 66 20 28 20 78 50 6c | 61 79 65 72 28 49 6e 73 |if ( xPl|ayer(Ins|
|00000700| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00000710| 65 72 29 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |er) == N|one )...|
|00000720| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00000730| 0d 0a 09 72 65 74 75 72 | 6e 20 78 50 6c 61 79 65 |...retur|n xPlaye|
|00000740| 72 28 49 6e 73 74 69 67 | 61 74 6f 72 2e 43 6f 6e |r(Instig|ator.Con|
|00000750| 74 72 6f 6c 6c 65 72 29 | 2e 62 48 69 67 68 42 65 |troller)|.bHighBe|
|00000760| 61 63 6f 6e 54 72 61 6a | 65 63 74 6f 72 79 3b 0d |aconTraj|ectory;.|
|00000770| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000780| 66 75 6e 63 74 69 6f 6e | 20 50 68 79 73 69 63 73 |function| Physics|
|00000790| 56 6f 6c 75 6d 65 43 68 | 61 6e 67 65 28 20 50 68 |VolumeCh|ange( Ph|
|000007a0| 79 73 69 63 73 56 6f 6c | 75 6d 65 20 56 6f 6c 75 |ysicsVol|ume Volu|
|000007b0| 6d 65 20 29 0d 0a 7b 0d | 0a 7d 0d 0a 0d 0a 73 69 |me )..{.|.}....si|
|000007c0| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|000007d0| 20 4c 61 6e 64 65 64 28 | 20 76 65 63 74 6f 72 20 | Landed(| vector |
|000007e0| 48 69 74 4e 6f 72 6d 61 | 6c 20 29 0d 0a 7b 0d 0a |HitNorma|l )..{..|
|000007f0| 20 20 20 20 48 69 74 57 | 61 6c 6c 28 20 48 69 74 | HitW|all( Hit|
|00000800| 4e 6f 72 6d 61 6c 2c 20 | 4e 6f 6e 65 20 29 3b 0d |Normal, |None );.|
|00000810| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000820| 66 75 6e 63 74 69 6f 6e | 20 50 72 6f 63 65 73 73 |function| Process|
|00000830| 54 6f 75 63 68 28 20 61 | 63 74 6f 72 20 4f 74 68 |Touch( a|ctor Oth|
|00000840| 65 72 2c 20 76 65 63 74 | 6f 72 20 48 69 74 4c 6f |er, vect|or HitLo|
|00000850| 63 61 74 69 6f 6e 20 29 | 0d 0a 7b 0d 0a 09 6c 6f |cation )|..{...lo|
|00000860| 63 61 6c 20 76 65 63 74 | 6f 72 20 56 65 6c 32 44 |cal vect|or Vel2D|
|00000870| 3b 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 20 4f 74 |;.... | if ( Ot|
|00000880| 68 65 72 20 3d 3d 20 49 | 6e 73 74 69 67 61 74 6f |her == I|nstigato|
|00000890| 72 20 26 26 20 50 68 79 | 73 69 63 73 20 3d 3d 20 |r && Phy|sics == |
|000008a0| 50 48 59 53 5f 4e 6f 6e | 65 20 29 0d 0a 20 20 20 |PHYS_Non|e ).. |
|000008b0| 20 20 20 20 20 44 65 73 | 74 72 6f 79 28 29 3b 0d | Des|troy();.|
|000008c0| 0a 20 20 20 20 65 6c 73 | 65 20 69 66 20 28 20 28 |. els|e if ( (|
|000008d0| 4f 74 68 65 72 20 21 3d | 20 49 6e 73 74 69 67 61 |Other !=| Instiga|
|000008e0| 74 6f 72 29 20 7c 7c 20 | 62 43 61 6e 48 69 74 4f |tor) || |bCanHitO|
|000008f0| 77 6e 65 72 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |wner )..| {.. |
|00000900| 20 20 09 09 69 66 20 28 | 20 28 50 61 77 6e 28 4f | ..if (| (Pawn(O|
|00000910| 74 68 65 72 29 20 21 3d | 20 4e 6f 6e 65 29 20 26 |ther) !=| None) &|
|00000920| 26 20 28 56 65 68 69 63 | 6c 65 28 4f 74 68 65 72 |& (Vehic|le(Other|
|00000930| 29 20 3d 3d 20 4e 6f 6e | 65 29 20 29 0d 0a 09 09 |) == Non|e) )....|
|00000940| 7b 0d 0a 09 09 09 56 65 | 6c 32 44 20 3d 20 56 65 |{.....Ve|l2D = Ve|
|00000950| 6c 6f 63 69 74 79 3b 0d | 0a 09 09 09 56 65 6c 32 |locity;.|....Vel2|
|00000960| 44 2e 5a 20 3d 20 30 3b | 0d 0a 09 09 09 69 66 20 |D.Z = 0;|.....if |
|00000970| 28 20 56 53 69 7a 65 28 | 56 65 6c 32 44 29 20 3c |( VSize(|Vel2D) <|
|00000980| 20 32 30 30 20 29 0d 0a | 09 09 09 09 72 65 74 75 | 200 )..|....retu|
|00000990| 72 6e 3b 0d 0a 09 09 7d | 0d 0a 09 09 48 69 74 57 |rn;....}|....HitW|
|000009a0| 61 6c 6c 28 20 2d 4e 6f | 72 6d 61 6c 28 56 65 6c |all( -No|rmal(Vel|
|000009b0| 6f 63 69 74 79 29 2c 20 | 4f 74 68 65 72 20 29 3b |ocity), |Other );|
|000009c0| 0d 0a 20 20 20 20 20 20 | 20 20 2f 2f 48 69 74 57 |.. | //HitW|
|000009d0| 61 6c 6c 28 20 4e 6f 72 | 6d 61 6c 28 48 69 74 4c |all( Nor|mal(HitL|
|000009e0| 6f 63 61 74 69 6f 6e 2d | 4f 74 68 65 72 2e 4c 6f |ocation-|Other.Lo|
|000009f0| 63 61 74 69 6f 6e 29 2c | 20 4f 74 68 65 72 20 29 |cation),| Other )|
|00000a00| 3b 09 2f 2f 20 63 61 75 | 73 65 73 20 70 72 6f 62 |;.// cau|ses prob|
|00000a10| 6c 65 6d 73 20 77 69 74 | 68 20 61 63 74 6f 72 73 |lems wit|h actors|
|00000a20| 20 75 73 69 6e 67 20 6c | 61 72 67 65 20 73 74 61 | using l|arge sta|
|00000a30| 74 69 63 6d 65 73 68 65 | 73 0d 0a 20 20 20 20 7d |ticmeshe|s.. }|
|00000a40| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 20 70 6f 6c 6c 20 66 |..}..../|/ poll f|
|00000a50| 6f 72 20 64 69 73 72 75 | 70 74 69 6f 6e 0d 0a 73 |or disru|ption..s|
|00000a60| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000a70| 6e 20 54 69 6d 65 72 28 | 29 0d 0a 7b 0d 0a 20 20 |n Timer(|)..{.. |
|00000a80| 20 20 69 66 20 28 20 4c | 65 76 65 6c 2e 4e 65 74 | if ( L|evel.Net|
|00000a90| 4d 6f 64 65 20 3d 3d 20 | 4e 4d 5f 44 65 64 69 63 |Mode == |NM_Dedic|
|00000aa0| 61 74 65 64 53 65 72 76 | 65 72 20 29 0d 0a 20 20 |atedServ|er ).. |
|00000ab0| 20 20 20 20 20 20 72 65 | 74 75 72 6e 3b 0d 0a 0d | re|turn;...|
|00000ac0| 0a 20 20 20 20 69 66 20 | 28 20 21 44 69 73 72 75 |. if |( !Disru|
|00000ad0| 70 74 65 64 28 29 20 29 | 0d 0a 20 20 20 20 7b 0d |pted() )|.. {.|
|00000ae0| 0a 20 20 20 20 20 20 20 | 20 53 65 74 54 69 6d 65 |. | SetTime|
|00000af0| 72 28 30 2e 33 2c 20 66 | 61 6c 73 65 29 3b 0d 0a |r(0.3, f|alse);..|
|00000b00| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 3b 0d | |return;.|
|00000b10| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 2f 2f |. }..|.. //|
|00000b20| 20 63 72 65 61 74 65 20 | 74 68 65 20 64 69 73 72 | create |the disr|
|00000b30| 75 70 74 65 64 20 65 66 | 66 65 63 74 0d 0a 20 20 |upted ef|fect.. |
|00000b40| 20 20 69 66 20 28 53 70 | 61 72 6b 73 20 3d 3d 20 | if (Sp|arks == |
|00000b50| 4e 6f 6e 65 29 0d 0a 20 | 20 20 20 7b 0d 0a 20 20 |None).. | {.. |
|00000b60| 20 20 20 20 20 20 53 70 | 61 72 6b 73 20 3d 20 53 | Sp|arks = S|
|00000b70| 70 61 77 6e 28 63 6c 61 | 73 73 27 54 72 61 6e 73 |pawn(cla|ss'Trans|
|00000b80| 42 65 61 63 6f 6e 53 70 | 61 72 6b 73 27 2c 2c 2c |BeaconSp|arks',,,|
|00000b90| 4c 6f 63 61 74 69 6f 6e | 2b 76 65 63 74 28 30 2c |Location|+vect(0,|
|00000ba0| 30 2c 35 29 2c 52 6f 74 | 61 74 6f 72 28 76 65 63 |0,5),Rot|ator(vec|
|00000bb0| 74 28 30 2c 30 2c 31 29 | 29 29 3b 0d 0a 20 20 20 |t(0,0,1)|));.. |
|00000bc0| 20 20 20 20 20 53 70 61 | 72 6b 73 2e 53 65 74 42 | Spa|rks.SetB|
|00000bd0| 61 73 65 28 73 65 6c 66 | 29 3b 0d 0a 20 20 20 20 |ase(self|);.. |
|00000be0| 7d 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 46 6c 61 |}.... | if (Fla|
|00000bf0| 72 65 20 21 3d 20 4e 6f | 6e 65 29 0d 0a 20 20 20 |re != No|ne).. |
|00000c00| 20 20 20 20 20 46 6c 61 | 72 65 2e 44 65 73 74 72 | Fla|re.Destr|
|00000c10| 6f 79 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |oy();..}|....func|
|00000c20| 74 69 6f 6e 20 54 61 6b | 65 44 61 6d 61 67 65 28 |tion Tak|eDamage(|
|00000c30| 69 6e 74 20 44 61 6d 61 | 67 65 2c 20 50 61 77 6e |int Dama|ge, Pawn|
|00000c40| 20 45 76 65 6e 74 49 6e | 73 74 69 67 61 74 6f 72 | EventIn|stigator|
|00000c50| 2c 20 76 65 63 74 6f 72 | 20 48 69 74 4c 6f 63 61 |, vector| HitLoca|
|00000c60| 74 69 6f 6e 2c 20 76 65 | 63 74 6f 72 20 4d 6f 6d |tion, ve|ctor Mom|
|00000c70| 65 6e 74 75 6d 2c 20 63 | 6c 61 73 73 3c 44 61 6d |entum, c|lass<Dam|
|00000c80| 61 67 65 54 79 70 65 3e | 20 44 61 6d 61 67 65 54 |ageType>| DamageT|
|00000c90| 79 70 65 29 0d 0a 7b 0d | 0a 20 20 20 20 69 66 20 |ype)..{.|. if |
|00000ca0| 28 20 4c 65 76 65 6c 2e | 47 61 6d 65 2e 62 54 65 |( Level.|Game.bTe|
|00000cb0| 61 6d 47 61 6d 65 20 26 | 26 20 28 45 76 65 6e 74 |amGame &|& (Event|
|00000cc0| 49 6e 73 74 69 67 61 74 | 6f 72 20 21 3d 20 4e 6f |Instigat|or != No|
|00000cd0| 6e 65 29 0d 0a 09 09 26 | 26 20 28 45 76 65 6e 74 |ne)....&|& (Event|
|00000ce0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 50 6c 61 79 65 |Instigat|or.Playe|
|00000cf0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00000d00| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 26 26 20 | != None|)....&& |
|00000d10| 28 28 49 6e 73 74 69 67 | 61 74 6f 72 20 3d 3d 20 |((Instig|ator == |
|00000d20| 4e 6f 6e 65 29 20 7c 7c | 20 28 45 76 65 6e 74 49 |None) ||| (EventI|
|00000d30| 6e 73 74 69 67 61 74 6f | 72 2e 50 6c 61 79 65 72 |nstigato|r.Player|
|00000d40| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000d50| 54 65 61 6d 20 3d 3d 20 | 49 6e 73 74 69 67 61 74 |Team == |Instigat|
|00000d60| 6f 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |or.Playe|rReplica|
|00000d70| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 29 29 20 |tionInfo|.Team)) |
|00000d80| 29 0d 0a 20 20 20 20 7b | 0d 0a 09 09 72 65 74 75 |).. {|....retu|
|00000d90| 72 6e 3b 0d 0a 20 20 20 | 20 7d 0d 0a 20 20 20 20 |rn;.. | }.. |
|00000da0| 65 6c 73 65 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |else.. | {.. |
|00000db0| 20 20 20 20 20 44 69 73 | 72 75 70 74 69 6f 6e 20 | Dis|ruption |
|00000dc0| 2b 3d 20 44 61 6d 61 67 | 65 3b 0d 0a 09 09 44 69 |+= Damag|e;....Di|
|00000dd0| 73 72 75 70 74 6f 72 20 | 3d 20 45 76 65 6e 74 49 |sruptor |= EventI|
|00000de0| 6e 73 74 69 67 61 74 6f | 72 3b 0d 0a 20 20 20 20 |nstigato|r;.. |
|00000df0| 7d 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |}..}....|function|
|00000e00| 20 42 6f 74 54 72 61 6e | 73 6c 6f 63 61 74 65 28 | BotTran|slocate(|
|00000e10| 29 3b 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |);....si|mulated |
|00000e20| 66 75 6e 63 74 69 6f 6e | 20 48 69 74 57 61 6c 6c |function| HitWall|
|00000e30| 28 20 76 65 63 74 6f 72 | 20 48 69 74 4e 6f 72 6d |( vector| HitNorm|
|00000e40| 61 6c 2c 20 61 63 74 6f | 72 20 57 61 6c 6c 20 29 |al, acto|r Wall )|
|00000e50| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 43 54 46 42 |..{...lo|cal CTFB|
|00000e60| 61 73 65 20 42 3b 0d 0a | 0d 0a 20 20 20 20 62 43 |ase B;..|.. bC|
|00000e70| 61 6e 48 69 74 4f 77 6e | 65 72 20 3d 20 74 72 75 |anHitOwn|er = tru|
|00000e80| 65 3b 0d 0a 0d 0a 09 56 | 65 6c 6f 63 69 74 79 20 |e;.....V|elocity |
|00000e90| 3d 20 30 2e 33 2a 28 28 | 20 56 65 6c 6f 63 69 74 |= 0.3*((| Velocit|
|00000ea0| 79 20 64 6f 74 20 48 69 | 74 4e 6f 72 6d 61 6c 20 |y dot Hi|tNormal |
|00000eb0| 29 20 2a 20 48 69 74 4e | 6f 72 6d 61 6c 20 2a 20 |) * HitN|ormal * |
|00000ec0| 28 2d 32 2e 30 29 20 2b | 20 56 65 6c 6f 63 69 74 |(-2.0) +| Velocit|
|00000ed0| 79 29 3b 20 20 20 2f 2f | 20 52 65 66 6c 65 63 74 |y); //| Reflect|
|00000ee0| 20 6f 66 66 20 57 61 6c | 6c 20 77 2f 64 61 6d 70 | off Wal|l w/damp|
|00000ef0| 69 6e 67 0d 0a 09 53 70 | 65 65 64 20 3d 20 56 53 |ing...Sp|eed = VS|
|00000f00| 69 7a 65 28 56 65 6c 6f | 63 69 74 79 29 3b 0d 0a |ize(Velo|city);..|
|00000f10| 0d 0a 09 69 66 20 28 20 | 53 70 65 65 64 20 3c 20 |...if ( |Speed < |
|00000f20| 31 30 30 20 29 0d 0a 09 | 7b 0d 0a 09 09 46 6f 72 |100 )...|{....For|
|00000f30| 45 61 63 68 20 54 6f 75 | 63 68 69 6e 67 41 63 74 |Each Tou|chingAct|
|00000f40| 6f 72 73 28 63 6c 61 73 | 73 27 43 54 46 42 61 73 |ors(clas|s'CTFBas|
|00000f50| 65 27 2c 20 42 29 0d 0a | 09 09 09 62 72 65 61 6b |e', B)..|...break|
|00000f60| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 20 42 20 21 3d |;......i|f ( B !=|
|00000f70| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 7b 0d 0a 09 09 | None ).|...{....|
|00000f80| 09 53 70 65 65 64 20 3d | 20 56 53 69 7a 65 28 56 |.Speed =| VSize(V|
|00000f90| 65 6c 6f 63 69 74 79 29 | 3b 0d 0a 09 09 09 69 66 |elocity)|;.....if|
|00000fa0| 20 28 20 53 70 65 65 64 | 20 3c 20 31 30 30 20 29 | ( Speed| < 100 )|
|00000fb0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 53 70 65 65 |.....{..|....Spee|
|00000fc0| 64 20 3d 20 39 30 3b 0d | 0a 09 09 09 09 56 65 6c |d = 90;.|.....Vel|
|00000fd0| 6f 63 69 74 79 20 3d 20 | 39 30 20 2a 20 4e 6f 72 |ocity = |90 * Nor|
|00000fe0| 6d 61 6c 28 56 65 6c 6f | 63 69 74 79 29 3b 0d 0a |mal(Velo|city);..|
|00000ff0| 09 09 09 7d 0d 0a 09 09 | 09 44 69 73 72 75 70 74 |...}....|.Disrupt|
|00001000| 69 6f 6e 20 2b 3d 20 35 | 3b 0d 0a 09 09 09 69 66 |ion += 5|;.....if|
|00001010| 20 28 20 44 69 73 72 75 | 70 74 6f 72 20 3d 3d 20 | ( Disru|ptor == |
|00001020| 4e 6f 6e 65 20 29 0d 0a | 09 09 09 09 44 69 73 72 |None )..|....Disr|
|00001030| 75 70 74 6f 72 20 3d 20 | 49 6e 73 74 69 67 61 74 |uptor = |Instigat|
|00001040| 6f 72 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 0d 0a |or;....}|...}....|
|00001050| 0d 0a 09 69 66 20 28 20 | 53 70 65 65 64 20 3c 20 |...if ( |Speed < |
|00001060| 32 30 20 26 26 20 57 61 | 6c 6c 2e 62 57 6f 72 6c |20 && Wa|ll.bWorl|
|00001070| 64 47 65 6f 6d 65 74 72 | 79 20 26 26 20 28 48 69 |dGeometr|y && (Hi|
|00001080| 74 4e 6f 72 6d 61 6c 2e | 5a 20 3e 3d 20 30 2e 37 |tNormal.|Z >= 0.7|
|00001090| 29 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |) )...{.|...if ( |
|000010a0| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 21 3d |Level.Ne|tMode !=|
|000010b0| 20 4e 4d 5f 44 65 64 69 | 63 61 74 65 64 53 65 72 | NM_Dedi|catedSer|
|000010c0| 76 65 72 20 29 0d 0a 09 | 09 09 50 6c 61 79 53 6f |ver )...|..PlaySo|
|000010d0| 75 6e 64 28 49 6d 70 61 | 63 74 53 6f 75 6e 64 2c |und(Impa|ctSound,|
|000010e0| 20 53 4c 4f 54 5f 4d 69 | 73 63 20 29 3b 0d 0a 09 | SLOT_Mi|sc );...|
|000010f0| 09 62 42 6f 75 6e 63 65 | 20 3d 20 66 61 6c 73 65 |.bBounce| = false|
|00001100| 3b 0d 0a 09 09 53 65 74 | 50 68 79 73 69 63 73 28 |;....Set|Physics(|
|00001110| 50 48 59 53 5f 4e 6f 6e | 65 29 3b 0d 0a 0d 0a 09 |PHYS_Non|e);.....|
|00001120| 09 69 66 20 28 54 72 61 | 69 6c 20 21 3d 20 4e 6f |.if (Tra|il != No|
|00001130| 6e 65 29 0d 0a 09 09 09 | 54 72 61 69 6c 2e 6d 52 |ne).....|Trail.mR|
|00001140| 65 67 65 6e 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 0d |egen = f|alse;...|
|00001150| 0a 09 09 69 66 20 28 20 | 28 4c 65 76 65 6c 2e 4e |...if ( |(Level.N|
|00001160| 65 74 4d 6f 64 65 20 21 | 3d 20 4e 4d 5f 44 65 64 |etMode !|= NM_Ded|
|00001170| 69 63 61 74 65 64 53 65 | 72 76 65 72 29 20 26 26 |icatedSe|rver) &&|
|00001180| 20 28 46 6c 61 72 65 20 | 3d 3d 20 4e 6f 6e 65 29 | (Flare |== None)|
|00001190| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 46 6c 61 72 | )....{.|....Flar|
|000011a0| 65 20 3d 20 53 70 61 77 | 6e 28 54 72 61 6e 73 46 |e = Spaw|n(TransF|
|000011b0| 6c 61 72 65 43 6c 61 73 | 73 2c 20 73 65 6c 66 2c |lareClas|s, self,|
|000011c0| 2c 20 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 76 65 63 |, Locati|on - vec|
|000011d0| 74 28 30 2c 30 2c 35 29 | 2c 20 72 6f 74 28 31 36 |t(0,0,5)|, rot(16|
|000011e0| 33 38 34 2c 30 2c 30 29 | 29 3b 0d 0a 09 09 09 46 |384,0,0)|);.....F|
|000011f0| 6c 61 72 65 2e 53 65 74 | 42 61 73 65 28 73 65 6c |lare.Set|Base(sel|
|00001200| 66 29 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 0d |f);....}|...}..}.|
|00001210| 0a 0d 0a 2f 2f 20 41 49 | 20 49 6e 74 65 72 66 61 |...// AI| Interfa|
|00001220| 63 65 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 53 65 74 |ce..func|tion Set|
|00001230| 54 72 61 6e 73 6c 6f 63 | 61 74 69 6f 6e 54 61 72 |Transloc|ationTar|
|00001240| 67 65 74 28 61 63 74 6f | 72 20 54 29 0d 0a 7b 0d |get(acto|r T)..{.|
|00001250| 0a 09 54 72 61 6e 73 6c | 6f 63 61 74 69 6f 6e 54 |..Transl|ocationT|
|00001260| 61 72 67 65 74 20 3d 20 | 54 3b 0d 0a 09 47 6f 74 |arget = |T;...Got|
|00001270| 6f 53 74 61 74 65 28 27 | 4d 6f 6e 69 74 6f 72 69 |oState('|Monitori|
|00001280| 6e 67 54 68 72 6f 77 27 | 29 3b 0d 0a 7d 0d 0a 0d |ngThrow'|);..}...|
|00001290| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 49 |.functio|n bool I|
|000012a0| 73 4d 6f 6e 69 74 6f 72 | 69 6e 67 28 61 63 74 6f |sMonitor|ing(acto|
|000012b0| 72 20 41 29 0d 0a 7b 0d | 0a 09 72 65 74 75 72 6e |r A)..{.|..return|
|000012c0| 20 66 61 6c 73 65 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 | false;.|.}....fu|
|000012d0| 6e 63 74 69 6f 6e 20 45 | 6e 64 4d 6f 6e 69 74 6f |nction E|ndMonito|
|000012e0| 72 69 6e 67 28 29 3b 0d | 0a 0d 0a 53 74 61 74 65 |ring();.|...State|
|000012f0| 20 4d 6f 6e 69 74 6f 72 | 69 6e 67 54 68 72 6f 77 | Monitor|ingThrow|
|00001300| 0d 0a 7b 0d 0a 09 66 75 | 6e 63 74 69 6f 6e 20 62 |..{...fu|nction b|
|00001310| 6f 6f 6c 20 49 73 4d 6f | 6e 69 74 6f 72 69 6e 67 |ool IsMo|nitoring|
|00001320| 28 61 63 74 6f 72 20 41 | 29 0d 0a 09 7b 0d 0a 09 |(actor A|)...{...|
|00001330| 09 72 65 74 75 72 6e 20 | 28 20 41 20 3d 3d 20 54 |.return |( A == T|
|00001340| 72 61 6e 73 6c 6f 63 61 | 74 69 6f 6e 54 61 72 67 |ransloca|tionTarg|
|00001350| 65 74 20 29 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 66 75 |et );...|}.....fu|
|00001360| 6e 63 74 69 6f 6e 20 44 | 65 73 74 72 6f 79 65 64 |nction D|estroyed|
|00001370| 28 29 0d 0a 09 7b 0d 0a | 09 09 6c 6f 63 61 6c 20 |()...{..|..local |
|00001380| 42 6f 74 20 42 3b 0d 0a | 0d 0a 09 09 42 20 3d 20 |Bot B;..|....B = |
|00001390| 42 6f 74 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 43 |Bot(Inst|igator.C|
|000013a0| 6f 6e 74 72 6f 6c 6c 65 | 72 29 3b 0d 0a 09 09 69 |ontrolle|r);....i|
|000013b0| 66 20 28 20 42 20 21 3d | 20 4e 6f 6e 65 20 29 0d |f ( B !=| None ).|
|000013c0| 0a 09 09 7b 0d 0a 09 09 | 09 42 2e 54 72 61 6e 73 |...{....|.B.Trans|
|000013d0| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 20 3d |location|Target =|
|000013e0| 20 4e 6f 6e 65 3b 0d 0a | 09 09 09 42 2e 52 65 61 | None;..|...B.Rea|
|000013f0| 6c 54 72 61 6e 73 6c 6f | 63 61 74 69 6f 6e 54 61 |lTranslo|cationTa|
|00001400| 72 67 65 74 20 3d 20 4e | 6f 6e 65 3b 0d 0a 09 09 |rget = N|one;....|
|00001410| 09 42 2e 62 50 72 65 70 | 61 72 69 6e 67 4d 6f 76 |.B.bPrep|aringMov|
|00001420| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 42 |e = fals|e;.....B|
|00001430| 2e 53 77 69 74 63 68 54 | 6f 42 65 73 74 57 65 61 |.SwitchT|oBestWea|
|00001440| 70 6f 6e 28 29 3b 0d 0a | 09 09 7d 0d 0a 09 09 47 |pon();..|..}....G|
|00001450| 6c 6f 62 61 6c 2e 44 65 | 73 74 72 6f 79 65 64 28 |lobal.De|stroyed(|
|00001460| 29 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 66 75 6e 63 74 |);...}..|...funct|
|00001470| 69 6f 6e 20 45 6e 64 4d | 6f 6e 69 74 6f 72 69 6e |ion EndM|onitorin|
|00001480| 67 28 29 0d 0a 09 7b 0d | 0a 09 09 47 6f 74 6f 53 |g()...{.|...GotoS|
|00001490| 74 61 74 65 28 27 27 29 | 3b 0d 0a 09 7d 0d 0a 0d |tate('')|;...}...|
|000014a0| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 45 6e 64 53 74 |..functi|on EndSt|
|000014b0| 61 74 65 28 29 0d 0a 09 | 7b 0d 0a 09 09 6c 6f 63 |ate()...|{....loc|
|000014c0| 61 6c 20 42 6f 74 20 42 | 3b 0d 0a 0d 0a 09 09 42 |al Bot B|;......B|
|000014d0| 20 3d 20 42 6f 74 28 49 | 6e 73 74 69 67 61 74 6f | = Bot(I|nstigato|
|000014e0| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 29 3b 0d 0a |r.Contro|ller);..|
|000014f0| 09 09 69 66 20 28 20 28 | 42 20 21 3d 20 4e 6f 6e |..if ( (|B != Non|
|00001500| 65 29 20 26 26 20 21 62 | 4e 6f 41 49 20 29 0d 0a |e) && !b|NoAI )..|
|00001510| 09 09 7b 0d 0a 09 09 09 | 42 2e 54 72 61 6e 73 6c |..{.....|B.Transl|
|00001520| 6f 63 61 74 69 6f 6e 54 | 61 72 67 65 74 20 3d 20 |ocationT|arget = |
|00001530| 4e 6f 6e 65 3b 0d 0a 09 | 09 09 42 2e 52 65 61 6c |None;...|..B.Real|
|00001540| 54 72 61 6e 73 6c 6f 63 | 61 74 69 6f 6e 54 61 72 |Transloc|ationTar|
|00001550| 67 65 74 20 3d 20 4e 6f | 6e 65 3b 0d 0a 09 09 09 |get = No|ne;.....|
|00001560| 42 2e 62 50 72 65 70 61 | 72 69 6e 67 4d 6f 76 65 |B.bPrepa|ringMove|
|00001570| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 09 09 09 42 2e | = false|;.....B.|
|00001580| 53 77 69 74 63 68 54 6f | 42 65 73 74 57 65 61 70 |SwitchTo|BestWeap|
|00001590| 6f 6e 28 29 3b 0d 0a 09 | 09 7d 0d 0a 09 7d 0d 0a |on();...|.}...}..|
|000015a0| 0d 0a 09 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |...simul|ated fun|
|000015b0| 63 74 69 6f 6e 20 48 69 | 74 57 61 6c 6c 28 20 76 |ction Hi|tWall( v|
|000015c0| 65 63 74 6f 72 20 48 69 | 74 4e 6f 72 6d 61 6c 2c |ector Hi|tNormal,|
|000015d0| 20 61 63 74 6f 72 20 57 | 61 6c 6c 20 29 0d 0a 09 | actor W|all )...|
|000015e0| 7b 0d 0a 09 09 47 6c 6f | 62 61 6c 2e 48 69 74 57 |{....Glo|bal.HitW|
|000015f0| 61 6c 6c 28 48 69 74 4e | 6f 72 6d 61 6c 2c 57 61 |all(HitN|ormal,Wa|
|00001600| 6c 6c 29 3b 0d 0a 09 09 | 69 66 20 28 20 28 47 61 |ll);....|if ( (Ga|
|00001610| 6d 65 4f 62 6a 65 63 74 | 28 54 72 61 6e 73 6c 6f |meObject|(Translo|
|00001620| 63 61 74 69 6f 6e 54 61 | 72 67 65 74 29 20 21 3d |cationTa|rget) !=|
|00001630| 20 4e 6f 6e 65 29 20 26 | 26 20 28 48 69 74 4e 6f | None) &|& (HitNo|
|00001640| 72 6d 61 6c 2e 5a 20 3e | 20 30 2e 37 29 0d 0a 09 |rmal.Z >| 0.7)...|
|00001650| 09 09 09 26 26 20 28 56 | 53 69 7a 65 28 4c 6f 63 |...&& (V|Size(Loc|
|00001660| 61 74 69 6f 6e 20 2d 20 | 54 72 61 6e 73 6c 6f 63 |ation - |Transloc|
|00001670| 61 74 69 6f 6e 54 61 72 | 67 65 74 2e 4c 6f 63 61 |ationTar|get.Loca|
|00001680| 74 69 6f 6e 29 20 3c 20 | 46 4d 69 6e 28 34 30 30 |tion) < |FMin(400|
|00001690| 2c 20 56 53 69 7a 65 28 | 49 6e 73 74 69 67 61 74 |, VSize(|Instigat|
|000016a0| 6f 72 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 54 72 |or.Locat|ion - Tr|
|000016b0| 61 6e 73 6c 6f 63 61 74 | 69 6f 6e 54 61 72 67 65 |anslocat|ionTarge|
|000016c0| 74 2e 4c 6f 63 61 74 69 | 6f 6e 29 29 29 20 29 0d |t.Locati|on))) ).|
|000016d0| 0a 09 09 7b 0d 0a 09 09 | 09 49 6e 73 74 69 67 61 |...{....|.Instiga|
|000016e0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 4d |tor.Cont|roller.M|
|000016f0| 6f 76 65 54 61 72 67 65 | 74 20 3d 20 54 72 61 6e |oveTarge|t = Tran|
|00001700| 73 6c 6f 63 61 74 69 6f | 6e 54 61 72 67 65 74 3b |slocatio|nTarget;|
|00001710| 0d 0a 09 09 09 42 6f 74 | 54 72 61 6e 73 6c 6f 63 |.....Bot|Transloc|
|00001720| 61 74 65 28 29 3b 0d 0a | 09 09 09 72 65 74 75 72 |ate();..|...retur|
|00001730| 6e 3b 0d 0a 09 09 7d 0d | 0a 0d 0a 09 09 69 66 20 |n;....}.|.....if |
|00001740| 28 20 50 68 79 73 69 63 | 73 20 3d 3d 20 50 48 59 |( Physic|s == PHY|
|00001750| 53 5f 4e 6f 6e 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |S_None )|....{...|
|00001760| 09 09 69 66 20 28 20 28 | 42 6f 74 28 49 6e 73 74 |..if ( (|Bot(Inst|
|00001770| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00001780| 72 29 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 42 |r) != No|ne) && B|
|00001790| 6f 74 28 49 6e 73 74 69 | 67 61 74 6f 72 2e 43 6f |ot(Insti|gator.Co|
|000017a0| 6e 74 72 6f 6c 6c 65 72 | 29 2e 62 50 72 65 70 61 |ntroller|).bPrepa|
|000017b0| 72 69 6e 67 4d 6f 76 65 | 20 29 0d 0a 09 09 09 7b |ringMove| ).....{|
|000017c0| 0d 0a 09 09 09 09 42 6f | 74 28 49 6e 73 74 69 67 |......Bo|t(Instig|
|000017d0| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 29 |ator.Con|troller)|
|000017e0| 2e 4d 6f 76 65 54 69 6d | 65 72 20 3d 20 2d 31 3b |.MoveTim|er = -1;|
|000017f0| 0d 0a 09 09 09 09 69 66 | 20 28 20 28 4a 75 6d 70 |......if| ( (Jump|
|00001800| 53 70 6f 74 28 54 72 61 | 6e 73 6c 6f 63 61 74 69 |Spot(Tra|nslocati|
|00001810| 6f 6e 54 61 72 67 65 74 | 29 20 21 3d 20 4e 6f 6e |onTarget|) != Non|
|00001820| 65 29 20 26 26 20 28 49 | 6e 73 74 69 67 61 74 6f |e) && (I|nstigato|
|00001830| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 4d 6f 76 |r.Contro|ller.Mov|
|00001840| 65 54 61 72 67 65 74 20 | 3d 3d 20 54 72 61 6e 73 |eTarget |== Trans|
|00001850| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 29 20 |location|Target) |
|00001860| 29 0d 0a 09 09 09 09 09 | 4a 75 6d 70 53 70 6f 74 |).......|JumpSpot|
|00001870| 28 54 72 61 6e 73 6c 6f | 63 61 74 69 6f 6e 54 61 |(Translo|cationTa|
|00001880| 72 67 65 74 29 2e 46 65 | 61 72 43 6f 73 74 20 2b |rget).Fe|arCost +|
|00001890| 3d 20 39 30 30 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |= 900;..|...}....|
|000018a0| 09 45 6e 64 4d 6f 6e 69 | 74 6f 72 69 6e 67 28 29 |.EndMoni|toring()|
|000018b0| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 0d 0a 09 66 |;....}..|.}.....f|
|000018c0| 75 6e 63 74 69 6f 6e 20 | 42 6f 74 54 72 61 6e 73 |unction |BotTrans|
|000018d0| 6c 6f 63 61 74 65 28 29 | 0d 0a 09 7b 0d 0a 09 09 |locate()|...{....|
|000018e0| 69 66 20 28 20 54 72 61 | 6e 73 4c 61 75 6e 63 68 |if ( Tra|nsLaunch|
|000018f0| 65 72 28 49 6e 73 74 69 | 67 61 74 6f 72 2e 57 65 |er(Insti|gator.We|
|00001900| 61 70 6f 6e 29 20 21 3d | 20 4e 6f 6e 65 20 29 0d |apon) !=| None ).|
|00001910| 0a 09 09 09 49 6e 73 74 | 69 67 61 74 6f 72 2e 57 |....Inst|igator.W|
|00001920| 65 61 70 6f 6e 2e 47 65 | 74 46 69 72 65 4d 6f 64 |eapon.Ge|tFireMod|
|00001930| 65 28 31 29 2e 44 6f 46 | 69 72 65 45 66 66 65 63 |e(1).DoF|ireEffec|
|00001940| 74 28 29 3b 0d 0a 09 09 | 45 6e 64 4d 6f 6e 69 74 |t();....|EndMonit|
|00001950| 6f 72 69 6e 67 28 29 3b | 0d 0a 09 7d 0d 0a 0d 0a |oring();|...}....|
|00001960| 09 66 75 6e 63 74 69 6f | 6e 20 54 6f 75 63 68 28 |.functio|n Touch(|
|00001970| 41 63 74 6f 72 20 4f 74 | 68 65 72 29 0d 0a 09 7b |Actor Ot|her)...{|
|00001980| 0d 0a 09 09 6c 6f 63 61 | 6c 20 50 61 77 6e 20 50 |....loca|l Pawn P|
|00001990| 3b 0d 0a 0d 0a 09 09 50 | 20 3d 20 50 61 77 6e 28 |;......P| = Pawn(|
|000019a0| 4f 74 68 65 72 29 3b 0d | 0a 09 09 69 66 20 28 20 |Other);.|...if ( |
|000019b0| 28 50 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |(P == No|ne) || (|
|000019c0| 50 20 3d 3d 20 49 6e 73 | 74 69 67 61 74 6f 72 29 |P == Ins|tigator)|
|000019d0| 20 29 0d 0a 09 09 09 72 | 65 74 75 72 6e 3b 0d 0a | ).....r|eturn;..|
|000019e0| 09 09 50 72 6f 63 65 73 | 73 54 6f 75 63 68 28 20 |..Proces|sTouch( |
|000019f0| 4f 74 68 65 72 2c 20 4c | 6f 63 61 74 69 6f 6e 20 |Other, L|ocation |
|00001a00| 29 3b 0d 0a 09 09 69 66 | 20 28 20 28 42 6f 74 28 |);....if| ( (Bot(|
|00001a10| 50 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 29 20 3d 3d |P.Contro|ller) ==|
|00001a20| 20 4e 6f 6e 65 29 20 7c | 7c 20 4c 65 76 65 6c 2e | None) ||| Level.|
|00001a30| 47 61 6d 65 2e 49 73 4f | 6e 54 65 61 6d 28 50 2e |Game.IsO|nTeam(P.|
|00001a40| 43 6f 6e 74 72 6f 6c 6c | 65 72 2c 49 6e 73 74 69 |Controll|er,Insti|
|00001a50| 67 61 74 6f 72 2e 50 6c | 61 79 65 72 52 65 70 6c |gator.Pl|ayerRepl|
|00001a60| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00001a70| 2e 54 65 61 6d 49 6e 64 | 65 78 29 20 29 0d 0a 09 |.TeamInd|ex) )...|
|00001a80| 09 7b 0d 0a 09 09 09 45 | 6e 64 4d 6f 6e 69 74 6f |.{.....E|ndMonito|
|00001a90| 72 69 6e 67 28 29 3b 0d | 0a 09 09 09 72 65 74 75 |ring();.|....retu|
|00001aa0| 72 6e 3b 0d 0a 09 09 7d | 0d 0a 09 09 69 66 20 28 |rn;....}|....if (|
|00001ab0| 20 42 6f 74 28 50 2e 43 | 6f 6e 74 72 6f 6c 6c 65 | Bot(P.C|ontrolle|
|00001ac0| 72 29 2e 50 72 6f 66 69 | 63 69 65 6e 74 57 69 74 |r).Profi|cientWit|
|00001ad0| 68 57 65 61 70 6f 6e 28 | 29 20 26 26 20 28 32 20 |hWeapon(|) && (2 |
|00001ae0| 2b 20 46 52 61 6e 64 28 | 29 20 2a 20 38 20 3c 20 |+ FRand(|) * 8 < |
|00001af0| 42 6f 74 28 50 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |Bot(P.Co|ntroller|
|00001b00| 29 2e 53 6b 69 6c 6c 29 | 20 29 0d 0a 09 09 09 42 |).Skill)| ).....B|
|00001b10| 6f 74 54 72 61 6e 73 6c | 6f 63 61 74 65 28 29 3b |otTransl|ocate();|
|00001b20| 0d 0a 09 7d 0d 0a 0d 0a | 09 2f 2f 20 46 49 58 4d |...}....|.// FIXM|
|00001b30| 45 20 2d 20 63 6f 6e 73 | 69 64 65 72 20 6d 61 6b |E - cons|ider mak|
|00001b40| 69 6e 67 20 74 68 69 73 | 20 61 20 74 69 6d 65 72 |ing this| a timer|
|00001b50| 20 6f 72 20 70 72 6f 6a | 65 63 74 69 6c 65 20 6c | or proj|ectile l|
|00001b60| 61 74 65 6e 74 20 66 75 | 6e 63 74 69 6f 6e 20 69 |atent fu|nction i|
|00001b70| 6e 73 74 65 61 64 20 6f | 66 20 75 73 69 6e 67 20 |nstead o|f using |
|00001b80| 74 69 63 6b 3f 0d 0a 09 | 66 75 6e 63 74 69 6f 6e |tick?...|function|
|00001b90| 20 54 69 63 6b 28 66 6c | 6f 61 74 20 44 65 6c 74 | Tick(fl|oat Delt|
|00001ba0| 61 54 69 6d 65 29 0d 0a | 09 7b 0d 0a 09 09 6c 6f |aTime)..|.{....lo|
|00001bb0| 63 61 6c 20 76 65 63 74 | 6f 72 20 44 69 73 74 2c |cal vect|or Dist,|
|00001bc0| 20 44 69 72 2c 20 48 69 | 74 4c 6f 63 61 74 69 6f | Dir, Hi|tLocatio|
|00001bd0| 6e 2c 20 48 69 74 4e 6f | 72 6d 61 6c 3b 0d 0a 09 |n, HitNo|rmal;...|
|00001be0| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 5a 44 69 |.local f|loat ZDi|
|00001bf0| 66 66 2c 20 44 69 73 74 | 32 44 3b 0d 0a 09 09 6c |ff, Dist|2D;....l|
|00001c00| 6f 63 61 6c 20 61 63 74 | 6f 72 20 48 69 74 41 63 |ocal act|or HitAc|
|00001c10| 74 6f 72 3b 0d 0a 0d 0a | 09 09 69 66 20 28 20 28 |tor;....|..if ( (|
|00001c20| 54 72 61 6e 73 6c 6f 63 | 61 74 69 6f 6e 54 61 72 |Transloc|ationTar|
|00001c30| 67 65 74 20 3d 3d 20 4e | 6f 6e 65 29 20 7c 7c 20 |get == N|one) || |
|00001c40| 28 49 6e 73 74 69 67 61 | 74 6f 72 2e 43 6f 6e 74 |(Instiga|tor.Cont|
|00001c50| 72 6f 6c 6c 65 72 20 3d | 3d 20 4e 6f 6e 65 29 0d |roller =|= None).|
|00001c60| 0a 09 09 09 7c 7c 20 21 | 42 6f 74 28 49 6e 73 74 |....|| !|Bot(Inst|
|00001c70| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00001c80| 72 29 2e 53 71 75 61 64 | 2e 41 6c 6c 6f 77 54 72 |r).Squad|.AllowTr|
|00001c90| 61 6e 73 6c 6f 63 61 74 | 69 6f 6e 42 79 28 42 6f |anslocat|ionBy(Bo|
|00001ca0| 74 28 49 6e 73 74 69 67 | 61 74 6f 72 2e 43 6f 6e |t(Instig|ator.Con|
|00001cb0| 74 72 6f 6c 6c 65 72 29 | 29 0d 0a 09 09 09 7c 7c |troller)|).....|||
|00001cc0| 20 28 28 47 61 6d 65 4f | 62 6a 65 63 74 28 49 6e | ((GameO|bject(In|
|00001cd0| 73 74 69 67 61 74 6f 72 | 2e 43 6f 6e 74 72 6f 6c |stigator|.Control|
|00001ce0| 6c 65 72 2e 4d 6f 76 65 | 54 61 72 67 65 74 29 20 |ler.Move|Target) |
|00001cf0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 28 49 6e 73 |!= None)| && (Ins|
|00001d00| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00001d10| 65 72 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 21 3d |er.MoveT|arget !=|
|00001d20| 20 54 72 61 6e 73 6c 6f | 63 61 74 69 6f 6e 54 61 | Translo|cationTa|
|00001d30| 72 67 65 74 29 29 0d 0a | 09 09 09 7c 7c 20 28 28 |rget))..|...|| ((|
|00001d40| 54 72 61 6e 73 6c 6f 63 | 61 74 69 6f 6e 54 61 72 |Transloc|ationTar|
|00001d50| 67 65 74 20 21 3d 20 49 | 6e 73 74 69 67 61 74 6f |get != I|nstigato|
|00001d60| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 4d 6f 76 |r.Contro|ller.Mov|
|00001d70| 65 54 61 72 67 65 74 29 | 0d 0a 09 09 09 09 26 26 |eTarget)|......&&|
|00001d80| 20 28 54 72 61 6e 73 6c | 6f 63 61 74 69 6f 6e 54 | (Transl|ocationT|
|00001d90| 61 72 67 65 74 20 21 3d | 20 49 6e 73 74 69 67 61 |arget !=| Instiga|
|00001da0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 52 |tor.Cont|roller.R|
|00001db0| 6f 75 74 65 47 6f 61 6c | 29 0d 0a 09 09 09 09 26 |outeGoal|)......&|
|00001dc0| 26 20 28 54 72 61 6e 73 | 6c 6f 63 61 74 69 6f 6e |& (Trans|location|
|00001dd0| 54 61 72 67 65 74 20 21 | 3d 20 49 6e 73 74 69 67 |Target !|= Instig|
|00001de0| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |ator.Con|troller.|
|00001df0| 52 6f 75 74 65 43 61 63 | 68 65 5b 30 5d 29 0d 0a |RouteCac|he[0])..|
|00001e00| 09 09 09 09 26 26 20 28 | 54 72 61 6e 73 6c 6f 63 |....&& (|Transloc|
|00001e10| 61 74 69 6f 6e 54 61 72 | 67 65 74 20 21 3d 20 49 |ationTar|get != I|
|00001e20| 6e 73 74 69 67 61 74 6f | 72 2e 43 6f 6e 74 72 6f |nstigato|r.Contro|
|00001e30| 6c 6c 65 72 2e 52 6f 75 | 74 65 43 61 63 68 65 5b |ller.Rou|teCache[|
|00001e40| 31 5d 29 0d 0a 09 09 09 | 09 26 26 20 28 54 72 61 |1]).....|.&& (Tra|
|00001e50| 6e 73 6c 6f 63 61 74 69 | 6f 6e 54 61 72 67 65 74 |nslocati|onTarget|
|00001e60| 20 21 3d 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 43 | != Inst|igator.C|
|00001e70| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 52 6f 75 74 65 43 |ontrolle|r.RouteC|
|00001e80| 61 63 68 65 5b 32 5d 29 | 0d 0a 09 09 09 09 26 26 |ache[2])|......&&|
|00001e90| 20 28 54 72 61 6e 73 6c | 6f 63 61 74 69 6f 6e 54 | (Transl|ocationT|
|00001ea0| 61 72 67 65 74 20 21 3d | 20 49 6e 73 74 69 67 61 |arget !=| Instiga|
|00001eb0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 52 |tor.Cont|roller.R|
|00001ec0| 6f 75 74 65 43 61 63 68 | 65 5b 33 5d 29 29 20 29 |outeCach|e[3])) )|
|00001ed0| 0d 0a 09 09 7b 0d 0a 09 | 09 09 45 6e 64 4d 6f 6e |....{...|..EndMon|
|00001ee0| 69 74 6f 72 69 6e 67 28 | 29 3b 0d 0a 09 09 09 72 |itoring(|);.....r|
|00001ef0| 65 74 75 72 6e 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 09 |eturn;..|..}.....|
|00001f00| 09 44 69 73 74 20 3d 20 | 4c 6f 63 61 74 69 6f 6e |.Dist = |Location|
|00001f10| 20 2d 20 54 72 61 6e 73 | 6c 6f 63 61 74 69 6f 6e | - Trans|location|
|00001f20| 54 61 72 67 65 74 2e 4c | 6f 63 61 74 69 6f 6e 3b |Target.L|ocation;|
|00001f30| 0d 0a 09 09 5a 44 69 66 | 66 20 3d 20 44 69 73 74 |....ZDif|f = Dist|
|00001f40| 2e 5a 3b 0d 0a 09 09 44 | 69 73 74 2e 5a 20 3d 20 |.Z;....D|ist.Z = |
|00001f50| 30 3b 0d 0a 09 09 44 69 | 72 20 3d 20 54 72 61 6e |0;....Di|r = Tran|
|00001f60| 73 6c 6f 63 61 74 69 6f | 6e 54 61 72 67 65 74 2e |slocatio|nTarget.|
|00001f70| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 49 6e 73 74 69 |Location| - Insti|
|00001f80| 67 61 74 6f 72 2e 4c 6f | 63 61 74 69 6f 6e 3b 0d |gator.Lo|cation;.|
|00001f90| 0a 09 09 44 69 72 2e 5a | 20 3d 20 30 3b 0d 0a 09 |...Dir.Z| = 0;...|
|00001fa0| 09 44 69 73 74 32 44 20 | 3d 20 56 53 69 7a 65 28 |.Dist2D |= VSize(|
|00001fb0| 44 69 73 74 29 3b 0d 0a | 09 09 69 66 20 28 20 44 |Dist);..|..if ( D|
|00001fc0| 69 73 74 32 44 20 3c 20 | 54 72 61 6e 73 6c 6f 63 |ist2D < |Transloc|
|00001fd0| 61 74 69 6f 6e 54 61 72 | 67 65 74 2e 43 6f 6c 6c |ationTar|get.Coll|
|00001fe0| 69 73 69 6f 6e 52 61 64 | 69 75 73 20 29 0d 0a 09 |isionRad|ius )...|
|00001ff0| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 5a 44 69 66 |.{.....i|f ( ZDif|
|00002000| 66 20 3e 20 2d 30 2e 39 | 20 2a 20 54 72 61 6e 73 |f > -0.9| * Trans|
|00002010| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 2e 43 |location|Target.C|
|00002020| 6f 6c 6c 69 73 69 6f 6e | 48 65 69 67 68 74 20 29 |ollision|Height )|
|00002030| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 49 6e 73 74 |.....{..|....Inst|
|00002040| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00002050| 72 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 3d 20 54 |r.MoveTa|rget = T|
|00002060| 72 61 6e 73 6c 6f 63 61 | 74 69 6f 6e 54 61 72 67 |ransloca|tionTarg|
|00002070| 65 74 3b 0d 0a 09 09 09 | 09 42 6f 74 54 72 61 6e |et;.....|.BotTran|
|00002080| 73 6c 6f 63 61 74 65 28 | 29 3b 0d 0a 09 09 09 7d |slocate(|);.....}|
|00002090| 0d 0a 09 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 09 |.....ret|urn;....|
|000020a0| 7d 0d 0a 09 09 44 69 72 | 20 3d 20 54 72 61 6e 73 |}....Dir| = Trans|
|000020b0| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 2e 4c |location|Target.L|
|000020c0| 6f 63 61 74 69 6f 6e 20 | 2d 20 49 6e 73 74 69 67 |ocation |- Instig|
|000020d0| 61 74 6f 72 2e 4c 6f 63 | 61 74 69 6f 6e 3b 0d 0a |ator.Loc|ation;..|
|000020e0| 09 09 44 69 72 2e 5a 20 | 3d 20 30 3b 0d 0a 09 09 |..Dir.Z |= 0;....|
|000020f0| 69 66 20 28 20 28 44 69 | 73 74 20 44 6f 74 20 44 |if ( (Di|st Dot D|
|00002100| 69 72 29 20 3e 20 30 20 | 29 0d 0a 09 09 7b 0d 0a |ir) > 0 |)....{..|
|00002110| 09 09 09 69 66 20 28 20 | 28 42 6f 74 28 49 6e 73 |...if ( |(Bot(Ins|
|00002120| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00002130| 65 72 29 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |er) != N|one) && |
|00002140| 42 6f 74 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 43 |Bot(Inst|igator.C|
|00002150| 6f 6e 74 72 6f 6c 6c 65 | 72 29 2e 62 50 72 65 70 |ontrolle|r).bPrep|
|00002160| 61 72 69 6e 67 4d 6f 76 | 65 20 29 0d 0a 09 09 09 |aringMov|e ).....|
|00002170| 09 7b 0d 0a 09 09 09 09 | 09 42 6f 74 28 49 6e 73 |.{......|.Bot(Ins|
|00002180| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00002190| 65 72 29 2e 4d 6f 76 65 | 54 69 6d 65 72 20 3d 20 |er).Move|Timer = |
|000021a0| 2d 31 3b 0d 0a 09 09 09 | 09 09 69 66 20 28 20 28 |-1;.....|..if ( (|
|000021b0| 4a 75 6d 70 53 70 6f 74 | 28 54 72 61 6e 73 6c 6f |JumpSpot|(Translo|
|000021c0| 63 61 74 69 6f 6e 54 61 | 72 67 65 74 29 20 21 3d |cationTa|rget) !=|
|000021d0| 20 4e 6f 6e 65 29 20 26 | 26 20 28 49 6e 73 74 69 | None) &|& (Insti|
|000021e0| 67 61 74 6f 72 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |gator.Co|ntroller|
|000021f0| 2e 4d 6f 76 65 54 61 72 | 67 65 74 20 3d 3d 20 54 |.MoveTar|get == T|
|00002200| 72 61 6e 73 6c 6f 63 61 | 74 69 6f 6e 54 61 72 67 |ransloca|tionTarg|
|00002210| 65 74 29 20 29 0d 0a 09 | 09 09 09 09 4a 75 6d 70 |et) )...|....Jump|
|00002220| 53 70 6f 74 28 54 72 61 | 6e 73 6c 6f 63 61 74 69 |Spot(Tra|nslocati|
|00002230| 6f 6e 54 61 72 67 65 74 | 29 2e 46 65 61 72 43 6f |onTarget|).FearCo|
|00002240| 73 74 20 2b 3d 20 34 30 | 30 3b 0d 0a 09 09 09 7d |st += 40|0;.....}|
|00002250| 0d 0a 09 09 09 65 6c 73 | 65 20 69 66 20 28 20 28 |.....els|e if ( (|
|00002260| 47 61 6d 65 4f 62 6a 65 | 63 74 28 54 72 61 6e 73 |GameObje|ct(Trans|
|00002270| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 29 20 |location|Target) |
|00002280| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 28 5a 44 69 |!= None)| && (ZDi|
|00002290| 66 66 20 3e 20 30 29 20 | 26 26 20 28 44 69 73 74 |ff > 0) |&& (Dist|
|000022a0| 32 44 20 3c 20 46 4d 69 | 6e 28 34 30 30 2c 20 56 |2D < FMi|n(400, V|
|000022b0| 53 69 7a 65 28 49 6e 73 | 74 69 67 61 74 6f 72 2e |Size(Ins|tigator.|
|000022c0| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 54 72 61 6e 73 |Location| - Trans|
|000022d0| 6c 6f 63 61 74 69 6f 6e | 54 61 72 67 65 74 2e 4c |location|Target.L|
|000022e0| 6f 63 61 74 69 6f 6e 29 | 20 2d 20 32 35 30 29 29 |ocation)| - 250))|
|000022f0| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 2f 2f | ).....{|......//|
|00002300| 20 69 66 20 73 61 66 65 | 20 75 6e 64 65 72 6e 65 | if safe| underne|
|00002310| 61 74 68 2c 20 74 68 65 | 6e 20 74 72 61 6e 73 6c |ath, the|n transl|
|00002320| 6f 63 61 74 65 0d 0a 09 | 09 09 09 48 69 74 41 63 |ocate...|...HitAc|
|00002330| 74 6f 72 20 3d 20 54 72 | 61 63 65 28 48 69 74 4c |tor = Tr|ace(HitL|
|00002340| 6f 63 61 74 69 6f 6e 2c | 20 48 69 74 4e 6f 72 6d |ocation,| HitNorm|
|00002350| 61 6c 2c 20 4c 6f 63 61 | 74 69 6f 6e 20 2d 20 76 |al, Loca|tion - v|
|00002360| 65 63 74 28 30 2c 30 2c | 31 30 30 29 2c 20 4c 6f |ect(0,0,|100), Lo|
|00002370| 63 61 74 69 6f 6e 2c 20 | 66 61 6c 73 65 29 3b 0d |cation, |false);.|
|00002380| 0a 09 09 09 09 69 66 20 | 28 20 28 48 69 74 41 63 |.....if |( (HitAc|
|00002390| 74 6f 72 20 21 3d 20 4e | 6f 6e 65 29 20 26 26 20 |tor != N|one) && |
|000023a0| 28 48 69 74 4e 6f 72 6d | 61 6c 2e 5a 20 3e 20 30 |(HitNorm|al.Z > 0|
|000023b0| 2e 37 29 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |.7) )...|...{....|
|000023c0| 09 09 09 49 6e 73 74 69 | 67 61 74 6f 72 2e 43 6f |...Insti|gator.Co|
|000023d0| 6e 74 72 6f 6c 6c 65 72 | 2e 4d 6f 76 65 54 61 72 |ntroller|.MoveTar|
|000023e0| 67 65 74 20 3d 20 54 72 | 61 6e 73 6c 6f 63 61 74 |get = Tr|anslocat|
|000023f0| 69 6f 6e 54 61 72 67 65 | 74 3b 0d 0a 09 09 09 09 |ionTarge|t;......|
|00002400| 09 42 6f 74 54 72 61 6e | 73 6c 6f 63 61 74 65 28 |.BotTran|slocate(|
|00002410| 29 3b 0d 0a 09 09 09 09 | 09 72 65 74 75 72 6e 3b |);......|.return;|
|00002420| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 7d 0d 0a 09 |......}.|....}...|
|00002430| 09 09 45 6e 64 4d 6f 6e | 69 74 6f 72 69 6e 67 28 |..EndMon|itoring(|
|00002440| 29 3b 0d 0a 09 09 09 72 | 65 74 75 72 6e 3b 0d 0a |);.....r|eturn;..|
|00002450| 09 09 7d 0d 0a 09 7d 0d | 0a 7d 0d 0a 2f 2f 20 45 |..}...}.|.}..// E|
|00002460| 4e 44 20 41 49 20 69 6e | 74 65 72 66 61 63 65 0d |ND AI in|terface.|
|00002470| 0a 0d 0a 00 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+