home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 April / Gamestar_72_2005-04_dvd.iso / Patche / ut2004_patchv3355.exe / UT2004-Patch / System / OnslaughtBP.u / ONSDualACSideGun_ScriptText.TextBuffer < prev    next >
Unknown  |  2005-02-15  |  8.0 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.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5f 7f 2f 2f 2d 2d 2d 2d |........|_.//----|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 0d | 0a 2f 2f 20 4f 4e 53 44 |-------.|.// ONSD|
|00000050| 61 75 6c 41 43 53 69 64 | 65 47 75 6e 20 2d 20 28 |aulACSid|eGun - (|
|00000060| 43 29 20 32 30 30 34 2c | 20 45 70 69 63 20 47 61 |C) 2004,| Epic Ga|
|00000070| 6d 65 73 0d 0a 2f 2f 20 | 4a 6f 65 20 57 69 6c 63 |mes..// |Joe Wilc|
|00000080| 6f 78 0d 0a 2f 2f 0d 0a | 2f 2f 20 54 68 69 73 20 |ox..//..|// This |
|00000090| 69 73 20 74 68 65 20 70 | 72 69 6d 61 72 79 20 77 |is the p|rimary w|
|000000a0| 65 61 70 6f 6e 20 74 68 | 65 20 43 69 63 61 64 61 |eapon th|e Cicada|
|000000b0| 2e 0d 0a 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...//---|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000f0| 0d 0a 63 6c 61 73 73 20 | 4f 4e 53 44 75 61 6c 41 |..class |ONSDualA|
|00000100| 43 53 69 64 65 47 75 6e | 20 65 78 74 65 6e 64 73 |CSideGun| extends|
|00000110| 20 4f 4e 53 4c 69 6e 6b | 61 62 6c 65 57 65 61 70 | ONSLink|ableWeap|
|00000120| 6f 6e 3b 0d 0a 0d 0a 76 | 61 72 20 62 6f 6f 6c 20 |on;....v|ar bool |
|00000130| 62 53 6b 69 70 46 69 72 | 65 3b 09 09 09 2f 2f 20 |bSkipFir|e;...// |
|00000140| 49 66 20 74 72 75 65 2c | 20 69 74 20 69 67 6e 6f |If true,| it igno|
|00000150| 72 65 20 74 68 69 73 20 | 73 68 6f 74 20 61 6e 64 |re this |shot and|
|00000160| 20 70 61 73 73 20 69 74 | 20 74 6f 20 69 74 27 73 | pass it| to it's|
|00000170| 20 6c 69 6e 6b 65 64 20 | 77 65 61 70 6f 6e 0d 0a | linked |weapon..|
|00000180| 76 61 72 20 62 6f 6f 6c | 20 62 46 69 72 65 73 52 |var bool| bFiresR|
|00000190| 69 67 68 74 3b 09 09 2f | 2f 20 49 66 20 74 72 75 |ight;../|/ If tru|
|000001a0| 65 2c 20 74 68 69 73 20 | 77 65 61 70 6f 6e 20 77 |e, this |weapon w|
|000001b0| 69 6c 6c 20 65 6a 65 63 | 74 20 73 68 65 6c 6c 73 |ill ejec|t shells|
|000001c0| 20 74 6f 20 74 68 65 20 | 72 69 67 68 74 20 69 6e | to the |right in|
|000001d0| 73 74 65 61 64 20 6f 66 | 20 74 68 65 20 6c 65 66 |stead of| the lef|
|000001e0| 74 0d 0a 0d 0a 76 61 72 | 20 69 6e 74 20 4c 6f 61 |t....var| int Loa|
|000001f0| 64 65 64 53 68 6f 74 43 | 6f 75 6e 74 2c 20 4d 61 |dedShotC|ount, Ma|
|00000200| 78 53 68 6f 74 43 6f 75 | 6e 74 3b 09 2f 2f 20 4c |xShotCou|nt;.// L|
|00000210| 6f 61 64 65 64 53 68 6f | 74 43 6f 75 6e 74 20 3d |oadedSho|tCount =|
|00000220| 20 23 20 6f 66 20 73 68 | 6f 74 73 20 6c 6f 61 64 | # of sh|ots load|
|00000230| 65 64 2c 20 4d 61 78 53 | 68 6f 74 43 6f 75 6e 74 |ed, MaxS|hotCount|
|00000240| 20 3d 20 4d 61 78 20 23 | 20 74 6f 20 6c 6f 61 64 | = Max #| to load|
|00000250| 0d 0a 76 61 72 20 66 6c | 6f 61 74 20 52 65 6c 6f |..var fl|oat Relo|
|00000260| 63 6b 54 69 6d 65 3b 09 | 09 09 09 09 2f 2f 20 54 |ckTime;.|....// T|
|00000270| 69 6d 65 20 62 65 66 6f | 72 65 20 77 65 20 63 61 |ime befo|re we ca|
|00000280| 6e 20 72 65 61 63 71 75 | 69 72 65 20 61 20 6c 6f |n reacqu|ire a lo|
|00000290| 63 6b 0d 0a 0d 0a 76 61 | 72 20 73 6f 75 6e 64 20 |ck....va|r sound |
|000002a0| 52 65 6c 6f 61 64 53 6f | 75 6e 64 3b 09 09 09 2f |ReloadSo|und;.../|
|000002b0| 2f 20 53 6f 75 6e 64 20 | 74 6f 20 70 6c 61 79 20 |/ Sound |to play |
|000002c0| 77 68 65 6e 20 6c 6f 61 | 64 69 6e 67 20 61 20 72 |when loa|ding a r|
|000002d0| 6f 63 6b 65 74 0d 0a 0d | 0a 76 61 72 20 62 6f 6f |ocket...|.var boo|
|000002e0| 6c 20 62 44 75 6d 70 69 | 6e 67 4c 6f 61 64 3b 09 |l bDumpi|ngLoad;.|
|000002f0| 09 09 2f 2f 20 41 72 65 | 20 77 65 20 64 75 6d 70 |..// Are| we dump|
|00000300| 69 6e 67 20 6f 75 72 20 | 6c 6f 61 64 20 6f 66 20 |ing our |load of |
|00000310| 72 6f 63 6b 65 74 73 3f | 0d 0a 76 61 72 20 43 6f |rockets?|..var Co|
|00000320| 6e 74 72 6f 6c 6c 65 72 | 20 46 69 72 65 43 6f 6e |ntroller| FireCon|
|00000330| 74 72 6f 6c 3b 09 09 2f | 2f 20 54 65 6d 70 2e 20 |trol;../|/ Temp. |
|00000340| 53 74 6f 72 61 67 65 20 | 6f 66 20 77 68 6f 20 69 |Storage |of who i|
|00000350| 73 20 64 6f 69 6e 67 20 | 74 68 65 20 66 69 72 69 |s doing |the firi|
|00000360| 6e 67 2e 0d 0a 0d 0a 76 | 61 72 20 62 6f 6f 6c 20 |ng.....v|ar bool |
|00000370| 62 4c 6f 63 6b 65 64 3b | 09 09 09 09 2f 2f 20 49 |bLocked;|....// I|
|00000380| 66 20 74 72 75 65 20 61 | 6c 6c 20 73 68 6f 74 73 |f true a|ll shots|
|00000390| 20 61 72 65 20 6c 6f 63 | 6b 65 64 20 74 6f 20 74 | are loc|ked to t|
|000003a0| 68 65 20 76 65 63 74 6f | 72 20 62 65 6c 6f 77 0d |he vecto|r below.|
|000003b0| 0a 76 61 72 20 76 65 63 | 74 6f 72 20 4c 6f 63 6b |.var vec|tor Lock|
|000003c0| 65 64 54 61 72 67 65 74 | 3b 09 09 2f 2f 20 49 66 |edTarget|;..// If|
|000003d0| 20 62 4c 6f 63 6b 65 64 | 2c 20 61 6c 6c 20 6d 69 | bLocked|, all mi|
|000003e0| 73 73 69 6c 65 73 20 77 | 69 6c 6c 20 68 6f 6d 65 |ssiles w|ill home|
|000003f0| 20 74 6f 20 74 68 69 73 | 20 6c 6f 63 61 74 69 6f | to this| locatio|
|00000400| 6e 0d 0a 76 61 72 20 76 | 65 63 74 6f 72 20 4c 6f |n..var v|ector Lo|
|00000410| 63 6b 50 6f 73 69 74 69 | 6f 6e 3b 09 09 2f 2f 20 |ckPositi|on;..// |
|00000420| 70 6f 73 69 74 69 6f 6e | 20 77 68 65 6e 20 6c 6f |position| when lo|
|00000430| 63 6b 65 64 20 6f 6e 0d | 0a 0d 0a 72 65 70 6c 69 |cked on.|...repli|
|00000440| 63 61 74 69 6f 6e 0d 0a | 7b 0d 0a 09 72 65 6c 69 |cation..|{...reli|
|00000450| 61 62 6c 65 20 69 66 20 | 28 52 6f 6c 65 3d 3d 52 |able if |(Role==R|
|00000460| 4f 4c 45 5f 41 75 74 68 | 6f 72 69 74 79 29 0d 0a |OLE_Auth|ority)..|
|00000470| 09 09 62 4c 6f 63 6b 65 | 64 2c 20 4c 6f 63 6b 65 |..bLocke|d, Locke|
|00000480| 64 54 61 72 67 65 74 3b | 0d 0a 7d 0d 0a 0d 0a 65 |dTarget;|..}....e|
|00000490| 76 65 6e 74 20 62 6f 6f | 6c 20 41 74 74 65 6d 70 |vent boo|l Attemp|
|000004a0| 74 46 69 72 65 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |tFire(Co|ntroller|
|000004b0| 20 43 2c 20 62 6f 6f 6c | 20 62 41 6c 74 46 69 72 | C, bool| bAltFir|
|000004c0| 65 29 0d 0a 7b 0d 0a 20 | 20 09 69 66 28 52 6f 6c |e)..{.. | .if(Rol|
|000004d0| 65 20 21 3d 20 52 4f 4c | 45 5f 41 75 74 68 6f 72 |e != ROL|E_Author|
|000004e0| 69 74 79 20 7c 7c 20 62 | 46 6f 72 63 65 43 65 6e |ity || b|ForceCen|
|000004f0| 74 65 72 41 69 6d 20 29 | 0d 0a 09 09 72 65 74 75 |terAim )|....retu|
|00000500| 72 6e 20 46 61 6c 73 65 | 3b 0d 0a 0d 0a 09 69 66 |rn False|;.....if|
|00000510| 20 28 62 41 6c 74 46 69 | 72 65 29 0d 0a 09 7b 0d | (bAltFi|re)...{.|
|00000520| 0a 09 09 69 66 20 28 20 | 42 6f 74 28 43 29 20 21 |...if ( |Bot(C) !|
|00000530| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |= None )|....{...|
|00000540| 09 09 69 66 20 28 20 28 | 56 65 68 69 63 6c 65 28 |..if ( (|Vehicle(|
|00000550| 49 6e 73 74 69 67 61 74 | 6f 72 29 2e 52 69 73 65 |Instigat|or).Rise|
|00000560| 20 3c 3d 20 30 29 20 26 | 26 20 46 61 73 74 54 72 | <= 0) &|& FastTr|
|00000570| 61 63 65 28 49 6e 73 74 | 69 67 61 74 6f 72 2e 4c |ace(Inst|igator.L|
|00000580| 6f 63 61 74 69 6f 6e 20 | 2d 20 76 65 63 74 28 30 |ocation |- vect(0|
|00000590| 2c 30 2c 35 30 30 29 2c | 49 6e 73 74 69 67 61 74 |,0,500),|Instigat|
|000005a0| 6f 72 2e 4c 6f 63 61 74 | 69 6f 6e 29 20 29 0d 0a |or.Locat|ion) )..|
|000005b0| 09 09 09 09 56 65 68 69 | 63 6c 65 28 49 6e 73 74 |....Vehi|cle(Inst|
|000005c0| 69 67 61 74 6f 72 29 2e | 52 69 73 65 20 3d 20 2d |igator).|Rise = -|
|000005d0| 30 2e 35 3b 0d 0a 09 09 | 09 65 6c 73 65 0d 0a 09 |0.5;....|.else...|
|000005e0| 09 09 09 56 65 68 69 63 | 6c 65 28 49 6e 73 74 69 |...Vehic|le(Insti|
|000005f0| 67 61 74 6f 72 29 2e 52 | 69 73 65 20 3d 20 31 3b |gator).R|ise = 1;|
|00000600| 0d 0a 09 09 7d 0d 0a 09 | 09 69 66 20 28 21 62 4c |....}...|.if (!bL|
|00000610| 6f 63 6b 65 64 20 26 26 | 20 4c 6f 61 64 65 64 53 |ocked &&| LoadedS|
|00000620| 68 6f 74 43 6f 75 6e 74 | 20 3d 3d 20 30 29 09 2f |hotCount| == 0)./|
|00000630| 2f 20 48 61 6e 64 6c 65 | 20 41 6c 74 20 46 69 72 |/ Handle| Alt Fir|
|00000640| 65 0d 0a 09 09 09 43 68 | 61 6e 67 65 54 61 72 67 |e.....Ch|angeTarg|
|00000650| 65 74 4c 6f 63 6b 28 29 | 3b 0d 0a 0d 0a 09 09 69 |etLock()|;......i|
|00000660| 66 20 28 20 21 62 44 75 | 6d 70 69 6e 67 4c 6f 61 |f ( !bDu|mpingLoa|
|00000670| 64 20 26 26 20 46 69 72 | 65 43 6f 75 6e 74 64 6f |d && Fir|eCountdo|
|00000680| 77 6e 20 3c 3d 20 30 20 | 29 0d 0a 09 09 7b 0d 0a |wn <= 0 |)....{..|
|00000690| 09 09 09 69 66 20 28 20 | 4c 6f 61 64 65 64 53 68 |...if ( |LoadedSh|
|000006a0| 6f 74 43 6f 75 6e 74 20 | 3c 20 4d 61 78 53 68 6f |otCount |< MaxSho|
|000006b0| 74 43 6f 75 6e 74 29 0d | 0a 09 09 09 7b 0d 0a 09 |tCount).|....{...|
|000006c0| 09 09 09 4c 6f 61 64 65 | 64 53 68 6f 74 43 6f 75 |...Loade|dShotCou|
|000006d0| 6e 74 2b 2b 3b 0d 0a 09 | 09 09 09 50 6c 61 79 53 |nt++;...|...PlayS|
|000006e0| 6f 75 6e 64 28 73 6f 75 | 6e 64 27 43 69 63 61 64 |ound(sou|nd'Cicad|
|000006f0| 61 53 6e 64 73 2e 4d 69 | 73 73 69 6c 65 2e 4d 69 |aSnds.Mi|ssile.Mi|
|00000700| 73 73 69 6c 65 4c 6f 61 | 64 27 29 3b 0d 0a 09 09 |ssileLoa|d');....|
|00000710| 09 09 46 69 72 65 43 6f | 75 6e 74 64 6f 77 6e 20 |..FireCo|untdown |
|00000720| 3d 20 41 6c 74 46 69 72 | 65 49 6e 74 65 72 76 61 |= AltFir|eInterva|
|00000730| 6c 3b 0d 0a 09 09 20 20 | 20 09 09 49 6e 73 74 69 |l;.... | ..Insti|
|00000740| 67 61 74 6f 72 2e 4d 61 | 6b 65 4e 6f 69 73 65 28 |gator.Ma|keNoise(|
|00000750| 31 2e 30 29 3b 0d 0a 09 | 09 20 20 20 09 7d 0d 0a |1.0);...|. .}..|
|00000760| 09 09 20 20 20 09 65 6c | 73 65 0d 0a 09 09 09 09 |.. .el|se......|
|00000770| 57 65 61 70 6f 6e 43 65 | 61 73 65 46 69 72 65 28 |WeaponCe|aseFire(|
|00000780| 43 2c 20 74 72 75 65 29 | 3b 0d 0a 09 09 7d 0d 0a |C, true)|;....}..|
|00000790| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 7b 0d 0a 09 |.}...els|e...{...|
|000007a0| 09 69 66 20 28 20 42 6f | 74 28 49 6e 73 74 69 67 |.if ( Bo|t(Instig|
|000007b0| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 29 |ator.Con|troller)|
|000007c0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 56 | != None| ).....V|
|000007d0| 65 68 69 63 6c 65 28 49 | 6e 73 74 69 67 61 74 6f |ehicle(I|nstigato|
|000007e0| 72 29 2e 52 69 73 65 20 | 3d 20 30 3b 0d 0a 09 09 |r).Rise |= 0;....|
|000007f0| 69 66 20 28 4c 6f 61 64 | 65 64 53 68 6f 74 43 6f |if (Load|edShotCo|
|00000800| 75 6e 74 3d 3d 30 20 26 | 26 20 46 69 72 65 43 6f |unt==0 &|& FireCo|
|00000810| 75 6e 74 64 6f 77 6e 20 | 3c 3d 20 30 29 0d 0a 09 |untdown |<= 0)...|
|00000820| 09 09 46 69 72 65 53 69 | 6e 67 6c 65 28 43 2c 66 |..FireSi|ngle(C,f|
|00000830| 61 6c 73 65 2c 20 74 72 | 75 65 29 3b 0d 0a 09 7d |alse, tr|ue);...}|
|00000840| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 46 61 6c 73 |.....ret|urn Fals|
|00000850| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00000860| 6e 20 43 68 61 6e 67 65 | 54 61 72 67 65 74 4c 6f |n Change|TargetLo|
|00000870| 63 6b 28 29 0d 0a 7b 0d | 0a 09 62 4c 6f 63 6b 65 |ck()..{.|..bLocke|
|00000880| 64 20 3d 20 74 72 75 65 | 3b 0d 0a 09 43 61 6c 63 |d = true|;...Calc|
|00000890| 57 65 61 70 6f 6e 46 69 | 72 65 28 29 3b 0d 0a 09 |WeaponFi|re();...|
|000008a0| 4f 4e 53 44 75 61 6c 41 | 43 53 69 64 65 47 75 6e |ONSDualA|CSideGun|
|000008b0| 28 43 68 69 6c 64 57 65 | 61 70 6f 6e 29 2e 62 4c |(ChildWe|apon).bL|
|000008c0| 6f 63 6b 65 64 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ocked = |true;...|
|000008d0| 4c 6f 63 6b 65 64 54 61 | 72 67 65 74 20 3d 20 46 |LockedTa|rget = F|
|000008e0| 69 6e 64 49 6e 69 74 69 | 61 6c 54 61 72 67 65 74 |indIniti|alTarget|
|000008f0| 28 57 65 61 70 6f 6e 46 | 69 72 65 4c 6f 63 61 74 |(WeaponF|ireLocat|
|00000900| 69 6f 6e 2c 20 57 65 61 | 70 6f 6e 46 69 72 65 52 |ion, Wea|ponFireR|
|00000910| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 09 4f 4e 53 44 |otation)|;...ONSD|
|00000920| 75 61 6c 41 43 53 69 64 | 65 47 75 6e 28 43 68 69 |ualACSid|eGun(Chi|
|00000930| 6c 64 57 65 61 70 6f 6e | 29 2e 4c 6f 63 6b 65 64 |ldWeapon|).Locked|
|00000940| 54 61 72 67 65 74 20 3d | 20 4c 6f 63 6b 65 64 54 |Target =| LockedT|
|00000950| 61 72 67 65 74 3b 0d 0a | 09 52 65 6c 6f 63 6b 54 |arget;..|.RelockT|
|00000960| 69 6d 65 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |ime = Le|vel.Time|
|00000970| 53 65 63 6f 6e 64 73 20 | 2b 20 32 2e 30 30 3b 0d |Seconds |+ 2.00;.|
|00000980| 0a 20 20 20 20 53 70 61 | 77 6e 54 61 72 67 65 74 |. Spa|wnTarget|
|00000990| 42 65 61 6d 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Beam();.|.}....fu|
|000009a0| 6e 63 74 69 6f 6e 20 53 | 70 61 77 6e 54 61 72 67 |nction S|pawnTarg|
|000009b0| 65 74 42 65 61 6d 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |etBeam()|..{...lo|
|000009c0| 63 61 6c 20 50 61 69 6e | 74 65 72 42 65 61 6d 45 |cal Pain|terBeamE|
|000009d0| 66 66 65 63 74 20 42 50 | 3b 0d 0a 0d 0a 09 42 50 |ffect BP|;.....BP|
|000009e0| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 43 | = Spawn|(class'C|
|000009f0| 69 63 61 64 61 4c 6f 63 | 6b 42 65 61 6d 45 66 66 |icadaLoc|kBeamEff|
|00000a00| 65 63 74 27 2c 73 65 6c | 66 29 3b 0d 0a 09 42 50 |ect',sel|f);...BP|
|00000a10| 2e 53 74 61 72 74 45 66 | 66 65 63 74 20 3d 20 57 |.StartEf|fect = W|
|00000a20| 65 61 70 6f 6e 46 69 72 | 65 4c 6f 63 61 74 69 6f |eaponFir|eLocatio|
|00000a30| 6e 3b 0d 0a 09 42 50 2e | 45 6e 64 45 66 66 65 63 |n;...BP.|EndEffec|
|00000a40| 74 20 3d 20 4c 6f 63 6b | 65 64 54 61 72 67 65 74 |t = Lock|edTarget|
|00000a50| 3b 0d 0a 09 42 50 2e 45 | 66 66 65 63 74 4f 66 66 |;...BP.E|ffectOff|
|00000a60| 73 65 74 20 3d 20 76 65 | 63 74 28 30 2c 30 2c 2d |set = ve|ct(0,0,-|
|00000a70| 32 30 29 3b 0d 0a 09 42 | 50 2e 53 65 74 54 61 72 |20);...B|P.SetTar|
|00000a80| 67 65 74 53 74 61 74 65 | 28 50 54 53 5f 41 71 75 |getState|(PTS_Aqu|
|00000a90| 69 72 65 64 29 3b 0d 0a | 7d 0d 0a 66 75 6e 63 74 |ired);..|}..funct|
|00000aa0| 69 6f 6e 20 46 69 72 65 | 53 69 6e 67 6c 65 28 43 |ion Fire|Single(C|
|00000ab0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 43 2c 20 62 6f 6f |ontrolle|r C, boo|
|00000ac0| 6c 20 62 41 6c 74 46 69 | 72 65 2c 20 6f 70 74 69 |l bAltFi|re, opti|
|00000ad0| 6f 6e 61 6c 20 62 6f 6f | 6c 20 62 44 6f 6e 74 53 |onal boo|l bDontS|
|00000ae0| 6b 69 70 29 0d 0a 7b 0d | 0a 20 20 20 20 69 66 20 |kip)..{.|. if |
|00000af0| 28 21 62 53 6b 69 70 46 | 69 72 65 20 7c 7c 20 62 |(!bSkipF|ire || b|
|00000b00| 44 6f 6e 74 53 6b 69 70 | 29 0d 0a 20 20 20 20 7b |DontSkip|).. {|
|00000b10| 0d 0a 09 09 43 61 6c 63 | 57 65 61 70 6f 6e 46 69 |....Calc|WeaponFi|
|00000b20| 72 65 28 29 3b 0d 0a 09 | 09 69 66 20 28 62 43 6f |re();...|.if (bCo|
|00000b30| 72 72 65 63 74 41 69 6d | 29 0d 0a 09 09 09 57 65 |rrectAim|).....We|
|00000b40| 61 70 6f 6e 46 69 72 65 | 52 6f 74 61 74 69 6f 6e |aponFire|Rotation|
|00000b50| 20 3d 20 41 64 6a 75 73 | 74 41 69 6d 28 66 61 6c | = Adjus|tAim(fal|
|00000b60| 73 65 29 3b 0d 0a 0d 0a | 20 20 20 20 20 20 20 09 |se);....| .|
|00000b70| 44 75 61 6c 46 69 72 65 | 4f 66 66 73 65 74 20 2a |DualFire|Offset *|
|00000b80| 3d 20 2d 31 3b 0d 0a 0d | 0a 09 09 49 6e 73 74 69 |= -1;...|...Insti|
|00000b90| 67 61 74 6f 72 2e 4d 61 | 6b 65 4e 6f 69 73 65 28 |gator.Ma|keNoise(|
|00000ba0| 31 2e 30 29 3b 0d 0a 0d | 0a 09 20 20 20 20 69 66 |1.0);...|.. if|
|00000bb0| 20 28 62 41 6c 74 46 69 | 72 65 29 0d 0a 09 20 20 | (bAltFi|re)... |
|00000bc0| 20 20 7b 0d 0a 09 20 20 | 20 20 09 46 69 72 65 43 | {... | .FireC|
|00000bd0| 6f 75 6e 74 64 6f 77 6e | 20 3d 20 41 6c 74 46 69 |ountdown| = AltFi|
|00000be0| 72 65 49 6e 74 65 72 76 | 61 6c 3b 0d 0a 09 09 20 |reInterv|al;.... |
|00000bf0| 20 20 20 41 6c 74 46 69 | 72 65 28 43 29 3b 0d 0a | AltFi|re(C);..|
|00000c00| 09 09 7d 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 7b |..}....e|lse....{|
|00000c10| 0d 0a 09 09 09 46 69 72 | 65 43 6f 75 6e 74 64 6f |.....Fir|eCountdo|
|00000c20| 77 6e 20 3d 20 46 69 72 | 65 49 6e 74 65 72 76 61 |wn = Fir|eInterva|
|00000c30| 6c 3b 0d 0a 09 09 09 46 | 69 72 65 28 43 29 3b 0d |l;.....F|ire(C);.|
|00000c40| 0a 09 09 7d 0d 0a 0d 0a | 09 09 41 69 6d 4c 6f 63 |...}....|..AimLoc|
|00000c50| 6b 52 65 6c 65 61 73 65 | 54 69 6d 65 20 3d 20 4c |kRelease|Time = L|
|00000c60| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00000c70| 20 2b 20 46 69 72 65 43 | 6f 75 6e 74 64 6f 77 6e | + FireC|ountdown|
|00000c80| 20 2a 20 46 69 72 65 49 | 6e 74 65 72 76 61 6c 41 | * FireI|ntervalA|
|00000c90| 69 6d 4c 6f 63 6b 3b 0d | 0a 09 7d 0d 0a 09 65 6c |imLock;.|..}...el|
|00000ca0| 73 65 0d 0a 09 7b 0d 0a | 09 20 20 20 20 46 69 72 |se...{..|. Fir|
|00000cb0| 65 43 6f 75 6e 74 64 6f | 77 6e 20 3d 20 46 69 72 |eCountdo|wn = Fir|
|00000cc0| 65 49 6e 74 65 72 76 61 | 6c 3b 0d 0a 09 7d 0d 0a |eInterva|l;...}..|
|00000cd0| 0d 0a 09 62 53 6b 69 70 | 46 69 72 65 20 3d 20 21 |...bSkip|Fire = !|
|00000ce0| 62 53 6b 69 70 46 69 72 | 65 3b 0d 0a 0d 0a 09 69 |bSkipFir|e;.....i|
|00000cf0| 66 20 28 43 68 69 6c 64 | 57 65 61 70 6f 6e 20 21 |f (Child|Weapon !|
|00000d00| 3d 20 6e 6f 6e 65 20 26 | 26 20 4f 4e 53 44 75 61 |= none &|& ONSDua|
|00000d10| 6c 41 43 53 69 64 65 47 | 75 6e 28 43 68 69 6c 64 |lACSideG|un(Child|
|00000d20| 57 65 61 70 6f 6e 29 20 | 21 3d 20 4e 6f 6e 65 29 |Weapon) |!= None)|
|00000d30| 0d 0a 20 20 20 20 20 20 | 20 20 4f 4e 53 44 75 61 |.. | ONSDua|
|00000d40| 6c 41 43 53 69 64 65 47 | 75 6e 28 43 68 69 6c 64 |lACSideG|un(Child|
|00000d50| 57 65 61 70 6f 6e 29 2e | 46 69 72 65 53 69 6e 67 |Weapon).|FireSing|
|00000d60| 6c 65 28 43 2c 20 62 41 | 6c 74 46 69 72 65 2c 20 |le(C, bA|ltFire, |
|00000d70| 62 44 6f 6e 74 53 6b 69 | 70 29 3b 0d 0a 0d 0a 7d |bDontSki|p);....}|
|00000d80| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 50 72 6f |....func|tion Pro|
|00000d90| 6a 65 63 74 69 6c 65 20 | 53 70 61 77 6e 50 72 6f |jectile |SpawnPro|
|00000da0| 6a 65 63 74 69 6c 65 28 | 63 6c 61 73 73 3c 50 72 |jectile(|class<Pr|
|00000db0| 6f 6a 65 63 74 69 6c 65 | 3e 20 50 72 6f 6a 43 6c |ojectile|> ProjCl|
|00000dc0| 61 73 73 2c 20 62 6f 6f | 6c 20 62 41 6c 74 46 69 |ass, boo|l bAltFi|
|00000dd0| 72 65 29 0d 0a 7b 0d 0a | 20 20 20 20 6c 6f 63 61 |re)..{..| loca|
|00000de0| 6c 20 50 72 6f 6a 65 63 | 74 69 6c 65 20 50 3b 0d |l Projec|tile P;.|
|00000df0| 0a 20 20 20 20 6c 6f 63 | 61 6c 20 76 65 63 74 6f |. loc|al vecto|
|00000e00| 72 20 53 74 61 72 74 4c | 6f 63 61 74 69 6f 6e 2c |r StartL|ocation,|
|00000e10| 20 53 74 61 72 74 56 65 | 6c 6f 63 69 74 79 3b 0d | StartVe|locity;.|
|00000e20| 0a 20 20 20 20 6c 6f 63 | 61 6c 20 72 6f 74 61 74 |. loc|al rotat|
|00000e30| 6f 72 20 57 46 52 2c 20 | 55 70 52 6f 74 3b 0d 0a |or WFR, |UpRot;..|
|00000e40| 20 20 20 20 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 | loca|l float |
|00000e50| 52 61 6e 64 3b 0d 0a 0d | 0a 09 2f 2f 20 57 65 20 |Rand;...|..// We |
|00000e60| 77 61 6e 74 20 70 72 6f | 6a 65 63 74 69 6c 65 73 |want pro|jectiles|
|00000e70| 20 74 6f 20 22 65 6a 65 | 63 74 22 20 66 72 6f 6d | to "eje|ct" from|
|00000e80| 20 74 68 69 73 20 67 75 | 6e 20 74 68 65 6e 20 74 | this gu|n then t|
|00000e90| 61 6b 65 20 66 6c 69 67 | 68 74 2e 20 20 50 61 72 |ake flig|ht. Par|
|00000ea0| 74 20 69 73 20 68 61 6e | 64 6c 65 64 20 68 65 72 |t is han|dled her|
|00000eb0| 65 2c 20 70 61 72 74 20 | 69 6e 0d 0a 09 2f 2f 20 |e, part |in...// |
|00000ec0| 74 68 65 20 70 72 6f 6a | 65 63 74 69 6c 65 2e 0d |the proj|ectile..|
|00000ed0| 0a 0d 0a 09 69 66 20 28 | 20 42 6f 74 28 49 6e 73 |....if (| Bot(Ins|
|00000ee0| 74 69 67 61 74 6f 72 2e | 43 6f 6e 74 72 6f 6c 6c |tigator.|Controll|
|00000ef0| 65 72 29 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |er) != N|one )...|
|00000f00| 09 56 65 68 69 63 6c 65 | 28 49 6e 73 74 69 67 61 |.Vehicle|(Instiga|
|00000f10| 74 6f 72 29 2e 52 69 73 | 65 20 3d 20 30 3b 0d 0a |tor).Ris|e = 0;..|
|00000f20| 20 20 20 09 53 74 61 72 | 74 4c 6f 63 61 74 69 6f | .Star|tLocatio|
|00000f30| 6e 20 3d 20 57 65 61 70 | 6f 6e 46 69 72 65 4c 6f |n = Weap|onFireLo|
|00000f40| 63 61 74 69 6f 6e 3b 0d | 0a 09 52 61 6e 64 20 3d |cation;.|..Rand =|
|00000f50| 20 28 34 30 30 20 2a 20 | 66 72 61 6e 64 28 29 29 | (400 * |frand())|
|00000f60| 20 2b 20 32 30 30 3b 09 | 2f 2f 20 54 68 69 73 20 | + 200;.|// This |
|00000f70| 69 73 20 6f 75 72 20 72 | 61 6e 67 65 20 66 6f 72 |is our r|ange for|
|00000f80| 20 74 68 65 20 65 6a 65 | 63 74 69 6f 6e 2e 0d 0a | the eje|ction...|
|00000f90| 0d 0a 09 2f 2f 20 69 66 | 20 77 65 20 61 72 65 20 |...// if| we are |
|00000fa0| 67 6f 69 6e 67 20 66 6f | 72 77 61 72 64 2c 20 61 |going fo|rward, a|
|00000fb0| 70 70 6c 79 20 74 68 65 | 20 73 68 69 70 73 20 76 |pply the| ships v|
|00000fc0| 65 6c 6f 63 69 74 79 20 | 74 6f 20 74 68 65 20 70 |elocity |to the p|
|00000fd0| 72 6f 6a 65 63 74 69 6c | 65 2c 0d 0a 09 2f 2f 20 |rojectil|e,...// |
|00000fe0| 69 66 20 77 65 20 61 72 | 65 20 67 6f 69 6e 67 20 |if we ar|e going |
|00000ff0| 62 61 63 6b 77 61 72 64 | 73 2c 20 61 70 70 6c 79 |backward|s, apply|
|00001000| 20 74 68 65 20 31 2f 34 | 20 74 68 65 20 69 6e 76 | the 1/4| the inv|
|00001010| 65 72 73 65 20 58 2f 59 | 2e 0d 0a 0d 0a 09 57 46 |erse X/Y|......WF|
|00001020| 52 20 3d 20 57 65 61 70 | 6f 6e 46 69 72 65 52 6f |R = Weap|onFireRo|
|00001030| 74 61 74 69 6f 6e 3b 0d | 0a 09 69 66 20 28 62 4c |tation;.|..if (bL|
|00001040| 6f 63 6b 65 64 29 0d 0a | 09 09 57 46 52 2e 50 69 |ocked)..|..WFR.Pi|
|00001050| 74 63 68 20 2b 3d 20 32 | 30 34 38 3b 0d 0a 0d 0a |tch += 2|048;....|
|00001060| 20 20 20 20 53 74 61 72 | 74 56 65 6c 6f 63 69 74 | Star|tVelocit|
|00001070| 79 20 3d 20 49 6e 73 74 | 69 67 61 74 6f 72 2e 56 |y = Inst|igator.V|
|00001080| 65 6c 6f 63 69 74 79 3b | 0d 0a 0d 0a 09 2f 2f 20 |elocity;|.....// |
|00001090| 4d 6f 64 69 66 79 20 74 | 68 65 20 73 74 61 72 74 |Modify t|he start|
|000010a0| 20 76 65 6c 6f 63 69 74 | 79 20 73 6f 20 69 74 20 | velocit|y so it |
|000010b0| 65 6a 65 63 74 73 20 74 | 6f 20 74 68 65 20 70 72 |ejects t|o the pr|
|000010c0| 6f 70 65 72 20 73 69 64 | 65 2e 0d 0a 0d 0a 09 69 |oper sid|e......i|
|000010d0| 66 20 28 62 46 69 72 65 | 73 52 69 67 68 74 29 0d |f (bFire|sRight).|
|000010e0| 0a 09 20 20 20 09 53 74 | 61 72 74 56 65 6c 6f 63 |.. .St|artVeloc|
|000010f0| 69 74 79 20 2b 3d 20 28 | 56 65 63 74 6f 72 28 57 |ity += (|Vector(W|
|00001100| 46 52 29 20 63 72 6f 73 | 73 20 76 65 63 74 28 30 |FR) cros|s vect(0|
|00001110| 2c 30 2c 2d 31 29 29 20 | 2a 20 34 35 30 3b 0d 0a |,0,-1)) |* 450;..|
|00001120| 09 65 6c 73 65 0d 0a 09 | 20 20 20 09 53 74 61 72 |.else...| .Star|
|00001130| 74 56 65 6c 6f 63 69 74 | 79 20 2b 3d 20 28 56 65 |tVelocit|y += (Ve|
|00001140| 63 74 6f 72 28 57 46 52 | 29 20 63 72 6f 73 73 20 |ctor(WFR|) cross |
|00001150| 76 65 63 74 28 30 2c 30 | 2c 31 29 29 20 2a 20 34 |vect(0,0|,1)) * 4|
|00001160| 35 30 3b 0d 0a 0d 0a 09 | 2f 2f 20 41 6c 77 61 79 |50;.....|// Alway|
|00001170| 73 20 6b 69 63 6b 20 69 | 74 20 75 70 20 61 20 6c |s kick i|t up a l|
|00001180| 69 74 74 6c 65 20 62 69 | 74 20 6d 6f 72 65 0d 0a |ittle bi|t more..|
|00001190| 0d 0a 09 69 66 20 28 20 | 62 41 6c 74 46 69 72 65 |...if ( |bAltFire|
|000011a0| 20 29 0d 0a 09 20 20 20 | 09 53 74 61 72 74 56 65 | )... |.StartVe|
|000011b0| 6c 6f 63 69 74 79 2e 5a | 20 2b 3d 20 28 52 61 6e |locity.Z| += (Ran|
|000011c0| 64 20 2a 20 28 20 66 72 | 61 6e 64 28 29 2a 32 29 |d * ( fr|and()*2)|
|000011d0| 29 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 53 74 61 |);...els|e....Sta|
|000011e0| 72 74 56 65 6c 6f 63 69 | 74 79 2e 5a 20 3d 20 32 |rtVeloci|ty.Z = 2|
|000011f0| 30 30 3b 0d 0a 0d 0a 20 | 20 20 20 50 20 3d 20 73 |00;.... | P = s|
|00001200| 70 61 77 6e 28 50 72 6f | 6a 43 6c 61 73 73 2c 20 |pawn(Pro|jClass, |
|00001210| 73 65 6c 66 2c 20 2c 20 | 53 74 61 72 74 4c 6f 63 |self, , |StartLoc|
|00001220| 61 74 69 6f 6e 2c 20 57 | 46 52 29 3b 0d 0a 0d 0a |ation, W|FR);....|
|00001230| 20 20 20 20 50 2e 56 65 | 6c 6f 63 69 74 79 20 3d | P.Ve|locity =|
|00001240| 20 53 74 61 72 74 56 65 | 6c 6f 63 69 74 79 3b 09 | StartVe|locity;.|
|00001250| 2f 2f 20 41 70 70 6c 79 | 20 74 68 65 20 76 65 6c |// Apply| the vel|
|00001260| 6f 63 69 74 79 0d 0a 09 | 69 66 20 28 20 62 41 6c |ocity...|if ( bAl|
|00001270| 74 46 69 72 65 20 26 26 | 20 62 4c 6f 63 6b 65 64 |tFire &&| bLocked|
|00001280| 20 26 26 20 28 42 6f 74 | 28 49 6e 73 74 69 67 61 | && (Bot|(Instiga|
|00001290| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 20 |tor.Cont|roller) |
|000012a0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 21 46 61 73 |!= None)| && !Fas|
|000012b0| 74 54 72 61 63 65 28 4c | 6f 63 6b 65 64 54 61 72 |tTrace(L|ockedTar|
|000012c0| 67 65 74 2c 50 2e 4c 6f | 63 61 74 69 6f 6e 29 20 |get,P.Lo|cation) |
|000012d0| 29 0d 0a 09 7b 0d 0a 09 | 09 55 70 52 6f 74 20 3d |)...{...|.UpRot =|
|000012e0| 20 57 65 61 70 6f 6e 46 | 69 72 65 52 6f 74 61 74 | WeaponF|ireRotat|
|000012f0| 69 6f 6e 3b 0d 0a 09 09 | 55 70 52 6f 74 2e 50 69 |ion;....|UpRot.Pi|
|00001300| 74 63 68 20 3d 20 31 32 | 30 30 30 3b 0d 0a 09 09 |tch = 12|000;....|
|00001310| 69 66 20 28 20 21 46 61 | 73 74 54 72 61 63 65 28 |if ( !Fa|stTrace(|
|00001320| 50 2e 4c 6f 63 61 74 69 | 6f 6e 20 2b 20 33 30 30 |P.Locati|on + 300|
|00001330| 30 2a 76 65 63 74 6f 72 | 28 55 70 52 6f 74 29 2c |0*vector|(UpRot),|
|00001340| 50 2e 4c 6f 63 61 74 69 | 6f 6e 29 20 29 0d 0a 09 |P.Locati|on) )...|
|00001350| 09 09 55 70 52 6f 74 2e | 50 69 74 63 68 20 3d 20 |..UpRot.|Pitch = |
|00001360| 31 36 30 30 30 3b 0d 0a | 09 09 4f 4e 53 44 75 61 |16000;..|..ONSDua|
|00001370| 6c 41 43 52 6f 63 6b 65 | 74 28 50 29 2e 54 61 72 |lACRocke|t(P).Tar|
|00001380| 67 65 74 20 3d 20 46 69 | 6e 64 49 6e 69 74 69 61 |get = Fi|ndInitia|
|00001390| 6c 54 61 72 67 65 74 28 | 57 65 61 70 6f 6e 46 69 |lTarget(|WeaponFi|
|000013a0| 72 65 4c 6f 63 61 74 69 | 6f 6e 2c 20 55 70 52 6f |reLocati|on, UpRo|
|000013b0| 74 29 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 0d 0a |t);...}.|..else..|
|000013c0| 09 09 4f 4e 53 44 75 61 | 6c 41 43 52 6f 63 6b 65 |..ONSDua|lACRocke|
|000013d0| 74 28 50 29 2e 54 61 72 | 67 65 74 20 3d 20 46 69 |t(P).Tar|get = Fi|
|000013e0| 6e 64 49 6e 69 74 69 61 | 6c 54 61 72 67 65 74 28 |ndInitia|lTarget(|
|000013f0| 57 65 61 70 6f 6e 46 69 | 72 65 4c 6f 63 61 74 69 |WeaponFi|reLocati|
|00001400| 6f 6e 2c 20 57 65 61 70 | 6f 6e 46 69 72 65 52 6f |on, Weap|onFireRo|
|00001410| 74 61 74 69 6f 6e 29 3b | 0d 0a 0d 0a 20 20 20 20 |tation);|.... |
|00001420| 69 66 20 28 21 62 41 6c | 74 46 69 72 65 29 0d 0a |if (!bAl|tFire)..|
|00001430| 09 20 20 20 20 4f 4e 53 | 44 75 61 6c 41 43 52 6f |. ONS|DualACRo|
|00001440| 63 6b 65 74 28 50 29 2e | 44 65 73 69 72 65 64 44 |cket(P).|DesiredD|
|00001450| 69 73 74 61 6e 63 65 54 | 6f 41 78 69 73 20 3d 20 |istanceT|oAxis = |
|00001460| 36 34 3b 0d 0a 09 65 6c | 73 65 0d 0a 09 09 4f 4e |64;...el|se....ON|
|00001470| 53 44 75 61 6c 41 43 52 | 6f 63 6b 65 74 28 50 29 |SDualACR|ocket(P)|
|00001480| 2e 4b 69 6c 6c 52 61 6e | 67 65 3d 34 35 30 30 3b |.KillRan|ge=4500;|
|00001490| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 62 4c 6f 63 |.... |if (bLoc|
|000014a0| 6b 65 64 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |ked).. | {.. |
|000014b0| 20 20 20 20 20 4f 4e 53 | 44 75 61 6c 41 43 52 6f | ONS|DualACRo|
|000014c0| 63 6b 65 74 28 50 29 2e | 62 46 69 6e 61 6c 54 61 |cket(P).|bFinalTa|
|000014d0| 72 67 65 74 20 09 3d 20 | 66 61 6c 73 65 3b 0d 0a |rget .= |false;..|
|000014e0| 09 09 4f 4e 53 44 75 61 | 6c 41 43 52 6f 63 6b 65 |..ONSDua|lACRocke|
|000014f0| 74 28 50 29 2e 53 65 63 | 6f 6e 64 54 61 72 67 65 |t(P).Sec|ondTarge|
|00001500| 74 20 09 3d 20 4c 6f 63 | 6b 65 64 54 61 72 67 65 |t .= Loc|kedTarge|
|00001510| 74 3b 0d 0a 09 09 4f 4e | 53 44 75 61 6c 41 43 52 |t;....ON|SDualACR|
|00001520| 6f 63 6b 65 74 28 50 29 | 2e 53 77 69 74 63 68 54 |ocket(P)|.SwitchT|
|00001530| 61 72 67 65 74 54 69 6d | 65 20 3d 20 30 2e 35 3b |argetTim|e = 0.5;|
|00001540| 0d 0a 09 7d 0d 0a 09 65 | 6c 73 65 0d 0a 20 20 20 |...}...e|lse.. |
|00001550| 20 20 20 20 20 4f 4e 53 | 44 75 61 6c 41 43 52 6f | ONS|DualACRo|
|00001560| 63 6b 65 74 28 50 29 2e | 62 46 69 6e 61 6c 54 61 |cket(P).|bFinalTa|
|00001570| 72 67 65 74 20 3d 20 74 | 72 75 65 3b 0d 0a 0d 0a |rget = t|rue;....|
|00001580| 09 2f 2f 20 50 6c 61 79 | 20 65 66 66 65 63 74 73 |.// Play| effects|
|00001590| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 50 20 21 3d |.... |if (P !=|
|000015a0| 20 4e 6f 6e 65 29 0d 0a | 20 20 20 20 7b 0d 0a 20 | None)..| {.. |
|000015b0| 20 20 20 20 20 20 20 46 | 6c 61 73 68 4d 75 7a 7a | F|lashMuzz|
|000015c0| 6c 65 46 6c 61 73 68 28 | 29 3b 0d 0a 0d 0a 20 20 |leFlash(|);.... |
|000015d0| 20 20 20 20 20 20 2f 2f | 20 50 6c 61 79 20 66 69 | //| Play fi|
|000015e0| 72 69 6e 67 20 6e 6f 69 | 73 65 0d 0a 20 20 20 20 |ring noi|se.. |
|000015f0| 20 20 20 20 69 66 20 28 | 62 41 6c 74 46 69 72 65 | if (|bAltFire|
|00001600| 29 0d 0a 20 20 20 20 20 | 20 20 20 7b 0d 0a 20 20 |).. | {.. |
|00001610| 20 20 20 20 20 20 20 20 | 20 20 69 66 20 28 62 41 | | if (bA|
|00001620| 6d 62 69 65 6e 74 41 6c | 74 46 69 72 65 53 6f 75 |mbientAl|tFireSou|
|00001630| 6e 64 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |nd).. | |
|00001640| 20 20 20 20 20 41 6d 62 | 69 65 6e 74 53 6f 75 6e | Amb|ientSoun|
|00001650| 64 20 3d 20 41 6c 74 46 | 69 72 65 53 6f 75 6e 64 |d = AltF|ireSound|
|00001660| 43 6c 61 73 73 3b 0d 0a | 20 20 20 20 20 20 20 20 |Class;..| |
|00001670| 20 20 20 20 65 6c 73 65 | 0d 0a 20 20 20 20 20 20 | else|.. |
|00001680| 20 20 20 20 20 20 20 20 | 20 20 50 6c 61 79 4f 77 | | PlayOw|
|00001690| 6e 65 64 53 6f 75 6e 64 | 28 41 6c 74 46 69 72 65 |nedSound|(AltFire|
|000016a0| 53 6f 75 6e 64 43 6c 61 | 73 73 2c 20 53 4c 4f 54 |SoundCla|ss, SLOT|
|000016b0| 5f 4e 6f 6e 65 2c 20 46 | 69 72 65 53 6f 75 6e 64 |_None, F|ireSound|
|000016c0| 56 6f 6c 75 6d 65 2f 32 | 35 35 2e 30 2c 2c 20 41 |Volume/2|55.0,, A|
|000016d0| 6c 74 46 69 72 65 53 6f | 75 6e 64 52 61 64 69 75 |ltFireSo|undRadiu|
|000016e0| 73 2c 2c 20 66 61 6c 73 | 65 29 3b 0d 0a 20 20 20 |s,, fals|e);.. |
|000016f0| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 20 20 20 20 | }..| |
|00001700| 65 6c 73 65 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |else.. | {.|
|00001710| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if |
|00001720| 28 62 41 6d 62 69 65 6e | 74 46 69 72 65 53 6f 75 |(bAmbien|tFireSou|
|00001730| 6e 64 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |nd).. | |
|00001740| 20 20 20 20 20 41 6d 62 | 69 65 6e 74 53 6f 75 6e | Amb|ientSoun|
|00001750| 64 20 3d 20 46 69 72 65 | 53 6f 75 6e 64 43 6c 61 |d = Fire|SoundCla|
|00001760| 73 73 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ss;.. | |
|00001770| 20 65 6c 73 65 0d 0a 20 | 20 20 20 20 20 20 20 20 | else.. | |
|00001780| 20 20 20 20 20 20 20 50 | 6c 61 79 4f 77 6e 65 64 | P|layOwned|
|00001790| 53 6f 75 6e 64 28 46 69 | 72 65 53 6f 75 6e 64 43 |Sound(Fi|reSoundC|
|000017a0| 6c 61 73 73 2c 20 53 4c | 4f 54 5f 4e 6f 6e 65 2c |lass, SL|OT_None,|
|000017b0| 20 46 69 72 65 53 6f 75 | 6e 64 56 6f 6c 75 6d 65 | FireSou|ndVolume|
|000017c0| 2f 32 35 35 2e 30 2c 2c | 20 46 69 72 65 53 6f 75 |/255.0,,| FireSou|
|000017d0| 6e 64 52 61 64 69 75 73 | 2c 2c 20 66 61 6c 73 65 |ndRadius|,, false|
|000017e0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 7d 0d 0a 0d |);.. | }...|
|000017f0| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 72 65 |. }..|.. re|
|00001800| 74 75 72 6e 20 50 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |turn P;.|.}....si|
|00001810| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|00001820| 20 43 6c 69 65 6e 74 53 | 74 6f 70 46 69 72 65 28 | ClientS|topFire(|
|00001830| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 43 2c 20 62 6f |Controll|er C, bo|
|00001840| 6f 6c 20 62 57 61 73 41 | 6c 74 46 69 72 65 29 0d |ol bWasA|ltFire).|
|00001850| 0a 7b 0d 0a 09 69 66 20 | 28 4c 65 76 65 6c 2e 4e |.{...if |(Level.N|
|00001860| 65 74 4d 6f 64 65 20 21 | 3d 20 4e 4d 5f 43 6c 69 |etMode !|= NM_Cli|
|00001870| 65 6e 74 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |ent)....|return;.|
|00001880| 0a 0d 0a 09 69 66 20 28 | 62 57 61 73 41 6c 74 46 |....if (|bWasAltF|
|00001890| 69 72 65 29 0d 0a 09 09 | 4c 6f 61 64 65 64 53 68 |ire)....|LoadedSh|
|000018a0| 6f 74 43 6f 75 6e 74 3d | 30 3b 0d 0a 0d 0a 09 73 |otCount=|0;.....s|
|000018b0| 75 70 65 72 2e 43 6c 69 | 65 6e 74 53 74 6f 70 46 |uper.Cli|entStopF|
|000018c0| 69 72 65 28 43 2c 62 57 | 61 73 41 6c 74 46 69 72 |ire(C,bW|asAltFir|
|000018d0| 65 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |e);..}..|..functi|
|000018e0| 6f 6e 20 54 69 6d 65 72 | 28 29 0d 0a 7b 0d 0a 09 |on Timer|()..{...|
|000018f0| 69 66 20 28 4c 6f 61 64 | 65 64 53 68 6f 74 43 6f |if (Load|edShotCo|
|00001900| 75 6e 74 3e 30 29 0d 0a | 09 7b 0d 0a 09 09 46 69 |unt>0)..|.{....Fi|
|00001910| 72 65 53 69 6e 67 6c 65 | 28 46 69 72 65 43 6f 6e |reSingle|(FireCon|
|00001920| 74 72 6f 6c 2c 74 72 75 | 65 29 3b 0d 0a 09 09 4c |trol,tru|e);....L|
|00001930| 6f 61 64 65 64 53 68 6f | 74 43 6f 75 6e 74 2d 2d |oadedSho|tCount--|
|00001940| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 69 66 20 28 4c 6f |;...}...|..if (Lo|
|00001950| 61 64 65 64 53 68 6f 74 | 43 6f 75 6e 74 3c 3d 30 |adedShot|Count<=0|
|00001960| 29 0d 0a 09 7b 0d 0a 09 | 09 52 65 6d 6f 76 65 4c |)...{...|.RemoveL|
|00001970| 6f 63 6b 28 29 3b 0d 0a | 09 09 46 69 72 65 43 6f |ock();..|..FireCo|
|00001980| 75 6e 74 64 6f 77 6e 20 | 3d 20 46 69 72 65 49 6e |untdown |= FireIn|
|00001990| 74 65 72 76 61 6c 3b 0d | 0a 09 09 44 69 73 61 62 |terval;.|...Disab|
|000019a0| 6c 65 28 27 54 69 6d 65 | 72 27 29 3b 0d 0a 09 09 |le('Time|r');....|
|000019b0| 53 65 74 54 69 6d 65 72 | 28 30 2c 66 61 6c 73 65 |SetTimer|(0,false|
|000019c0| 29 3b 0d 0a 09 09 62 44 | 75 6d 70 69 6e 67 4c 6f |);....bD|umpingLo|
|000019d0| 61 64 20 3d 20 66 61 6c | 73 65 3b 0d 0a 09 7d 0d |ad = fal|se;...}.|
|000019e0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 57 |.}....fu|nction W|
|000019f0| 65 61 70 6f 6e 43 65 61 | 73 65 46 69 72 65 28 43 |eaponCea|seFire(C|
|00001a00| 6f 6e 74 72 6f 6c 6c 65 | 72 20 43 2c 20 62 6f 6f |ontrolle|r C, boo|
|00001a10| 6c 20 62 57 61 73 41 6c | 74 46 69 72 65 29 0d 0a |l bWasAl|tFire)..|
|00001a20| 7b 0d 0a 09 69 66 20 28 | 62 57 61 73 41 6c 74 46 |{...if (|bWasAltF|
|00001a30| 69 72 65 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |ire)...{|....if (|
|00001a40| 4c 6f 61 64 65 64 53 68 | 6f 74 43 6f 75 6e 74 3e |LoadedSh|otCount>|
|00001a50| 30 29 0d 0a 09 09 7b 0d | 0a 09 09 09 62 44 75 6d |0)....{.|....bDum|
|00001a60| 70 69 6e 67 4c 6f 61 64 | 3d 74 72 75 65 3b 0d 0a |pingLoad|=true;..|
|00001a70| 09 09 09 46 69 72 65 43 | 6f 6e 74 72 6f 6c 20 3d |...FireC|ontrol =|
|00001a80| 20 43 3b 0d 0a 09 09 09 | 45 6e 61 62 6c 65 28 27 | C;.....|Enable('|
|00001a90| 74 69 6d 65 72 27 29 3b | 0d 0a 09 09 09 53 65 74 |timer');|.....Set|
|00001aa0| 54 69 6d 65 72 28 30 2e | 31 2c 74 72 75 65 29 3b |Timer(0.|1,true);|
|00001ab0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |....}...|}..}....|
|00001ac0| 73 69 6d 75 6c 61 74 65 | 64 20 65 76 65 6e 74 20 |simulate|d event |
|00001ad0| 4f 77 6e 65 72 45 66 66 | 65 63 74 73 28 29 0d 0a |OwnerEff|ects()..|
|00001ae0| 7b 0d 0a 09 69 66 20 28 | 4c 65 76 65 6c 2e 4e 65 |{...if (|Level.Ne|
|00001af0| 74 4d 6f 64 65 20 3d 3d | 20 4e 4d 5f 43 6c 69 65 |tMode ==| NM_Clie|
|00001b00| 6e 74 20 26 26 20 62 49 | 73 41 6c 74 46 69 72 65 |nt && bI|sAltFire|
|00001b10| 29 0d 0a 09 09 4c 6f 61 | 64 65 64 53 68 6f 74 43 |)....Loa|dedShotC|
|00001b20| 6f 75 6e 74 2b 2b 3b 0d | 0a 0d 0a 09 69 66 20 28 |ount++;.|....if (|
|00001b30| 4c 6f 61 64 65 64 53 68 | 6f 74 43 6f 75 6e 74 3c |LoadedSh|otCount<|
|00001b40| 4d 61 78 53 68 6f 74 43 | 6f 75 6e 74 29 0d 0a 09 |MaxShotC|ount)...|
|00001b50| 09 73 75 70 65 72 2e 4f | 77 6e 65 72 45 66 66 65 |.super.O|wnerEffe|
|00001b60| 63 74 73 28 29 3b 0d 0a | 0d 0a 7d 0d 0a 0d 0a 66 |cts();..|..}....f|
|00001b70| 75 6e 63 74 69 6f 6e 20 | 76 65 63 74 6f 72 20 46 |unction |vector F|
|00001b80| 69 6e 64 49 6e 69 74 69 | 61 6c 54 61 72 67 65 74 |indIniti|alTarget|
|00001b90| 28 76 65 63 74 6f 72 20 | 53 74 61 72 74 2c 20 72 |(vector |Start, r|
|00001ba0| 6f 74 61 74 6f 72 20 44 | 69 72 29 0d 0a 7b 0d 0a |otator D|ir)..{..|
|00001bb0| 09 6c 6f 63 61 6c 20 76 | 65 63 74 6f 72 20 48 69 |.local v|ector Hi|
|00001bc0| 74 4c 6f 63 61 74 69 6f | 6e 2c 48 69 74 4e 6f 72 |tLocatio|n,HitNor|
|00001bd0| 6d 61 6c 2c 65 6e 64 3b | 0d 0a 09 6c 6f 63 61 6c |mal,end;|...local|
|00001be0| 20 61 63 74 6f 72 20 61 | 3b 0d 0a 0d 0a 09 65 6e | actor a|;.....en|
|00001bf0| 64 20 3d 20 53 74 61 72 | 74 20 2b 20 49 6e 73 74 |d = Star|t + Inst|
|00001c00| 69 67 61 74 6f 72 2e 52 | 65 67 69 6f 6e 2e 5a 6f |igator.R|egion.Zo|
|00001c10| 6e 65 2e 44 69 73 74 61 | 6e 63 65 46 6f 67 45 6e |ne.Dista|nceFogEn|
|00001c20| 64 20 2a 76 65 63 74 6f | 72 28 44 69 72 29 3b 0d |d *vecto|r(Dir);.|
|00001c30| 0a 09 61 20 3d 20 74 72 | 61 63 65 28 48 69 74 4c |..a = tr|ace(HitL|
|00001c40| 6f 63 61 74 69 6f 6e 2c | 48 69 74 4e 6f 72 6d 61 |ocation,|HitNorma|
|00001c50| 6c 2c 45 6e 64 2c 53 74 | 61 72 74 2c 74 72 75 65 |l,End,St|art,true|
|00001c60| 29 3b 0d 0a 09 69 66 20 | 28 20 20 61 20 21 3d 20 |);...if |( a != |
|00001c70| 6e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |none )..|..return|
|00001c80| 20 48 69 74 4c 6f 63 61 | 74 69 6f 6e 3b 0d 0a 09 | HitLoca|tion;...|
|00001c90| 65 6c 73 65 0d 0a 09 09 | 72 65 74 75 72 6e 20 45 |else....|return E|
|00001ca0| 6e 64 3b 0d 0a 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |nd;....}|....func|
|00001cb0| 74 69 6f 6e 20 52 65 6d | 6f 76 65 4c 6f 63 6b 28 |tion Rem|oveLock(|
|00001cc0| 29 0d 0a 7b 0d 0a 09 62 | 4c 6f 63 6b 65 64 20 3d |)..{...b|Locked =|
|00001cd0| 20 66 61 6c 73 65 3b 0d | 0a 09 4f 4e 53 44 75 61 | false;.|..ONSDua|
|00001ce0| 6c 41 43 53 69 64 65 47 | 75 6e 28 43 68 69 6c 64 |lACSideG|un(Child|
|00001cf0| 57 65 61 70 6f 6e 29 2e | 62 4c 6f 63 6b 65 64 20 |Weapon).|bLocked |
|00001d00| 3d 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 2f |= false;|..}..../|
|00001d10| 2f 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/=======|========|
|00001d20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001d30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001d40| 3d 3d 3d 3d 3d 3d 0d 0a | 2f 2f 20 41 49 20 49 6e |======..|// AI In|
|00001d50| 74 65 72 66 61 63 65 0d | 0a 0d 0a 2f 2f 20 72 65 |terface.|...// re|
|00001d60| 74 75 72 6e 20 66 61 6c | 73 65 20 69 66 20 6f 75 |turn fal|se if ou|
|00001d70| 74 20 6f 66 20 72 61 6e | 67 65 2c 20 63 61 6e 27 |t of ran|ge, can'|
|00001d80| 74 20 73 65 65 20 74 61 | 72 67 65 74 2c 20 65 74 |t see ta|rget, et|
|00001d90| 63 2e 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |c...func|tion boo|
|00001da0| 6c 20 43 61 6e 41 74 74 | 61 63 6b 28 41 63 74 6f |l CanAtt|ack(Acto|
|00001db0| 72 20 4f 74 68 65 72 29 | 0d 0a 7b 0d 0a 09 69 66 |r Other)|..{...if|
|00001dc0| 20 28 20 28 4c 6f 61 64 | 65 64 53 68 6f 74 43 6f | ( (Load|edShotCo|
|00001dd0| 75 6e 74 3e 30 29 20 26 | 26 20 28 56 53 69 7a 65 |unt>0) &|& (VSize|
|00001de0| 28 4c 6f 63 6b 65 64 54 | 61 72 67 65 74 20 2d 20 |(LockedT|arget - |
|00001df0| 4f 74 68 65 72 2e 4c 6f | 63 61 74 69 6f 6e 29 20 |Other.Lo|cation) |
|00001e00| 3c 20 31 30 30 20 2b 20 | 4f 74 68 65 72 2e 43 6f |< 100 + |Other.Co|
|00001e10| 6c 6c 69 73 69 6f 6e 52 | 61 64 69 75 73 20 2b 20 |llisionR|adius + |
|00001e20| 4f 74 68 65 72 2e 43 6f | 6c 6c 69 73 69 6f 6e 48 |Other.Co|llisionH|
|00001e30| 65 69 67 68 74 29 20 29 | 0d 0a 09 09 72 65 74 75 |eight) )|....retu|
|00001e40| 72 6e 20 74 72 75 65 3b | 0d 0a 09 72 65 74 75 72 |rn true;|...retur|
|00001e50| 6e 20 53 75 70 65 72 2e | 43 61 6e 41 74 74 61 63 |n Super.|CanAttac|
|00001e60| 6b 28 4f 74 68 65 72 29 | 3b 0d 0a 7d 0d 0a 0d 0a |k(Other)|;..}....|
|00001e70| 2f 2f 41 49 3a 20 72 65 | 74 75 72 6e 20 74 68 65 |//AI: re|turn the|
|00001e80| 20 62 65 73 74 20 66 69 | 72 65 20 6d 6f 64 65 20 | best fi|re mode |
|00001e90| 66 6f 72 20 74 68 65 20 | 73 69 74 75 61 74 69 6f |for the |situatio|
|00001ea0| 6e 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 79 74 65 |n..funct|ion byte|
|00001eb0| 20 42 65 73 74 4d 6f 64 | 65 28 29 0d 0a 7b 0d 0a | BestMod|e()..{..|
|00001ec0| 09 69 66 20 28 20 28 49 | 6e 73 74 69 67 61 74 6f |.if ( (I|nstigato|
|00001ed0| 72 2e 43 6f 6e 74 72 6f | 6c 6c 65 72 20 3d 3d 20 |r.Contro|ller == |
|00001ee0| 4e 6f 6e 65 29 20 7c 7c | 20 28 49 6e 73 74 69 67 |None) ||| (Instig|
|00001ef0| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |ator.Con|troller.|
|00001f00| 54 61 72 67 65 74 20 3d | 3d 20 4e 6f 6e 65 29 20 |Target =|= None) |
|00001f10| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 31 3b 0d 0a |)....ret|urn 1;..|
|00001f20| 09 69 66 20 28 20 28 50 | 61 77 6e 28 49 6e 73 74 |.if ( (P|awn(Inst|
|00001f30| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00001f40| 72 2e 54 61 72 67 65 74 | 29 20 21 3d 20 4e 6f 6e |r.Target|) != Non|
|00001f50| 65 29 20 26 26 20 21 50 | 61 77 6e 28 49 6e 73 74 |e) && !P|awn(Inst|
|00001f60| 69 67 61 74 6f 72 2e 43 | 6f 6e 74 72 6f 6c 6c 65 |igator.C|ontrolle|
|00001f70| 72 2e 54 61 72 67 65 74 | 29 2e 62 53 74 61 74 69 |r.Target|).bStati|
|00001f80| 6f 6e 61 72 79 20 26 26 | 20 28 49 6e 73 74 69 67 |onary &&| (Instig|
|00001f90| 61 74 6f 72 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 2e |ator.Con|troller.|
|00001fa0| 46 6f 63 75 73 20 3d 3d | 20 49 6e 73 74 69 67 61 |Focus ==| Instiga|
|00001fb0| 74 6f 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 54 |tor.Cont|roller.T|
|00001fc0| 61 72 67 65 74 29 20 29 | 0d 0a 09 09 72 65 74 75 |arget) )|....retu|
|00001fd0| 72 6e 20 30 3b 0d 0a 09 | 72 65 74 75 72 6e 20 31 |rn 0;...|return 1|
|00001fe0| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+