home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-12-22 | 10.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 53 a8 01 2f 2f 3d 3d 3d |........|S..//===|
|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 0d 0a 2f 2f 20 48 |========|==..// H|
|00000060| 75 6e 74 65 72 2d 4d 6f | 72 65 20 50 61 73 73 69 |unter-Mo|re Passi|
|00000070| 76 65 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |ve..//==|========|
|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 0d 0a 63 6c 61 | 73 73 20 55 45 54 46 48 |===..cla|ss UETFH|
|000000d0| 75 6e 74 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |unterCon|troller |
|000000e0| 65 78 74 65 6e 64 73 20 | 55 45 54 46 53 65 6e 74 |extends |UETFSent|
|000000f0| 69 6e 65 6c 43 6f 6e 74 | 72 6f 6c 6c 65 72 3b 0d |inelCont|roller;.|
|00000100| 0a 0d 0a 76 61 72 20 47 | 72 6f 75 70 50 6f 69 6e |...var G|roupPoin|
|00000110| 74 20 46 61 6c 6c 42 61 | 63 6b 50 6f 69 6e 74 3b |t FallBa|ckPoint;|
|00000120| 0d 0a 76 61 72 20 62 6f | 6f 6c 20 46 61 6c 6c 69 |..var bo|ol Falli|
|00000130| 6e 67 42 61 63 6b 3b 0d | 0a 0d 0a 66 75 6e 63 74 |ngBack;.|...funct|
|00000140| 69 6f 6e 20 49 6e 69 74 | 50 6c 61 79 65 72 52 65 |ion Init|PlayerRe|
|00000150| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 28 29 7b |plicatio|nInfo(){|
|00000160| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 54 69 |}....fun|ction Ti|
|00000170| 6d 65 64 46 69 72 65 57 | 65 61 70 6f 6e 41 74 45 |medFireW|eaponAtE|
|00000180| 6e 65 6d 79 28 29 0d 0a | 7b 0d 0a 20 20 69 66 20 |nemy()..|{.. if |
|00000190| 28 20 28 45 6e 65 6d 79 | 20 3d 3d 20 4e 6f 6e 65 |( (Enemy| == None|
|000001a0| 29 20 7c 7c 20 46 69 72 | 65 57 65 61 70 6f 6e 41 |) || Fir|eWeaponA|
|000001b0| 74 28 45 6e 65 6d 79 29 | 20 29 0d 0a 20 20 20 20 |t(Enemy)| ).. |
|000001c0| 53 65 74 43 6f 6d 62 61 | 74 54 69 6d 65 72 28 29 |SetComba|tTimer()|
|000001d0| 3b 0d 0a 20 20 65 6c 73 | 65 0d 0a 20 20 20 20 53 |;.. els|e.. S|
|000001e0| 65 74 54 69 6d 65 72 28 | 55 45 54 46 42 6f 74 4d |etTimer(|UETFBotM|
|000001f0| 6f 6e 73 74 65 72 28 50 | 61 77 6e 29 2e 52 61 6e |onster(P|awn).Ran|
|00000200| 67 65 64 41 74 74 61 63 | 6b 54 69 6d 65 28 29 2c |gedAttac|kTime(),|
|00000210| 20 54 72 75 65 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 | True);.|.}....fu|
|00000220| 6e 63 74 69 6f 6e 20 45 | 78 65 63 75 74 65 57 68 |nction E|xecuteWh|
|00000230| 61 74 54 6f 44 6f 4e 65 | 78 74 28 29 0d 0a 7b 0d |atToDoNe|xt()..{.|
|00000240| 0a 09 62 48 61 73 46 69 | 72 65 64 20 3d 20 66 61 |..bHasFi|red = fa|
|00000250| 6c 73 65 3b 0d 0a 09 47 | 6f 61 6c 53 74 72 69 6e |lse;...G|oalStrin|
|00000260| 67 20 3d 20 22 57 68 61 | 74 54 6f 44 6f 4e 65 78 |g = "Wha|tToDoNex|
|00000270| 74 20 61 74 20 22 24 4c | 65 76 65 6c 2e 54 69 6d |t at "$L|evel.Tim|
|00000280| 65 53 65 63 6f 6e 64 73 | 3b 0d 0a 09 69 66 20 28 |eSeconds|;...if (|
|00000290| 20 50 61 77 6e 20 3d 3d | 20 4e 6f 6e 65 20 29 0d | Pawn ==| None ).|
|000002a0| 0a 09 7b 0d 0a 09 09 77 | 61 72 6e 28 47 65 74 48 |..{....w|arn(GetH|
|000002b0| 75 6d 61 6e 52 65 61 64 | 61 62 6c 65 4e 61 6d 65 |umanRead|ableName|
|000002c0| 28 29 24 22 20 57 68 61 | 74 54 6f 44 6f 4e 65 78 |()$" Wha|tToDoNex|
|000002d0| 74 20 77 69 74 68 20 6e | 6f 20 70 61 77 6e 22 29 |t with n|o pawn")|
|000002e0| 3b 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 7d |;....ret|urn;...}|
|000002f0| 0d 0a 0d 0a 09 69 66 20 | 28 20 62 50 72 65 70 61 |.....if |( bPrepa|
|00000300| 72 69 6e 67 4d 6f 76 65 | 20 26 26 20 4d 6f 6e 73 |ringMove| && Mons|
|00000310| 74 65 72 28 50 61 77 6e | 29 2e 62 53 68 6f 74 41 |ter(Pawn|).bShotA|
|00000320| 6e 69 6d 20 29 0d 0a 09 | 7b 0d 0a 09 09 50 61 77 |nim )...|{....Paw|
|00000330| 6e 2e 41 63 63 65 6c 65 | 72 61 74 69 6f 6e 20 3d |n.Accele|ration =|
|00000340| 20 76 65 63 74 28 30 2c | 30 2c 30 29 3b 0d 0a 09 | vect(0,|0,0);...|
|00000350| 09 47 6f 74 6f 53 74 61 | 74 65 28 27 57 61 69 74 |.GotoSta|te('Wait|
|00000360| 46 6f 72 41 6e 69 6d 27 | 29 3b 0d 0a 09 09 72 65 |ForAnim'|);....re|
|00000370| 74 75 72 6e 3b 0d 0a 09 | 7d 0d 0a 09 69 66 20 28 |turn;...|}...if (|
|00000380| 50 61 77 6e 2e 50 68 79 | 73 69 63 73 20 3d 3d 20 |Pawn.Phy|sics == |
|00000390| 50 48 59 53 5f 4e 6f 6e | 65 29 0d 0a 09 09 50 61 |PHYS_Non|e)....Pa|
|000003a0| 77 6e 2e 53 65 74 4d 6f | 76 65 6d 65 6e 74 50 68 |wn.SetMo|vementPh|
|000003b0| 79 73 69 63 73 28 29 3b | 0d 0a 09 69 66 20 28 20 |ysics();|...if ( |
|000003c0| 28 50 61 77 6e 2e 50 68 | 79 73 69 63 73 20 3d 3d |(Pawn.Ph|ysics ==|
|000003d0| 20 50 48 59 53 5f 46 61 | 6c 6c 69 6e 67 29 20 26 | PHYS_Fa|lling) &|
|000003e0| 26 20 44 6f 57 61 69 74 | 46 6f 72 4c 61 6e 64 69 |& DoWait|ForLandi|
|000003f0| 6e 67 28 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |ng() )..|..return|
|00000400| 3b 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 46 61 6c |;.... | if (Fal|
|00000410| 6c 69 6e 67 42 61 63 6b | 29 7b 0d 0a 20 20 20 20 |lingBack|){.. |
|00000420| 20 20 20 47 6f 74 6f 53 | 74 61 74 65 28 27 46 61 | GotoS|tate('Fa|
|00000430| 6c 6c 42 61 63 6b 27 29 | 3b 0d 0a 20 20 20 20 20 |llBack')|;.. |
|00000440| 20 20 72 65 74 75 72 6e | 3b 0d 0a 20 20 20 20 7d | return|;.. }|
|00000450| 0d 0a 0d 0a 09 69 66 20 | 28 20 28 45 6e 65 6d 79 |.....if |( (Enemy|
|00000460| 20 21 3d 20 4e 6f 6e 65 | 29 20 26 26 20 28 28 45 | != None|) && ((E|
|00000470| 6e 65 6d 79 2e 48 65 61 | 6c 74 68 20 3c 3d 20 30 |nemy.Hea|lth <= 0|
|00000480| 29 20 7c 7c 20 28 45 6e | 65 6d 79 2e 43 6f 6e 74 |) || (En|emy.Cont|
|00000490| 72 6f 6c 6c 65 72 20 3d | 3d 20 4e 6f 6e 65 29 29 |roller =|= None))|
|000004a0| 20 29 0d 0a 09 09 45 6e | 65 6d 79 20 3d 20 4e 6f | )....En|emy = No|
|000004b0| 6e 65 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4c 65 76 |ne;.....|if ( Lev|
|000004c0| 65 6c 2e 47 61 6d 65 2e | 62 47 61 6d 65 45 6e 64 |el.Game.|bGameEnd|
|000004d0| 65 64 20 26 26 20 28 45 | 6e 65 6d 79 20 21 3d 20 |ed && (E|nemy != |
|000004e0| 4e 6f 6e 65 29 20 26 26 | 20 45 6e 65 6d 79 2e 43 |None) &&| Enemy.C|
|000004f0| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 62 49 73 50 6c 61 |ontrolle|r.bIsPla|
|00000500| 79 65 72 20 29 0d 0a 09 | 09 45 6e 65 6d 79 20 3d |yer )...|.Enemy =|
|00000510| 20 4e 6f 6e 65 3b 0d 0a | 0d 0a 09 69 66 20 28 20 | None;..|...if ( |
|00000520| 28 45 6e 65 6d 79 20 3d | 3d 20 4e 6f 6e 65 29 20 |(Enemy =|= None) |
|00000530| 7c 7c 20 21 45 6e 65 6d | 79 56 69 73 69 62 6c 65 ||| !Enem|yVisible|
|00000540| 28 29 20 29 0d 0a 09 09 | 46 69 6e 64 4e 65 77 45 |() )....|FindNewE|
|00000550| 6e 65 6d 79 28 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |nemy();.|....if (|
|00000560| 20 45 6e 65 6d 79 20 21 | 3d 20 4e 6f 6e 65 20 29 | Enemy !|= None )|
|00000570| 0d 0a 09 09 43 68 6f 6f | 73 65 41 74 74 61 63 6b |....Choo|seAttack|
|00000580| 4d 6f 64 65 28 29 3b 0d | 0a 09 65 6c 73 65 0d 0a |Mode();.|..else..|
|00000590| 09 7b 0d 0a 09 09 47 6f | 61 6c 53 74 72 69 6e 67 |.{....Go|alString|
|000005a0| 20 3d 20 22 57 68 61 74 | 54 6f 44 6f 4e 65 78 74 | = "What|ToDoNext|
|000005b0| 20 57 61 6e 64 65 72 20 | 6f 72 20 43 61 6d 70 20 | Wander |or Camp |
|000005c0| 61 74 20 22 24 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |at "$Lev|el.TimeS|
|000005d0| 65 63 6f 6e 64 73 3b 0d | 0a 09 09 57 61 6e 64 65 |econds;.|...Wande|
|000005e0| 72 4f 72 43 61 6d 70 28 | 74 72 75 65 29 3b 0d 0a |rOrCamp(|true);..|
|000005f0| 09 7d 0d 0a 7d 0d 0a 0d | 0a 73 74 61 74 65 20 46 |.}..}...|.state F|
|00000600| 61 6c 6c 42 61 63 6b 20 | 65 78 74 65 6e 64 73 20 |allBack |extends |
|00000610| 4d 6f 76 65 54 6f 47 6f | 61 6c 57 69 74 68 45 6e |MoveToGo|alWithEn|
|00000620| 65 6d 79 0d 0a 7b 0d 0a | 69 67 6e 6f 72 65 73 20 |emy..{..|ignores |
|00000630| 53 65 65 50 6c 61 79 65 | 72 2c 20 48 65 61 72 4e |SeePlaye|r, HearN|
|00000640| 6f 69 73 65 3b 0d 0a 0d | 0a 09 2f 2a 20 4d 61 79 |oise;...|../* May|
|00000650| 46 61 6c 6c 28 29 20 63 | 61 6c 6c 65 64 20 62 79 |Fall() c|alled by|
|00000660| 20 65 6e 67 69 6e 65 20 | 70 68 79 73 69 63 73 20 | engine |physics |
|00000670| 69 66 20 77 61 6c 6b 69 | 6e 67 20 61 6e 64 20 62 |if walki|ng and b|
|00000680| 43 61 6e 4a 75 6d 70 2c | 20 61 6e 64 0d 0a 09 09 |CanJump,| and....|
|00000690| 69 73 20 61 62 6f 75 74 | 20 74 6f 20 67 6f 20 6f |is about| to go o|
|000006a0| 66 66 20 61 20 6c 65 64 | 67 65 2e 20 20 50 61 77 |ff a led|ge. Paw|
|000006b0| 6e 20 68 61 73 20 6f 70 | 70 6f 72 74 75 6e 69 74 |n has op|portunit|
|000006c0| 79 20 28 62 79 20 73 65 | 74 74 69 6e 67 0d 0a 09 |y (by se|tting...|
|000006d0| 09 62 43 61 6e 4a 75 6d | 70 20 74 6f 20 66 61 6c |.bCanJum|p to fal|
|000006e0| 73 65 29 20 74 6f 20 61 | 76 6f 69 64 20 66 61 6c |se) to a|void fal|
|000006f0| 6c 0d 0a 09 2a 2f 0d 0a | 0d 0a 09 66 75 6e 63 74 |l...*/..|...funct|
|00000700| 69 6f 6e 20 4d 61 79 46 | 61 6c 6c 28 29 0d 0a 09 |ion MayF|all()...|
|00000710| 7b 0d 0a 09 09 50 61 77 | 6e 2e 62 43 61 6e 4a 75 |{....Paw|n.bCanJu|
|00000720| 6d 70 20 3d 20 41 63 74 | 6f 72 52 65 61 63 68 61 |mp = Act|orReacha|
|00000730| 62 6c 65 28 46 61 6c 6c | 42 61 63 6b 50 6f 69 6e |ble(Fall|BackPoin|
|00000740| 74 29 3b 0d 0a 09 09 69 | 66 20 28 20 21 50 61 77 |t);....i|f ( !Paw|
|00000750| 6e 2e 62 43 61 6e 4a 75 | 6d 70 20 29 0d 0a 09 09 |n.bCanJu|mp )....|
|00000760| 09 4d 6f 76 65 54 69 6d | 65 72 20 3d 20 2d 31 2e |.MoveTim|er = -1.|
|00000770| 30 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 66 75 6e 63 74 |0;...}..|...funct|
|00000780| 69 6f 6e 20 62 6f 6f 6c | 20 54 72 79 54 6f 44 75 |ion bool| TryToDu|
|00000790| 63 6b 28 76 65 63 74 6f | 72 20 64 75 63 6b 44 69 |ck(vecto|r duckDi|
|000007a0| 72 2c 20 62 6f 6f 6c 20 | 62 52 65 76 65 72 73 65 |r, bool |bReverse|
|000007b0| 64 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 46 |d)...{..|..if ( F|
|000007c0| 52 61 6e 64 28 29 20 3c | 20 30 2e 36 20 29 0d 0a |Rand() <| 0.6 )..|
|000007d0| 09 09 09 72 65 74 75 72 | 6e 20 47 6c 6f 62 61 6c |...retur|n Global|
|000007e0| 2e 54 72 79 54 6f 44 75 | 63 6b 28 64 75 63 6b 44 |.TryToDu|ck(duckD|
|000007f0| 69 72 2c 20 62 52 65 76 | 65 72 73 65 64 29 3b 0d |ir, bRev|ersed);.|
|00000800| 0a 09 7d 0d 0a 0d 0a 09 | 66 75 6e 63 74 69 6f 6e |..}.....|function|
|00000810| 20 62 6f 6f 6c 20 53 74 | 72 61 66 65 46 72 6f 6d | bool St|rafeFrom|
|00000820| 44 61 6d 61 67 65 28 66 | 6c 6f 61 74 20 44 61 6d |Damage(f|loat Dam|
|00000830| 61 67 65 2c 20 63 6c 61 | 73 73 3c 44 61 6d 61 67 |age, cla|ss<Damag|
|00000840| 65 54 79 70 65 3e 20 44 | 61 6d 61 67 65 54 79 70 |eType> D|amageTyp|
|00000850| 65 2c 20 62 6f 6f 6c 20 | 62 46 69 6e 64 44 65 73 |e, bool |bFindDes|
|00000860| 74 29 0d 0a 09 7b 0d 0a | 09 09 6c 6f 63 61 6c 20 |t)...{..|..local |
|00000870| 76 65 63 74 6f 72 20 73 | 69 64 65 44 69 72 3b 0d |vector s|ideDir;.|
|00000880| 0a 0d 0a 09 09 69 66 20 | 28 20 46 52 61 6e 64 28 |.....if |( FRand(|
|00000890| 29 20 2a 20 44 61 6d 61 | 67 65 20 3c 20 30 2e 31 |) * Dama|ge < 0.1|
|000008a0| 35 20 2a 20 43 6f 6d 62 | 61 74 53 74 79 6c 65 20 |5 * Comb|atStyle |
|000008b0| 2a 20 50 61 77 6e 2e 48 | 65 61 6c 74 68 20 29 0d |* Pawn.H|ealth ).|
|000008c0| 0a 09 09 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|000008d0| 3b 0d 0a 0d 0a 09 09 69 | 66 20 28 20 21 62 46 69 |;......i|f ( !bFi|
|000008e0| 6e 64 44 65 73 74 20 29 | 0d 0a 09 09 09 72 65 74 |ndDest )|.....ret|
|000008f0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 0d 0a 09 09 73 |urn true|;......s|
|00000900| 69 64 65 44 69 72 20 3d | 20 4e 6f 72 6d 61 6c 28 |ideDir =| Normal(|
|00000910| 20 4e 6f 72 6d 61 6c 28 | 46 61 6c 6c 42 61 63 6b | Normal(|FallBack|
|00000920| 50 6f 69 6e 74 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |Point.Lo|cation -|
|00000930| 20 50 61 77 6e 2e 4c 6f | 63 61 74 69 6f 6e 29 20 | Pawn.Lo|cation) |
|00000940| 43 72 6f 73 73 20 76 65 | 63 74 28 30 2c 30 2c 31 |Cross ve|ct(0,0,1|
|00000950| 29 20 29 3b 0d 0a 09 09 | 69 66 20 28 20 28 50 61 |) );....|if ( (Pa|
|00000960| 77 6e 2e 56 65 6c 6f 63 | 69 74 79 20 44 6f 74 20 |wn.Veloc|ity Dot |
|00000970| 73 69 64 65 64 69 72 29 | 20 3e 20 30 20 29 0d 0a |sidedir)| > 0 )..|
|00000980| 09 09 09 73 69 64 65 64 | 69 72 20 2a 3d 20 2d 31 |...sided|ir *= -1|
|00000990| 3b 0d 0a 0d 0a 09 09 72 | 65 74 75 72 6e 20 54 72 |;......r|eturn Tr|
|000009a0| 79 53 74 72 61 66 65 28 | 73 69 64 65 44 69 72 29 |yStrafe(|sideDir)|
|000009b0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 66 75 6e 63 74 69 |;...}...|..functi|
|000009c0| 6f 6e 20 62 6f 6f 6c 20 | 54 72 79 53 74 72 61 66 |on bool |TryStraf|
|000009d0| 65 28 76 65 63 74 6f 72 | 20 73 69 64 65 44 69 72 |e(vector| sideDir|
|000009e0| 29 0d 0a 09 7b 0d 0a 09 | 09 2f 2a 6c 6f 63 61 6c |)...{...|./*local|
|000009f0| 20 76 65 63 74 6f 72 20 | 65 78 74 65 6e 74 2c 20 | vector |extent, |
|00000a00| 48 69 74 4c 6f 63 61 74 | 69 6f 6e 2c 20 48 69 74 |HitLocat|ion, Hit|
|00000a10| 4e 6f 72 6d 61 6c 3b 0d | 0a 09 09 6c 6f 63 61 6c |Normal;.|...local|
|00000a20| 20 61 63 74 6f 72 20 48 | 69 74 41 63 74 6f 72 3b | actor H|itActor;|
|00000a30| 0d 0a 0d 0a 09 09 45 78 | 74 65 6e 74 20 3d 20 50 |......Ex|tent = P|
|00000a40| 61 77 6e 2e 47 65 74 43 | 6f 6c 6c 69 73 69 6f 6e |awn.GetC|ollision|
|00000a50| 45 78 74 65 6e 74 28 29 | 3b 0d 0a 09 09 48 69 74 |Extent()|;....Hit|
|00000a60| 41 63 74 6f 72 20 3d 20 | 54 72 61 63 65 28 48 69 |Actor = |Trace(Hi|
|00000a70| 74 4c 6f 63 61 74 69 6f | 6e 2c 20 48 69 74 4e 6f |tLocatio|n, HitNo|
|00000a80| 72 6d 61 6c 2c 20 50 61 | 77 6e 2e 4c 6f 63 61 74 |rmal, Pa|wn.Locat|
|00000a90| 69 6f 6e 20 2b 20 4d 49 | 4e 53 54 52 41 46 45 44 |ion + MI|NSTRAFED|
|00000aa0| 49 53 54 20 2a 20 73 69 | 64 65 44 69 72 2c 20 50 |IST * si|deDir, P|
|00000ab0| 61 77 6e 2e 4c 6f 63 61 | 74 69 6f 6e 2c 20 66 61 |awn.Loca|tion, fa|
|00000ac0| 6c 73 65 2c 20 45 78 74 | 65 6e 74 29 3b 0d 0a 09 |lse, Ext|ent);...|
|00000ad0| 09 69 66 20 28 48 69 74 | 41 63 74 6f 72 20 21 3d |.if (Hit|Actor !=|
|00000ae0| 20 4e 6f 6e 65 29 0d 0a | 09 09 7b 0d 0a 09 09 09 | None)..|..{.....|
|00000af0| 73 69 64 65 44 69 72 20 | 2a 3d 20 2d 31 3b 0d 0a |sideDir |*= -1;..|
|00000b00| 09 09 09 48 69 74 41 63 | 74 6f 72 20 3d 20 54 72 |...HitAc|tor = Tr|
|00000b10| 61 63 65 28 48 69 74 4c | 6f 63 61 74 69 6f 6e 2c |ace(HitL|ocation,|
|00000b20| 20 48 69 74 4e 6f 72 6d | 61 6c 2c 20 50 61 77 6e | HitNorm|al, Pawn|
|00000b30| 2e 4c 6f 63 61 74 69 6f | 6e 20 2b 20 4d 49 4e 53 |.Locatio|n + MINS|
|00000b40| 54 52 41 46 45 44 49 53 | 54 20 2a 20 73 69 64 65 |TRAFEDIS|T * side|
|00000b50| 44 69 72 2c 20 50 61 77 | 6e 2e 4c 6f 63 61 74 69 |Dir, Paw|n.Locati|
|00000b60| 6f 6e 2c 20 66 61 6c 73 | 65 2c 20 45 78 74 65 6e |on, fals|e, Exten|
|00000b70| 74 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 69 66 20 28 |t);....}|....if (|
|00000b80| 48 69 74 41 63 74 6f 72 | 20 21 3d 20 4e 6f 6e 65 |HitActor| != None|
|00000b90| 29 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 66 61 6c |).....re|turn fal|
|00000ba0| 73 65 3b 0d 0a 0d 0a 09 | 09 69 66 20 28 20 50 61 |se;.....|.if ( Pa|
|00000bb0| 77 6e 2e 50 68 79 73 69 | 63 73 20 3d 3d 20 50 48 |wn.Physi|cs == PH|
|00000bc0| 59 53 5f 57 61 6c 6b 69 | 6e 67 20 29 0d 0a 09 09 |YS_Walki|ng )....|
|00000bd0| 7b 0d 0a 09 09 09 48 69 | 74 41 63 74 6f 72 20 3d |{.....Hi|tActor =|
|00000be0| 20 54 72 61 63 65 28 48 | 69 74 4c 6f 63 61 74 69 | Trace(H|itLocati|
|00000bf0| 6f 6e 2c 20 48 69 74 4e | 6f 72 6d 61 6c 2c 20 50 |on, HitN|ormal, P|
|00000c00| 61 77 6e 2e 4c 6f 63 61 | 74 69 6f 6e 20 2b 20 4d |awn.Loca|tion + M|
|00000c10| 49 4e 53 54 52 41 46 45 | 44 49 53 54 20 2a 20 73 |INSTRAFE|DIST * s|
|00000c20| 69 64 65 44 69 72 20 2d | 20 4d 41 58 53 54 45 50 |ideDir -| MAXSTEP|
|00000c30| 48 45 49 47 48 54 20 2a | 20 76 65 63 74 28 30 2c |HEIGHT *| vect(0,|
|00000c40| 30 2c 31 29 2c 20 50 61 | 77 6e 2e 4c 6f 63 61 74 |0,1), Pa|wn.Locat|
|00000c50| 69 6f 6e 20 2b 20 4d 49 | 4e 53 54 52 41 46 45 44 |ion + MI|NSTRAFED|
|00000c60| 49 53 54 20 2a 20 73 69 | 64 65 44 69 72 2c 20 66 |IST * si|deDir, f|
|00000c70| 61 6c 73 65 2c 20 45 78 | 74 65 6e 74 29 3b 0d 0a |alse, Ex|tent);..|
|00000c80| 09 09 09 69 66 20 28 20 | 48 69 74 41 63 74 6f 72 |...if ( |HitActor|
|00000c90| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 09 | == None| )......|
|00000ca0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 09 |return f|alse;...|
|00000cb0| 09 7d 0d 0a 09 09 44 65 | 73 74 69 6e 61 74 69 6f |.}....De|stinatio|
|00000cc0| 6e 20 3d 20 50 61 77 6e | 2e 4c 6f 63 61 74 69 6f |n = Pawn|.Locatio|
|00000cd0| 6e 20 2b 20 32 20 2a 20 | 4d 49 4e 53 54 52 41 46 |n + 2 * |MINSTRAF|
|00000ce0| 45 44 49 53 54 20 2a 20 | 73 69 64 65 44 69 72 3b |EDIST * |sideDir;|
|00000cf0| 0d 0a 09 09 47 6f 74 6f | 53 74 61 74 65 28 27 54 |....Goto|State('T|
|00000d00| 61 63 74 69 63 61 6c 4d | 6f 76 65 27 2c 20 27 44 |acticalM|ove', 'D|
|00000d10| 6f 53 74 72 61 66 65 4d | 6f 76 65 27 29 3b 0d 0a |oStrafeM|ove');..|
|00000d20| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 2a 2f |..return| true;*/|
|00000d30| 0d 0a 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e |.. | return|
|00000d40| 20 66 61 6c 73 65 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 | false;.|..}.....|
|00000d50| 66 75 6e 63 74 69 6f 6e | 20 4e 6f 74 69 66 79 54 |function| NotifyT|
|00000d60| 61 6b 65 48 69 74 28 70 | 61 77 6e 20 49 6e 73 74 |akeHit(p|awn Inst|
|00000d70| 69 67 61 74 65 64 42 79 | 2c 20 76 65 63 74 6f 72 |igatedBy|, vector|
|00000d80| 20 48 69 74 4c 6f 63 61 | 74 69 6f 6e 2c 20 69 6e | HitLoca|tion, in|
|00000d90| 74 20 44 61 6d 61 67 65 | 2c 20 63 6c 61 73 73 3c |t Damage|, class<|
|00000da0| 44 61 6d 61 67 65 54 79 | 70 65 3e 20 64 61 6d 61 |DamageTy|pe> dama|
|00000db0| 67 65 54 79 70 65 2c 20 | 76 65 63 74 6f 72 20 4d |geType, |vector M|
|00000dc0| 6f 6d 65 6e 74 75 6d 29 | 0d 0a 09 7b 0d 0a 09 09 |omentum)|...{....|
|00000dd0| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 70 69 63 6b |local fl|oat pick|
|00000de0| 3b 0d 0a 09 09 6c 6f 63 | 61 6c 20 76 65 63 74 6f |;....loc|al vecto|
|00000df0| 72 20 73 69 64 65 44 69 | 72 3b 0d 0a 09 09 6c 6f |r sideDi|r;....lo|
|00000e00| 63 61 6c 20 62 6f 6f 6c | 20 62 57 61 73 4f 6e 47 |cal bool| bWasOnG|
|00000e10| 72 6f 75 6e 64 3b 0d 0a | 0d 0a 09 09 53 75 70 65 |round;..|....Supe|
|00000e20| 72 2e 4e 6f 74 69 66 79 | 54 61 6b 65 48 69 74 28 |r.Notify|TakeHit(|
|00000e30| 49 6e 73 74 69 67 61 74 | 65 64 42 79 2c 48 69 74 |Instigat|edBy,Hit|
|00000e40| 4c 6f 63 61 74 69 6f 6e | 2c 20 44 61 6d 61 67 65 |Location|, Damage|
|00000e50| 2c 44 61 6d 61 67 65 54 | 79 70 65 2c 4d 6f 6d 65 |,DamageT|ype,Mome|
|00000e60| 6e 74 75 6d 29 3b 0d 0a | 0d 0a 09 09 62 57 61 73 |ntum);..|....bWas|
|00000e70| 4f 6e 47 72 6f 75 6e 64 | 20 3d 20 28 50 61 77 6e |OnGround| = (Pawn|
|00000e80| 2e 50 68 79 73 69 63 73 | 20 3d 3d 20 50 48 59 53 |.Physics| == PHYS|
|00000e90| 5f 57 61 6c 6b 69 6e 67 | 29 3b 0d 0a 09 09 69 66 |_Walking|);....if|
|00000ea0| 20 28 20 50 61 77 6e 2e | 68 65 61 6c 74 68 20 3c | ( Pawn.|health <|
|00000eb0| 3d 20 30 20 29 0d 0a 09 | 09 09 72 65 74 75 72 6e |= 0 )...|..return|
|00000ec0| 3b 0d 0a 09 09 69 66 20 | 28 20 53 74 72 61 66 65 |;....if |( Strafe|
|00000ed0| 46 72 6f 6d 44 61 6d 61 | 67 65 28 64 61 6d 61 67 |FromDama|ge(damag|
|00000ee0| 65 2c 20 64 61 6d 61 67 | 65 54 79 70 65 2c 20 74 |e, damag|eType, t|
|00000ef0| 72 75 65 29 20 29 0d 0a | 09 09 09 72 65 74 75 72 |rue) )..|...retur|
|00000f00| 6e 3b 0d 0a 09 09 65 6c | 73 65 20 69 66 20 28 20 |n;....el|se if ( |
|00000f10| 62 57 61 73 4f 6e 47 72 | 6f 75 6e 64 20 26 26 0d |bWasOnGr|ound &&.|
|00000f20| 0a 09 09 09 09 09 28 50 | 61 77 6e 2e 50 68 79 73 |......(P|awn.Phys|
|00000f30| 69 63 73 20 3d 3d 20 50 | 48 59 53 5f 46 61 6c 6c |ics == P|HYS_Fall|
|00000f40| 69 6e 67 29 20 29 20 2f | 2f 77 65 61 76 65 0d 0a |ing) ) /|/weave..|
|00000f50| 09 09 7b 0d 0a 09 09 09 | 70 69 63 6b 20 3d 20 31 |..{.....|pick = 1|
|00000f60| 2e 30 3b 0d 0a 09 09 09 | 69 66 20 28 20 62 53 74 |.0;.....|if ( bSt|
|00000f70| 72 61 66 65 44 69 72 20 | 29 0d 0a 09 09 09 09 70 |rafeDir |)......p|
|00000f80| 69 63 6b 20 3d 20 2d 31 | 2e 30 3b 0d 0a 09 09 09 |ick = -1|.0;.....|
|00000f90| 73 69 64 65 44 69 72 20 | 3d 20 4e 6f 72 6d 61 6c |sideDir |= Normal|
|00000fa0| 28 20 4e 6f 72 6d 61 6c | 28 46 61 6c 6c 42 61 63 |( Normal|(FallBac|
|00000fb0| 6b 50 6f 69 6e 74 2e 4c | 6f 63 61 74 69 6f 6e 20 |kPoint.L|ocation |
|00000fc0| 2d 20 50 61 77 6e 2e 4c | 6f 63 61 74 69 6f 6e 29 |- Pawn.L|ocation)|
|00000fd0| 20 43 72 6f 73 73 20 76 | 65 63 74 28 30 2c 30 2c | Cross v|ect(0,0,|
|00000fe0| 31 29 20 29 3b 0d 0a 09 | 09 09 73 69 64 65 44 69 |1) );...|..sideDi|
|00000ff0| 72 2e 5a 20 3d 20 30 3b | 0d 0a 09 09 09 50 61 77 |r.Z = 0;|.....Paw|
|00001000| 6e 2e 56 65 6c 6f 63 69 | 74 79 20 2b 3d 20 70 69 |n.Veloci|ty += pi|
|00001010| 63 6b 20 2a 20 50 61 77 | 6e 2e 47 72 6f 75 6e 64 |ck * Paw|n.Ground|
|00001020| 53 70 65 65 64 20 2a 20 | 30 2e 37 20 2a 20 73 69 |Speed * |0.7 * si|
|00001030| 64 65 44 69 72 3b 0d 0a | 09 09 09 69 66 20 28 20 |deDir;..|...if ( |
|00001040| 46 52 61 6e 64 28 29 20 | 3c 20 30 2e 32 20 29 0d |FRand() |< 0.2 ).|
|00001050| 0a 09 09 09 09 62 53 74 | 72 61 66 65 44 69 72 20 |.....bSt|rafeDir |
|00001060| 3d 20 21 62 53 74 72 61 | 66 65 44 69 72 3b 0d 0a |= !bStra|feDir;..|
|00001070| 09 09 7d 0d 0a 09 7d 0d | 0a 0d 0a 09 65 76 65 6e |..}...}.|....even|
|00001080| 74 20 62 6f 6f 6c 20 4e | 6f 74 69 66 79 42 75 6d |t bool N|otifyBum|
|00001090| 70 28 61 63 74 6f 72 20 | 4f 74 68 65 72 29 0d 0a |p(actor |Other)..|
|000010a0| 09 7b 0d 0a 20 09 09 69 | 66 20 28 20 4f 74 68 65 |.{.. ..i|f ( Othe|
|000010b0| 72 20 3d 3d 20 46 61 6c | 6c 42 61 63 6b 50 6f 69 |r == Fal|lBackPoi|
|000010c0| 6e 74 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 46 61 |nt )....|{.....Fa|
|000010d0| 6c 6c 69 6e 67 42 61 63 | 6b 3d 66 61 6c 73 65 3b |llingBac|k=false;|
|000010e0| 0d 0a 09 09 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.....ret|urn fals|
|000010f0| 65 3b 0d 0a 09 09 7d 0d | 0a 09 09 72 65 74 75 72 |e;....}.|...retur|
|00001100| 6e 20 47 6c 6f 62 61 6c | 2e 4e 6f 74 69 66 79 42 |n Global|.NotifyB|
|00001110| 75 6d 70 28 4f 74 68 65 | 72 29 3b 0d 0a 09 7d 0d |ump(Othe|r);...}.|
|00001120| 0a 0d 0a 09 66 75 6e 63 | 74 69 6f 6e 20 54 69 6d |....func|tion Tim|
|00001130| 65 72 28 29 0d 0a 09 7b | 0d 0a 09 20 65 6e 61 62 |er()...{|... enab|
|00001140| 6c 65 28 27 4e 6f 74 69 | 66 79 42 75 6d 70 27 29 |le('Noti|fyBump')|
|00001150| 3b 0d 0a 20 20 20 20 20 | 45 78 65 63 75 74 65 57 |;.. |ExecuteW|
|00001160| 68 61 74 54 6f 44 6f 4e | 65 78 74 28 29 3b 0d 0a |hatToDoN|ext();..|
|00001170| 09 7d 0d 0a 0d 0a 09 66 | 75 6e 63 74 69 6f 6e 20 |.}.....f|unction |
|00001180| 45 6e 65 6d 79 4e 6f 74 | 56 69 73 69 62 6c 65 28 |EnemyNot|Visible(|
|00001190| 29 0d 0a 09 7b 0d 0a 09 | 09 57 68 61 74 54 6f 44 |)...{...|.WhatToD|
|000011a0| 6f 4e 65 78 74 28 31 35 | 29 3b 0d 0a 09 7d 0d 0a |oNext(15|);...}..|
|000011b0| 0d 0a 09 66 75 6e 63 74 | 69 6f 6e 20 45 6e 64 53 |...funct|ion EndS|
|000011c0| 74 61 74 65 28 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |tate()..|.{....if|
|000011d0| 20 28 20 28 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 | ( (Pawn| != None|
|000011e0| 29 20 26 26 20 50 61 77 | 6e 2e 4a 75 6d 70 5a 20 |) && Paw|n.JumpZ |
|000011f0| 3e 20 30 20 29 0d 0a 09 | 09 09 50 61 77 6e 2e 62 |> 0 )...|..Pawn.b|
|00001200| 43 61 6e 4a 75 6d 70 20 | 3d 20 74 72 75 65 3b 0d |CanJump |= true;.|
|00001210| 0a 09 7d 0d 0a 0d 0a 42 | 65 67 69 6e 3a 0d 0a 09 |..}....B|egin:...|
|00001220| 69 66 20 28 50 61 77 6e | 2e 50 68 79 73 69 63 73 |if (Pawn|.Physics|
|00001230| 20 3d 3d 20 50 48 59 53 | 5f 46 61 6c 6c 69 6e 67 | == PHYS|_Falling|
|00001240| 29 0d 0a 09 7b 0d 0a 09 | 09 44 65 73 74 69 6e 61 |)...{...|.Destina|
|00001250| 74 69 6f 6e 20 3d 20 46 | 61 6c 6c 42 61 63 6b 50 |tion = F|allBackP|
|00001260| 6f 69 6e 74 2e 4c 6f 63 | 61 74 69 6f 6e 3b 0d 0a |oint.Loc|ation;..|
|00001270| 09 09 57 61 69 74 46 6f | 72 4c 61 6e 64 69 6e 67 |..WaitFo|rLanding|
|00001280| 28 29 3b 0d 0a 09 7d 0d | 0a 09 69 66 20 28 21 46 |();...}.|..if (!F|
|00001290| 61 6c 6c 69 6e 67 42 61 | 63 6b 29 0d 0a 09 09 57 |allingBa|ck)....W|
|000012a0| 68 61 74 54 6f 44 6f 4e | 65 78 74 28 31 36 29 3b |hatToDoN|ext(16);|
|000012b0| 0d 0a 57 61 69 74 46 6f | 72 41 6e 69 6d 3a 0d 0a |..WaitFo|rAnim:..|
|000012c0| 09 69 66 20 28 20 4d 6f | 6e 73 74 65 72 28 50 61 |.if ( Mo|nster(Pa|
|000012d0| 77 6e 29 2e 62 53 68 6f | 74 41 6e 69 6d 20 29 0d |wn).bSho|tAnim ).|
|000012e0| 0a 09 7b 0d 0a 09 09 53 | 6c 65 65 70 28 30 2e 33 |..{....S|leep(0.3|
|000012f0| 35 29 3b 0d 0a 09 09 47 | 6f 74 6f 28 27 57 61 69 |5);....G|oto('Wai|
|00001300| 74 46 6f 72 41 6e 69 6d | 27 29 3b 0d 0a 09 7d 0d |tForAnim|');...}.|
|00001310| 0a 09 69 66 20 28 20 21 | 46 69 6e 64 42 65 73 74 |..if ( !|FindBest|
|00001320| 50 61 74 68 54 6f 77 61 | 72 64 28 46 61 6c 6c 42 |PathTowa|rd(FallB|
|00001330| 61 63 6b 50 6f 69 6e 74 | 2c 20 66 61 6c 73 65 2c |ackPoint|, false,|
|00001340| 74 72 75 65 29 20 29 0d | 0a 09 09 47 6f 74 6f 53 |true) ).|...GotoS|
|00001350| 74 61 74 65 28 27 54 61 | 63 74 69 63 61 6c 4d 6f |tate('Ta|cticalMo|
|00001360| 76 65 27 29 3b 0d 0a 4d | 6f 76 69 6e 67 3a 0d 0a |ve');..M|oving:..|
|00001370| 09 4d 6f 76 65 54 6f 77 | 61 72 64 28 4d 6f 76 65 |.MoveTow|ard(Move|
|00001380| 54 61 72 67 65 74 2c 46 | 61 63 65 41 63 74 6f 72 |Target,F|aceActor|
|00001390| 28 31 29 2c 2c 53 68 6f | 75 6c 64 53 74 72 61 66 |(1),,Sho|uldStraf|
|000013a0| 65 54 6f 28 4d 6f 76 65 | 54 61 72 67 65 74 29 29 |eTo(Move|Target))|
|000013b0| 3b 0d 0a 09 57 68 61 74 | 54 6f 44 6f 4e 65 78 74 |;...What|ToDoNext|
|000013c0| 28 31 37 29 3b 0d 0a 09 | 69 66 20 28 20 62 53 6f |(17);...|if ( bSo|
|000013d0| 61 6b 69 6e 67 20 29 0d | 0a 09 09 53 6f 61 6b 53 |aking ).|...SoakS|
|000013e0| 74 6f 70 28 22 53 54 55 | 43 4b 20 49 4e 20 43 48 |top("STU|CK IN CH|
|000013f0| 41 52 47 49 4e 47 21 22 | 29 3b 0d 0a 7d 0d 0a 0d |ARGING!"|);..}...|
|00001400| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 46 |.functio|n bool F|
|00001410| 69 6e 64 4e 65 77 45 6e | 65 6d 79 28 29 0d 0a 7b |indNewEn|emy()..{|
|00001420| 0d 0a 20 20 6c 6f 63 61 | 6c 20 50 61 77 6e 20 42 |.. loca|l Pawn B|
|00001430| 65 73 74 45 6e 65 6d 79 | 3b 0d 0a 20 20 6c 6f 63 |estEnemy|;.. loc|
|00001440| 61 6c 20 62 6f 6f 6c 20 | 62 53 65 65 42 65 73 74 |al bool |bSeeBest|
|00001450| 3b 0d 0a 20 20 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |;.. loc|al float|
|00001460| 20 42 65 73 74 44 69 73 | 74 3b 0d 0a 20 20 6c 6f | BestDis|t;.. lo|
|00001470| 63 61 6c 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 43 |cal Cont|roller C|
|00001480| 3b 0d 0a 0d 0a 20 20 69 | 66 20 28 20 4c 65 76 65 |;.... i|f ( Leve|
|00001490| 6c 2e 47 61 6d 65 2e 62 | 47 61 6d 65 45 6e 64 65 |l.Game.b|GameEnde|
|000014a0| 64 20 29 0d 0a 20 20 20 | 20 20 72 65 74 75 72 6e |d ).. | return|
|000014b0| 20 66 61 6c 73 65 3b 0d | 0a 20 20 66 6f 72 20 28 | false;.|. for (|
|000014c0| 20 43 3d 4c 65 76 65 6c | 2e 43 6f 6e 74 72 6f 6c | C=Level|.Control|
|000014d0| 6c 65 72 4c 69 73 74 3b | 20 43 21 3d 4e 6f 6e 65 |lerList;| C!=None|
|000014e0| 3b 20 43 3d 43 2e 4e 65 | 78 74 43 6f 6e 74 72 6f |; C=C.Ne|xtContro|
|000014f0| 6c 6c 65 72 20 29 0d 0a | 20 20 20 20 69 66 20 20 |ller )..| if |
|00001500| 28 28 43 2e 62 49 73 50 | 6c 61 79 65 72 20 26 26 |((C.bIsP|layer &&|
|00001510| 20 28 43 2e 50 61 77 6e | 20 21 3d 20 4e 6f 6e 65 | (C.Pawn| != None|
|00001520| 29 20 26 26 20 43 2e 49 | 73 41 28 27 55 45 54 46 |) && C.I|sA('UETF|
|00001530| 32 6b 34 50 6c 61 79 65 | 72 27 29 29 20 7c 7c 0d |2k4Playe|r')) ||.|
|00001540| 0a 20 20 20 20 20 20 20 | 20 28 43 2e 50 61 77 6e |. | (C.Pawn|
|00001550| 2e 49 73 41 28 27 55 45 | 54 46 41 6c 6c 79 27 29 |.IsA('UE|TFAlly')|
|00001560| 20 26 26 20 28 43 2e 50 | 61 77 6e 20 21 3d 20 4e | && (C.P|awn != N|
|00001570| 6f 6e 65 29 29 29 0d 0a | 20 20 20 20 7b 0d 0a 20 |one)))..| {.. |
|00001580| 20 20 20 20 20 69 66 20 | 28 20 42 65 73 74 45 6e | if |( BestEn|
|00001590| 65 6d 79 20 3d 3d 20 4e | 6f 6e 65 20 29 0d 0a 20 |emy == N|one ).. |
|000015a0| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|000015b0| 42 65 73 74 45 6e 65 6d | 79 20 3d 20 43 2e 50 61 |BestEnem|y = C.Pa|
|000015c0| 77 6e 3b 0d 0a 20 20 20 | 20 20 20 20 20 2f 2f 6c |wn;.. | //l|
|000015d0| 6f 67 28 22 42 65 73 74 | 45 6e 65 6d 79 20 69 73 |og("Best|Enemy is|
|000015e0| 20 22 24 42 65 73 74 45 | 6e 65 6d 79 29 3b 0d 0a | "$BestE|nemy);..|
|000015f0| 20 20 20 20 20 20 20 20 | 2f 2f 42 65 73 74 44 69 | |//BestDi|
|00001600| 73 74 20 3d 20 31 30 3b | 0d 0a 20 20 20 20 20 20 |st = 10;|.. |
|00001610| 20 20 42 65 73 74 44 69 | 73 74 20 3d 20 56 53 69 | BestDi|st = VSi|
|00001620| 7a 65 28 42 65 73 74 45 | 6e 65 6d 79 2e 4c 6f 63 |ze(BestE|nemy.Loc|
|00001630| 61 74 69 6f 6e 20 2d 20 | 50 61 77 6e 2e 4c 6f 63 |ation - |Pawn.Loc|
|00001640| 61 74 69 6f 6e 29 3b 0d | 0a 20 20 20 20 20 20 20 |ation);.|. |
|00001650| 20 2f 2f 62 53 65 65 42 | 65 73 74 20 3d 20 74 72 | //bSeeB|est = tr|
|00001660| 75 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 62 53 65 |ue;.. | bSe|
|00001670| 65 42 65 73 74 20 3d 20 | 43 61 6e 53 65 65 28 42 |eBest = |CanSee(B|
|00001680| 65 73 74 45 6e 65 6d 79 | 29 3b 0d 0a 20 20 20 20 |estEnemy|);.. |
|00001690| 20 20 7d 0d 0a 20 20 20 | 20 20 20 2f 2a 65 6c 73 | }.. | /*els|
|000016a0| 65 0d 0a 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |e.. | {.. |
|000016b0| 20 20 20 20 4e 65 77 44 | 69 73 74 20 3d 20 56 53 | NewD|ist = VS|
|000016c0| 69 7a 65 28 43 2e 50 61 | 77 6e 2e 4c 6f 63 61 74 |ize(C.Pa|wn.Locat|
|000016d0| 69 6f 6e 20 2d 20 50 61 | 77 6e 2e 4c 6f 63 61 74 |ion - Pa|wn.Locat|
|000016e0| 69 6f 6e 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 69 |ion);.. | i|
|000016f0| 66 20 28 20 21 62 53 65 | 65 42 65 73 74 20 7c 7c |f ( !bSe|eBest |||
|00001700| 20 28 4e 65 77 44 69 73 | 74 20 3c 20 42 65 73 74 | (NewDis|t < Best|
|00001710| 44 69 73 74 29 20 29 0d | 0a 20 20 20 20 20 20 20 |Dist) ).|. |
|00001720| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 62 53 | {.. | bS|
|00001730| 65 65 4e 65 77 20 3d 20 | 43 61 6e 53 65 65 28 43 |eeNew = |CanSee(C|
|00001740| 2e 50 61 77 6e 29 3b 0d | 0a 20 20 20 20 20 20 20 |.Pawn);.|. |
|00001750| 20 20 20 69 66 20 28 20 | 62 53 65 65 4e 65 77 20 | if ( |bSeeNew |
|00001760| 7c 7c 20 28 21 62 53 65 | 65 42 65 73 74 20 26 26 ||| (!bSe|eBest &&|
|00001770| 20 28 4e 65 77 44 69 73 | 74 20 3c 20 42 65 73 74 | (NewDis|t < Best|
|00001780| 44 69 73 74 29 29 20 20 | 29 0d 0a 20 20 20 20 20 |Dist)) |).. |
|00001790| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|000017a0| 20 20 20 20 42 65 73 74 | 45 6e 65 6d 79 20 3d 20 | Best|Enemy = |
|000017b0| 43 2e 50 61 77 6e 3b 0d | 0a 20 20 20 20 20 20 20 |C.Pawn;.|. |
|000017c0| 20 20 20 20 20 42 65 73 | 74 44 69 73 74 20 3d 20 | Bes|tDist = |
|000017d0| 4e 65 77 44 69 73 74 3b | 0d 0a 20 20 20 20 20 20 |NewDist;|.. |
|000017e0| 20 20 20 20 20 20 62 53 | 65 65 42 65 73 74 20 3d | bS|eeBest =|
|000017f0| 20 62 53 65 65 4e 65 77 | 3b 0d 0a 20 20 20 20 20 | bSeeNew|;.. |
|00001800| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 20 20 20 20 | }..| |
|00001810| 7d 0d 0a 20 20 20 20 20 | 20 7d 2a 2f 0d 0a 20 20 |}.. | }*/.. |
|00001820| 20 20 7d 0d 0a 0d 0a 20 | 20 69 66 20 28 21 62 53 | }.... | if (!bS|
|00001830| 65 65 42 65 73 74 29 0d | 0a 20 20 20 20 20 72 65 |eeBest).|. re|
|00001840| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 0d 0a 20 |turn fal|se;.... |
|00001850| 20 69 66 20 28 20 42 65 | 73 74 45 6e 65 6d 79 20 | if ( Be|stEnemy |
|00001860| 3d 3d 20 45 6e 65 6d 79 | 20 29 0d 0a 20 20 20 20 |== Enemy| ).. |
|00001870| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|00001880| 0a 20 20 69 66 20 28 20 | 42 65 73 74 45 6e 65 6d |. if ( |BestEnem|
|00001890| 79 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 20 20 7b |y != Non|e ).. {|
|000018a0| 0d 0a 20 20 20 20 43 68 | 61 6e 67 65 45 6e 65 6d |.. Ch|angeEnem|
|000018b0| 79 28 42 65 73 74 45 6e | 65 6d 79 2c 54 72 75 65 |y(BestEn|emy,True|
|000018c0| 29 3b 0d 0a 20 20 20 20 | 72 65 74 75 72 6e 20 74 |);.. |return t|
|000018d0| 72 75 65 3b 0d 0a 20 20 | 7d 0d 0a 20 20 72 65 74 |rue;.. |}.. ret|
|000018e0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 7d 0d 0a 0d |urn fals|e;..}...|
|000018f0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 53 |.functio|n bool S|
|00001900| 65 74 45 6e 65 6d 79 28 | 20 50 61 77 6e 20 4e 65 |etEnemy(| Pawn Ne|
|00001910| 77 45 6e 65 6d 79 2c 20 | 6f 70 74 69 6f 6e 61 6c |wEnemy, |optional|
|00001920| 20 62 6f 6f 6c 20 62 48 | 61 74 65 4d 6f 6e 73 74 | bool bH|ateMonst|
|00001930| 65 72 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |er )..{.|..local |
|00001940| 66 6c 6f 61 74 20 45 6e | 65 6d 79 44 69 73 74 3b |float En|emyDist;|
|00001950| 0d 0a 09 6c 6f 63 61 6c | 20 62 6f 6f 6c 20 62 4e |...local| bool bN|
|00001960| 65 77 4d 6f 6e 73 74 65 | 72 45 6e 65 6d 79 3b 0d |ewMonste|rEnemy;.|
|00001970| 0a 0d 0a 09 69 66 20 28 | 20 28 4e 65 77 45 6e 65 |....if (| (NewEne|
|00001980| 6d 79 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |my == No|ne) || (|
|00001990| 4e 65 77 45 6e 65 6d 79 | 2e 48 65 61 6c 74 68 20 |NewEnemy|.Health |
|000019a0| 3c 3d 20 30 29 20 7c 7c | 20 28 4e 65 77 45 6e 65 |<= 0) ||| (NewEne|
|000019b0| 6d 79 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 3d 3d |my.Contr|oller ==|
|000019c0| 20 4e 6f 6e 65 29 20 7c | 7c 20 28 4e 65 77 45 6e | None) ||| (NewEn|
|000019d0| 65 6d 79 20 3d 3d 20 45 | 6e 65 6d 79 29 20 29 0d |emy == E|nemy) ).|
|000019e0| 0a 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|000019f0| 0d 0a 0d 0a 09 62 4e 65 | 77 4d 6f 6e 73 74 65 72 |.....bNe|wMonster|
|00001a00| 45 6e 65 6d 79 20 3d 20 | 62 48 61 74 65 4d 6f 6e |Enemy = |bHateMon|
|00001a10| 73 74 65 72 20 26 26 20 | 28 4c 65 76 65 6c 2e 47 |ster && |(Level.G|
|00001a20| 61 6d 65 2e 4e 75 6d 50 | 6c 61 79 65 72 73 20 3c |ame.NumP|layers <|
|00001a30| 20 34 29 20 26 26 20 21 | 4d 6f 6e 73 74 65 72 28 | 4) && !|Monster(|
|00001a40| 50 61 77 6e 29 2e 53 61 | 6d 65 53 70 65 63 69 65 |Pawn).Sa|meSpecie|
|00001a50| 73 41 73 28 4e 65 77 45 | 6e 65 6d 79 29 20 26 26 |sAs(NewE|nemy) &&|
|00001a60| 20 21 4e 65 77 45 6e 65 | 6d 79 2e 43 6f 6e 74 72 | !NewEne|my.Contr|
|00001a70| 6f 6c 6c 65 72 2e 62 49 | 73 50 6c 61 79 65 72 3b |oller.bI|sPlayer;|
|00001a80| 0d 0a 09 69 66 20 28 20 | 21 4e 65 77 45 6e 65 6d |...if ( |!NewEnem|
|00001a90| 79 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 62 49 73 |y.Contro|ller.bIs|
|00001aa0| 50 6c 61 79 65 72 09 26 | 26 20 21 62 4e 65 77 4d |Player.&|& !bNewM|
|00001ab0| 6f 6e 73 74 65 72 45 6e | 65 6d 79 20 29 0d 0a 09 |onsterEn|emy )...|
|00001ac0| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00001ad0| 0a 0d 0a 09 69 66 20 28 | 20 28 62 4e 65 77 4d 6f |....if (| (bNewMo|
|00001ae0| 6e 73 74 65 72 45 6e 65 | 6d 79 20 26 26 20 4c 69 |nsterEne|my && Li|
|00001af0| 6e 65 4f 66 53 69 67 68 | 74 54 6f 28 4e 65 77 45 |neOfSigh|tTo(NewE|
|00001b00| 6e 65 6d 79 29 29 20 7c | 7c 20 28 45 6e 65 6d 79 |nemy)) ||| (Enemy|
|00001b10| 20 3d 3d 20 4e 6f 6e 65 | 29 20 7c 7c 20 21 45 6e | == None|) || !En|
|00001b20| 65 6d 79 56 69 73 69 62 | 6c 65 28 29 20 29 0d 0a |emyVisib|le() )..|
|00001b30| 09 7b 0d 0a 09 09 43 68 | 61 6e 67 65 45 6e 65 6d |.{....Ch|angeEnem|
|00001b40| 79 28 4e 65 77 45 6e 65 | 6d 79 2c 43 61 6e 53 65 |y(NewEne|my,CanSe|
|00001b50| 65 28 4e 65 77 45 6e 65 | 6d 79 29 29 3b 0d 0a 09 |e(NewEne|my));...|
|00001b60| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00001b70| 7d 0d 0a 0d 0a 09 69 66 | 20 28 20 21 43 61 6e 53 |}.....if| ( !CanS|
|00001b80| 65 65 28 4e 65 77 45 6e | 65 6d 79 29 20 29 0d 0a |ee(NewEn|emy) )..|
|00001b90| 09 09 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d |..return| false;.|
|00001ba0| 0a 0d 0a 09 69 66 20 28 | 20 21 62 48 61 74 65 4d |....if (| !bHateM|
|00001bb0| 6f 6e 73 74 65 72 20 26 | 26 20 28 4d 6f 6e 73 74 |onster &|& (Monst|
|00001bc0| 65 72 28 45 6e 65 6d 79 | 29 20 21 3d 20 4e 6f 6e |er(Enemy|) != Non|
|00001bd0| 65 29 20 26 26 20 4e 65 | 77 45 6e 65 6d 79 2e 43 |e) && Ne|wEnemy.C|
|00001be0| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 62 49 73 50 6c 61 |ontrolle|r.bIsPla|
|00001bf0| 79 65 72 20 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |yer )...|.return |
|00001c00| 66 61 6c 73 65 3b 0d 0a | 0d 0a 09 45 6e 65 6d 79 |false;..|...Enemy|
|00001c10| 44 69 73 74 20 3d 20 56 | 53 69 7a 65 28 45 6e 65 |Dist = V|Size(Ene|
|00001c20| 6d 79 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 50 61 |my.Locat|ion - Pa|
|00001c30| 77 6e 2e 4c 6f 63 61 74 | 69 6f 6e 29 3b 0d 0a 09 |wn.Locat|ion);...|
|00001c40| 69 66 20 28 20 45 6e 65 | 6d 79 44 69 73 74 20 3c |if ( Ene|myDist <|
|00001c50| 20 50 61 77 6e 2e 4d 65 | 6c 65 65 52 61 6e 67 65 | Pawn.Me|leeRange|
|00001c60| 20 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c | )....re|turn fal|
|00001c70| 73 65 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 45 6e 65 |se;.....|if ( Ene|
|00001c80| 6d 79 44 69 73 74 20 3e | 20 31 2e 37 20 2a 20 56 |myDist >| 1.7 * V|
|00001c90| 53 69 7a 65 28 4e 65 77 | 45 6e 65 6d 79 2e 4c 6f |Size(New|Enemy.Lo|
|00001ca0| 63 61 74 69 6f 6e 20 2d | 20 50 61 77 6e 2e 4c 6f |cation -| Pawn.Lo|
|00001cb0| 63 61 74 69 6f 6e 29 29 | 0d 0a 09 7b 0d 0a 09 09 |cation))|...{....|
|00001cc0| 43 68 61 6e 67 65 45 6e | 65 6d 79 28 4e 65 77 45 |ChangeEn|emy(NewE|
|00001cd0| 6e 65 6d 79 2c 74 72 75 | 65 29 3b 0d 0a 09 09 72 |nemy,tru|e);....r|
|00001ce0| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 7d 0d |eturn tr|ue;...}.|
|00001cf0| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|00001d00| 3b 0d 0a 7d 0d 0a 0d 0a | 2f 2f 44 69 73 61 62 6c |;..}....|//Disabl|
|00001d10| 65 20 54 65 6c 65 70 6f | 72 74 69 6e 67 0d 0a 66 |e Telepo|rting..f|
|00001d20| 75 6e 63 74 69 6f 6e 20 | 46 69 67 68 74 45 6e 65 |unction |FightEne|
|00001d30| 6d 79 28 62 6f 6f 6c 20 | 62 43 61 6e 43 68 61 72 |my(bool |bCanChar|
|00001d40| 67 65 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 76 |ge)..{..|.local v|
|00001d50| 65 63 74 6f 72 20 58 2c | 59 2c 5a 3b 0d 0a 09 6c |ector X,|Y,Z;...l|
|00001d60| 6f 63 61 6c 20 66 6c 6f | 61 74 20 65 6e 65 6d 79 |ocal flo|at enemy|
|00001d70| 44 69 73 74 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |Dist;...|local fl|
|00001d80| 6f 61 74 20 41 64 6a 75 | 73 74 65 64 43 6f 6d 62 |oat Adju|stedComb|
|00001d90| 61 74 53 74 79 6c 65 2c | 20 41 67 67 72 65 73 73 |atStyle,| Aggress|
|00001da0| 69 6f 6e 3b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |ion;...l|ocal boo|
|00001db0| 6c 20 62 46 61 72 41 77 | 61 79 2c 20 62 4f 6c 64 |l bFarAw|ay, bOld|
|00001dc0| 46 6f 72 63 65 64 43 68 | 61 72 67 65 3b 0d 0a 09 |ForcedCh|arge;...|
|00001dd0| 6c 6f 63 61 6c 20 4e 61 | 76 69 67 61 74 69 6f 6e |local Na|vigation|
|00001de0| 50 6f 69 6e 74 20 4e 3b | 0d 0a 0d 0a 09 69 66 20 |Point N;|.....if |
|00001df0| 28 20 28 45 6e 65 6d 79 | 20 3d 3d 20 4e 6f 6e 65 |( (Enemy| == None|
|00001e00| 29 20 7c 7c 20 28 50 61 | 77 6e 20 3d 3d 20 4e 6f |) || (Pa|wn == No|
|00001e10| 6e 65 29 20 29 0d 0a 09 | 09 6c 6f 67 28 22 48 45 |ne) )...|.log("HE|
|00001e20| 52 45 20 33 20 45 6e 65 | 6d 79 20 22 24 45 6e 65 |RE 3 Ene|my "$Ene|
|00001e30| 6d 79 24 22 20 70 61 77 | 6e 20 22 24 50 61 77 6e |my$" paw|n "$Pawn|
|00001e40| 29 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 28 45 6e 65 |);.....i|f ( (Ene|
|00001e50| 6d 79 20 3d 3d 20 46 61 | 69 6c 65 64 48 75 6e 74 |my == Fa|iledHunt|
|00001e60| 45 6e 65 6d 79 29 20 26 | 26 20 28 4c 65 76 65 6c |Enemy) &|& (Level|
|00001e70| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 3d 3d 20 |.TimeSec|onds == |
|00001e80| 46 61 69 6c 65 64 48 75 | 6e 74 54 69 6d 65 29 20 |FailedHu|ntTime) |
|00001e90| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 21 45 |)...{...|.if ( !E|
|00001ea0| 6e 65 6d 79 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |nemy.Con|troller.|
|00001eb0| 62 49 73 50 6c 61 79 65 | 72 20 29 0d 0a 09 09 09 |bIsPlaye|r ).....|
|00001ec0| 46 69 6e 64 4e 65 77 45 | 6e 65 6d 79 28 29 3b 0d |FindNewE|nemy();.|
|00001ed0| 0a 0d 0a 09 09 69 66 20 | 28 20 45 6e 65 6d 79 20 |.....if |( Enemy |
|00001ee0| 3d 3d 20 46 61 69 6c 65 | 64 48 75 6e 74 45 6e 65 |== Faile|dHuntEne|
|00001ef0| 6d 79 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 47 6f |my )....|{.....Go|
|00001f00| 61 6c 53 74 72 69 6e 67 | 20 3d 20 22 46 41 49 4c |alString| = "FAIL|
|00001f10| 45 44 20 48 55 4e 54 20 | 2d 20 48 41 4e 47 20 4f |ED HUNT |- HANG O|
|00001f20| 55 54 22 3b 0d 0a 09 09 | 09 69 66 20 28 20 45 6e |UT";....|.if ( En|
|00001f30| 65 6d 79 56 69 73 69 62 | 6c 65 28 29 20 29 0d 0a |emyVisib|le() )..|
|00001f40| 09 09 09 09 62 43 61 6e | 43 68 61 72 67 65 20 3d |....bCan|Charge =|
|00001f50| 20 66 61 6c 73 65 3b 0d | 0a 09 09 09 65 6c 73 65 | false;.|....else|
|00001f60| 20 69 66 20 28 20 28 4c | 61 73 74 52 65 73 70 61 | if ( (L|astRespa|
|00001f70| 77 6e 54 69 6d 65 20 21 | 3d 20 4c 65 76 65 6c 2e |wnTime !|= Level.|
|00001f80| 54 69 6d 65 53 65 63 6f | 6e 64 73 29 20 26 26 20 |TimeSeco|nds) && |
|00001f90| 28 28 4c 61 73 74 53 65 | 65 6e 54 69 6d 65 20 3d |((LastSe|enTime =|
|00001fa0| 3d 20 30 29 20 7c 7c 20 | 28 4c 65 76 65 6c 2e 54 |= 0) || |(Level.T|
|00001fb0| 69 6d 65 53 65 63 6f 6e | 64 73 20 2d 20 4c 61 73 |imeSecon|ds - Las|
|00001fc0| 74 53 65 65 6e 54 69 6d | 65 29 20 3e 20 31 35 29 |tSeenTim|e) > 15)|
|00001fd0| 20 26 26 20 21 50 61 77 | 6e 2e 50 6c 61 79 65 72 | && !Paw|n.Player|
|00001fe0| 43 61 6e 53 65 65 4d 65 | 28 29 20 29 0d 0a 09 09 |CanSeeMe|() )....|
|00001ff0| 09 7b 0d 0a 09 09 09 09 | 4c 61 73 74 52 65 73 70 |.{......|LastResp|
|00002000| 61 77 6e 54 69 6d 65 20 | 3d 20 4c 65 76 65 6c 2e |awnTime |= Level.|
|00002010| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 09 09 |TimeSeco|nds;....|
|00002020| 09 09 45 6e 65 6d 79 56 | 69 73 69 62 69 6c 69 74 |..EnemyV|isibilit|
|00002030| 79 54 69 6d 65 20 3d 20 | 30 3b 0d 0a 09 09 09 09 |yTime = |0;......|
|00002040| 4e 20 3d 20 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 46 |N = Leve|l.Game.F|
|00002050| 69 6e 64 50 6c 61 79 65 | 72 53 74 61 72 74 28 73 |indPlaye|rStart(s|
|00002060| 65 6c 66 2c 31 29 3b 0d | 0a 09 09 09 09 2f 2f 50 |elf,1);.|.....//P|
|00002070| 61 77 6e 2e 53 65 74 4c | 6f 63 61 74 69 6f 6e 28 |awn.SetL|ocation(|
|00002080| 4e 2e 4c 6f 63 61 74 69 | 6f 6e 2b 28 50 61 77 6e |N.Locati|on+(Pawn|
|00002090| 2e 43 6f 6c 6c 69 73 69 | 6f 6e 48 65 69 67 68 74 |.Collisi|onHeight|
|000020a0| 20 2d 20 4e 2e 43 6f 6c | 6c 69 73 69 6f 6e 48 65 | - N.Col|lisionHe|
|000020b0| 69 67 68 74 29 20 2a 20 | 76 65 63 74 28 30 2c 30 |ight) * |vect(0,0|
|000020c0| 2c 31 29 29 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |,1));...|..}.....|
|000020d0| 69 66 20 28 20 21 45 6e | 65 6d 79 56 69 73 69 62 |if ( !En|emyVisib|
|000020e0| 6c 65 28 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |le() )..|...{....|
|000020f0| 09 09 57 61 6e 64 65 72 | 4f 72 43 61 6d 70 28 74 |..Wander|OrCamp(t|
|00002100| 72 75 65 29 3b 0d 0a 09 | 09 09 09 72 65 74 75 72 |rue);...|...retur|
|00002110| 6e 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 7d 0d 0a 09 |n;.....}|....}...|
|00002120| 7d 0d 0a 0d 0a 09 62 4f | 6c 64 46 6f 72 63 65 64 |}.....bO|ldForced|
|00002130| 43 68 61 72 67 65 20 3d | 20 62 4d 75 73 74 43 68 |Charge =| bMustCh|
|00002140| 61 72 67 65 3b 0d 0a 09 | 62 4d 75 73 74 43 68 61 |arge;...|bMustCha|
|00002150| 72 67 65 20 3d 20 66 61 | 6c 73 65 3b 0d 0a 09 65 |rge = fa|lse;...e|
|00002160| 6e 65 6d 79 44 69 73 74 | 20 3d 20 56 53 69 7a 65 |nemyDist| = VSize|
|00002170| 28 50 61 77 6e 2e 4c 6f | 63 61 74 69 6f 6e 20 2d |(Pawn.Lo|cation -|
|00002180| 20 45 6e 65 6d 79 2e 4c | 6f 63 61 74 69 6f 6e 29 | Enemy.L|ocation)|
|00002190| 3b 0d 0a 09 41 64 6a 75 | 73 74 65 64 43 6f 6d 62 |;...Adju|stedComb|
|000021a0| 61 74 53 74 79 6c 65 20 | 3d 20 43 6f 6d 62 61 74 |atStyle |= Combat|
|000021b0| 53 74 79 6c 65 3b 0d 0a | 09 41 67 67 72 65 73 73 |Style;..|.Aggress|
|000021c0| 69 6f 6e 20 3d 20 31 2e | 35 20 2a 20 46 52 61 6e |ion = 1.|5 * FRan|
|000021d0| 64 28 29 20 2d 20 30 2e | 38 20 2b 20 32 20 2a 20 |d() - 0.|8 + 2 * |
|000021e0| 41 64 6a 75 73 74 65 64 | 43 6f 6d 62 61 74 53 74 |Adjusted|CombatSt|
|000021f0| 79 6c 65 0d 0a 09 09 09 | 09 2b 20 46 52 61 6e 64 |yle.....|.+ FRand|
|00002200| 28 29 20 2a 20 28 4e 6f | 72 6d 61 6c 28 45 6e 65 |() * (No|rmal(Ene|
|00002210| 6d 79 2e 56 65 6c 6f 63 | 69 74 79 20 2d 20 50 61 |my.Veloc|ity - Pa|
|00002220| 77 6e 2e 56 65 6c 6f 63 | 69 74 79 29 20 44 6f 74 |wn.Veloc|ity) Dot|
|00002230| 20 4e 6f 72 6d 61 6c 28 | 45 6e 65 6d 79 2e 4c 6f | Normal(|Enemy.Lo|
|00002240| 63 61 74 69 6f 6e 20 2d | 20 50 61 77 6e 2e 4c 6f |cation -| Pawn.Lo|
|00002250| 63 61 74 69 6f 6e 29 29 | 3b 0d 0a 09 69 66 20 28 |cation))|;...if (|
|00002260| 20 45 6e 65 6d 79 2e 57 | 65 61 70 6f 6e 20 21 3d | Enemy.W|eapon !=|
|00002270| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 41 67 67 72 65 | None ).|...Aggre|
|00002280| 73 73 69 6f 6e 20 2b 3d | 20 32 20 2a 20 45 6e 65 |ssion +=| 2 * Ene|
|00002290| 6d 79 2e 57 65 61 70 6f | 6e 2e 53 75 67 67 65 73 |my.Weapo|n.Sugges|
|000022a0| 74 44 65 66 65 6e 73 65 | 53 74 79 6c 65 28 29 3b |tDefense|Style();|
|000022b0| 0d 0a 09 69 66 20 28 20 | 65 6e 65 6d 79 44 69 73 |...if ( |enemyDis|
|000022c0| 74 20 3e 20 4d 41 58 53 | 54 41 4b 45 4f 55 54 44 |t > MAXS|TAKEOUTD|
|000022d0| 49 53 54 20 29 0d 0a 09 | 09 41 67 67 72 65 73 73 |IST )...|.Aggress|
|000022e0| 69 6f 6e 20 2b 3d 20 30 | 2e 35 3b 0d 0a 09 69 66 |ion += 0|.5;...if|
|000022f0| 20 28 20 28 50 61 77 6e | 2e 50 68 79 73 69 63 73 | ( (Pawn|.Physics|
|00002300| 20 3d 3d 20 50 48 59 53 | 5f 57 61 6c 6b 69 6e 67 | == PHYS|_Walking|
|00002310| 29 20 7c 7c 20 28 50 61 | 77 6e 2e 50 68 79 73 69 |) || (Pa|wn.Physi|
|00002320| 63 73 20 3d 3d 20 50 48 | 59 53 5f 46 61 6c 6c 69 |cs == PH|YS_Falli|
|00002330| 6e 67 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 69 66 20 |ng) )...|{....if |
|00002340| 28 50 61 77 6e 2e 4c 6f | 63 61 74 69 6f 6e 2e 5a |(Pawn.Lo|cation.Z|
|00002350| 20 3e 20 45 6e 65 6d 79 | 2e 4c 6f 63 61 74 69 6f | > Enemy|.Locatio|
|00002360| 6e 2e 5a 20 2b 20 54 41 | 43 54 49 43 41 4c 48 45 |n.Z + TA|CTICALHE|
|00002370| 49 47 48 54 41 44 56 41 | 4e 54 41 47 45 29 0d 0a |IGHTADVA|NTAGE)..|
|00002380| 09 09 09 41 67 67 72 65 | 73 73 69 6f 6e 20 3d 20 |...Aggre|ssion = |
|00002390| 46 4d 61 78 28 30 2e 30 | 2c 20 41 67 67 72 65 73 |FMax(0.0|, Aggres|
|000023a0| 73 69 6f 6e 20 2d 20 31 | 2e 30 20 2b 20 41 64 6a |sion - 1|.0 + Adj|
|000023b0| 75 73 74 65 64 43 6f 6d | 62 61 74 53 74 79 6c 65 |ustedCom|batStyle|
|000023c0| 29 3b 0d 0a 09 09 65 6c | 73 65 20 69 66 20 28 20 |);....el|se if ( |
|000023d0| 28 53 6b 69 6c 6c 20 3c | 20 34 29 20 26 26 20 28 |(Skill <| 4) && (|
|000023e0| 65 6e 65 6d 79 44 69 73 | 74 20 3e 20 30 2e 36 35 |enemyDis|t > 0.65|
|000023f0| 20 2a 20 4d 41 58 53 54 | 41 4b 45 4f 55 54 44 49 | * MAXST|AKEOUTDI|
|00002400| 53 54 29 20 29 0d 0a 09 | 09 7b 0d 0a 09 09 09 62 |ST) )...|.{.....b|
|00002410| 46 61 72 41 77 61 79 20 | 3d 20 74 72 75 65 3b 0d |FarAway |= true;.|
|00002420| 0a 09 09 09 41 67 67 72 | 65 73 73 69 6f 6e 20 2b |....Aggr|ession +|
|00002430| 3d 20 30 2e 35 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 |= 0.5;..|..}....e|
|00002440| 6c 73 65 20 69 66 20 28 | 50 61 77 6e 2e 4c 6f 63 |lse if (|Pawn.Loc|
|00002450| 61 74 69 6f 6e 2e 5a 20 | 3c 20 45 6e 65 6d 79 2e |ation.Z |< Enemy.|
|00002460| 4c 6f 63 61 74 69 6f 6e | 2e 5a 20 2d 20 50 61 77 |Location|.Z - Paw|
|00002470| 6e 2e 43 6f 6c 6c 69 73 | 69 6f 6e 48 65 69 67 68 |n.Collis|ionHeigh|
|00002480| 74 29 20 2f 2f 20 62 65 | 6c 6f 77 20 65 6e 65 6d |t) // be|low enem|
|00002490| 79 0d 0a 09 09 09 41 67 | 67 72 65 73 73 69 6f 6e |y.....Ag|gression|
|000024a0| 20 2b 3d 20 43 6f 6d 62 | 61 74 53 74 79 6c 65 3b | += Comb|atStyle;|
|000024b0| 0d 0a 09 7d 0d 0a 0d 0a | 09 69 66 20 28 20 21 45 |...}....|.if ( !E|
|000024c0| 6e 65 6d 79 56 69 73 69 | 62 6c 65 28 29 20 29 0d |nemyVisi|ble() ).|
|000024d0| 0a 09 7b 0d 0a 09 09 47 | 6f 61 6c 53 74 72 69 6e |..{....G|oalStrin|
|000024e0| 67 20 3d 20 22 45 6e 65 | 6d 79 20 6e 6f 74 20 76 |g = "Ene|my not v|
|000024f0| 69 73 69 62 6c 65 22 3b | 0d 0a 09 09 69 66 20 28 |isible";|....if (|
|00002500| 20 21 62 43 61 6e 43 68 | 61 72 67 65 20 29 0d 0a | !bCanCh|arge )..|
|00002510| 09 09 7b 0d 0a 09 09 09 | 47 6f 61 6c 53 74 72 69 |..{.....|GoalStri|
|00002520| 6e 67 20 3d 20 22 53 74 | 61 6b 65 20 4f 75 74 22 |ng = "St|ake Out"|
|00002530| 3b 0d 0a 09 09 09 44 6f | 53 74 61 6b 65 4f 75 74 |;.....Do|StakeOut|
|00002540| 28 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 65 6c 73 65 |();....}|....else|
|00002550| 0d 0a 09 09 7b 0d 0a 09 | 09 09 47 6f 61 6c 53 74 |....{...|..GoalSt|
|00002560| 72 69 6e 67 20 3d 20 22 | 48 75 6e 74 22 3b 0d 0a |ring = "|Hunt";..|
|00002570| 09 09 09 47 6f 74 6f 53 | 74 61 74 65 28 27 48 75 |...GotoS|tate('Hu|
|00002580| 6e 74 69 6e 67 27 29 3b | 0d 0a 09 09 7d 0d 0a 09 |nting');|....}...|
|00002590| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 0d 0a |.return;|...}....|
|000025a0| 09 2f 2f 20 73 65 65 20 | 65 6e 65 6d 79 20 2d 20 |.// see |enemy - |
|000025b0| 64 65 63 69 64 65 20 77 | 68 65 74 68 65 72 20 74 |decide w|hether t|
|000025c0| 6f 20 63 68 61 72 67 65 | 20 69 74 20 6f 72 20 73 |o charge| it or s|
|000025d0| 74 72 61 66 65 20 61 72 | 6f 75 6e 64 2f 73 74 61 |trafe ar|ound/sta|
|000025e0| 6e 64 20 61 6e 64 20 66 | 69 72 65 0d 0a 09 54 61 |nd and f|ire...Ta|
|000025f0| 72 67 65 74 20 3d 20 45 | 6e 65 6d 79 3b 0d 0a 09 |rget = E|nemy;...|
|00002600| 69 66 28 20 4d 6f 6e 73 | 74 65 72 28 50 61 77 6e |if( Mons|ter(Pawn|
|00002610| 29 2e 50 72 65 66 65 72 | 4d 65 6c 65 65 28 29 20 |).Prefer|Melee() |
|00002620| 7c 7c 20 28 62 43 61 6e | 43 68 61 72 67 65 20 26 ||| (bCan|Charge &|
|00002630| 26 20 62 4f 6c 64 46 6f | 72 63 65 64 43 68 61 72 |& bOldFo|rcedChar|
|00002640| 67 65 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 47 6f 61 |ge) )...|{....Goa|
|00002650| 6c 53 74 72 69 6e 67 20 | 3d 20 22 43 68 61 72 67 |lString |= "Charg|
|00002660| 65 22 3b 0d 0a 09 09 44 | 6f 43 68 61 72 67 65 28 |e";....D|oCharge(|
|00002670| 29 3b 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |);....re|turn;...|
|00002680| 7d 0d 0a 0d 0a 09 69 66 | 20 28 20 62 43 61 6e 43 |}.....if| ( bCanC|
|00002690| 68 61 72 67 65 20 26 26 | 20 28 53 6b 69 6c 6c 20 |harge &&| (Skill |
|000026a0| 3c 20 35 29 20 26 26 20 | 62 46 61 72 41 77 61 79 |< 5) && |bFarAway|
|000026b0| 20 26 26 20 28 41 67 67 | 72 65 73 73 69 6f 6e 20 | && (Agg|ression |
|000026c0| 3e 20 31 29 20 26 26 20 | 28 46 52 61 6e 64 28 29 |> 1) && |(FRand()|
|000026d0| 20 3c 20 30 2e 35 29 20 | 29 0d 0a 09 7b 0d 0a 09 | < 0.5) |)...{...|
|000026e0| 09 47 6f 61 6c 53 74 72 | 69 6e 67 20 3d 20 22 43 |.GoalStr|ing = "C|
|000026f0| 68 61 72 67 65 20 63 6c | 6f 73 65 72 22 3b 0d 0a |harge cl|oser";..|
|00002700| 09 09 44 6f 43 68 61 72 | 67 65 28 29 3b 0d 0a 09 |..DoChar|ge();...|
|00002710| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 0d 0a |.return;|...}....|
|00002720| 09 69 66 20 28 20 21 4d | 6f 6e 73 74 65 72 28 50 |.if ( !M|onster(P|
|00002730| 61 77 6e 29 2e 50 72 65 | 66 65 72 4d 65 6c 65 65 |awn).Pre|ferMelee|
|00002740| 28 29 20 26 26 20 28 46 | 52 61 6e 64 28 29 20 3e |() && (F|Rand() >|
|00002750| 20 30 2e 31 37 20 2a 20 | 28 73 6b 69 6c 6c 20 2d | 0.17 * |(skill -|
|00002760| 20 31 29 29 20 26 26 20 | 21 44 65 66 65 6e 64 4d | 1)) && |!DefendM|
|00002770| 65 6c 65 65 28 65 6e 65 | 6d 79 44 69 73 74 29 20 |elee(ene|myDist) |
|00002780| 29 0d 0a 09 7b 0d 0a 09 | 09 47 6f 61 6c 53 74 72 |)...{...|.GoalStr|
|00002790| 69 6e 67 20 3d 20 22 52 | 61 6e 67 65 64 20 41 74 |ing = "R|anged At|
|000027a0| 74 61 63 6b 22 3b 0d 0a | 09 09 44 6f 52 61 6e 67 |tack";..|..DoRang|
|000027b0| 65 64 41 74 74 61 63 6b | 4f 6e 28 45 6e 65 6d 79 |edAttack|On(Enemy|
|000027c0| 29 3b 0d 0a 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |);....re|turn;...|
|000027d0| 7d 0d 0a 0d 0a 09 69 66 | 20 28 20 62 43 61 6e 43 |}.....if| ( bCanC|
|000027e0| 68 61 72 67 65 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |harge ).|..{....i|
|000027f0| 66 20 28 20 41 67 67 72 | 65 73 73 69 6f 6e 20 3e |f ( Aggr|ession >|
|00002800| 20 31 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 47 6f | 1 )....|{.....Go|
|00002810| 61 6c 53 74 72 69 6e 67 | 20 3d 20 22 43 68 61 72 |alString| = "Char|
|00002820| 67 65 20 32 22 3b 0d 0a | 09 09 09 44 6f 43 68 61 |ge 2";..|...DoCha|
|00002830| 72 67 65 28 29 3b 0d 0a | 09 09 09 72 65 74 75 72 |rge();..|...retur|
|00002840| 6e 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 |n;....}.|..}.....|
|00002850| 69 66 20 28 20 21 50 61 | 77 6e 2e 62 43 61 6e 53 |if ( !Pa|wn.bCanS|
|00002860| 74 72 61 66 65 20 29 0d | 0a 09 7b 0d 0a 09 09 47 |trafe ).|..{....G|
|00002870| 6f 61 6c 53 74 72 69 6e | 67 20 3d 20 22 52 61 6e |oalStrin|g = "Ran|
|00002880| 67 65 64 20 41 74 74 61 | 63 6b 22 3b 0d 0a 09 09 |ged Atta|ck";....|
|00002890| 44 6f 52 61 6e 67 65 64 | 41 74 74 61 63 6b 4f 6e |DoRanged|AttackOn|
|000028a0| 28 45 6e 65 6d 79 29 3b | 0d 0a 09 09 72 65 74 75 |(Enemy);|....retu|
|000028b0| 72 6e 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 47 6f 61 6c |rn;...}.|....Goal|
|000028c0| 53 74 72 69 6e 67 20 3d | 20 22 44 6f 20 74 61 63 |String =| "Do tac|
|000028d0| 74 69 63 61 6c 20 6d 6f | 76 65 22 3b 0d 0a 09 69 |tical mo|ve";...i|
|000028e0| 66 20 28 20 21 4d 6f 6e | 73 74 65 72 28 50 61 77 |f ( !Mon|ster(Paw|
|000028f0| 6e 29 2e 52 65 63 6f 6d | 6d 65 6e 64 53 70 6c 61 |n).Recom|mendSpla|
|00002900| 73 68 44 61 6d 61 67 65 | 28 29 20 26 26 20 4d 6f |shDamage|() && Mo|
|00002910| 6e 73 74 65 72 28 50 61 | 77 6e 29 2e 62 43 61 6e |nster(Pa|wn).bCan|
|00002920| 44 6f 64 67 65 20 26 26 | 20 28 46 52 61 6e 64 28 |Dodge &&| (FRand(|
|00002930| 29 20 3c 20 30 2e 37 29 | 20 26 26 20 28 46 52 61 |) < 0.7)| && (FRa|
|00002940| 6e 64 28 29 2a 53 6b 69 | 6c 6c 20 3e 20 33 29 20 |nd()*Ski|ll > 3) |
|00002950| 29 0d 0a 09 7b 0d 0a 09 | 09 47 65 74 41 78 65 73 |)...{...|.GetAxes|
|00002960| 28 50 61 77 6e 2e 52 6f | 74 61 74 69 6f 6e 2c 58 |(Pawn.Ro|tation,X|
|00002970| 2c 59 2c 5a 29 3b 0d 0a | 09 09 47 6f 61 6c 53 74 |,Y,Z);..|..GoalSt|
|00002980| 72 69 6e 67 20 3d 20 22 | 54 72 79 20 74 6f 20 44 |ring = "|Try to D|
|00002990| 75 63 6b 20 22 3b 0d 0a | 09 09 69 66 20 28 20 46 |uck ";..|..if ( F|
|000029a0| 52 61 6e 64 28 29 20 3c | 20 30 2e 35 20 29 0d 0a |Rand() <| 0.5 )..|
|000029b0| 09 09 7b 0d 0a 09 09 09 | 59 20 2a 3d 20 2d 31 3b |..{.....|Y *= -1;|
|000029c0| 0d 0a 09 09 09 54 72 79 | 54 6f 44 75 63 6b 28 59 |.....Try|ToDuck(Y|
|000029d0| 2c 20 74 72 75 65 29 3b | 0d 0a 09 09 7d 0d 0a 09 |, true);|....}...|
|000029e0| 09 65 6c 73 65 0d 0a 09 | 09 09 54 72 79 54 6f 44 |.else...|..TryToD|
|000029f0| 75 63 6b 28 59 2c 20 66 | 61 6c 73 65 29 3b 0d 0a |uck(Y, f|alse);..|
|00002a00| 09 7d 0d 0a 09 44 6f 54 | 61 63 74 69 63 61 6c 4d |.}...DoT|acticalM|
|00002a10| 6f 76 65 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 00 |ove();..|}..... |
+--------+-------------------------+-------------------------+--------+--------+