home *** CD-ROM | disk | FTP | other *** search
Unknown | 2005-02-15 | 7.8 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 | 40 7c 63 6c 61 73 73 20 |........|@|class |
|00000010| 57 65 61 70 6f 6e 4c 6f | 63 6b 65 72 20 65 78 74 |WeaponLo|cker ext|
|00000020| 65 6e 64 73 20 50 69 63 | 6b 75 70 3b 0d 0a 0d 0a |ends Pic|kup;....|
|00000030| 23 65 78 65 63 20 4f 42 | 4a 20 4c 4f 41 44 20 46 |#exec OB|J LOAD F|
|00000040| 49 4c 45 3d 2e 2e 5c 73 | 74 61 74 69 63 6d 65 73 |ILE=..\s|taticmes|
|00000050| 68 65 73 5c 69 6e 64 75 | 73 74 72 69 61 6c 5f 73 |hes\indu|strial_s|
|00000060| 74 61 74 69 63 0d 0a 0d | 0a 73 74 72 75 63 74 20 |tatic...|.struct |
|00000070| 57 65 61 70 6f 6e 45 6e | 74 72 79 0d 0a 7b 0d 0a |WeaponEn|try..{..|
|00000080| 09 76 61 72 28 29 20 63 | 6c 61 73 73 3c 57 65 61 |.var() c|lass<Wea|
|00000090| 70 6f 6e 3e 20 57 65 61 | 70 6f 6e 43 6c 61 73 73 |pon> Wea|ponClass|
|000000a0| 3b 0d 0a 09 76 61 72 28 | 29 20 69 6e 74 20 45 78 |;...var(|) int Ex|
|000000b0| 74 72 61 41 6d 6d 6f 3b | 0d 0a 7d 3b 0d 0a 0d 0a |traAmmo;|..};....|
|000000c0| 76 61 72 28 29 20 62 6f | 6f 6c 20 62 53 65 6e 74 |var() bo|ol bSent|
|000000d0| 69 6e 65 6c 50 72 6f 74 | 65 63 74 65 64 3b 0d 0a |inelProt|ected;..|
|000000e0| 76 61 72 28 29 20 61 72 | 72 61 79 3c 57 65 61 70 |var() ar|ray<Weap|
|000000f0| 6f 6e 45 6e 74 72 79 3e | 20 57 65 61 70 6f 6e 73 |onEntry>| Weapons|
|00000100| 3b 0d 0a 76 61 72 20 6c | 6f 63 61 6c 69 7a 65 64 |;..var l|ocalized|
|00000110| 20 73 74 72 69 6e 67 20 | 4c 6f 63 6b 65 72 53 74 | string |LockerSt|
|00000120| 72 69 6e 67 3b 0d 0a 0d | 0a 76 61 72 09 46 58 5f |ring;...|.var.FX_|
|00000130| 57 65 61 70 6f 6e 4c 6f | 63 6b 65 72 09 45 66 66 |WeaponLo|cker.Eff|
|00000140| 65 63 74 3b 0d 0a 0d 0a | 73 74 72 75 63 74 20 50 |ect;....|struct P|
|00000150| 61 77 6e 54 6f 75 63 68 | 65 72 0d 0a 7b 0d 0a 09 |awnTouch|er..{...|
|00000160| 76 61 72 20 50 61 77 6e | 20 50 3b 0d 0a 09 76 61 |var Pawn| P;...va|
|00000170| 72 20 66 6c 6f 61 74 20 | 4e 65 78 74 54 6f 75 63 |r float |NextTouc|
|00000180| 68 54 69 6d 65 3b 0d 0a | 7d 3b 0d 0a 0d 0a 76 61 |hTime;..|};....va|
|00000190| 72 20 61 72 72 61 79 3c | 50 61 77 6e 54 6f 75 63 |r array<|PawnTouc|
|000001a0| 68 65 72 3e 20 43 75 73 | 74 6f 6d 65 72 73 3b 0d |her> Cus|tomers;.|
|000001b0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|000001c0| 20 41 64 64 43 75 73 74 | 6f 6d 65 72 28 50 61 77 | AddCust|omer(Paw|
|000001d0| 6e 20 50 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |n P)..{.|..local |
|000001e0| 69 6e 74 09 09 09 69 3b | 0d 0a 09 6c 6f 63 61 6c |int...i;|...local|
|000001f0| 20 50 61 77 6e 54 6f 75 | 63 68 65 72 09 50 54 3b | PawnTou|cher.PT;|
|00000200| 0d 0a 0d 0a 09 69 66 20 | 28 20 43 75 73 74 6f 6d |.....if |( Custom|
|00000210| 65 72 73 2e 4c 65 6e 67 | 74 68 20 3e 20 30 20 29 |ers.Leng|th > 0 )|
|00000220| 0d 0a 09 09 66 6f 72 20 | 28 20 69 3d 30 3b 20 69 |....for |( i=0; i|
|00000230| 3c 43 75 73 74 6f 6d 65 | 72 73 2e 4c 65 6e 67 74 |<Custome|rs.Lengt|
|00000240| 68 3b 20 69 2b 2b 20 29 | 0d 0a 09 09 7b 0d 0a 09 |h; i++ )|....{...|
|00000250| 09 09 69 66 20 28 20 43 | 75 73 74 6f 6d 65 72 73 |..if ( C|ustomers|
|00000260| 5b 69 5d 2e 4e 65 78 74 | 54 6f 75 63 68 54 69 6d |[i].Next|TouchTim|
|00000270| 65 20 3c 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e < Leve|l.TimeSe|
|00000280| 63 6f 6e 64 73 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |conds ).|....{...|
|00000290| 09 09 09 69 66 20 28 20 | 43 75 73 74 6f 6d 65 72 |...if ( |Customer|
|000002a0| 73 5b 69 5d 2e 50 20 3d | 3d 20 50 20 29 0d 0a 09 |s[i].P =|= P )...|
|000002b0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 43 75 73 74 6f |...{....|...Custo|
|000002c0| 6d 65 72 73 5b 69 5d 2e | 4e 65 78 74 54 6f 75 63 |mers[i].|NextTouc|
|000002d0| 68 54 69 6d 65 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |hTime = |Level.Ti|
|000002e0| 6d 65 53 65 63 6f 6e 64 | 73 20 2b 20 33 30 3b 0d |meSecond|s + 30;.|
|000002f0| 0a 09 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00000300| 65 3b 0d 0a 09 09 09 09 | 7d 0d 0a 09 09 09 09 43 |e;......|}......C|
|00000310| 75 73 74 6f 6d 65 72 73 | 2e 52 65 6d 6f 76 65 28 |ustomers|.Remove(|
|00000320| 69 2c 31 29 3b 0d 0a 09 | 09 09 09 69 2d 2d 3b 0d |i,1);...|...i--;.|
|00000330| 0a 09 09 09 7d 0d 0a 09 | 09 09 65 6c 73 65 20 69 |....}...|..else i|
|00000340| 66 20 28 20 43 75 73 74 | 6f 6d 65 72 73 5b 69 5d |f ( Cust|omers[i]|
|00000350| 2e 50 20 3d 3d 20 50 20 | 29 0d 0a 09 09 09 09 72 |.P == P |)......r|
|00000360| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 09 09 |eturn fa|lse;....|
|00000370| 7d 0d 0a 0d 0a 09 50 54 | 2e 50 20 3d 20 50 3b 0d |}.....PT|.P = P;.|
|00000380| 0a 09 50 54 2e 4e 65 78 | 74 54 6f 75 63 68 54 69 |..PT.Nex|tTouchTi|
|00000390| 6d 65 20 3d 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 |me = Lev|el.TimeS|
|000003a0| 65 63 6f 6e 64 73 20 2b | 20 33 30 3b 0d 0a 09 43 |econds +| 30;...C|
|000003b0| 75 73 74 6f 6d 65 72 73 | 5b 43 75 73 74 6f 6d 65 |ustomers|[Custome|
|000003c0| 72 73 2e 4c 65 6e 67 74 | 68 5d 20 3d 20 50 54 3b |rs.Lengt|h] = PT;|
|000003d0| 0d 0a 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000003e0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |.}....fu|nction b|
|000003f0| 6f 6f 6c 20 48 61 73 43 | 75 73 74 6f 6d 65 72 28 |ool HasC|ustomer(|
|00000400| 50 61 77 6e 20 50 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |Pawn P).|.{...loc|
|00000410| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 09 69 66 |al int i|;.....if|
|00000420| 20 28 20 43 75 73 74 6f | 6d 65 72 73 2e 4c 65 6e | ( Custo|mers.Len|
|00000430| 67 74 68 20 3e 20 30 20 | 29 0d 0a 09 09 66 6f 72 |gth > 0 |)....for|
|00000440| 20 28 20 69 3d 30 3b 20 | 69 3c 43 75 73 74 6f 6d | ( i=0; |i<Custom|
|00000450| 65 72 73 2e 4c 65 6e 67 | 74 68 3b 20 69 2b 2b 20 |ers.Leng|th; i++ |
|00000460| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |)....{..|...if ( |
|00000470| 43 75 73 74 6f 6d 65 72 | 73 5b 69 5d 2e 4e 65 78 |Customer|s[i].Nex|
|00000480| 74 54 6f 75 63 68 54 69 | 6d 65 20 3c 20 4c 65 76 |tTouchTi|me < Lev|
|00000490| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 29 |el.TimeS|econds )|
|000004a0| 0d 0a 09 09 09 7b 0d 0a | 09 09 09 09 69 66 20 28 |.....{..|....if (|
|000004b0| 20 43 75 73 74 6f 6d 65 | 72 73 5b 69 5d 2e 50 20 | Custome|rs[i].P |
|000004c0| 3d 3d 20 50 20 29 0d 0a | 09 09 09 09 09 72 65 74 |== P )..|.....ret|
|000004d0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 09 |urn fals|e;......|
|000004e0| 43 75 73 74 6f 6d 65 72 | 73 2e 52 65 6d 6f 76 65 |Customer|s.Remove|
|000004f0| 28 69 2c 31 29 3b 0d 0a | 09 09 09 09 69 2d 2d 3b |(i,1);..|....i--;|
|00000500| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 65 6c 73 65 20 |.....}..|...else |
|00000510| 69 66 20 28 20 43 75 73 | 74 6f 6d 65 72 73 5b 69 |if ( Cus|tomers[i|
|00000520| 5d 2e 50 20 3d 3d 20 50 | 20 29 0d 0a 09 09 09 09 |].P == P| )......|
|00000530| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 09 |return t|rue;....|
|00000540| 7d 0d 0a 0d 0a 09 72 65 | 74 75 72 6e 20 66 61 6c |}.....re|turn fal|
|00000550| 73 65 3b 0d 0a 7d 0d 0a | 0d 0a 73 69 6d 75 6c 61 |se;..}..|..simula|
|00000560| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 50 6f 73 |ted func|tion Pos|
|00000570| 74 4e 65 74 42 65 67 69 | 6e 50 6c 61 79 28 29 0d |tNetBegi|nPlay().|
|00000580| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 69 6e 74 20 69 |.{...loc|al int i|
|00000590| 3b 0d 0a 0d 0a 09 53 75 | 70 65 72 2e 50 6f 73 74 |;.....Su|per.Post|
|000005a0| 4e 65 74 42 65 67 69 6e | 50 6c 61 79 28 29 3b 0d |NetBegin|Play();.|
|000005b0| 0a 0d 0a 09 4d 61 78 44 | 65 73 69 72 65 61 62 69 |....MaxD|esireabi|
|000005c0| 6c 69 74 79 20 3d 20 30 | 3b 0d 0a 0d 0a 09 69 66 |lity = 0|;.....if|
|000005d0| 20 28 20 62 48 69 64 64 | 65 6e 20 29 0d 0a 09 09 | ( bHidd|en )....|
|000005e0| 72 65 74 75 72 6e 3b 0d | 0a 09 66 6f 72 20 28 20 |return;.|..for ( |
|000005f0| 69 3d 30 3b 20 69 3c 57 | 65 61 70 6f 6e 73 2e 4c |i=0; i<W|eapons.L|
|00000600| 65 6e 67 74 68 3b 20 69 | 2b 2b 20 29 0d 0a 09 09 |ength; i|++ )....|
|00000610| 4d 61 78 44 65 73 69 72 | 65 61 62 69 6c 69 74 79 |MaxDesir|eability|
|00000620| 20 2b 3d 20 57 65 61 70 | 6f 6e 73 5b 69 5d 2e 57 | += Weap|ons[i].W|
|00000630| 65 61 70 6f 6e 43 6c 61 | 73 73 2e 44 65 66 61 75 |eaponCla|ss.Defau|
|00000640| 6c 74 2e 41 49 52 61 74 | 69 6e 67 3b 0d 0a 09 53 |lt.AIRat|ing;...S|
|00000650| 70 61 77 6e 4c 6f 63 6b | 65 72 57 65 61 70 6f 6e |pawnLock|erWeapon|
|00000660| 28 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 4c 65 76 |();.....|if ( Lev|
|00000670| 65 6c 2e 4e 65 74 4d 6f | 64 65 20 21 3d 20 4e 4d |el.NetMo|de != NM|
|00000680| 5f 44 65 64 69 63 61 74 | 65 64 53 65 72 76 65 72 |_Dedicat|edServer|
|00000690| 20 29 0d 0a 09 09 45 66 | 66 65 63 74 20 3d 20 53 | )....Ef|fect = S|
|000006a0| 70 61 77 6e 28 63 6c 61 | 73 73 27 46 58 5f 57 65 |pawn(cla|ss'FX_We|
|000006b0| 61 70 6f 6e 4c 6f 63 6b | 65 72 27 2c 20 53 65 6c |aponLock|er', Sel|
|000006c0| 66 2c 2c 20 4c 6f 63 61 | 74 69 6f 6e 2c 20 52 6f |f,, Loca|tion, Ro|
|000006d0| 74 61 74 69 6f 6e 20 29 | 3b 0d 0a 7d 0d 0a 0d 0a |tation )|;..}....|
|000006e0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000006f0| 6f 6e 20 64 65 73 74 72 | 6f 79 65 64 28 29 0d 0a |on destr|oyed()..|
|00000700| 7b 0d 0a 09 69 66 20 28 | 20 45 66 66 65 63 74 20 |{...if (| Effect |
|00000710| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 45 66 66 |!= None |)....Eff|
|00000720| 65 63 74 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |ect.Dest|roy();..|
|00000730| 0d 0a 09 73 75 70 65 72 | 2e 44 65 73 74 72 6f 79 |...super|.Destroy|
|00000740| 65 64 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ed();..}|....simu|
|00000750| 6c 61 74 65 64 20 73 74 | 61 74 69 63 20 66 75 6e |lated st|atic fun|
|00000760| 63 74 69 6f 6e 20 55 70 | 64 61 74 65 48 55 44 28 |ction Up|dateHUD(|
|00000770| 48 55 44 20 48 29 0d 0a | 7b 0d 0a 09 48 2e 4c 61 |HUD H)..|{...H.La|
|00000780| 73 74 50 69 63 6b 75 70 | 54 69 6d 65 20 3d 20 48 |stPickup|Time = H|
|00000790| 2e 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e |.Level.T|imeSecon|
|000007a0| 64 73 3b 0d 0a 09 48 2e | 4c 61 73 74 57 65 61 70 |ds;...H.|LastWeap|
|000007b0| 6f 6e 50 69 63 6b 75 70 | 54 69 6d 65 20 3d 20 48 |onPickup|Time = H|
|000007c0| 2e 4c 61 73 74 50 69 63 | 6b 75 70 54 69 6d 65 3b |.LastPic|kupTime;|
|000007d0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000007e0| 52 65 73 65 74 28 29 0d | 0a 7b 0d 0a 7d 0d 0a 0d |Reset().|.{..}...|
|000007f0| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00000800| 69 6f 6e 20 53 70 61 77 | 6e 4c 6f 63 6b 65 72 57 |ion Spaw|nLockerW|
|00000810| 65 61 70 6f 6e 28 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |eapon().|.{...loc|
|00000820| 61 6c 20 4c 6f 63 6b 65 | 72 57 65 61 70 6f 6e 20 |al Locke|rWeapon |
|00000830| 4c 3b 0d 0a 09 6c 6f 63 | 61 6c 20 52 6f 74 61 74 |L;...loc|al Rotat|
|00000840| 6f 72 20 57 65 61 70 6f | 6e 44 69 72 3b 0d 0a 09 |or Weapo|nDir;...|
|00000850| 6c 6f 63 61 6c 20 63 6c | 61 73 73 3c 55 54 57 65 |local cl|ass<UTWe|
|00000860| 61 70 6f 6e 50 69 63 6b | 75 70 3e 20 50 3b 0d 0a |aponPick|up> P;..|
|00000870| 09 6c 6f 63 61 6c 20 69 | 6e 74 20 69 3b 0d 0a 09 |.local i|nt i;...|
|00000880| 6c 6f 63 61 6c 20 66 6c | 6f 61 74 20 49 6e 74 65 |local fl|oat Inte|
|00000890| 72 76 61 6c 3b 0d 0a 0d | 0a 09 69 66 20 28 20 28 |rval;...|..if ( (|
|000008a0| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 3d 3d |Level.Ne|tMode ==|
|000008b0| 20 4e 4d 5f 44 65 64 69 | 63 61 74 65 64 53 65 72 | NM_Dedi|catedSer|
|000008c0| 76 65 72 29 20 7c 7c 20 | 28 4c 65 76 65 6c 2e 44 |ver) || |(Level.D|
|000008d0| 65 74 61 69 6c 4d 6f 64 | 65 20 3d 3d 20 44 4d 5f |etailMod|e == DM_|
|000008e0| 4c 6f 77 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |Low) )..|..return|
|000008f0| 3b 0d 0a 0d 0a 09 4c 20 | 3d 20 73 70 61 77 6e 28 |;.....L |= spawn(|
|00000900| 63 6c 61 73 73 27 4c 6f | 63 6b 65 72 57 65 61 70 |class'Lo|ckerWeap|
|00000910| 6f 6e 27 29 3b 0d 0a 09 | 49 6e 74 65 72 76 61 6c |on');...|Interval|
|00000920| 20 3d 20 36 35 35 33 36 | 2e 30 2f 57 65 61 70 6f | = 65536|.0/Weapo|
|00000930| 6e 73 2e 4c 65 6e 67 74 | 68 3b 0d 0a 0d 0a 09 66 |ns.Lengt|h;.....f|
|00000940| 6f 72 20 28 20 69 3d 30 | 3b 20 69 3c 38 3b 20 69 |or ( i=0|; i<8; i|
|00000950| 2b 2b 20 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |++ )...{|....if (|
|00000960| 20 69 20 3e 3d 20 57 65 | 61 70 6f 6e 73 2e 4c 65 | i >= We|apons.Le|
|00000970| 6e 67 74 68 20 29 0d 0a | 09 09 09 4c 2e 45 6d 69 |ngth )..|...L.Emi|
|00000980| 74 74 65 72 73 5b 69 5d | 2e 44 69 73 61 62 6c 65 |tters[i]|.Disable|
|00000990| 64 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 65 6c 73 |d = true|;....els|
|000009a0| 65 0d 0a 09 09 7b 0d 0a | 09 09 09 50 20 3d 20 63 |e....{..|...P = c|
|000009b0| 6c 61 73 73 3c 55 54 57 | 65 61 70 6f 6e 50 69 63 |lass<UTW|eaponPic|
|000009c0| 6b 75 70 3e 28 57 65 61 | 70 6f 6e 73 5b 69 5d 2e |kup>(Wea|pons[i].|
|000009d0| 57 65 61 70 6f 6e 43 6c | 61 73 73 2e 44 65 66 61 |WeaponCl|ass.Defa|
|000009e0| 75 6c 74 2e 50 69 63 6b | 75 70 43 6c 61 73 73 29 |ult.Pick|upClass)|
|000009f0| 3b 0d 0a 09 09 09 69 66 | 20 28 20 28 50 20 3d 3d |;.....if| ( (P ==|
|00000a00| 20 4e 6f 6e 65 29 20 7c | 7c 20 28 50 2e 44 65 66 | None) ||| (P.Def|
|00000a10| 61 75 6c 74 2e 53 74 61 | 74 69 63 4d 65 73 68 20 |ault.Sta|ticMesh |
|00000a20| 3d 3d 20 4e 6f 6e 65 29 | 20 29 0d 0a 09 09 09 09 |== None)| )......|
|00000a30| 4c 2e 45 6d 69 74 74 65 | 72 73 5b 69 5d 2e 44 69 |L.Emitte|rs[i].Di|
|00000a40| 73 61 62 6c 65 64 20 3d | 20 74 72 75 65 3b 0d 0a |sabled =| true;..|
|00000a50| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|00000a60| 09 09 09 4d 65 73 68 45 | 6d 69 74 74 65 72 28 4c |...MeshE|mitter(L|
|00000a70| 2e 45 6d 69 74 74 65 72 | 73 5b 69 5d 29 2e 53 74 |.Emitter|s[i]).St|
|00000a80| 61 74 69 63 4d 65 73 68 | 20 3d 20 50 2e 44 65 66 |aticMesh| = P.Def|
|00000a90| 61 75 6c 74 2e 53 74 61 | 74 69 63 4d 65 73 68 3b |ault.Sta|ticMesh;|
|00000aa0| 0d 0a 09 09 09 09 4c 2e | 45 6d 69 74 74 65 72 73 |......L.|Emitters|
|00000ab0| 5b 69 5d 2e 53 74 61 72 | 74 4c 6f 63 61 74 69 6f |[i].Star|tLocatio|
|00000ac0| 6e 4f 66 66 73 65 74 20 | 3d 20 50 2e 64 65 66 61 |nOffset |= P.defa|
|00000ad0| 75 6c 74 2e 4c 6f 63 6b | 65 72 4f 66 66 73 65 74 |ult.Lock|erOffset|
|00000ae0| 20 2a 20 76 65 63 74 6f | 72 28 57 65 61 70 6f 6e | * vecto|r(Weapon|
|00000af0| 44 69 72 29 3b 0d 0a 09 | 09 09 09 57 65 61 70 6f |Dir);...|...Weapo|
|00000b00| 6e 44 69 72 2e 59 61 77 | 20 2b 3d 20 49 6e 74 65 |nDir.Yaw| += Inte|
|00000b10| 72 76 61 6c 3b 0d 0a 09 | 09 09 09 4d 65 73 68 45 |rval;...|...MeshE|
|00000b20| 6d 69 74 74 65 72 28 4c | 2e 45 6d 69 74 74 65 72 |mitter(L|.Emitter|
|00000b30| 73 5b 69 5d 29 2e 53 74 | 61 72 74 53 70 69 6e 52 |s[i]).St|artSpinR|
|00000b40| 61 6e 67 65 2e 58 2e 4d | 69 6e 20 3d 20 50 2e 44 |ange.X.M|in = P.D|
|00000b50| 65 66 61 75 6c 74 2e 53 | 74 61 6e 64 75 70 2e 58 |efault.S|tandup.X|
|00000b60| 3b 0d 0a 09 09 09 09 4d | 65 73 68 45 6d 69 74 74 |;......M|eshEmitt|
|00000b70| 65 72 28 4c 2e 45 6d 69 | 74 74 65 72 73 5b 69 5d |er(L.Emi|tters[i]|
|00000b80| 29 2e 53 74 61 72 74 53 | 70 69 6e 52 61 6e 67 65 |).StartS|pinRange|
|00000b90| 2e 58 2e 4d 61 78 20 3d | 20 50 2e 44 65 66 61 75 |.X.Max =| P.Defau|
|00000ba0| 6c 74 2e 53 74 61 6e 64 | 75 70 2e 58 3b 0d 0a 09 |lt.Stand|up.X;...|
|00000bb0| 09 09 09 4d 65 73 68 45 | 6d 69 74 74 65 72 28 4c |...MeshE|mitter(L|
|00000bc0| 2e 45 6d 69 74 74 65 72 | 73 5b 69 5d 29 2e 53 74 |.Emitter|s[i]).St|
|00000bd0| 61 72 74 53 70 69 6e 52 | 61 6e 67 65 2e 59 2e 4d |artSpinR|ange.Y.M|
|00000be0| 69 6e 20 3d 20 50 2e 44 | 65 66 61 75 6c 74 2e 53 |in = P.D|efault.S|
|00000bf0| 74 61 6e 64 75 70 2e 59 | 3b 0d 0a 09 09 09 09 4d |tandup.Y|;......M|
|00000c00| 65 73 68 45 6d 69 74 74 | 65 72 28 4c 2e 45 6d 69 |eshEmitt|er(L.Emi|
|00000c10| 74 74 65 72 73 5b 69 5d | 29 2e 53 74 61 72 74 53 |tters[i]|).StartS|
|00000c20| 70 69 6e 52 61 6e 67 65 | 2e 59 2e 4d 61 78 20 3d |pinRange|.Y.Max =|
|00000c30| 20 50 2e 44 65 66 61 75 | 6c 74 2e 53 74 61 6e 64 | P.Defau|lt.Stand|
|00000c40| 75 70 2e 59 3b 0d 0a 09 | 09 09 09 4d 65 73 68 45 |up.Y;...|...MeshE|
|00000c50| 6d 69 74 74 65 72 28 4c | 2e 45 6d 69 74 74 65 72 |mitter(L|.Emitter|
|00000c60| 73 5b 69 5d 29 2e 53 74 | 61 72 74 53 70 69 6e 52 |s[i]).St|artSpinR|
|00000c70| 61 6e 67 65 2e 5a 2e 4d | 69 6e 20 3d 20 50 2e 44 |ange.Z.M|in = P.D|
|00000c80| 65 66 61 75 6c 74 2e 53 | 74 61 6e 64 75 70 2e 5a |efault.S|tandup.Z|
|00000c90| 3b 0d 0a 09 09 09 09 4d | 65 73 68 45 6d 69 74 74 |;......M|eshEmitt|
|00000ca0| 65 72 28 4c 2e 45 6d 69 | 74 74 65 72 73 5b 69 5d |er(L.Emi|tters[i]|
|00000cb0| 29 2e 53 74 61 72 74 53 | 70 69 6e 52 61 6e 67 65 |).StartS|pinRange|
|00000cc0| 2e 5a 2e 4d 61 78 20 3d | 20 50 2e 44 65 66 61 75 |.Z.Max =| P.Defau|
|00000cd0| 6c 74 2e 53 74 61 6e 64 | 75 70 2e 5a 3b 0d 0a 09 |lt.Stand|up.Z;...|
|00000ce0| 09 09 09 4d 65 73 68 45 | 6d 69 74 74 65 72 28 4c |...MeshE|mitter(L|
|00000cf0| 2e 45 6d 69 74 74 65 72 | 73 5b 69 5d 29 2e 53 74 |.Emitter|s[i]).St|
|00000d00| 61 72 74 53 69 7a 65 52 | 61 6e 67 65 2e 58 2e 4d |artSizeR|ange.X.M|
|00000d10| 69 6e 20 3d 20 30 2e 39 | 20 2a 20 50 2e 64 65 66 |in = 0.9| * P.def|
|00000d20| 61 75 6c 74 2e 44 72 61 | 77 53 63 61 6c 65 3b 0d |ault.Dra|wScale;.|
|00000d30| 0a 09 09 09 09 4d 65 73 | 68 45 6d 69 74 74 65 72 |.....Mes|hEmitter|
|00000d40| 28 4c 2e 45 6d 69 74 74 | 65 72 73 5b 69 5d 29 2e |(L.Emitt|ers[i]).|
|00000d50| 53 74 61 72 74 53 69 7a | 65 52 61 6e 67 65 2e 58 |StartSiz|eRange.X|
|00000d60| 2e 4d 61 78 20 3d 20 30 | 2e 39 20 2a 20 50 2e 64 |.Max = 0|.9 * P.d|
|00000d70| 65 66 61 75 6c 74 2e 44 | 72 61 77 53 63 61 6c 65 |efault.D|rawScale|
|00000d80| 3b 0d 0a 20 09 09 09 09 | 4d 65 73 68 45 6d 69 74 |;.. ....|MeshEmit|
|00000d90| 74 65 72 28 4c 2e 45 6d | 69 74 74 65 72 73 5b 69 |ter(L.Em|itters[i|
|00000da0| 5d 29 2e 53 74 61 72 74 | 53 69 7a 65 52 61 6e 67 |]).Start|SizeRang|
|00000db0| 65 2e 59 2e 4d 69 6e 20 | 3d 20 30 2e 39 20 2a 20 |e.Y.Min |= 0.9 * |
|00000dc0| 50 2e 64 65 66 61 75 6c | 74 2e 44 72 61 77 53 63 |P.defaul|t.DrawSc|
|00000dd0| 61 6c 65 3b 0d 0a 09 09 | 09 09 4d 65 73 68 45 6d |ale;....|..MeshEm|
|00000de0| 69 74 74 65 72 28 4c 2e | 45 6d 69 74 74 65 72 73 |itter(L.|Emitters|
|00000df0| 5b 69 5d 29 2e 53 74 61 | 72 74 53 69 7a 65 52 61 |[i]).Sta|rtSizeRa|
|00000e00| 6e 67 65 2e 59 2e 4d 61 | 78 20 3d 20 30 2e 39 20 |nge.Y.Ma|x = 0.9 |
|00000e10| 2a 20 50 2e 64 65 66 61 | 75 6c 74 2e 44 72 61 77 |* P.defa|ult.Draw|
|00000e20| 53 63 61 6c 65 3b 0d 0a | 09 09 09 09 4d 65 73 68 |Scale;..|....Mesh|
|00000e30| 45 6d 69 74 74 65 72 28 | 4c 2e 45 6d 69 74 74 65 |Emitter(|L.Emitte|
|00000e40| 72 73 5b 69 5d 29 2e 53 | 74 61 72 74 53 69 7a 65 |rs[i]).S|tartSize|
|00000e50| 52 61 6e 67 65 2e 5a 2e | 4d 69 6e 20 3d 20 30 2e |Range.Z.|Min = 0.|
|00000e60| 39 20 2a 20 50 2e 64 65 | 66 61 75 6c 74 2e 44 72 |9 * P.de|fault.Dr|
|00000e70| 61 77 53 63 61 6c 65 3b | 0d 0a 09 09 09 09 4d 65 |awScale;|......Me|
|00000e80| 73 68 45 6d 69 74 74 65 | 72 28 4c 2e 45 6d 69 74 |shEmitte|r(L.Emit|
|00000e90| 74 65 72 73 5b 69 5d 29 | 2e 53 74 61 72 74 53 69 |ters[i])|.StartSi|
|00000ea0| 7a 65 52 61 6e 67 65 2e | 5a 2e 4d 61 78 20 3d 20 |zeRange.|Z.Max = |
|00000eb0| 30 2e 39 20 2a 20 50 2e | 64 65 66 61 75 6c 74 2e |0.9 * P.|default.|
|00000ec0| 44 72 61 77 53 63 61 6c | 65 3b 0d 0a 09 09 09 7d |DrawScal|e;.....}|
|00000ed0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |....}...|}..}....|
|00000ee0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|00000ef0| 6f 6e 20 53 74 72 69 6e | 67 20 47 65 74 48 75 6d |on Strin|g GetHum|
|00000f00| 61 6e 52 65 61 64 61 62 | 6c 65 4e 61 6d 65 28 29 |anReadab|leName()|
|00000f10| 0d 0a 7b 0d 0a 09 72 65 | 74 75 72 6e 20 4c 6f 63 |..{...re|turn Loc|
|00000f20| 6b 65 72 53 74 72 69 6e | 67 3b 0d 0a 7d 0d 0a 0d |kerStrin|g;..}...|
|00000f30| 0a 2f 2f 20 74 65 6c 6c | 20 74 68 65 20 62 6f 74 |.// tell| the bot|
|00000f40| 20 68 6f 77 20 6d 75 63 | 68 20 69 74 20 77 61 6e | how muc|h it wan|
|00000f50| 74 73 20 74 68 69 73 20 | 77 65 61 70 6f 6e 20 70 |ts this |weapon p|
|00000f60| 69 63 6b 75 70 0d 0a 2f | 2f 20 63 61 6c 6c 65 64 |ickup../|/ called|
|00000f70| 20 77 68 65 6e 20 74 68 | 65 20 62 6f 74 20 69 73 | when th|e bot is|
|00000f80| 20 74 72 79 69 6e 67 20 | 74 6f 20 64 65 63 69 64 | trying |to decid|
|00000f90| 65 20 77 68 69 63 68 20 | 69 6e 76 65 6e 74 6f 72 |e which |inventor|
|00000fa0| 79 20 70 69 63 6b 75 70 | 20 74 6f 20 67 6f 20 61 |y pickup| to go a|
|00000fb0| 66 74 65 72 20 6e 65 78 | 74 0d 0a 66 75 6e 63 74 |fter nex|t..funct|
|00000fc0| 69 6f 6e 20 66 6c 6f 61 | 74 20 42 6f 74 44 65 73 |ion floa|t BotDes|
|00000fd0| 69 72 65 61 62 69 6c 69 | 74 79 28 50 61 77 6e 20 |ireabili|ty(Pawn |
|00000fe0| 42 6f 74 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |Bot)..{.|..local |
|00000ff0| 57 65 61 70 6f 6e 20 41 | 6c 72 65 61 64 79 48 61 |Weapon A|lreadyHa|
|00001000| 73 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |s;...loc|al float|
|00001010| 20 64 65 73 69 72 65 3b | 0d 0a 09 6c 6f 63 61 6c | desire;|...local|
|00001020| 20 69 6e 74 20 69 3b 0d | 0a 0d 0a 09 69 66 20 28 | int i;.|....if (|
|00001030| 20 62 48 69 64 64 65 6e | 20 7c 7c 20 48 61 73 43 | bHidden| || HasC|
|00001040| 75 73 74 6f 6d 65 72 28 | 42 6f 74 29 20 29 0d 0a |ustomer(|Bot) )..|
|00001050| 09 09 72 65 74 75 72 6e | 20 30 3b 0d 0a 0d 0a 09 |..return| 0;.....|
|00001060| 69 66 20 28 20 62 53 65 | 6e 74 69 6e 65 6c 50 72 |if ( bSe|ntinelPr|
|00001070| 6f 74 65 63 74 65 64 20 | 26 26 20 28 42 6f 74 28 |otected |&& (Bot(|
|00001080| 42 6f 74 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 20 |Bot.Cont|roller) |
|00001090| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 21 42 6f 74 |!= None)| && !Bot|
|000010a0| 28 42 6f 74 2e 43 6f 6e | 74 72 6f 6c 6c 65 72 29 |(Bot.Con|troller)|
|000010b0| 2e 4e 65 65 64 57 65 61 | 70 6f 6e 28 29 20 29 0d |.NeedWea|pon() ).|
|000010c0| 0a 09 09 72 65 74 75 72 | 6e 20 30 3b 0d 0a 0d 0a |...retur|n 0;....|
|000010d0| 09 2f 2f 20 73 65 65 20 | 69 66 20 62 6f 74 20 61 |.// see |if bot a|
|000010e0| 6c 72 65 61 64 79 20 68 | 61 73 20 61 20 77 65 61 |lready h|as a wea|
|000010f0| 70 6f 6e 20 6f 66 20 74 | 68 69 73 20 74 79 70 65 |pon of t|his type|
|00001100| 0d 0a 09 66 6f 72 20 28 | 20 69 3d 30 3b 20 69 3c |...for (| i=0; i<|
|00001110| 57 65 61 70 6f 6e 73 2e | 4c 65 6e 67 74 68 3b 20 |Weapons.|Length; |
|00001120| 69 2b 2b 20 29 0d 0a 09 | 09 69 66 20 28 20 57 65 |i++ )...|.if ( We|
|00001130| 61 70 6f 6e 73 5b 69 5d | 2e 57 65 61 70 6f 6e 43 |apons[i]|.WeaponC|
|00001140| 6c 61 73 73 20 21 3d 20 | 4e 6f 6e 65 20 29 0d 0a |lass != |None )..|
|00001150| 09 09 7b 0d 0a 09 09 09 | 41 6c 72 65 61 64 79 48 |..{.....|AlreadyH|
|00001160| 61 73 20 3d 20 57 65 61 | 70 6f 6e 28 42 6f 74 2e |as = Wea|pon(Bot.|
|00001170| 46 69 6e 64 49 6e 76 65 | 6e 74 6f 72 79 54 79 70 |FindInve|ntoryTyp|
|00001180| 65 28 57 65 61 70 6f 6e | 73 5b 69 5d 2e 57 65 61 |e(Weapon|s[i].Wea|
|00001190| 70 6f 6e 43 6c 61 73 73 | 29 29 3b 0d 0a 09 09 09 |ponClass|));.....|
|000011a0| 69 66 20 28 20 41 6c 72 | 65 61 64 79 48 61 73 20 |if ( Alr|eadyHas |
|000011b0| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 09 09 64 |== None |)......d|
|000011c0| 65 73 69 72 65 20 2b 3d | 20 57 65 61 70 6f 6e 73 |esire +=| Weapons|
|000011d0| 5b 69 5d 2e 57 65 61 70 | 6f 6e 43 6c 61 73 73 2e |[i].Weap|onClass.|
|000011e0| 44 65 66 61 75 6c 74 2e | 41 49 52 61 74 69 6e 67 |Default.|AIRating|
|000011f0| 3b 0d 0a 09 09 09 65 6c | 73 65 20 69 66 20 28 20 |;.....el|se if ( |
|00001200| 41 6c 72 65 61 64 79 48 | 61 73 2e 4e 65 65 64 41 |AlreadyH|as.NeedA|
|00001210| 6d 6d 6f 28 30 29 20 29 | 0d 0a 09 09 09 09 64 65 |mmo(0) )|......de|
|00001220| 73 69 72 65 20 2b 3d 20 | 30 2e 31 35 3b 0d 0a 09 |sire += |0.15;...|
|00001230| 09 7d 0d 0a 09 69 66 20 | 28 20 42 6f 74 2e 43 6f |.}...if |( Bot.Co|
|00001240| 6e 74 72 6f 6c 6c 65 72 | 2e 62 48 75 6e 74 50 6c |ntroller|.bHuntPl|
|00001250| 61 79 65 72 20 26 26 20 | 28 64 65 73 69 72 65 20 |ayer && |(desire |
|00001260| 2a 20 30 2e 38 33 33 20 | 3c 20 42 6f 74 2e 57 65 |* 0.833 |< Bot.We|
|00001270| 61 70 6f 6e 2e 41 49 52 | 61 74 69 6e 67 20 2d 20 |apon.AIR|ating - |
|00001280| 30 2e 31 29 20 29 0d 0a | 09 09 72 65 74 75 72 6e |0.1) )..|..return|
|00001290| 20 30 3b 0d 0a 0d 0a 09 | 2f 2f 20 69 6e 63 65 6e | 0;.....|// incen|
|000012a0| 74 69 76 69 7a 65 20 62 | 6f 74 20 74 6f 20 67 65 |tivize b|ot to ge|
|000012b0| 74 20 74 68 69 73 20 77 | 65 61 70 6f 6e 20 69 66 |t this w|eapon if|
|000012c0| 20 69 74 20 64 6f 65 73 | 6e 27 74 20 68 61 76 65 | it does|n't have|
|000012d0| 20 61 20 67 6f 6f 64 20 | 77 65 61 70 6f 6e 20 61 | a good |weapon a|
|000012e0| 6c 72 65 61 64 79 0d 0a | 09 69 66 20 28 20 28 42 |lready..|.if ( (B|
|000012f0| 6f 74 2e 57 65 61 70 6f | 6e 20 3d 3d 20 4e 6f 6e |ot.Weapo|n == Non|
|00001300| 65 29 20 7c 7c 20 28 42 | 6f 74 2e 57 65 61 70 6f |e) || (B|ot.Weapo|
|00001310| 6e 2e 41 49 52 61 74 69 | 6e 67 20 3c 20 30 2e 35 |n.AIRati|ng < 0.5|
|00001320| 29 20 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 32 2a |) )....r|eturn 2*|
|00001330| 64 65 73 69 72 65 3b 0d | 0a 0d 0a 09 72 65 74 75 |desire;.|....retu|
|00001340| 72 6e 20 64 65 73 69 72 | 65 3b 0d 0a 7d 0d 0a 0d |rn desir|e;..}...|
|00001350| 0a 2f 2a 20 44 65 74 6f | 75 72 57 65 69 67 68 74 |./* Deto|urWeight|
|00001360| 28 29 0d 0a 76 61 6c 75 | 65 20 6f 66 20 74 68 69 |()..valu|e of thi|
|00001370| 73 20 70 61 74 68 20 74 | 6f 20 74 61 6b 65 20 61 |s path t|o take a|
|00001380| 20 71 75 69 63 6b 20 64 | 65 74 6f 75 72 20 28 75 | quick d|etour (u|
|00001390| 73 75 61 6c 6c 79 20 30 | 2c 20 75 73 65 64 20 77 |sually 0|, used w|
|000013a0| 68 65 6e 20 6f 6e 20 72 | 6f 75 74 65 20 74 6f 20 |hen on r|oute to |
|000013b0| 64 69 73 74 61 6e 74 20 | 6f 62 6a 65 63 74 69 76 |distant |objectiv|
|000013c0| 65 2c 20 62 75 74 20 77 | 61 6e 74 20 74 6f 20 67 |e, but w|ant to g|
|000013d0| 72 61 62 20 69 6e 76 65 | 6e 74 6f 72 79 20 66 6f |rab inve|ntory fo|
|000013e0| 72 20 65 78 61 6d 70 6c | 65 29 0d 0a 2a 2f 0d 0a |r exampl|e)..*/..|
|000013f0| 66 75 6e 63 74 69 6f 6e | 20 66 6c 6f 61 74 20 44 |function| float D|
|00001400| 65 74 6f 75 72 57 65 69 | 67 68 74 28 50 61 77 6e |etourWei|ght(Pawn|
|00001410| 20 4f 74 68 65 72 2c 66 | 6c 6f 61 74 20 50 61 74 | Other,f|loat Pat|
|00001420| 68 57 65 69 67 68 74 29 | 0d 0a 7b 0d 0a 09 6c 6f |hWeight)|..{...lo|
|00001430| 63 61 6c 20 57 65 61 70 | 6f 6e 20 41 6c 72 65 61 |cal Weap|on Alrea|
|00001440| 64 79 48 61 73 3b 0d 0a | 09 6c 6f 63 61 6c 20 66 |dyHas;..|.local f|
|00001450| 6c 6f 61 74 20 64 65 73 | 69 72 65 3b 0d 0a 09 6c |loat des|ire;...l|
|00001460| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 0d 0a 0d 0a 09 |ocal int| i;.....|
|00001470| 69 66 20 28 20 62 48 69 | 64 64 65 6e 20 7c 7c 20 |if ( bHi|dden || |
|00001480| 48 61 73 43 75 73 74 6f | 6d 65 72 28 4f 74 68 65 |HasCusto|mer(Othe|
|00001490| 72 29 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 30 |r) )....|return 0|
|000014a0| 3b 0d 0a 0d 0a 09 2f 2f | 20 73 65 65 20 69 66 20 |;.....//| see if |
|000014b0| 62 6f 74 20 61 6c 72 65 | 61 64 79 20 68 61 73 20 |bot alre|ady has |
|000014c0| 61 20 77 65 61 70 6f 6e | 20 6f 66 20 74 68 69 73 |a weapon| of this|
|000014d0| 20 74 79 70 65 0d 0a 09 | 66 6f 72 20 28 20 69 3d | type...|for ( i=|
|000014e0| 30 3b 20 69 3c 57 65 61 | 70 6f 6e 73 2e 4c 65 6e |0; i<Wea|pons.Len|
|000014f0| 67 74 68 3b 20 69 2b 2b | 20 29 0d 0a 09 7b 0d 0a |gth; i++| )...{..|
|00001500| 09 09 41 6c 72 65 61 64 | 79 48 61 73 20 3d 20 57 |..Alread|yHas = W|
|00001510| 65 61 70 6f 6e 28 4f 74 | 68 65 72 2e 46 69 6e 64 |eapon(Ot|her.Find|
|00001520| 49 6e 76 65 6e 74 6f 72 | 79 54 79 70 65 28 57 65 |Inventor|yType(We|
|00001530| 61 70 6f 6e 73 5b 69 5d | 2e 57 65 61 70 6f 6e 43 |apons[i]|.WeaponC|
|00001540| 6c 61 73 73 29 29 3b 0d | 0a 09 09 69 66 20 28 20 |lass));.|...if ( |
|00001550| 41 6c 72 65 61 64 79 48 | 61 73 20 3d 3d 20 4e 6f |AlreadyH|as == No|
|00001560| 6e 65 20 29 0d 0a 09 09 | 09 64 65 73 69 72 65 20 |ne )....|.desire |
|00001570| 2b 3d 20 57 65 61 70 6f | 6e 73 5b 69 5d 2e 57 65 |+= Weapo|ns[i].We|
|00001580| 61 70 6f 6e 43 6c 61 73 | 73 2e 44 65 66 61 75 6c |aponClas|s.Defaul|
|00001590| 74 2e 41 49 52 61 74 69 | 6e 67 3b 0d 0a 09 09 65 |t.AIRati|ng;....e|
|000015a0| 6c 73 65 20 69 66 20 28 | 20 41 6c 72 65 61 64 79 |lse if (| Already|
|000015b0| 48 61 73 2e 4e 65 65 64 | 41 6d 6d 6f 28 30 29 20 |Has.Need|Ammo(0) |
|000015c0| 29 0d 0a 09 09 09 64 65 | 73 69 72 65 20 2b 3d 20 |).....de|sire += |
|000015d0| 30 2e 31 35 3b 0d 0a 09 | 7d 0d 0a 09 69 66 20 28 |0.15;...|}...if (|
|000015e0| 20 41 49 43 6f 6e 74 72 | 6f 6c 6c 65 72 28 4f 74 | AIContr|oller(Ot|
|000015f0| 68 65 72 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 2e |her.Cont|roller).|
|00001600| 50 72 69 6f 72 69 74 79 | 4f 62 6a 65 63 74 69 76 |Priority|Objectiv|
|00001610| 65 28 29 0d 0a 09 09 26 | 26 20 28 28 4f 74 68 65 |e()....&|& ((Othe|
|00001620| 72 2e 57 65 61 70 6f 6e | 2e 41 49 52 61 74 69 6e |r.Weapon|.AIRatin|
|00001630| 67 20 3e 20 30 2e 35 29 | 20 7c 7c 20 28 50 61 74 |g > 0.5)| || (Pat|
|00001640| 68 57 65 69 67 68 74 20 | 3e 20 34 30 30 29 29 20 |hWeight |> 400)) |
|00001650| 29 0d 0a 09 09 72 65 74 | 75 72 6e 20 30 2e 32 2f |)....ret|urn 0.2/|
|00001660| 50 61 74 68 57 65 69 67 | 68 74 3b 0d 0a 09 72 65 |PathWeig|ht;...re|
|00001670| 74 75 72 6e 20 64 65 73 | 69 72 65 2f 50 61 74 68 |turn des|ire/Path|
|00001680| 57 65 69 67 68 74 3b 0d | 0a 7d 0d 0a 0d 0a 73 69 |Weight;.|.}....si|
|00001690| 6d 75 6c 61 74 65 64 20 | 66 75 6e 63 74 69 6f 6e |mulated |function|
|000016a0| 20 55 70 64 61 74 65 50 | 72 65 63 61 63 68 65 4d | UpdateP|recacheM|
|000016b0| 61 74 65 72 69 61 6c 73 | 28 29 0d 0a 7b 0d 0a 09 |aterials|()..{...|
|000016c0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|000016d0| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 57 65 |.for ( i|=0; i<We|
|000016e0| 61 70 6f 6e 73 2e 4c 65 | 6e 67 74 68 3b 20 69 2b |apons.Le|ngth; i+|
|000016f0| 2b 20 29 0d 0a 09 09 57 | 65 61 70 6f 6e 73 5b 69 |+ )....W|eapons[i|
|00001700| 5d 2e 57 65 61 70 6f 6e | 43 6c 61 73 73 2e 44 65 |].Weapon|Class.De|
|00001710| 66 61 75 6c 74 2e 50 69 | 63 6b 75 70 43 6c 61 73 |fault.Pi|ckupClas|
|00001720| 73 2e 73 74 61 74 69 63 | 2e 53 74 61 74 69 63 50 |s.static|.StaticP|
|00001730| 72 65 63 61 63 68 65 28 | 4c 65 76 65 6c 29 3b 0d |recache(|Level);.|
|00001740| 0a 0d 0a 09 73 75 70 65 | 72 2e 55 70 64 61 74 65 |....supe|r.Update|
|00001750| 50 72 65 63 61 63 68 65 | 4d 61 74 65 72 69 61 6c |Precache|Material|
|00001760| 73 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 61 75 74 6f 20 |s();..}.|...auto |
|00001770| 73 74 61 74 65 20 4c 6f | 63 6b 65 72 50 69 63 6b |state Lo|ckerPick|
|00001780| 75 70 0d 0a 7b 0d 0a 09 | 66 75 6e 63 74 69 6f 6e |up..{...|function|
|00001790| 20 62 6f 6f 6c 20 52 65 | 61 64 79 54 6f 50 69 63 | bool Re|adyToPic|
|000017a0| 6b 75 70 28 66 6c 6f 61 | 74 20 4d 61 78 57 61 69 |kup(floa|t MaxWai|
|000017b0| 74 29 0d 0a 09 7b 0d 0a | 09 09 72 65 74 75 72 6e |t)...{..|..return|
|000017c0| 20 74 72 75 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 2f | true;..|.}...../|
|000017d0| 2a 20 56 61 6c 69 64 54 | 6f 75 63 68 28 29 0d 0a |* ValidT|ouch()..|
|000017e0| 09 20 56 61 6c 69 64 61 | 74 65 20 74 6f 75 63 68 |. Valida|te touch|
|000017f0| 20 28 69 66 20 76 61 6c | 69 64 20 72 65 74 75 72 | (if val|id retur|
|00001800| 6e 20 74 72 75 65 20 74 | 6f 20 6c 65 74 20 6f 74 |n true t|o let ot|
|00001810| 68 65 72 20 70 69 63 6b | 20 6d 65 20 75 70 20 61 |her pick| me up a|
|00001820| 6e 64 20 74 72 69 67 67 | 65 72 20 65 76 65 6e 74 |nd trigg|er event|
|00001830| 29 2e 0d 0a 09 2a 2f 0d | 0a 09 73 69 6d 75 6c 61 |)....*/.|..simula|
|00001840| 74 65 64 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |ted func|tion boo|
|00001850| 6c 20 56 61 6c 69 64 54 | 6f 75 63 68 28 20 61 63 |l ValidT|ouch( ac|
|00001860| 74 6f 72 20 4f 74 68 65 | 72 20 29 0d 0a 09 7b 0d |tor Othe|r )...{.|
|00001870| 0a 09 09 2f 2f 20 6d 61 | 6b 65 20 73 75 72 65 20 |...// ma|ke sure |
|00001880| 69 74 73 20 61 20 6c 69 | 76 65 20 70 6c 61 79 65 |its a li|ve playe|
|00001890| 72 0d 0a 09 09 69 66 20 | 28 20 28 50 61 77 6e 28 |r....if |( (Pawn(|
|000018a0| 4f 74 68 65 72 29 20 3d | 3d 20 4e 6f 6e 65 29 20 |Other) =|= None) |
|000018b0| 7c 7c 20 21 50 61 77 6e | 28 4f 74 68 65 72 29 2e ||| !Pawn|(Other).|
|000018c0| 62 43 61 6e 50 69 63 6b | 75 70 49 6e 76 65 6e 74 |bCanPick|upInvent|
|000018d0| 6f 72 79 20 7c 7c 20 28 | 50 61 77 6e 28 4f 74 68 |ory || (|Pawn(Oth|
|000018e0| 65 72 29 2e 44 72 69 76 | 65 6e 56 65 68 69 63 6c |er).Driv|enVehicl|
|000018f0| 65 20 3d 3d 20 4e 6f 6e | 65 20 26 26 20 50 61 77 |e == Non|e && Paw|
|00001900| 6e 28 4f 74 68 65 72 29 | 2e 43 6f 6e 74 72 6f 6c |n(Other)|.Control|
|00001910| 6c 65 72 20 3d 3d 20 4e | 6f 6e 65 29 20 29 0d 0a |ler == N|one) )..|
|00001920| 09 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00001930| 0d 0a 0d 0a 09 09 2f 2f | 20 6d 61 6b 65 20 73 75 |......//| make su|
|00001940| 72 65 20 6e 6f 74 20 74 | 6f 75 63 68 69 6e 67 20 |re not t|ouching |
|00001950| 74 68 72 6f 75 67 68 20 | 77 61 6c 6c 0d 0a 09 09 |through |wall....|
|00001960| 69 66 20 28 20 21 46 61 | 73 74 54 72 61 63 65 28 |if ( !Fa|stTrace(|
|00001970| 4f 74 68 65 72 2e 4c 6f | 63 61 74 69 6f 6e 2c 20 |Other.Lo|cation, |
|00001980| 4c 6f 63 61 74 69 6f 6e | 29 20 29 0d 0a 09 09 09 |Location|) ).....|
|00001990| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0d 0a 0d |return f|alse;...|
|000019a0| 0a 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000019b0| 0a 09 7d 0d 0a 0d 0a 09 | 2f 2f 20 57 68 65 6e 20 |..}.....|// When |
|000019c0| 74 6f 75 63 68 65 64 20 | 62 79 20 61 6e 20 61 63 |touched |by an ac|
|000019d0| 74 6f 72 2e 0d 0a 09 73 | 69 6d 75 6c 61 74 65 64 |tor....s|imulated|
|000019e0| 20 66 75 6e 63 74 69 6f | 6e 20 54 6f 75 63 68 28 | functio|n Touch(|
|000019f0| 20 61 63 74 6f 72 20 4f | 74 68 65 72 20 29 0d 0a | actor O|ther )..|
|00001a00| 09 7b 0d 0a 09 09 6c 6f | 63 61 6c 20 57 65 61 70 |.{....lo|cal Weap|
|00001a10| 6f 6e 09 43 6f 70 79 3b | 0d 0a 09 09 6c 6f 63 61 |on.Copy;|....loca|
|00001a20| 6c 20 69 6e 74 09 09 69 | 3b 0d 0a 0d 0a 09 09 2f |l int..i|;....../|
|00001a30| 2f 20 49 66 20 74 6f 75 | 63 68 65 64 20 62 79 20 |/ If tou|ched by |
|00001a40| 61 20 70 6c 61 79 65 72 | 20 70 61 77 6e 2c 20 6c |a player| pawn, l|
|00001a50| 65 74 20 68 69 6d 20 70 | 69 63 6b 20 74 68 69 73 |et him p|ick this|
|00001a60| 20 75 70 2e 0d 0a 09 09 | 69 66 28 20 56 61 6c 69 | up.....|if( Vali|
|00001a70| 64 54 6f 75 63 68 28 4f | 74 68 65 72 29 20 29 0d |dTouch(O|ther) ).|
|00001a80| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 28 50 |...{....|.if ( (P|
|00001a90| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|00001aa0| 50 61 77 6e 28 4f 74 68 | 65 72 29 2e 43 6f 6e 74 |Pawn(Oth|er).Cont|
|00001ab0| 72 6f 6c 6c 65 72 29 20 | 21 3d 20 4e 6f 6e 65 29 |roller) |!= None)|
|00001ac0| 20 26 26 20 28 56 69 65 | 77 70 6f 72 74 28 50 6c | && (Vie|wport(Pl|
|00001ad0| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 50 |ayerCont|roller(P|
|00001ae0| 61 77 6e 28 4f 74 68 65 | 72 29 2e 43 6f 6e 74 72 |awn(Othe|r).Contr|
|00001af0| 6f 6c 6c 65 72 29 2e 50 | 6c 61 79 65 72 29 20 21 |oller).P|layer) !|
|00001b00| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 09 09 7b 0d |= None) |).....{.|
|00001b10| 0a 09 09 09 09 69 66 20 | 28 20 28 45 66 66 65 63 |.....if |( (Effec|
|00001b20| 74 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 21 45 |t != Non|e) && !E|
|00001b30| 66 66 65 63 74 2e 62 48 | 69 64 64 65 6e 20 29 0d |ffect.bH|idden ).|
|00001b40| 0a 09 09 09 09 09 45 66 | 66 65 63 74 2e 54 75 72 |......Ef|fect.Tur|
|00001b50| 6e 4f 66 66 28 33 30 29 | 3b 0d 0a 09 09 09 7d 0d |nOff(30)|;.....}.|
|00001b60| 0a 09 09 09 69 66 20 28 | 20 52 6f 6c 65 20 3c 20 |....if (| Role < |
|00001b70| 52 4f 4c 45 5f 41 75 74 | 68 6f 72 69 74 79 20 29 |ROLE_Aut|hority )|
|00001b80| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |......re|turn;...|
|00001b90| 09 09 69 66 20 28 20 21 | 41 64 64 43 75 73 74 6f |..if ( !|AddCusto|
|00001ba0| 6d 65 72 28 50 61 77 6e | 28 4f 74 68 65 72 29 29 |mer(Pawn|(Other))|
|00001bb0| 20 29 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 3b 0d | )......|return;.|
|00001bc0| 0a 09 09 09 54 72 69 67 | 67 65 72 45 76 65 6e 74 |....Trig|gerEvent|
|00001bd0| 28 45 76 65 6e 74 2c 20 | 73 65 6c 66 2c 20 50 61 |(Event, |self, Pa|
|00001be0| 77 6e 28 4f 74 68 65 72 | 29 29 3b 0d 0a 09 09 09 |wn(Other|));.....|
|00001bf0| 66 6f 72 20 28 20 69 3d | 30 3b 20 69 3c 57 65 61 |for ( i=|0; i<Wea|
|00001c00| 70 6f 6e 73 2e 4c 65 6e | 67 74 68 3b 20 69 2b 2b |pons.Len|gth; i++|
|00001c10| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 49 6e | ).....{|......In|
|00001c20| 76 65 6e 74 6f 72 79 54 | 79 70 65 20 3d 20 57 65 |ventoryT|ype = We|
|00001c30| 61 70 6f 6e 73 5b 69 5d | 2e 57 65 61 70 6f 6e 43 |apons[i]|.WeaponC|
|00001c40| 6c 61 73 73 3b 0d 0a 09 | 09 09 09 43 6f 70 79 20 |lass;...|...Copy |
|00001c50| 3d 20 20 57 65 61 70 6f | 6e 28 50 61 77 6e 28 4f |= Weapo|n(Pawn(O|
|00001c60| 74 68 65 72 29 2e 46 69 | 6e 64 49 6e 76 65 6e 74 |ther).Fi|ndInvent|
|00001c70| 6f 72 79 54 79 70 65 28 | 57 65 61 70 6f 6e 73 5b |oryType(|Weapons[|
|00001c80| 69 5d 2e 57 65 61 70 6f | 6e 43 6c 61 73 73 29 29 |i].Weapo|nClass))|
|00001c90| 3b 0d 0a 09 09 09 09 69 | 66 20 28 20 43 6f 70 79 |;......i|f ( Copy|
|00001ca0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 09 | != None| )......|
|00001cb0| 09 43 6f 70 79 2e 46 69 | 6c 6c 54 6f 49 6e 69 74 |.Copy.Fi|llToInit|
|00001cc0| 69 61 6c 41 6d 6d 6f 28 | 29 3b 0d 0a 09 09 09 09 |ialAmmo(|);......|
|00001cd0| 65 6c 73 65 20 69 66 20 | 28 20 4c 65 76 65 6c 2e |else if |( Level.|
|00001ce0| 47 61 6d 65 2e 50 69 63 | 6b 75 70 51 75 65 72 79 |Game.Pic|kupQuery|
|00001cf0| 28 50 61 77 6e 28 4f 74 | 68 65 72 29 2c 20 73 65 |(Pawn(Ot|her), se|
|00001d00| 6c 66 29 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |lf) )...|...{....|
|00001d10| 09 09 09 43 6f 70 79 20 | 3d 20 57 65 61 70 6f 6e |...Copy |= Weapon|
|00001d20| 28 53 70 61 77 6e 43 6f | 70 79 28 50 61 77 6e 28 |(SpawnCo|py(Pawn(|
|00001d30| 4f 74 68 65 72 29 29 29 | 3b 0d 0a 09 09 09 09 09 |Other)))|;.......|
|00001d40| 69 66 20 28 20 43 6f 70 | 79 20 21 3d 20 4e 6f 6e |if ( Cop|y != Non|
|00001d50| 65 20 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |e ).....|..{.....|
|00001d60| 09 09 09 43 6f 70 79 2e | 50 69 63 6b 75 70 46 75 |...Copy.|PickupFu|
|00001d70| 6e 63 74 69 6f 6e 28 50 | 61 77 6e 28 4f 74 68 65 |nction(P|awn(Othe|
|00001d80| 72 29 29 3b 0d 0a 09 09 | 09 09 09 09 69 66 20 28 |r));....|....if (|
|00001d90| 20 57 65 61 70 6f 6e 73 | 5b 69 5d 2e 45 78 74 72 | Weapons|[i].Extr|
|00001da0| 61 41 6d 6d 6f 20 3e 20 | 30 20 29 0d 0a 09 09 09 |aAmmo > |0 ).....|
|00001db0| 09 09 09 09 43 6f 70 79 | 2e 41 64 64 41 6d 6d 6f |....Copy|.AddAmmo|
|00001dc0| 28 57 65 61 70 6f 6e 73 | 5b 69 5d 2e 45 78 74 72 |(Weapons|[i].Extr|
|00001dd0| 61 41 6d 6d 6f 2c 20 30 | 29 3b 0d 0a 09 09 09 09 |aAmmo, 0|);......|
|00001de0| 09 7d 0d 0a 09 09 09 09 | 7d 0d 0a 09 09 09 7d 0d |.}......|}.....}.|
|00001df0| 0a 0d 0a 09 09 09 41 6e | 6e 6f 75 6e 63 65 50 69 |......An|nouncePi|
|00001e00| 63 6b 75 70 28 20 50 61 | 77 6e 28 4f 74 68 65 72 |ckup( Pa|wn(Other|
|00001e10| 29 20 29 3b 0d 0a 09 09 | 7d 0d 0a 09 7d 0d 0a 7d |) );....|}...}..}|
|00001e20| 0d 0a 0d 0a 53 74 61 74 | 65 20 44 69 73 61 62 6c |....Stat|e Disabl|
|00001e30| 65 64 0d 0a 7b 0d 0a 09 | 73 69 6d 75 6c 61 74 65 |ed..{...|simulate|
|00001e40| 64 20 66 75 6e 63 74 69 | 6f 6e 20 42 65 67 69 6e |d functi|on Begin|
|00001e50| 53 74 61 74 65 28 29 0d | 0a 09 7b 0d 0a 09 09 6c |State().|..{....l|
|00001e60| 6f 63 61 6c 20 4c 6f 63 | 6b 65 72 57 65 61 70 6f |ocal Loc|kerWeapo|
|00001e70| 6e 20 57 3b 0d 0a 0d 0a | 09 09 53 75 70 65 72 2e |n W;....|..Super.|
|00001e80| 42 65 67 69 6e 53 74 61 | 74 65 28 29 3b 0d 0a 09 |BeginSta|te();...|
|00001e90| 09 46 6f 72 45 61 63 68 | 20 44 79 6e 61 6d 69 63 |.ForEach| Dynamic|
|00001ea0| 41 63 74 6f 72 73 28 63 | 6c 61 73 73 27 4c 6f 63 |Actors(c|lass'Loc|
|00001eb0| 6b 65 72 57 65 61 70 6f | 6e 27 2c 20 57 29 0d 0a |kerWeapo|n', W)..|
|00001ec0| 09 09 09 57 2e 44 65 73 | 74 72 6f 79 28 29 3b 0d |...W.Des|troy();.|
|00001ed0| 0a 09 09 69 66 20 28 20 | 45 66 66 65 63 74 20 21 |...if ( |Effect !|
|00001ee0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 09 45 66 66 |= None )|.....Eff|
|00001ef0| 65 63 74 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |ect.Dest|roy();..|
|00001f00| 09 7d 0d 0a 7d 0d 0a 0d | 0a 00 |.}..}...|.. |
+--------+-------------------------+-------------------------+--------+--------+