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

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

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

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5d 7a 63 6c 61 73 73 20 |........|]zclass |
|00000010| 42 61 6c 6c 4c 61 75 6e | 63 68 65 72 20 65 78 74 |BallLaun|cher ext|
|00000020| 65 6e 64 73 20 57 65 61 | 70 6f 6e 0d 0a 20 20 20 |ends Wea|pon.. |
|00000030| 20 63 6f 6e 66 69 67 28 | 75 73 65 72 29 0d 0a 20 | config(|user).. |
|00000040| 20 20 20 48 69 64 65 44 | 72 6f 70 44 6f 77 6e 0d | HideD|ropDown.|
|00000050| 0a 09 43 61 63 68 65 45 | 78 65 6d 70 74 3b 0d 0a |..CacheE|xempt;..|
|00000060| 0d 0a 23 45 58 45 43 20 | 4f 42 4a 20 4c 4f 41 44 |..#EXEC |OBJ LOAD|
|00000070| 20 46 49 4c 45 3d 49 6e | 74 65 72 66 61 63 65 43 | FILE=In|terfaceC|
|00000080| 6f 6e 74 65 6e 74 2e 75 | 74 78 0d 0a 0d 0a 76 61 |ontent.u|tx....va|
|00000090| 72 28 29 20 74 72 61 6e | 73 69 65 6e 74 20 62 6f |r() tran|sient bo|
|000000a0| 6f 6c 20 6c 61 75 6e 63 | 68 65 64 42 61 6c 6c 3b |ol launc|hedBall;|
|000000b0| 0d 0a 76 61 72 28 29 20 | 74 72 61 6e 73 69 65 6e |..var() |transien|
|000000c0| 74 20 50 61 77 6e 20 50 | 61 73 73 54 61 72 67 65 |t Pawn P|assTarge|
|000000d0| 74 3b 0d 0a 76 61 72 28 | 29 20 53 6f 75 6e 64 20 |t;..var(|) Sound |
|000000e0| 50 61 73 73 41 6d 62 69 | 65 6e 74 3b 0d 0a 76 61 |PassAmbi|ent;..va|
|000000f0| 72 28 29 20 53 6f 75 6e | 64 20 50 61 73 73 54 61 |r() Soun|d PassTa|
|00000100| 72 67 65 74 4c 6f 63 6b | 65 64 3b 0d 0a 76 61 72 |rgetLock|ed;..var|
|00000110| 28 29 20 53 6f 75 6e 64 | 20 50 61 73 73 54 61 72 |() Sound| PassTar|
|00000120| 67 65 74 4c 6f 73 74 3b | 0d 0a 76 61 72 28 29 20 |getLost;|..var() |
|00000130| 53 74 72 69 6e 67 20 50 | 61 73 73 54 61 72 67 65 |String P|assTarge|
|00000140| 74 4c 6f 63 6b 65 64 46 | 6f 72 63 65 3b 0d 0a 76 |tLockedF|orce;..v|
|00000150| 61 72 28 29 20 53 74 72 | 69 6e 67 20 50 61 73 73 |ar() Str|ing Pass|
|00000160| 54 61 72 67 65 74 4c 6f | 73 74 46 6f 72 63 65 3b |TargetLo|stForce;|
|00000170| 0d 0a 76 61 72 28 29 20 | 66 6c 6f 61 74 20 48 65 |..var() |float He|
|00000180| 61 6c 52 61 74 65 3b 0d | 0a 76 61 72 20 74 72 61 |alRate;.|.var tra|
|00000190| 6e 73 69 65 6e 74 20 66 | 6c 6f 61 74 20 48 65 61 |nsient f|loat Hea|
|000001a0| 6c 41 63 63 75 6d 3b 0d | 0a 76 61 72 20 74 72 61 |lAccum;.|.var tra|
|000001b0| 6e 73 69 65 6e 74 20 66 | 6c 6f 61 74 20 53 77 69 |nsient f|loat Swi|
|000001c0| 74 63 68 54 65 73 74 54 | 69 6d 65 3b 0d 0a 0d 0a |tchTestT|ime;....|
|000001d0| 76 61 72 20 41 63 74 6f | 72 20 41 49 54 61 72 67 |var Acto|r AITarg|
|000001e0| 65 74 3b 09 09 2f 2f 20 | 75 73 65 64 20 62 79 20 |et;..// |used by |
|000001f0| 41 49 0d 0a 0d 0a 23 65 | 78 65 63 20 4f 42 4a 20 |AI....#e|xec OBJ |
|00000200| 4c 4f 41 44 20 46 69 6c | 65 3d 49 6e 64 6f 6f 72 |LOAD Fil|e=Indoor|
|00000210| 41 6d 62 69 65 6e 63 65 | 2e 75 61 78 0d 0a 0d 0a |Ambience|.uax....|
|00000220| 72 65 70 6c 69 63 61 74 | 69 6f 6e 0d 0a 7b 0d 0a |replicat|ion..{..|
|00000230| 20 20 20 20 72 65 6c 69 | 61 62 6c 65 20 69 66 20 | reli|able if |
|00000240| 28 20 52 6f 6c 65 20 3d | 3d 20 52 4f 4c 45 5f 41 |( Role =|= ROLE_A|
|00000250| 75 74 68 6f 72 69 74 79 | 20 29 0d 0a 20 20 20 20 |uthority| ).. |
|00000260| 20 20 20 20 50 61 73 73 | 54 61 72 67 65 74 3b 0d | Pass|Target;.|
|00000270| 0a 7d 0d 0a 0d 0a 73 69 | 6d 75 6c 61 74 65 64 20 |.}....si|mulated |
|00000280| 66 75 6e 63 74 69 6f 6e | 20 4f 75 74 4f 66 41 6d |function| OutOfAm|
|00000290| 6d 6f 28 29 0d 0a 7b 0d | 0a 7d 0d 0a 0d 0a 66 75 |mo()..{.|.}....fu|
|000002a0| 6e 63 74 69 6f 6e 20 53 | 79 6e 63 68 72 6f 6e 69 |nction S|ynchroni|
|000002b0| 7a 65 57 65 61 70 6f 6e | 28 57 65 61 70 6f 6e 20 |zeWeapon|(Weapon |
|000002c0| 43 6c 69 65 6e 74 57 65 | 61 70 6f 6e 29 0d 0a 7b |ClientWe|apon)..{|
|000002d0| 0d 0a 09 69 66 20 28 20 | 49 6e 73 74 69 67 61 74 |...if ( |Instigat|
|000002e0| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 21 3d |or.Contr|oller !=|
|000002f0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 49 6e 73 74 69 | None ).|...Insti|
|00000300| 67 61 74 6f 72 2e 43 6f | 6e 74 72 6f 6c 6c 65 72 |gator.Co|ntroller|
|00000310| 2e 43 6c 69 65 6e 74 53 | 65 74 57 65 61 70 6f 6e |.ClientS|etWeapon|
|00000320| 28 63 6c 61 73 73 29 3b | 0d 0a 7d 0d 0a 0d 0a 73 |(class);|..}....s|
|00000330| 69 6d 75 6c 61 74 65 64 | 20 66 75 6e 63 74 69 6f |imulated| functio|
|00000340| 6e 20 44 72 61 77 57 65 | 61 70 6f 6e 49 6e 66 6f |n DrawWe|aponInfo|
|00000350| 28 43 61 6e 76 61 73 20 | 43 61 6e 76 61 73 29 0d |(Canvas |Canvas).|
|00000360| 0a 7b 0d 0a 09 4e 65 77 | 44 72 61 77 57 65 61 70 |.{...New|DrawWeap|
|00000370| 6f 6e 49 6e 66 6f 28 43 | 61 6e 76 61 73 2c 20 30 |onInfo(C|anvas, 0|
|00000380| 29 3b 0d 0a 7d 0d 0a 0d | 0a 73 69 6d 75 6c 61 74 |);..}...|.simulat|
|00000390| 65 64 20 66 75 6e 63 74 | 69 6f 6e 20 4e 65 77 44 |ed funct|ion NewD|
|000003a0| 72 61 77 57 65 61 70 6f | 6e 49 6e 66 6f 28 43 61 |rawWeapo|nInfo(Ca|
|000003b0| 6e 76 61 73 20 43 61 6e | 76 61 73 2c 20 66 6c 6f |nvas Can|vas, flo|
|000003c0| 61 74 20 59 50 6f 73 29 | 0d 0a 7b 0d 0a 20 20 20 |at YPos)|..{.. |
|000003d0| 20 6c 6f 63 61 6c 20 78 | 50 6c 61 79 65 72 20 50 | local x|Player P|
|000003e0| 43 3b 0d 0a 0d 0a 09 50 | 43 20 3d 20 78 50 6c 61 |C;.....P|C = xPla|
|000003f0| 79 65 72 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 43 |yer(Inst|igator.C|
|00000400| 6f 6e 74 72 6f 6c 6c 65 | 72 29 3b 0d 0a 09 69 66 |ontrolle|r);...if|
|00000410| 20 28 20 50 43 20 3d 3d | 20 4e 6f 6e 65 20 29 0d | ( PC ==| None ).|
|00000420| 0a 09 09 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 20 20 |...retur|n;.... |
|00000430| 20 20 69 66 28 20 50 61 | 73 73 54 61 72 67 65 74 | if( Pa|ssTarget|
|00000440| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 20 20 20 20 | != None| ).. |
|00000450| 20 20 20 20 50 43 2e 6d | 79 48 55 44 2e 53 65 74 | PC.m|yHUD.Set|
|00000460| 54 61 72 67 65 74 69 6e | 67 28 20 74 72 75 65 2c |Targetin|g( true,|
|00000470| 20 50 61 73 73 54 61 72 | 67 65 74 2e 4c 6f 63 61 | PassTar|get.Loca|
|00000480| 74 69 6f 6e 2c 20 31 2e | 30 20 29 3b 0d 0a 0d 0a |tion, 1.|0 );....|
|00000490| 09 50 43 2e 6d 79 48 55 | 44 2e 44 72 61 77 54 61 |.PC.myHU|D.DrawTa|
|000004a0| 72 67 65 74 69 6e 67 28 | 43 61 6e 76 61 73 29 3b |rgeting(|Canvas);|
|000004b0| 0d 0a 20 20 20 20 50 43 | 2e 6d 79 48 55 44 2e 53 |.. PC|.myHUD.S|
|000004c0| 65 74 54 61 72 67 65 74 | 69 6e 67 28 66 61 6c 73 |etTarget|ing(fals|
|000004d0| 65 29 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |e);..}..|..simula|
|000004e0| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 42 72 69 |ted func|tion Bri|
|000004f0| 6e 67 55 70 28 6f 70 74 | 69 6f 6e 61 6c 20 57 65 |ngUp(opt|ional We|
|00000500| 61 70 6f 6e 20 50 72 65 | 76 57 65 61 70 6f 6e 29 |apon Pre|vWeapon)|
|00000510| 0d 0a 7b 0d 0a 20 20 20 | 20 53 75 70 65 72 2e 42 |..{.. | Super.B|
|00000520| 72 69 6e 67 55 70 28 29 | 3b 0d 0a 0d 0a 20 20 20 |ringUp()|;.... |
|00000530| 20 69 66 20 28 49 6e 73 | 74 69 67 61 74 6f 72 2e | if (Ins|tigator.|
|00000540| 49 73 4c 6f 63 61 6c 6c | 79 43 6f 6e 74 72 6f 6c |IsLocall|yControl|
|00000550| 6c 65 64 28 29 20 26 26 | 20 21 50 72 65 76 57 65 |led() &&| !PrevWe|
|00000560| 61 70 6f 6e 2e 49 73 41 | 28 27 42 61 6c 6c 4c 61 |apon.IsA|('BallLa|
|00000570| 75 6e 63 68 65 72 27 29 | 29 0d 0a 20 20 20 20 20 |uncher')|).. |
|00000580| 20 20 20 49 6e 73 74 69 | 67 61 74 6f 72 2e 50 65 | Insti|gator.Pe|
|00000590| 6e 64 69 6e 67 57 65 61 | 70 6f 6e 20 3d 20 50 72 |ndingWea|pon = Pr|
|000005a0| 65 76 57 65 61 70 6f 6e | 3b 0d 0a 0d 0a 20 20 20 |evWeapon|;.... |
|000005b0| 20 2f 2f 20 70 72 65 76 | 65 6e 74 20 73 68 6f 6f | // prev|ent shoo|
|000005c0| 74 69 6e 67 20 62 61 6c | 6c 20 75 6e 74 69 6c 20 |ting bal|l until |
|000005d0| 62 75 74 74 6f 6e 20 69 | 73 20 72 65 6c 65 61 73 |button i|s releas|
|000005e0| 65 64 0d 0a 20 20 20 20 | 46 69 72 65 4d 6f 64 65 |ed.. |FireMode|
|000005f0| 5b 30 5d 2e 62 49 73 46 | 69 72 69 6e 67 20 3d 20 |[0].bIsF|iring = |
|00000600| 74 72 75 65 3b 0d 0a 20 | 20 20 20 46 69 72 65 4d |true;.. | FireM|
|00000610| 6f 64 65 5b 30 5d 2e 62 | 4e 6f 77 57 61 69 74 69 |ode[0].b|NowWaiti|
|00000620| 6e 67 20 3d 20 74 72 75 | 65 3b 0d 0a 7d 0d 0a 0d |ng = tru|e;..}...|
|00000630| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00000640| 69 6f 6e 20 57 65 61 70 | 6f 6e 20 4e 65 78 74 57 |ion Weap|on NextW|
|00000650| 65 61 70 6f 6e 28 57 65 | 61 70 6f 6e 20 43 75 72 |eapon(We|apon Cur|
|00000660| 72 65 6e 74 43 68 6f 69 | 63 65 2c 20 57 65 61 70 |rentChoi|ce, Weap|
|00000670| 6f 6e 20 43 75 72 72 65 | 6e 74 57 65 61 70 6f 6e |on Curre|ntWeapon|
|00000680| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 43 75 72 72 |)..{...i|f ( Curr|
|00000690| 65 6e 74 57 65 61 70 6f | 6e 20 3d 3d 20 73 65 6c |entWeapo|n == sel|
|000006a0| 66 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 49 6e |f )....r|eturn In|
|000006b0| 73 74 69 67 61 74 6f 72 | 2e 50 65 6e 64 69 6e 67 |stigator|.Pending|
|000006c0| 57 65 61 70 6f 6e 3b 0d | 0a 09 65 6c 73 65 0d 0a |Weapon;.|..else..|
|000006d0| 09 09 72 65 74 75 72 6e | 20 53 75 70 65 72 2e 4e |..return| Super.N|
|000006e0| 65 78 74 57 65 61 70 6f | 6e 28 43 75 72 72 65 6e |extWeapo|n(Curren|
|000006f0| 74 43 68 6f 69 63 65 2c | 43 75 72 72 65 6e 74 57 |tChoice,|CurrentW|
|00000700| 65 61 70 6f 6e 29 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |eapon);.|.}....si|
|00000710| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00000720| 20 57 65 61 70 6f 6e 20 | 50 72 65 76 57 65 61 70 | Weapon |PrevWeap|
|00000730| 6f 6e 28 57 65 61 70 6f | 6e 20 43 75 72 72 65 6e |on(Weapo|n Curren|
|00000740| 74 43 68 6f 69 63 65 2c | 20 57 65 61 70 6f 6e 20 |tChoice,| Weapon |
|00000750| 43 75 72 72 65 6e 74 57 | 65 61 70 6f 6e 29 0d 0a |CurrentW|eapon)..|
|00000760| 7b 0d 0a 09 69 66 20 28 | 20 43 75 72 72 65 6e 74 |{...if (| Current|
|00000770| 57 65 61 70 6f 6e 20 3d | 3d 20 73 65 6c 66 20 29 |Weapon =|= self )|
|00000780| 0d 0a 09 09 72 65 74 75 | 72 6e 20 49 6e 73 74 69 |....retu|rn Insti|
|00000790| 67 61 74 6f 72 2e 50 65 | 6e 64 69 6e 67 57 65 61 |gator.Pe|ndingWea|
|000007a0| 70 6f 6e 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 72 |pon;...e|lse....r|
|000007b0| 65 74 75 72 6e 20 53 75 | 70 65 72 2e 50 72 65 76 |eturn Su|per.Prev|
|000007c0| 57 65 61 70 6f 6e 28 43 | 75 72 72 65 6e 74 43 68 |Weapon(C|urrentCh|
|000007d0| 6f 69 63 65 2c 43 75 72 | 72 65 6e 74 57 65 61 70 |oice,Cur|rentWeap|
|000007e0| 6f 6e 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |on);..}.|...simul|
|000007f0| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |ated fun|ction bo|
|00000800| 6f 6c 20 50 75 74 44 6f | 77 6e 28 29 0d 0a 7b 0d |ol PutDo|wn()..{.|
|00000810| 0a 20 20 20 20 69 66 20 | 28 20 6c 61 75 6e 63 68 |. if |( launch|
|00000820| 65 64 42 61 6c 6c 20 7c | 7c 20 49 6e 73 74 69 67 |edBall ||| Instig|
|00000830| 61 74 6f 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ator.Pla|yerRepli|
|00000840| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 48 61 73 46 6c |cationIn|fo.HasFl|
|00000850| 61 67 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |ag == No|ne ).. |
|00000860| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 6c 61 75 | {.. | lau|
|00000870| 6e 63 68 65 64 42 61 6c | 6c 20 3d 20 66 61 6c 73 |nchedBal|l = fals|
|00000880| 65 3b 0d 0a 20 20 20 20 | 20 20 20 20 72 65 74 75 |e;.. | retu|
|00000890| 72 6e 20 53 75 70 65 72 | 2e 50 75 74 44 6f 77 6e |rn Super|.PutDown|
|000008a0| 28 29 3b 0d 0a 20 20 20 | 20 7d 0d 0a 09 69 66 20 |();.. | }...if |
|000008b0| 28 20 49 6e 73 74 69 67 | 61 74 6f 72 2e 50 65 6e |( Instig|ator.Pen|
|000008c0| 64 69 6e 67 57 65 61 70 | 6f 6e 20 3d 3d 20 73 65 |dingWeap|on == se|
|000008d0| 6c 66 20 29 0d 0a 09 09 | 49 6e 73 74 69 67 61 74 |lf )....|Instigat|
|000008e0| 6f 72 2e 50 65 6e 64 69 | 6e 67 57 65 61 70 6f 6e |or.Pendi|ngWeapon|
|000008f0| 20 3d 20 4e 6f 6e 65 3b | 0d 0a 20 20 20 20 72 65 | = None;|.. re|
|00000900| 74 75 72 6e 28 20 66 61 | 6c 73 65 20 29 3b 20 2f |turn( fa|lse ); /|
|00000910| 2f 20 4e 65 76 65 72 20 | 6c 65 74 20 74 68 65 6d |/ Never |let them|
|00000920| 20 70 75 74 20 74 68 65 | 20 77 65 61 70 6f 6e 20 | put the| weapon |
|00000930| 61 77 61 79 2e 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |away...}|....func|
|00000940| 74 69 6f 6e 20 53 65 74 | 50 61 73 73 54 61 72 67 |tion Set|PassTarg|
|00000950| 65 74 28 20 50 61 77 6e | 20 70 61 73 73 54 61 72 |et( Pawn| passTar|
|00000960| 67 20 29 0d 0a 7b 0d 0a | 20 20 20 20 69 66 20 28 |g )..{..| if (|
|00000970| 20 28 50 61 73 73 54 61 | 72 67 65 74 20 21 3d 20 | (PassTa|rget != |
|00000980| 4e 6f 6e 65 29 20 26 26 | 20 28 50 61 73 73 54 61 |None) &&| (PassTa|
|00000990| 72 67 65 74 20 21 3d 20 | 50 61 73 73 54 61 72 67 |rget != |PassTarg|
|000009a0| 29 20 26 26 20 28 50 6c | 61 79 65 72 43 6f 6e 74 |) && (Pl|ayerCont|
|000009b0| 72 6f 6c 6c 65 72 28 50 | 61 73 73 54 61 72 67 65 |roller(P|assTarge|
|000009c0| 74 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 29 20 21 3d |t.Contro|ller) !=|
|000009d0| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 09 50 6c 61 79 | None) )|....Play|
|000009e0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 28 50 61 73 |erContro|ller(Pas|
|000009f0| 73 54 61 72 67 65 74 2e | 43 6f 6e 74 72 6f 6c 6c |sTarget.|Controll|
|00000a00| 65 72 29 2e 43 6c 69 65 | 6e 74 50 6c 61 79 53 6f |er).Clie|ntPlaySo|
|00000a10| 75 6e 64 28 50 61 73 73 | 54 61 72 67 65 74 4c 6f |und(Pass|TargetLo|
|00000a20| 73 74 29 3b 09 0d 0a 20 | 20 20 20 50 61 73 73 54 |st);... | PassT|
|00000a30| 61 72 67 65 74 20 3d 20 | 70 61 73 73 54 61 72 67 |arget = |passTarg|
|00000a40| 3b 0d 0a 20 20 20 20 69 | 66 20 28 20 50 61 73 73 |;.. i|f ( Pass|
|00000a50| 54 61 72 67 65 74 20 3d | 3d 20 4e 6f 6e 65 20 29 |Target =|= None )|
|00000a60| 0d 0a 09 09 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |....Leve|l.Game.G|
|00000a70| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|00000a80| 66 6f 2e 46 6c 61 67 54 | 61 72 67 65 74 20 3d 20 |fo.FlagT|arget = |
|00000a90| 4e 6f 6e 65 3b 0d 0a 20 | 20 20 20 65 6c 73 65 0d |None;.. | else.|
|00000aa0| 0a 09 09 4c 65 76 65 6c | 2e 47 61 6d 65 2e 47 61 |...Level|.Game.Ga|
|00000ab0| 6d 65 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |meReplic|ationInf|
|00000ac0| 6f 2e 46 6c 61 67 54 61 | 72 67 65 74 20 3d 20 50 |o.FlagTa|rget = P|
|00000ad0| 61 73 73 54 61 72 67 65 | 74 2e 50 6c 61 79 65 72 |assTarge|t.Player|
|00000ae0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 3b |Replicat|ionInfo;|
|00000af0| 0d 0a 20 20 20 20 69 66 | 20 28 20 50 6c 61 79 65 |.. if| ( Playe|
|00000b00| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 28 49 6e 73 74 |rControl|ler(Inst|
|00000b10| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00000b20| 72 29 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |r) != No|ne ).. |
|00000b30| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 69 66 20 | {.. | if |
|00000b40| 28 20 70 61 73 73 54 61 | 72 67 20 21 3d 20 4e 6f |( passTa|rg != No|
|00000b50| 6e 65 20 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ne ).. | |
|00000b60| 20 20 50 6c 61 79 65 72 | 43 6f 6e 74 72 6f 6c 6c | Player|Controll|
|00000b70| 65 72 28 49 6e 73 74 69 | 67 61 74 6f 72 2e 43 6f |er(Insti|gator.Co|
|00000b80| 6e 74 72 6f 6c 6c 65 72 | 29 2e 43 6c 69 65 6e 74 |ntroller|).Client|
|00000b90| 50 6c 61 79 53 6f 75 6e | 64 28 50 61 73 73 54 61 |PlaySoun|d(PassTa|
|00000ba0| 72 67 65 74 4c 6f 63 6b | 65 64 29 3b 0d 0a 20 20 |rgetLock|ed);.. |
|00000bb0| 20 20 20 20 20 20 65 6c | 73 65 0d 0a 20 20 20 20 | el|se.. |
|00000bc0| 20 20 20 20 20 20 20 20 | 50 6c 61 79 65 72 43 6f | |PlayerCo|
|00000bd0| 6e 74 72 6f 6c 6c 65 72 | 28 49 6e 73 74 69 67 61 |ntroller|(Instiga|
|00000be0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 2e |tor.Cont|roller).|
|00000bf0| 43 6c 69 65 6e 74 50 6c | 61 79 53 6f 75 6e 64 28 |ClientPl|aySound(|
|00000c00| 50 61 73 73 54 61 72 67 | 65 74 4c 6f 73 74 29 3b |PassTarg|etLost);|
|00000c10| 0d 0a 20 20 20 20 7d 0d | 0a 20 20 20 20 69 66 20 |.. }.|. if |
|00000c20| 28 20 28 50 61 73 73 54 | 61 72 67 65 74 20 21 3d |( (PassT|arget !=|
|00000c30| 20 4e 6f 6e 65 29 20 26 | 26 20 28 50 6c 61 79 65 | None) &|& (Playe|
|00000c40| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 28 50 61 73 73 |rControl|ler(Pass|
|00000c50| 54 61 72 67 65 74 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |Target.C|ontrolle|
|00000c60| 72 29 20 21 3d 20 4e 6f | 6e 65 29 20 29 0d 0a 09 |r) != No|ne) )...|
|00000c70| 09 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 6c 65 |.PlayerC|ontrolle|
|00000c80| 72 28 50 61 73 73 54 61 | 72 67 65 74 2e 43 6f 6e |r(PassTa|rget.Con|
|00000c90| 74 72 6f 6c 6c 65 72 29 | 2e 43 6c 69 65 6e 74 50 |troller)|.ClientP|
|00000ca0| 6c 61 79 53 6f 75 6e 64 | 28 50 61 73 73 54 61 72 |laySound|(PassTar|
|00000cb0| 67 65 74 4c 6f 63 6b 65 | 64 29 3b 09 0d 0a 7d 0d |getLocke|d);...}.|
|00000cc0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4d 6f 64 69 |...funct|ion Modi|
|00000cd0| 66 79 50 61 77 6e 28 20 | 66 6c 6f 61 74 20 64 74 |fyPawn( |float dt|
|00000ce0| 20 29 0d 0a 7b 0d 0a 20 | 20 20 20 69 66 20 28 20 | )..{.. | if ( |
|00000cf0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 57 65 61 70 6f |Instigat|or.Weapo|
|00000d00| 6e 20 3d 3d 20 73 65 6c | 66 20 26 26 20 49 6e 73 |n == sel|f && Ins|
|00000d10| 74 69 67 61 74 6f 72 2e | 50 6c 61 79 65 72 52 65 |tigator.|PlayerRe|
|00000d20| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00000d30| 73 46 6c 61 67 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |sFlag !=| None)..|
|00000d40| 20 20 20 20 7b 0d 0a 09 | 20 20 20 20 69 66 20 28 | {...| if (|
|00000d50| 20 49 6e 73 74 69 67 61 | 74 6f 72 2e 48 65 61 6c | Instiga|tor.Heal|
|00000d60| 74 68 20 3c 20 49 6e 73 | 74 69 67 61 74 6f 72 2e |th < Ins|tigator.|
|00000d70| 48 65 61 6c 74 68 4d 61 | 78 20 29 0d 0a 09 20 20 |HealthMa|x )... |
|00000d80| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00000d90| 20 48 65 61 6c 41 63 63 | 75 6d 20 2b 3d 20 48 65 | HealAcc|um += He|
|00000da0| 61 6c 52 61 74 65 20 2a | 20 64 74 3b 0d 0a 20 20 |alRate *| dt;.. |
|00000db0| 20 20 20 20 20 20 20 20 | 20 20 69 66 28 20 48 65 | | if( He|
|00000dc0| 61 6c 41 63 63 75 6d 20 | 3e 20 31 20 29 0d 0a 20 |alAccum |> 1 ).. |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 20 7b 0d 0a 20 20 | | {.. |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 49 6e | | In|
|00000df0| 73 74 69 67 61 74 6f 72 | 2e 48 65 61 6c 74 68 20 |stigator|.Health |
|00000e00| 3d 20 4d 69 6e 28 49 6e | 73 74 69 67 61 74 6f 72 |= Min(In|stigator|
|00000e10| 2e 48 65 61 6c 74 68 4d | 61 78 2c 20 49 6e 73 74 |.HealthM|ax, Inst|
|00000e20| 69 67 61 74 6f 72 2e 48 | 65 61 6c 74 68 20 2b 20 |igator.H|ealth + |
|00000e30| 48 65 61 6c 41 63 63 75 | 6d 29 3b 0d 0a 20 20 20 |HealAccu|m);.. |
|00000e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 48 65 61 | | Hea|
|00000e50| 6c 41 63 63 75 6d 20 2d | 3d 20 69 6e 74 28 48 65 |lAccum -|= int(He|
|00000e60| 61 6c 41 63 63 75 6d 29 | 3b 0d 0a 20 20 20 20 20 |alAccum)|;.. |
|00000e70| 20 20 20 20 20 20 20 7d | 0d 0a 09 20 20 20 20 7d | }|... }|
|00000e80| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 69 |.. }.|... i|
|00000e90| 66 20 28 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 57 |f ( Inst|igator.W|
|00000ea0| 65 61 70 6f 6e 20 21 3d | 20 73 65 6c 66 20 26 26 |eapon !=| self &&|
|00000eb0| 20 49 6e 73 74 69 67 61 | 74 6f 72 2e 50 6c 61 79 | Instiga|tor.Play|
|00000ec0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000ed0| 6f 2e 48 61 73 46 6c 61 | 67 20 21 3d 20 4e 6f 6e |o.HasFla|g != Non|
|00000ee0| 65 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 |e).. |{.. |
|00000ef0| 20 20 20 78 42 6f 6d 62 | 46 6c 61 67 28 49 6e 73 | xBomb|Flag(Ins|
|00000f00| 74 69 67 61 74 6f 72 2e | 50 6c 61 79 65 72 52 65 |tigator.|PlayerRe|
|00000f10| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00000f20| 73 46 6c 61 67 29 2e 53 | 65 74 48 6f 6c 64 65 72 |sFlag).S|etHolder|
|00000f30| 28 20 49 6e 73 74 69 67 | 61 74 6f 72 2e 43 6f 6e |( Instig|ator.Con|
|00000f40| 74 72 6f 6c 6c 65 72 20 | 29 3b 0d 0a 20 20 20 20 |troller |);.. |
|00000f50| 7d 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |}..}....|simulate|
|00000f60| 64 20 66 75 6e 63 74 69 | 6f 6e 20 54 69 63 6b 28 |d functi|on Tick(|
|00000f70| 66 6c 6f 61 74 20 64 74 | 29 0d 0a 7b 0d 0a 20 20 |float dt|)..{.. |
|00000f80| 20 20 69 66 20 28 20 28 | 4c 65 76 65 6c 2e 4e 65 | if ( (|Level.Ne|
|00000f90| 74 4d 6f 64 65 20 3d 3d | 20 4e 4d 5f 43 6c 69 65 |tMode ==| NM_Clie|
|00000fa0| 6e 74 29 20 7c 7c 20 49 | 6e 73 74 69 67 61 74 6f |nt) || I|nstigato|
|00000fb0| 72 20 3d 3d 20 4e 6f 6e | 65 20 7c 7c 20 49 6e 73 |r == Non|e || Ins|
|00000fc0| 74 69 67 61 74 6f 72 2e | 50 6c 61 79 65 72 52 65 |tigator.|PlayerRe|
|00000fd0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 20 3d 3d |plicatio|nInfo ==|
|00000fe0| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 20 20 20 20 | None)..| |
|00000ff0| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 09 69 66 20 28 |return;.|....if (|
|00001000| 20 49 6e 73 74 69 67 61 | 74 6f 72 2e 50 6c 61 79 | Instiga|tor.Play|
|00001010| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001020| 6f 2e 48 61 73 46 6c 61 | 67 20 3d 3d 20 4e 6f 6e |o.HasFla|g == Non|
|00001030| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |e )...{.|...if ( |
|00001040| 4c 65 76 65 6c 2e 54 69 | 6d 65 53 65 63 6f 6e 64 |Level.Ti|meSecond|
|00001050| 73 20 2d 20 53 77 69 74 | 63 68 54 65 73 74 54 69 |s - Swit|chTestTi|
|00001060| 6d 65 20 3e 20 30 2e 38 | 20 29 0d 0a 09 09 7b 0d |me > 0.8| )....{.|
|00001070| 0a 09 09 09 69 66 20 28 | 20 28 49 6e 73 74 69 67 |....if (| (Instig|
|00001080| 61 74 6f 72 2e 57 65 61 | 70 6f 6e 20 3d 3d 20 73 |ator.Wea|pon == s|
|00001090| 65 6c 66 29 20 26 26 20 | 28 28 49 6e 73 74 69 67 |elf) && |((Instig|
|000010a0| 61 74 6f 72 2e 50 65 6e | 64 69 6e 67 57 65 61 70 |ator.Pen|dingWeap|
|000010b0| 6f 6e 20 3d 3d 20 4e 6f | 6e 65 29 20 7c 7c 20 28 |on == No|ne) || (|
|000010c0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 50 65 6e 64 69 |Instigat|or.Pendi|
|000010d0| 6e 67 57 65 61 70 6f 6e | 20 3d 3d 20 73 65 6c 66 |ngWeapon| == self|
|000010e0| 29 29 20 29 0d 0a 09 09 | 09 09 49 6e 73 74 69 67 |)) )....|..Instig|
|000010f0| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |ator.Con|troller.|
|00001100| 43 6c 69 65 6e 74 53 77 | 69 74 63 68 54 6f 42 65 |ClientSw|itchToBe|
|00001110| 73 74 57 65 61 70 6f 6e | 28 29 3b 0d 0a 09 09 09 |stWeapon|();.....|
|00001120| 53 77 69 74 63 68 54 65 | 73 74 54 69 6d 65 20 3d |SwitchTe|stTime =|
|00001130| 20 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e | Level.T|imeSecon|
|00001140| 64 73 3b 0d 0a 09 09 7d | 0d 0a 0d 0a 09 09 69 66 |ds;....}|......if|
|00001150| 20 28 20 49 6e 73 74 69 | 67 61 74 6f 72 2e 41 6d | ( Insti|gator.Am|
|00001160| 62 69 65 6e 74 53 6f 75 | 6e 64 20 3d 3d 20 50 61 |bientSou|nd == Pa|
|00001170| 73 73 41 6d 62 69 65 6e | 74 20 29 0d 0a 09 09 09 |ssAmbien|t ).....|
|00001180| 41 6d 62 69 65 6e 74 53 | 6f 75 6e 64 20 3d 20 4e |AmbientS|ound = N|
|00001190| 6f 6e 65 3b 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |one;....|return;.|
|000011a0| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 2f 2f |. }..|.. //|
|000011b0| 20 73 61 66 65 67 75 61 | 72 64 20 2d 20 74 6f 20 | safegua|rd - to |
|000011c0| 62 65 20 61 62 73 6f 75 | 6c 75 74 6c 79 20 63 65 |be absou|lutly ce|
|000011d0| 72 74 61 69 6e 20 74 68 | 65 20 62 61 6c 6c 20 6c |rtain th|e ball l|
|000011e0| 61 75 6e 63 68 65 72 20 | 69 73 20 75 70 20 77 68 |auncher |is up wh|
|000011f0| 65 6e 20 70 6c 61 79 65 | 72 20 68 61 73 20 74 68 |en playe|r has th|
|00001200| 65 20 62 61 6c 6c 20 61 | 6e 64 20 6e 6f 74 20 75 |e ball a|nd not u|
|00001210| 70 20 6f 74 68 65 72 77 | 69 73 65 0d 0a 20 20 20 |p otherw|ise.. |
|00001220| 20 69 66 20 28 4c 65 76 | 65 6c 2e 54 69 6d 65 53 | if (Lev|el.TimeS|
|00001230| 65 63 6f 6e 64 73 20 2d | 20 53 77 69 74 63 68 54 |econds -| SwitchT|
|00001240| 65 73 74 54 69 6d 65 20 | 3e 20 30 2e 35 29 0d 0a |estTime |> 0.5)..|
|00001250| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 69 | {.. | i|
|00001260| 66 20 28 20 28 49 6e 73 | 74 69 67 61 74 6f 72 2e |f ( (Ins|tigator.|
|00001270| 57 65 61 70 6f 6e 20 21 | 3d 20 73 65 6c 66 29 20 |Weapon !|= self) |
|00001280| 26 26 20 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 50 |&& (Inst|igator.P|
|00001290| 65 6e 64 69 6e 67 57 65 | 61 70 6f 6e 20 21 3d 20 |endingWe|apon != |
|000012a0| 73 65 6c 66 29 20 29 0d | 0a 20 20 20 20 20 20 20 |self) ).|. |
|000012b0| 20 7b 0d 0a 09 09 09 69 | 66 20 28 20 50 61 73 73 | {.....i|f ( Pass|
|000012c0| 54 61 72 67 65 74 20 21 | 3d 20 4e 6f 6e 65 20 29 |Target !|= None )|
|000012d0| 0d 0a 09 09 09 09 53 65 | 74 50 61 73 73 54 61 72 |......Se|tPassTar|
|000012e0| 67 65 74 28 4e 6f 6e 65 | 29 3b 0d 0a 20 20 20 20 |get(None|);.. |
|000012f0| 20 20 20 20 20 20 20 20 | 49 6e 73 74 69 67 61 74 | |Instigat|
|00001300| 6f 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 43 6c |or.Contr|oller.Cl|
|00001310| 69 65 6e 74 53 65 74 57 | 65 61 70 6f 6e 28 63 6c |ientSetW|eapon(cl|
|00001320| 61 73 73 27 42 61 6c 6c | 4c 61 75 6e 63 68 65 72 |ass'Ball|Launcher|
|00001330| 27 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 0d 0a |');.. | }..|
|00001340| 20 20 20 20 20 20 20 20 | 65 6c 73 65 20 69 66 20 | |else if |
|00001350| 28 20 28 50 61 73 73 54 | 61 72 67 65 74 20 21 3d |( (PassT|arget !=|
|00001360| 20 4e 6f 6e 65 29 20 26 | 26 20 28 28 50 61 73 73 | None) &|& ((Pass|
|00001370| 74 61 72 67 65 74 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |target.C|ontrolle|
|00001380| 72 20 3d 3d 20 4e 6f 6e | 65 29 20 7c 7c 20 28 56 |r == Non|e) || (V|
|00001390| 53 69 7a 65 28 50 61 73 | 73 54 61 72 67 65 74 2e |Size(Pas|sTarget.|
|000013a0| 4c 6f 63 61 74 69 6f 6e | 20 2d 20 49 6e 73 74 69 |Location| - Insti|
|000013b0| 67 61 74 6f 72 2e 4c 6f | 63 61 74 69 6f 6e 29 20 |gator.Lo|cation) |
|000013c0| 3e 20 36 30 30 30 29 29 | 20 29 0d 0a 09 09 09 53 |> 6000))| ).....S|
|000013d0| 65 74 50 61 73 73 54 61 | 72 67 65 74 28 4e 6f 6e |etPassTa|rget(Non|
|000013e0| 65 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 53 77 69 |e);.. | Swi|
|000013f0| 74 63 68 54 65 73 74 54 | 69 6d 65 20 3d 20 4c 65 |tchTestT|ime = Le|
|00001400| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 3b |vel.Time|Seconds;|
|00001410| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 09 4d 6f 64 69 |.. }.|....Modi|
|00001420| 66 79 50 61 77 6e 28 64 | 74 29 3b 0d 0a 20 7d 0d |fyPawn(d|t);.. }.|
|00001430| 0a 0d 0a 2f 2f 20 74 6f | 64 6f 3a 20 64 69 73 61 |...// to|do: disa|
|00001440| 6c 6c 6f 77 20 73 77 69 | 74 63 68 69 6e 67 20 61 |llow swi|tching a|
|00001450| 77 61 79 20 66 72 6f 6d | 20 74 68 69 73 20 77 68 |way from| this wh|
|00001460| 69 6c 65 20 74 68 69 73 | 20 77 65 61 70 6f 6e 20 |ile this| weapon |
|00001470| 69 73 20 63 6f 6d 69 6e | 67 20 69 73 20 75 70 21 |is comin|g is up!|
|00001480| 21 0d 0a 73 69 6d 75 6c | 61 74 65 64 20 66 75 6e |!..simul|ated fun|
|00001490| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 74 61 72 74 |ction bo|ol Start|
|000014a0| 46 69 72 65 28 20 69 6e | 74 20 6d 6f 64 65 4e 75 |Fire( in|t modeNu|
|000014b0| 6d 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 62 |m )..{..|.local b|
|000014c0| 6f 6f 6c 20 62 52 65 73 | 75 6c 74 3b 0d 0a 0d 0a |ool bRes|ult;....|
|000014d0| 09 62 52 65 73 75 6c 74 | 20 3d 20 53 75 70 65 72 |.bResult| = Super|
|000014e0| 2e 53 74 61 72 74 46 69 | 72 65 28 6d 6f 64 65 4e |.StartFi|re(modeN|
|000014f0| 75 6d 29 3b 0d 0a 0d 0a | 09 69 66 20 28 20 62 52 |um);....|.if ( bR|
|00001500| 65 73 75 6c 74 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |esult ).|..{....i|
|00001510| 66 20 28 20 6d 6f 64 65 | 4e 75 6d 20 3d 3d 20 30 |f ( mode|Num == 0|
|00001520| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 6c 61 75 6e | )....{.|....laun|
|00001530| 63 68 65 64 42 61 6c 6c | 20 3d 20 74 72 75 65 3b |chedBall| = true;|
|00001540| 0d 0a 09 09 09 43 6c 69 | 65 6e 74 50 6c 61 79 46 |.....Cli|entPlayF|
|00001550| 6f 72 63 65 46 65 65 64 | 62 61 63 6b 28 50 61 73 |orceFeed|back(Pas|
|00001560| 73 54 61 72 67 65 74 4c | 6f 63 6b 65 64 46 6f 72 |sTargetL|ockedFor|
|00001570| 63 65 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |ce);....|}....els|
|00001580| 65 0d 0a 09 09 09 43 6c | 69 65 6e 74 50 6c 61 79 |e.....Cl|ientPlay|
|00001590| 46 6f 72 63 65 46 65 65 | 64 62 61 63 6b 28 50 61 |ForceFee|dback(Pa|
|000015a0| 73 73 54 61 72 67 65 74 | 4c 6f 73 74 46 6f 72 63 |ssTarget|LostForc|
|000015b0| 65 29 3b 0d 0a 09 7d 0d | 0a 09 72 65 74 75 72 6e |e);...}.|..return|
|000015c0| 20 62 52 65 73 75 6c 74 | 3b 0d 0a 7d 0d 0a 0d 0a | bResult|;..}....|
|000015d0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000015e0| 6f 6e 20 62 6f 6f 6c 20 | 48 61 73 41 6d 6d 6f 28 |on bool |HasAmmo(|
|000015f0| 29 0d 0a 7b 0d 0a 09 69 | 66 20 28 20 78 42 6f 6d |)..{...i|f ( xBom|
|00001600| 62 46 6c 61 67 28 49 6e | 73 74 69 67 61 74 6f 72 |bFlag(In|stigator|
|00001610| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001620| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 29 20 |onInfo.H|asFlag) |
|00001630| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 72 65 74 |!= None |)....ret|
|00001640| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 20 20 20 20 72 |urn true|;.. r|
|00001650| 65 74 75 72 6e 28 20 66 | 61 6c 73 65 20 29 3b 20 |eturn( f|alse ); |
|00001660| 2f 2f 20 4e 65 76 65 72 | 20 6c 65 74 20 74 68 65 |// Never| let the|
|00001670| 6d 20 63 68 61 6e 67 65 | 20 74 6f 20 74 68 69 73 |m change| to this|
|00001680| 20 77 65 61 70 6f 6e 20 | 66 6f 72 20 66 75 6e 2e | weapon |for fun.|
|00001690| 0d 0a 7d 0d 0a 0d 0a 73 | 69 6d 75 6c 61 74 65 64 |..}....s|imulated|
|000016a0| 20 66 75 6e 63 74 69 6f | 6e 20 57 65 61 70 6f 6e | functio|n Weapon|
|000016b0| 20 52 65 63 6f 6d 6d 65 | 6e 64 57 65 61 70 6f 6e | Recomme|ndWeapon|
|000016c0| 28 20 6f 75 74 20 66 6c | 6f 61 74 20 72 61 74 69 |( out fl|oat rati|
|000016d0| 6e 67 20 29 0d 0a 7b 0d | 0a 20 20 20 20 6c 6f 63 |ng )..{.|. loc|
|000016e0| 61 6c 20 57 65 61 70 6f | 6e 20 52 65 63 6f 6d 6d |al Weapo|n Recomm|
|000016f0| 65 6e 64 65 64 3b 0d 0a | 20 20 20 20 6c 6f 63 61 |ended;..| loca|
|00001700| 6c 20 66 6c 6f 61 74 20 | 6f 6c 64 52 61 74 69 6e |l float |oldRatin|
|00001710| 67 3b 0d 0a 0d 0a 09 69 | 66 20 28 20 78 42 6f 6d |g;.....i|f ( xBom|
|00001720| 62 46 6c 61 67 28 49 6e | 73 74 69 67 61 74 6f 72 |bFlag(In|stigator|
|00001730| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001740| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 29 20 |onInfo.H|asFlag) |
|00001750| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00001760| 09 72 61 74 69 6e 67 20 | 3d 20 31 30 30 30 30 30 |.rating |= 100000|
|00001770| 30 30 3b 0d 0a 09 09 72 | 65 74 75 72 6e 20 73 65 |00;....r|eturn se|
|00001780| 6c 66 3b 0d 0a 09 7d 0d | 0a 0d 0a 20 20 20 20 69 |lf;...}.|... i|
|00001790| 66 20 28 20 69 6e 76 65 | 6e 74 6f 72 79 20 21 3d |f ( inve|ntory !=|
|000017a0| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 7b 0d 0a | None ).|. {..|
|000017b0| 20 20 20 20 20 20 20 20 | 52 65 63 6f 6d 6d 65 6e | |Recommen|
|000017c0| 64 65 64 20 3d 20 69 6e | 76 65 6e 74 6f 72 79 2e |ded = in|ventory.|
|000017d0| 52 65 63 6f 6d 6d 65 6e | 64 57 65 61 70 6f 6e 28 |Recommen|dWeapon(|
|000017e0| 6f 6c 64 52 61 74 69 6e | 67 29 3b 0d 0a 20 20 20 |oldRatin|g);.. |
|000017f0| 20 20 20 20 20 69 66 20 | 28 20 52 65 63 6f 6d 6d | if |( Recomm|
|00001800| 65 6e 64 65 64 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ended !=| None ).|
|00001810| 0a 20 20 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |. | {.. |
|00001820| 20 20 20 20 20 20 20 20 | 72 61 74 69 6e 67 20 3d | |rating =|
|00001830| 20 6f 6c 64 52 61 74 69 | 6e 67 3b 0d 0a 20 20 20 | oldRati|ng;.. |
|00001840| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 | | return |
|00001850| 52 65 63 6f 6d 6d 65 6e | 64 65 64 3b 0d 0a 20 20 |Recommen|ded;.. |
|00001860| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 7d 0d 0a | }.|. }..|
|00001870| 20 20 20 20 2f 2f 20 4e | 65 76 65 72 20 72 65 74 | // N|ever ret|
|00001880| 75 72 6e 20 74 68 65 20 | 62 61 6c 6c 20 6c 61 75 |urn the |ball lau|
|00001890| 6e 63 68 65 72 20 69 66 | 20 6e 6f 20 62 6f 6d 62 |ncher if| no bomb|
|000018a0| 21 0d 0a 20 20 20 20 72 | 65 74 75 72 6e 20 4e 6f |!.. r|eturn No|
|000018b0| 6e 65 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |ne;..}..|..functi|
|000018c0| 6f 6e 20 62 6f 6f 6c 20 | 43 61 6e 41 74 74 61 63 |on bool |CanAttac|
|000018d0| 6b 28 41 63 74 6f 72 20 | 4f 74 68 65 72 29 0d 0a |k(Actor |Other)..|
|000018e0| 7b 0d 0a 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |{...retu|rn true;|
|000018f0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001900| 53 65 74 41 49 54 61 72 | 67 65 74 28 41 63 74 6f |SetAITar|get(Acto|
|00001910| 72 20 54 29 0d 0a 7b 0d | 0a 09 41 49 54 61 72 67 |r T)..{.|..AITarg|
|00001920| 65 74 20 3d 20 54 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |et = T;.|.}....fu|
|00001930| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 42 6f 74 46 |nction b|ool BotF|
|00001940| 69 72 65 28 62 6f 6f 6c | 20 62 46 69 6e 69 73 68 |ire(bool| bFinish|
|00001950| 65 64 2c 20 6f 70 74 69 | 6f 6e 61 6c 20 6e 61 6d |ed, opti|onal nam|
|00001960| 65 20 46 69 72 69 6e 67 | 4d 6f 64 65 29 0d 0a 7b |e Firing|Mode)..{|
|00001970| 0d 0a 09 6c 6f 63 61 6c | 20 78 42 6f 6d 62 46 6c |...local| xBombFl|
|00001980| 61 67 20 42 6f 6d 62 3b | 0d 0a 09 6c 6f 63 61 6c |ag Bomb;|...local|
|00001990| 20 76 65 63 74 6f 72 20 | 53 68 6f 6f 74 4c 6f 63 | vector |ShootLoc|
|000019a0| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 42 6f 74 20 42 3b |;...loca|l Bot B;|
|000019b0| 0d 0a 0d 0a 20 20 20 20 | 42 6f 6d 62 20 3d 20 78 |.... |Bomb = x|
|000019c0| 42 6f 6d 62 46 6c 61 67 | 28 20 49 6e 73 74 69 67 |BombFlag|( Instig|
|000019d0| 61 74 6f 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |ator.Pla|yerRepli|
|000019e0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 48 61 73 46 6c |cationIn|fo.HasFl|
|000019f0| 61 67 20 29 3b 0d 0a 09 | 42 20 3d 20 42 6f 74 28 |ag );...|B = Bot(|
|00001a00| 49 6e 73 74 69 67 61 74 | 6f 72 2e 43 6f 6e 74 72 |Instigat|or.Contr|
|00001a10| 6f 6c 6c 65 72 29 3b 0d | 0a 09 69 66 20 28 20 21 |oller);.|..if ( !|
|00001a20| 42 2e 62 50 6c 61 6e 6e | 65 64 53 68 6f 74 20 7c |B.bPlann|edShot ||
|00001a30| 7c 20 28 42 6f 6d 62 20 | 3d 3d 20 4e 6f 6e 65 29 || (Bomb |== None)|
|00001a40| 20 7c 7c 20 28 41 49 54 | 61 72 67 65 74 20 3d 3d | || (AIT|arget ==|
|00001a50| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 | None) )|...{....|
|00001a60| 42 2e 62 50 6c 61 6e 6e | 65 64 53 68 6f 74 20 3d |B.bPlann|edShot =|
|00001a70| 20 66 61 6c 73 65 3b 0d | 0a 09 09 72 65 74 75 72 | false;.|...retur|
|00001a80| 6e 20 66 61 6c 73 65 3b | 0d 0a 09 7d 0d 0a 0d 0a |n false;|...}....|
|00001a90| 09 2f 2f 20 66 69 6e 64 | 20 63 6f 72 72 65 63 74 |.// find| correct|
|00001aa0| 20 69 6e 69 74 69 61 6c | 20 76 65 6c 6f 63 69 74 | initial| velocit|
|00001ab0| 79 0d 0a 09 53 68 6f 6f | 74 4c 6f 63 20 3d 20 41 |y...Shoo|tLoc = A|
|00001ac0| 49 54 61 72 67 65 74 2e | 4c 6f 63 61 74 69 6f 6e |ITarget.|Location|
|00001ad0| 3b 0d 0a 20 20 20 20 42 | 6f 6d 62 2e 50 61 73 73 |;.. B|omb.Pass|
|00001ae0| 54 61 72 67 65 74 20 3d | 20 4e 6f 6e 65 3b 0d 0a |Target =| None;..|
|00001af0| 09 69 66 20 28 20 50 61 | 77 6e 28 41 49 54 61 72 |.if ( Pa|wn(AITar|
|00001b00| 67 65 74 29 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |get) != |None )..|
|00001b10| 09 7b 0d 0a 09 09 53 68 | 6f 6f 74 4c 6f 63 20 3d |.{....Sh|ootLoc =|
|00001b20| 20 53 68 6f 6f 74 4c 6f | 63 20 2b 20 30 2e 35 20 | ShootLo|c + 0.5 |
|00001b30| 2a 20 28 56 53 69 7a 65 | 28 53 68 6f 6f 74 4c 6f |* (VSize|(ShootLo|
|00001b40| 63 20 2d 20 42 6f 6d 62 | 2e 4c 6f 63 61 74 69 6f |c - Bomb|.Locatio|
|00001b50| 6e 29 2f 42 6f 6d 62 2e | 54 68 72 6f 77 53 70 65 |n)/Bomb.|ThrowSpe|
|00001b60| 65 64 29 20 2a 20 50 61 | 77 6e 28 41 49 54 61 72 |ed) * Pa|wn(AITar|
|00001b70| 67 65 74 29 2e 56 65 6c | 6f 63 69 74 79 3b 0d 0a |get).Vel|ocity;..|
|00001b80| 09 09 42 6f 6d 62 2e 50 | 61 73 73 54 61 72 67 65 |..Bomb.P|assTarge|
|00001b90| 74 20 3d 20 50 61 77 6e | 28 41 49 54 61 72 67 65 |t = Pawn|(AITarge|
|00001ba0| 74 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 69 |t);...}.|..else i|
|00001bb0| 66 20 28 20 28 47 61 6d | 65 4f 62 6a 65 63 74 69 |f ( (Gam|eObjecti|
|00001bc0| 76 65 28 41 49 54 61 72 | 67 65 74 29 20 3d 3d 20 |ve(AITar|get) == |
|00001bd0| 4e 6f 6e 65 29 20 26 26 | 20 28 41 49 54 61 72 67 |None) &&| (AITarg|
|00001be0| 65 74 2e 4c 6f 63 61 74 | 69 6f 6e 2e 5a 20 3c 3d |et.Locat|ion.Z <=|
|00001bf0| 20 42 6f 6d 62 2e 4c 6f | 63 61 74 69 6f 6e 2e 5a | Bomb.Lo|cation.Z|
|00001c00| 29 20 29 0d 0a 09 09 53 | 68 6f 6f 74 4c 6f 63 20 |) )....S|hootLoc |
|00001c10| 3d 20 53 68 6f 6f 74 4c | 6f 63 20 2d 20 41 49 54 |= ShootL|oc - AIT|
|00001c20| 61 72 67 65 74 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |arget.Co|llisionH|
|00001c30| 65 69 67 68 74 20 2a 20 | 76 65 63 74 28 30 2c 30 |eight * |vect(0,0|
|00001c40| 2c 31 29 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |,1);....|.return |
|00001c50| 53 68 6f 6f 74 48 6f 6f | 70 28 42 2c 53 68 6f 6f |ShootHoo|p(B,Shoo|
|00001c60| 74 4c 6f 63 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |tLoc);..|}....fun|
|00001c70| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 68 6f 6f 74 |ction bo|ol Shoot|
|00001c80| 48 6f 6f 70 28 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |Hoop(Con|troller |
|00001c90| 42 2c 20 56 65 63 74 6f | 72 20 53 68 6f 6f 74 4c |B, Vecto|r ShootL|
|00001ca0| 6f 63 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 78 |oc)..{..|.local x|
|00001cb0| 42 6f 6d 62 46 6c 61 67 | 20 42 6f 6d 62 3b 0d 0a |BombFlag| Bomb;..|
|00001cc0| 0d 0a 20 20 20 20 42 6f | 6d 62 20 3d 20 78 42 6f |.. Bo|mb = xBo|
|00001cd0| 6d 62 46 6c 61 67 28 20 | 49 6e 73 74 69 67 61 74 |mbFlag( |Instigat|
|00001ce0| 6f 72 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |or.Playe|rReplica|
|00001cf0| 74 69 6f 6e 49 6e 66 6f | 2e 48 61 73 46 6c 61 67 |tionInfo|.HasFlag|
|00001d00| 20 29 3b 0d 0a 0d 0a 09 | 2f 2f 20 73 68 6f 6f 74 | );.....|// shoot|
|00001d10| 20 68 6f 6f 70 0d 0a 20 | 20 20 20 46 69 72 65 4d | hoop.. | FireM|
|00001d20| 6f 64 65 5b 30 5d 2e 50 | 6c 61 79 46 69 72 69 6e |ode[0].P|layFirin|
|00001d30| 67 28 29 3b 0d 0a 20 20 | 20 20 46 69 72 65 4d 6f |g();.. | FireMo|
|00001d40| 64 65 5b 30 5d 2e 46 6c | 61 73 68 4d 75 7a 7a 6c |de[0].Fl|ashMuzzl|
|00001d50| 65 46 6c 61 73 68 28 29 | 3b 0d 0a 20 20 20 20 46 |eFlash()|;.. F|
|00001d60| 69 72 65 4d 6f 64 65 5b | 30 5d 2e 53 74 61 72 74 |ireMode[|0].Start|
|00001d70| 4d 75 7a 7a 6c 65 53 6d | 6f 6b 65 28 29 3b 0d 0a |MuzzleSm|oke();..|
|00001d80| 20 20 20 20 49 6e 63 72 | 65 6d 65 6e 74 46 6c 61 | Incr|ementFla|
|00001d90| 73 68 43 6f 75 6e 74 28 | 30 29 3b 0d 0a 20 20 20 |shCount(|0);.. |
|00001da0| 20 6c 61 75 6e 63 68 65 | 64 42 61 6c 6c 20 3d 20 | launche|dBall = |
|00001db0| 74 72 75 65 3b 0d 0a 0d | 0a 20 20 20 20 42 6f 6d |true;...|. Bom|
|00001dc0| 62 2e 54 68 72 6f 77 28 | 49 6e 73 74 69 67 61 74 |b.Throw(|Instigat|
|00001dd0| 6f 72 2e 4c 6f 63 61 74 | 69 6f 6e 2c 20 42 2e 41 |or.Locat|ion, B.A|
|00001de0| 64 6a 75 73 74 54 6f 73 | 73 28 42 6f 6d 62 2e 54 |djustTos|s(Bomb.T|
|00001df0| 68 72 6f 77 53 70 65 65 | 64 2c 20 42 6f 6d 62 2e |hrowSpee|d, Bomb.|
|00001e00| 4c 6f 63 61 74 69 6f 6e | 2c 20 53 68 6f 6f 74 4c |Location|, ShootL|
|00001e10| 6f 63 2c 74 72 75 65 29 | 20 29 3b 20 2f 2f 66 69 |oc,true)| ); //fi|
|00001e20| 78 6d 65 20 65 78 70 65 | 72 69 6d 65 6e 74 20 77 |xme expe|riment w|
|00001e30| 69 74 68 20 62 4e 6f 72 | 6d 61 6c 69 7a 65 3d 3d |ith bNor|malize==|
|00001e40| 66 61 6c 73 65 0d 0a 09 | 69 66 20 28 20 42 6f 74 |false...|if ( Bot|
|00001e50| 28 42 29 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |(B) != N|one )...|
|00001e60| 09 42 6f 74 28 42 29 2e | 62 50 6c 61 6e 6e 65 64 |.Bot(B).|bPlanned|
|00001e70| 53 68 6f 74 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 09 |Shot = f|alse;...|
|00001e80| 41 49 54 61 72 67 65 74 | 20 3d 20 4e 6f 6e 65 3b |AITarget| = None;|
|00001e90| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00001ea0| 0a 7d 0d 0a 0d 0a 00 | |.}..... | |
+--------+-------------------------+-------------------------+--------+--------+