home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-05-10 | 11.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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6b ba 01 63 6c 61 73 73 |........|k..class|
|00000010| 20 55 6e 72 65 61 6c 50 | 61 77 6e 20 65 78 74 65 | UnrealP|awn exte|
|00000020| 6e 64 73 20 50 61 77 6e | 0d 0a 09 61 62 73 74 72 |nds Pawn|...abstr|
|00000030| 61 63 74 0d 0a 09 63 6f | 6e 66 69 67 28 55 73 65 |act...co|nfig(Use|
|00000040| 72 29 3b 0d 0a 0d 0a 76 | 61 72 09 28 29 20 62 6f |r);....v|ar.() bo|
|00000050| 6f 6c 09 09 62 4e 6f 44 | 65 66 61 75 6c 74 49 6e |ol..bNoD|efaultIn|
|00000060| 76 65 6e 74 6f 72 79 3b | 09 2f 2f 20 64 6f 6e 27 |ventory;|.// don'|
|00000070| 74 20 73 70 61 77 6e 20 | 64 65 66 61 75 6c 74 20 |t spawn |default |
|00000080| 69 6e 76 65 6e 74 6f 72 | 79 20 66 6f 72 20 74 68 |inventor|y for th|
|00000090| 69 73 20 67 75 79 0d 0a | 76 61 72 20 62 6f 6f 6c |is guy..|var bool|
|000000a0| 09 09 62 41 63 63 65 70 | 74 41 6c 6c 49 6e 76 65 |..bAccep|tAllInve|
|000000b0| 6e 74 6f 72 79 3b 09 2f | 2f 20 63 61 6e 20 70 69 |ntory;./|/ can pi|
|000000c0| 63 6b 20 75 70 20 61 6e | 79 74 68 69 6e 67 0d 0a |ck up an|ything..|
|000000d0| 76 61 72 28 41 49 29 20 | 62 6f 6f 6c 09 62 49 73 |var(AI) |bool.bIs|
|000000e0| 53 71 75 61 64 4c 65 61 | 64 65 72 3b 09 09 09 2f |SquadLea|der;.../|
|000000f0| 2f 20 6f 6e 6c 79 20 75 | 73 65 64 20 61 73 20 73 |/ only u|sed as s|
|00000100| 74 61 72 74 75 70 20 70 | 72 6f 70 65 72 74 79 0d |tartup p|roperty.|
|00000110| 0a 76 61 72 20 62 6f 6f | 6c 09 09 62 53 6f 61 6b |.var boo|l..bSoak|
|00000120| 44 65 62 75 67 3b 09 09 | 09 09 2f 2f 20 75 73 65 |Debug;..|..// use|
|00000130| 20 6c 65 73 73 20 76 65 | 72 62 6f 73 65 20 76 65 | less ve|rbose ve|
|00000140| 72 73 69 6f 6e 20 6f 66 | 20 64 65 62 75 67 20 64 |rsion of| debug d|
|00000150| 69 73 70 6c 61 79 0d 0a | 76 61 72 20 62 6f 6f 6c |isplay..|var bool|
|00000160| 09 09 62 4b 65 65 70 54 | 61 75 6e 74 69 6e 67 3b |..bKeepT|aunting;|
|00000170| 0d 0a 76 61 72 20 63 6f | 6e 66 69 67 20 62 6f 6f |..var co|nfig boo|
|00000180| 6c 20 62 50 6c 61 79 4f | 77 6e 46 6f 6f 74 73 74 |l bPlayO|wnFootst|
|00000190| 65 70 73 3b 0d 0a 76 61 | 72 20 62 79 74 65 09 09 |eps;..va|r byte..|
|000001a0| 4c 6f 61 64 4f 75 74 3b | 0d 0a 0d 0a 76 61 72 20 |LoadOut;|....var |
|000001b0| 63 6f 6e 66 69 67 20 62 | 79 74 65 20 53 65 6c 65 |config b|yte Sele|
|000001c0| 63 74 65 64 45 71 75 69 | 70 6d 65 6e 74 5b 31 36 |ctedEqui|pment[16|
|000001d0| 5d 3b 09 2f 2f 20 77 68 | 61 74 20 70 6c 61 79 65 |];.// wh|at playe|
|000001e0| 72 20 68 61 73 20 73 65 | 6c 65 63 74 65 64 20 28 |r has se|lected (|
|000001f0| 72 65 70 6c 69 63 61 74 | 65 20 75 73 69 6e 67 20 |replicat|e using |
|00000200| 66 75 6e 63 74 69 6f 6e | 29 0d 0a 76 61 72 28 29 |function|)..var()|
|00000210| 09 73 74 72 69 6e 67 09 | 52 65 71 75 69 72 65 64 |.string.|Required|
|00000220| 45 71 75 69 70 6d 65 6e | 74 5b 31 36 5d 3b 09 2f |Equipmen|t[16];./|
|00000230| 2f 20 61 6c 6c 6f 77 20 | 4c 2e 44 2e 20 74 6f 20 |/ allow |L.D. to |
|00000240| 6d 6f 64 69 66 79 20 66 | 6f 72 20 73 69 6e 67 6c |modify f|or singl|
|00000250| 65 20 70 6c 61 79 65 72 | 0d 0a 76 61 72 09 09 73 |e player|..var..s|
|00000260| 74 72 69 6e 67 09 4f 70 | 74 69 6f 6e 61 6c 45 71 |tring.Op|tionalEq|
|00000270| 75 69 70 6d 65 6e 74 5b | 31 36 5d 3b 09 2f 2f 20 |uipment[|16];.// |
|00000280| 70 6c 61 79 65 72 20 63 | 61 6e 20 6f 70 74 69 6f |player c|an optio|
|00000290| 6e 61 6c 6c 79 20 69 6e | 63 6f 72 70 6f 72 61 74 |nally in|corporat|
|000002a0| 65 20 69 6e 74 6f 20 6c | 6f 61 64 6f 75 74 0d 0a |e into l|oadout..|
|000002b0| 0d 0a 76 61 72 09 09 66 | 6c 6f 61 74 09 41 74 74 |..var..f|loat.Att|
|000002c0| 61 63 6b 53 75 69 74 61 | 62 69 6c 69 74 79 3b 09 |ackSuita|bility;.|
|000002d0| 09 2f 2f 20 72 61 6e 67 | 65 20 30 20 74 6f 20 31 |.// rang|e 0 to 1|
|000002e0| 2c 20 30 20 3d 20 70 75 | 72 65 20 64 65 66 65 6e |, 0 = pu|re defen|
|000002f0| 64 65 72 2c 20 31 20 3d | 20 70 75 72 65 20 61 74 |der, 1 =| pure at|
|00000300| 74 61 63 6b 65 72 0d 0a | 76 61 72 09 09 66 6c 6f |tacker..|var..flo|
|00000310| 61 74 09 4c 61 73 74 46 | 6f 6f 74 53 74 65 70 54 |at.LastF|ootStepT|
|00000320| 69 6d 65 3b 0d 0a 0d 0a | 76 61 72 20 65 44 6f 75 |ime;....|var eDou|
|00000330| 62 6c 65 43 6c 69 63 6b | 44 69 72 20 43 75 72 72 |bleClick|Dir Curr|
|00000340| 65 6e 74 44 69 72 3b 0d | 0a 76 61 72 20 76 65 63 |entDir;.|.var vec|
|00000350| 74 6f 72 09 09 09 47 61 | 6d 65 4f 62 6a 4f 66 66 |tor...Ga|meObjOff|
|00000360| 73 65 74 3b 0d 0a 76 61 | 72 20 72 6f 74 61 74 6f |set;..va|r rotato|
|00000370| 72 09 09 09 47 61 6d 65 | 4f 62 6a 52 6f 74 3b 0d |r...Game|ObjRot;.|
|00000380| 0a 76 61 72 28 41 49 29 | 20 6e 61 6d 65 09 09 53 |.var(AI)| name..S|
|00000390| 71 75 61 64 4e 61 6d 65 | 3b 09 09 09 2f 2f 20 6f |quadName|;...// o|
|000003a0| 6e 6c 79 20 75 73 65 64 | 20 61 73 20 73 74 61 72 |nly used| as star|
|000003b0| 74 75 70 20 70 72 6f 70 | 65 72 74 79 0d 0a 0d 0a |tup prop|erty....|
|000003c0| 2f 2f 20 61 6c 6c 6f 77 | 65 64 20 76 6f 69 63 65 |// allow|ed voice|
|000003d0| 73 0d 0a 76 61 72 20 73 | 74 72 69 6e 67 20 56 6f |s..var s|tring Vo|
|000003e0| 69 63 65 54 79 70 65 3b | 0d 0a 0d 0a 76 61 72 20 |iceType;|....var |
|000003f0| 67 6c 6f 62 61 6c 63 6f | 6e 66 69 67 20 62 6f 6f |globalco|nfig boo|
|00000400| 6c 20 62 50 6c 61 79 65 | 72 53 68 61 64 6f 77 73 |l bPlaye|rShadows|
|00000410| 3b 0d 0a 76 61 72 20 67 | 6c 6f 62 61 6c 63 6f 6e |;..var g|lobalcon|
|00000420| 66 69 67 20 62 6f 6f 6c | 20 62 42 6c 6f 62 53 68 |fig bool| bBlobSh|
|00000430| 61 64 6f 77 3b 0d 0a 0d | 0a 76 61 72 20 69 6e 74 |adow;...|.var int|
|00000440| 20 73 70 72 65 65 3b 0d | 0a 0d 0a 66 75 6e 63 74 | spree;.|...funct|
|00000450| 69 6f 6e 20 44 72 6f 70 | 46 6c 61 67 28 29 0d 0a |ion Drop|Flag()..|
|00000460| 7b 0d 0a 09 69 66 20 28 | 50 6c 61 79 65 72 52 65 |{...if (|PlayerRe|
|00000470| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 3d 3d 4e |plicatio|nInfo==N|
|00000480| 6f 6e 65 20 7c 7c 20 50 | 6c 61 79 65 72 52 65 70 |one || P|layerRep|
|00000490| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 48 61 73 |lication|Info.Has|
|000004a0| 46 6c 61 67 3d 3d 4e 6f | 6e 65 29 0d 0a 20 20 20 |Flag==No|ne).. |
|000004b0| 20 09 72 65 74 75 72 6e | 3b 0d 0a 0d 0a 20 20 20 | .return|;.... |
|000004c0| 20 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 | PlayerR|eplicati|
|000004d0| 6f 6e 49 6e 66 6f 2e 48 | 61 73 46 6c 61 67 2e 44 |onInfo.H|asFlag.D|
|000004e0| 72 6f 70 28 56 65 6c 6f | 63 69 74 79 20 2a 20 30 |rop(Velo|city * 0|
|000004f0| 2e 35 29 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |.5);..}.|...simul|
|00000500| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 62 6f |ated fun|ction bo|
|00000510| 6f 6c 20 46 69 6e 64 56 | 61 6c 69 64 54 61 75 6e |ol FindV|alidTaun|
|00000520| 74 28 20 6f 75 74 20 6e | 61 6d 65 20 53 65 71 75 |t( out n|ame Sequ|
|00000530| 65 6e 63 65 20 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ence )..|{...loca|
|00000540| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 66 6f 72 |l int i;|.....for|
|00000550| 28 20 69 3d 30 3b 20 69 | 3c 54 61 75 6e 74 41 6e |( i=0; i|<TauntAn|
|00000560| 69 6d 73 2e 4c 65 6e 67 | 74 68 3b 20 69 2b 2b 20 |ims.Leng|th; i++ |
|00000570| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 28 20 53 65 71 |)...{...|.if( Seq|
|00000580| 75 65 6e 63 65 20 3d 3d | 20 54 61 75 6e 74 41 6e |uence ==| TauntAn|
|00000590| 69 6d 73 5b 69 5d 20 29 | 0d 0a 09 09 09 72 65 74 |ims[i] )|.....ret|
|000005a0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 7d 0d 0a 09 |urn true|;...}...|
|000005b0| 0d 0a 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|000005c0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000005d0| 67 69 62 62 65 64 42 79 | 28 61 63 74 6f 72 20 4f |gibbedBy|(actor O|
|000005e0| 74 68 65 72 29 0d 0a 7b | 0d 0a 09 69 66 20 28 20 |ther)..{|...if ( |
|000005f0| 52 6f 6c 65 20 3c 20 52 | 4f 4c 45 5f 41 75 74 68 |Role < R|OLE_Auth|
|00000600| 6f 72 69 74 79 20 29 0d | 0a 09 09 72 65 74 75 72 |ority ).|...retur|
|00000610| 6e 3b 0d 0a 09 69 66 20 | 28 20 50 61 77 6e 28 4f |n;...if |( Pawn(O|
|00000620| 74 68 65 72 29 20 21 3d | 20 4e 6f 6e 65 20 29 0d |ther) !=| None ).|
|00000630| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 28 50 61 77 |..{....i|f ( (Paw|
|00000640| 6e 28 4f 74 68 65 72 29 | 2e 57 65 61 70 6f 6e 20 |n(Other)|.Weapon |
|00000650| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 50 61 77 6e |!= None)| && Pawn|
|00000660| 28 4f 74 68 65 72 29 2e | 57 65 61 70 6f 6e 2e 49 |(Other).|Weapon.I|
|00000670| 73 41 28 27 54 72 61 6e | 73 6c 61 75 6e 63 68 65 |sA('Tran|slaunche|
|00000680| 72 27 29 20 29 0d 0a 09 | 09 09 44 69 65 64 28 50 |r') )...|..Died(P|
|00000690| 61 77 6e 28 4f 74 68 65 | 72 29 2e 43 6f 6e 74 72 |awn(Othe|r).Contr|
|000006a0| 6f 6c 6c 65 72 2c 20 50 | 61 77 6e 28 4f 74 68 65 |oller, P|awn(Othe|
|000006b0| 72 29 2e 57 65 61 70 6f | 6e 2e 47 65 74 44 61 6d |r).Weapo|n.GetDam|
|000006c0| 61 67 65 54 79 70 65 28 | 29 2c 20 4c 6f 63 61 74 |ageType(|), Locat|
|000006d0| 69 6f 6e 29 3b 0d 0a 09 | 09 65 6c 73 65 0d 0a 09 |ion);...|.else...|
|000006e0| 09 09 44 69 65 64 28 50 | 61 77 6e 28 4f 74 68 65 |..Died(P|awn(Othe|
|000006f0| 72 29 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 2c 20 63 |r).Contr|oller, c|
|00000700| 6c 61 73 73 27 44 61 6d | 54 79 70 65 54 65 6c 65 |lass'Dam|TypeTele|
|00000710| 66 72 61 67 67 65 64 27 | 2c 20 4c 6f 63 61 74 69 |fragged'|, Locati|
|00000720| 6f 6e 29 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |on);...}|...else.|
|00000730| 0a 09 09 44 69 65 64 28 | 4e 6f 6e 65 2c 20 63 6c |...Died(|None, cl|
|00000740| 61 73 73 27 47 69 62 62 | 65 64 27 2c 20 4c 6f 63 |ass'Gibb|ed', Loc|
|00000750| 61 74 69 6f 6e 29 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2a |ation);.|.}..../*|
|00000760| 20 44 69 73 70 6c 61 79 | 44 65 62 75 67 28 29 0d | Display|Debug().|
|00000770| 0a 6c 69 73 74 20 69 6d | 70 6f 72 74 61 6e 74 20 |.list im|portant |
|00000780| 61 63 74 6f 72 20 76 61 | 72 69 61 62 6c 65 20 6f |actor va|riable o|
|00000790| 6e 20 63 61 6e 76 61 73 | 2e 20 20 41 6c 73 6f 20 |n canvas|. Also |
|000007a0| 73 68 6f 77 20 74 68 65 | 20 70 61 77 6e 27 73 20 |show the| pawn's |
|000007b0| 63 6f 6e 74 72 6f 6c 6c | 65 72 20 61 6e 64 20 77 |controll|er and w|
|000007c0| 65 61 70 6f 6e 20 69 6e | 66 6f 0d 0a 2a 2f 0d 0a |eapon in|fo..*/..|
|000007d0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000007e0| 6f 6e 20 44 69 73 70 6c | 61 79 44 65 62 75 67 28 |on Displ|ayDebug(|
|000007f0| 43 61 6e 76 61 73 20 43 | 61 6e 76 61 73 2c 20 6f |Canvas C|anvas, o|
|00000800| 75 74 20 66 6c 6f 61 74 | 20 59 4c 2c 20 6f 75 74 |ut float| YL, out|
|00000810| 20 66 6c 6f 61 74 20 59 | 50 6f 73 29 0d 0a 7b 0d | float Y|Pos)..{.|
|00000820| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 54 |..local |string T|
|00000830| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |;...loca|l float |
|00000840| 58 4c 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 21 62 53 |XL;.....|if ( !bS|
|00000850| 6f 61 6b 44 65 62 75 67 | 20 29 0d 0a 09 7b 0d 0a |oakDebug| )...{..|
|00000860| 09 09 53 75 70 65 72 2e | 44 69 73 70 6c 61 79 44 |..Super.|DisplayD|
|00000870| 65 62 75 67 28 43 61 6e | 76 61 73 2c 20 59 4c 2c |ebug(Can|vas, YL,|
|00000880| 20 59 50 6f 73 29 3b 0d | 0a 09 09 72 65 74 75 72 | YPos);.|...retur|
|00000890| 6e 3b 0d 0a 09 7d 0d 0a | 0d 0a 09 43 61 6e 76 61 |n;...}..|...Canva|
|000008a0| 73 2e 53 74 79 6c 65 20 | 3d 20 45 52 65 6e 64 65 |s.Style |= ERende|
|000008b0| 72 53 74 79 6c 65 2e 53 | 54 59 5f 4e 6f 72 6d 61 |rStyle.S|TY_Norma|
|000008c0| 6c 3b 0d 0a 09 43 61 6e | 76 61 73 2e 53 74 72 4c |l;...Can|vas.StrL|
|000008d0| 65 6e 28 22 54 45 53 54 | 22 2c 20 58 4c 2c 20 59 |en("TEST|", XL, Y|
|000008e0| 4c 29 3b 0d 0a 09 59 50 | 6f 73 20 3d 20 59 50 6f |L);...YP|os = YPo|
|000008f0| 73 20 2b 20 38 2a 59 4c | 3b 0d 0a 09 43 61 6e 76 |s + 8*YL|;...Canv|
|00000900| 61 73 2e 53 65 74 50 6f | 73 28 34 2c 59 50 6f 73 |as.SetPo|s(4,YPos|
|00000910| 29 3b 0d 0a 09 43 61 6e | 76 61 73 2e 53 65 74 44 |);...Can|vas.SetD|
|00000920| 72 61 77 43 6f 6c 6f 72 | 28 32 35 35 2c 32 35 35 |rawColor|(255,255|
|00000930| 2c 30 29 3b 0d 0a 09 54 | 20 3d 20 47 65 74 44 65 |,0);...T| = GetDe|
|00000940| 62 75 67 4e 61 6d 65 28 | 29 3b 0d 0a 09 69 66 20 |bugName(|);...if |
|00000950| 28 20 62 44 65 6c 65 74 | 65 4d 65 20 29 0d 0a 09 |( bDelet|eMe )...|
|00000960| 09 54 20 3d 20 54 24 22 | 20 44 45 4c 45 54 45 44 |.T = T$"| DELETED|
|00000970| 20 28 62 44 65 6c 65 74 | 65 4d 65 20 3d 3d 20 74 | (bDelet|eMe == t|
|00000980| 72 75 65 29 22 3b 0d 0a | 09 43 61 6e 76 61 73 2e |rue)";..|.Canvas.|
|00000990| 44 72 61 77 54 65 78 74 | 28 54 2c 20 66 61 6c 73 |DrawText|(T, fals|
|000009a0| 65 29 3b 0d 0a 09 59 50 | 6f 73 20 2b 3d 20 33 20 |e);...YP|os += 3 |
|000009b0| 2a 20 59 4c 3b 0d 0a 09 | 43 61 6e 76 61 73 2e 53 |* YL;...|Canvas.S|
|000009c0| 65 74 50 6f 73 28 34 2c | 59 50 6f 73 29 3b 0d 0a |etPos(4,|YPos);..|
|000009d0| 0d 0a 09 69 66 20 28 20 | 43 6f 6e 74 72 6f 6c 6c |...if ( |Controll|
|000009e0| 65 72 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 7b |er == No|ne )...{|
|000009f0| 0d 0a 09 09 43 61 6e 76 | 61 73 2e 53 65 74 44 72 |....Canv|as.SetDr|
|00000a00| 61 77 43 6f 6c 6f 72 28 | 32 35 35 2c 30 2c 30 29 |awColor(|255,0,0)|
|00000a10| 3b 0d 0a 09 09 43 61 6e | 76 61 73 2e 44 72 61 77 |;....Can|vas.Draw|
|00000a20| 54 65 78 74 28 22 4e 4f | 20 43 4f 4e 54 52 4f 4c |Text("NO| CONTROL|
|00000a30| 4c 45 52 22 29 3b 0d 0a | 09 09 59 50 6f 73 20 2b |LER");..|..YPos +|
|00000a40| 3d 20 59 4c 3b 0d 0a 09 | 09 43 61 6e 76 61 73 2e |= YL;...|.Canvas.|
|00000a50| 53 65 74 50 6f 73 28 34 | 2c 59 50 6f 73 29 3b 0d |SetPos(4|,YPos);.|
|00000a60| 0a 09 7d 0d 0a 09 65 6c | 73 65 0d 0a 09 09 43 6f |..}...el|se....Co|
|00000a70| 6e 74 72 6f 6c 6c 65 72 | 2e 44 69 73 70 6c 61 79 |ntroller|.Display|
|00000a80| 44 65 62 75 67 28 43 61 | 6e 76 61 73 2c 59 4c 2c |Debug(Ca|nvas,YL,|
|00000a90| 59 50 6f 73 29 3b 0d 0a | 0d 0a 09 59 50 6f 73 20 |YPos);..|...YPos |
|00000aa0| 2b 3d 20 32 2a 59 4c 3b | 0d 0a 09 43 61 6e 76 61 |+= 2*YL;|...Canva|
|00000ab0| 73 2e 53 65 74 50 6f 73 | 28 34 2c 59 50 6f 73 29 |s.SetPos|(4,YPos)|
|00000ac0| 3b 0d 0a 09 43 61 6e 76 | 61 73 2e 53 65 74 44 72 |;...Canv|as.SetDr|
|00000ad0| 61 77 43 6f 6c 6f 72 28 | 30 2c 32 35 35 2c 32 35 |awColor(|0,255,25|
|00000ae0| 35 29 3b 0d 0a 09 43 61 | 6e 76 61 73 2e 44 72 61 |5);...Ca|nvas.Dra|
|00000af0| 77 54 65 78 74 28 22 41 | 6e 63 68 6f 72 20 22 24 |wText("A|nchor "$|
|00000b00| 41 6e 63 68 6f 72 24 22 | 20 53 65 72 70 65 6e 74 |Anchor$"| Serpent|
|00000b10| 69 6e 65 20 44 69 73 74 | 20 22 24 53 65 72 70 65 |ine Dist| "$Serpe|
|00000b20| 6e 74 69 6e 65 44 69 73 | 74 24 22 20 54 69 6d 65 |ntineDis|t$" Time|
|00000b30| 20 22 24 53 65 72 70 65 | 6e 74 69 6e 65 54 69 6d | "$Serpe|ntineTim|
|00000b40| 65 29 3b 0d 0a 09 59 50 | 6f 73 20 2b 3d 20 59 4c |e);...YP|os += YL|
|00000b50| 3b 0d 0a 09 43 61 6e 76 | 61 73 2e 53 65 74 50 6f |;...Canv|as.SetPo|
|00000b60| 73 28 34 2c 59 50 6f 73 | 29 3b 0d 0a 0d 0a 09 54 |s(4,YPos|);.....T|
|00000b70| 20 3d 20 22 46 6c 6f 6f | 72 20 22 24 46 6c 6f 6f | = "Floo|r "$Floo|
|00000b80| 72 24 22 20 44 65 73 69 | 72 65 64 53 70 65 65 64 |r$" Desi|redSpeed|
|00000b90| 20 22 24 44 65 73 69 72 | 65 64 53 70 65 65 64 24 | "$Desir|edSpeed$|
|00000ba0| 22 20 43 72 6f 75 63 68 | 65 64 20 22 24 62 49 73 |" Crouch|ed "$bIs|
|00000bb0| 43 72 6f 75 63 68 65 64 | 24 22 20 54 72 79 20 74 |Crouched|$" Try t|
|00000bc0| 6f 20 75 6e 63 72 6f 75 | 63 68 20 22 24 55 6e 63 |o uncrou|ch "$Unc|
|00000bd0| 72 6f 75 63 68 54 69 6d | 65 3b 0d 0a 09 69 66 20 |rouchTim|e;...if |
|00000be0| 28 20 28 4f 6e 4c 61 64 | 64 65 72 20 21 3d 20 4e |( (OnLad|der != N|
|00000bf0| 6f 6e 65 29 20 7c 7c 20 | 28 50 68 79 73 69 63 73 |one) || |(Physics|
|00000c00| 20 3d 3d 20 50 48 59 53 | 5f 4c 61 64 64 65 72 29 | == PHYS|_Ladder)|
|00000c10| 20 29 0d 0a 09 09 54 3d | 54 24 22 20 6f 6e 20 6c | )....T=|T$" on l|
|00000c20| 61 64 64 65 72 20 22 24 | 4f 6e 4c 61 64 64 65 72 |adder "$|OnLadder|
|00000c30| 3b 0d 0a 09 43 61 6e 76 | 61 73 2e 44 72 61 77 54 |;...Canv|as.DrawT|
|00000c40| 65 78 74 28 54 29 3b 0d | 0a 09 59 50 6f 73 20 2b |ext(T);.|..YPos +|
|00000c50| 3d 20 59 4c 3b 0d 0a 09 | 43 61 6e 76 61 73 2e 53 |= YL;...|Canvas.S|
|00000c60| 65 74 50 6f 73 28 34 2c | 59 50 6f 73 29 3b 0d 0a |etPos(4,|YPos);..|
|00000c70| 7d 0d 0a 0d 0a 2f 2a 20 | 42 6f 74 44 6f 64 67 65 |}..../* |BotDodge|
|00000c80| 28 29 0d 0a 72 65 74 75 | 72 6e 73 20 61 70 70 72 |()..retu|rns appr|
|00000c90| 6f 70 72 69 61 74 65 20 | 76 65 63 74 6f 72 20 66 |opriate |vector f|
|00000ca0| 6f 72 20 64 6f 64 67 65 | 20 69 6e 20 64 69 72 65 |or dodge| in dire|
|00000cb0| 63 74 69 6f 6e 20 44 69 | 72 20 28 77 68 69 63 68 |ction Di|r (which|
|00000cc0| 20 73 68 6f 75 6c 64 20 | 62 65 20 6e 6f 72 6d 61 | should |be norma|
|00000cd0| 6c 69 7a 65 64 29 0d 0a | 2a 2f 0d 0a 66 75 6e 63 |lized)..|*/..func|
|00000ce0| 74 69 6f 6e 20 76 65 63 | 74 6f 72 20 42 6f 74 44 |tion vec|tor BotD|
|00000cf0| 6f 64 67 65 28 56 65 63 | 74 6f 72 20 44 69 72 29 |odge(Vec|tor Dir)|
|00000d00| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 76 65 63 74 |..{...lo|cal vect|
|00000d10| 6f 72 20 56 65 6c 3b 0d | 0a 0d 0a 09 56 65 6c 20 |or Vel;.|....Vel |
|00000d20| 3d 20 47 72 6f 75 6e 64 | 53 70 65 65 64 2a 44 69 |= Ground|Speed*Di|
|00000d30| 72 3b 0d 0a 09 56 65 6c | 2e 5a 20 3d 20 4a 75 6d |r;...Vel|.Z = Jum|
|00000d40| 70 5a 3b 0d 0a 09 72 65 | 74 75 72 6e 20 56 65 6c |pZ;...re|turn Vel|
|00000d50| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000d60| 20 48 6f 6c 64 46 6c 61 | 67 28 41 63 74 6f 72 20 | HoldFla|g(Actor |
|00000d70| 46 6c 61 67 41 63 74 6f | 72 29 0d 0a 7b 0d 0a 09 |FlagActo|r)..{...|
|00000d80| 69 66 20 28 20 47 61 6d | 65 4f 62 6a 65 63 74 28 |if ( Gam|eObject(|
|00000d90| 46 6c 61 67 41 63 74 6f | 72 29 20 21 3d 20 4e 6f |FlagActo|r) != No|
|00000da0| 6e 65 20 29 0d 0a 09 09 | 48 6f 6c 64 47 61 6d 65 |ne )....|HoldGame|
|00000db0| 4f 62 6a 65 63 74 28 47 | 61 6d 65 4f 62 6a 65 63 |Object(G|ameObjec|
|00000dc0| 74 28 46 6c 61 67 41 63 | 74 6f 72 29 2c 47 61 6d |t(FlagAc|tor),Gam|
|00000dd0| 65 4f 62 6a 65 63 74 28 | 46 6c 61 67 41 63 74 6f |eObject(|FlagActo|
|00000de0| 72 29 2e 47 61 6d 65 4f | 62 6a 42 6f 6e 65 29 3b |r).GameO|bjBone);|
|00000df0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000e00| 48 6f 6c 64 47 61 6d 65 | 4f 62 6a 65 63 74 28 47 |HoldGame|Object(G|
|00000e10| 61 6d 65 4f 62 6a 65 63 | 74 20 67 61 6d 65 4f 62 |ameObjec|t gameOb|
|00000e20| 6a 2c 20 6e 61 6d 65 20 | 47 61 6d 65 4f 62 6a 42 |j, name |GameObjB|
|00000e30| 6f 6e 65 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 47 |one)..{.|..if ( G|
|00000e40| 61 6d 65 4f 62 6a 42 6f | 6e 65 20 3d 3d 20 27 4e |ameObjBo|ne == 'N|
|00000e50| 6f 6e 65 27 20 29 0d 0a | 09 7b 0d 0a 09 09 47 61 |one' )..|.{....Ga|
|00000e60| 6d 65 4f 62 6a 2e 53 65 | 74 50 68 79 73 69 63 73 |meObj.Se|tPhysics|
|00000e70| 28 50 48 59 53 5f 52 6f | 74 61 74 69 6e 67 29 3b |(PHYS_Ro|tating);|
|00000e80| 0d 0a 09 09 47 61 6d 65 | 4f 62 6a 2e 53 65 74 4c |....Game|Obj.SetL|
|00000e90| 6f 63 61 74 69 6f 6e 28 | 4c 6f 63 61 74 69 6f 6e |ocation(|Location|
|00000ea0| 29 3b 0d 0a 09 09 47 61 | 6d 65 4f 62 6a 2e 53 65 |);....Ga|meObj.Se|
|00000eb0| 74 42 61 73 65 28 73 65 | 6c 66 29 3b 0d 0a 09 09 |tBase(se|lf);....|
|00000ec0| 47 61 6d 65 4f 62 6a 2e | 53 65 74 52 65 6c 61 74 |GameObj.|SetRelat|
|00000ed0| 69 76 65 4c 6f 63 61 74 | 69 6f 6e 28 76 65 63 74 |iveLocat|ion(vect|
|00000ee0| 28 30 2c 30 2c 30 29 29 | 3b 0d 0a 09 7d 0d 0a 09 |(0,0,0))|;...}...|
|00000ef0| 65 6c 73 65 0d 0a 09 7b | 0d 0a 09 09 41 74 74 61 |else...{|....Atta|
|00000f00| 63 68 54 6f 42 6f 6e 65 | 28 67 61 6d 65 4f 62 6a |chToBone|(gameObj|
|00000f10| 2c 47 61 6d 65 4f 62 6a | 42 6f 6e 65 29 3b 0d 0a |,GameObj|Bone);..|
|00000f20| 09 09 67 61 6d 65 4f 62 | 6a 2e 53 65 74 52 65 6c |..gameOb|j.SetRel|
|00000f30| 61 74 69 76 65 52 6f 74 | 61 74 69 6f 6e 28 47 61 |ativeRot|ation(Ga|
|00000f40| 6d 65 4f 62 6a 52 6f 74 | 20 2b 20 67 61 6d 65 4f |meObjRot| + gameO|
|00000f50| 62 6a 2e 47 61 6d 65 4f | 62 6a 52 6f 74 29 3b 0d |bj.GameO|bjRot);.|
|00000f60| 0a 09 09 67 61 6d 65 4f | 62 6a 2e 53 65 74 52 65 |...gameO|bj.SetRe|
|00000f70| 6c 61 74 69 76 65 4c 6f | 63 61 74 69 6f 6e 28 47 |lativeLo|cation(G|
|00000f80| 61 6d 65 4f 62 6a 4f 66 | 66 73 65 74 20 2b 20 67 |ameObjOf|fset + g|
|00000f90| 61 6d 65 4f 62 6a 2e 47 | 61 6d 65 4f 62 6a 4f 66 |ameObj.G|ameObjOf|
|00000fa0| 66 73 65 74 20 29 3b 0d | 0a 09 7d 0d 0a 7d 0d 0a |fset );.|..}..}..|
|00000fb0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 45 6e 64 4a 75 |..functi|on EndJu|
|00000fc0| 6d 70 28 29 3b 09 2f 2f | 20 43 61 6c 6c 65 64 20 |mp();.//| Called |
|00000fd0| 77 68 65 6e 20 73 74 6f | 70 20 6a 75 6d 70 69 6e |when sto|p jumpin|
|00000fe0| 67 0d 0a 0d 0a 73 69 6d | 75 6c 61 74 65 64 20 66 |g....sim|ulated f|
|00000ff0| 75 6e 63 74 69 6f 6e 20 | 53 68 6f 75 6c 64 55 6e |unction |ShouldUn|
|00001000| 43 72 6f 75 63 68 28 29 | 3b 0d 0a 0d 0a 73 69 6d |Crouch()|;....sim|
|00001010| 75 6c 61 74 65 64 20 65 | 76 65 6e 74 20 53 65 74 |ulated e|vent Set|
|00001020| 41 6e 69 6d 41 63 74 69 | 6f 6e 28 6e 61 6d 65 20 |AnimActi|on(name |
|00001030| 4e 65 77 41 63 74 69 6f | 6e 29 0d 0a 7b 0d 0a 09 |NewActio|n)..{...|
|00001040| 41 6e 69 6d 41 63 74 69 | 6f 6e 20 3d 20 4e 65 77 |AnimActi|on = New|
|00001050| 41 63 74 69 6f 6e 3b 0d | 0a 09 50 6c 61 79 41 6e |Action;.|..PlayAn|
|00001060| 69 6d 28 41 6e 69 6d 41 | 63 74 69 6f 6e 29 3b 0d |im(AnimA|ction);.|
|00001070| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 53 |.}....fu|nction S|
|00001080| 74 72 69 6e 67 20 47 65 | 74 44 65 62 75 67 4e 61 |tring Ge|tDebugNa|
|00001090| 6d 65 28 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 28 |me()..{.|..if ( (|
|000010a0| 42 6f 74 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 29 20 |Bot(Cont|roller) |
|000010b0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 42 6f 74 28 |!= None)| && Bot(|
|000010c0| 43 6f 6e 74 72 6f 6c 6c | 65 72 29 2e 62 53 6f 61 |Controll|er).bSoa|
|000010d0| 6b 69 6e 67 20 26 26 20 | 28 4c 65 76 65 6c 2e 50 |king && |(Level.P|
|000010e0| 61 75 73 65 72 20 21 3d | 20 4e 6f 6e 65 29 20 29 |auser !=| None) )|
|000010f0| 0d 0a 09 09 72 65 74 75 | 72 6e 20 47 65 74 48 75 |....retu|rn GetHu|
|00001100| 6d 61 6e 52 65 61 64 61 | 62 6c 65 4e 61 6d 65 28 |manReada|bleName(|
|00001110| 29 40 42 6f 74 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |)@Bot(Co|ntroller|
|00001120| 29 2e 53 6f 61 6b 53 74 | 72 69 6e 67 3b 0d 0a 09 |).SoakSt|ring;...|
|00001130| 69 66 20 28 20 50 6c 61 | 79 65 72 52 65 70 6c 69 |if ( Pla|yerRepli|
|00001140| 63 61 74 69 6f 6e 49 6e | 66 6f 20 21 3d 20 4e 6f |cationIn|fo != No|
|00001150| 6e 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 50 |ne )....|return P|
|00001160| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00001170| 49 6e 66 6f 2e 50 6c 61 | 79 65 72 4e 61 6d 65 3b |Info.Pla|yerName;|
|00001180| 0d 0a 09 72 65 74 75 72 | 6e 20 47 65 74 49 74 65 |...retur|n GetIte|
|00001190| 6d 4e 61 6d 65 28 73 74 | 72 69 6e 67 28 73 65 6c |mName(st|ring(sel|
|000011a0| 66 29 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |f));..}.|...funct|
|000011b0| 69 6f 6e 20 46 6f 6f 74 | 53 74 65 70 70 69 6e 67 |ion Foot|Stepping|
|000011c0| 28 69 6e 74 20 73 69 64 | 65 29 3b 0d 0a 0d 0a 66 |(int sid|e);....f|
|000011d0| 75 6e 63 74 69 6f 6e 20 | 6e 61 6d 65 20 47 65 74 |unction |name Get|
|000011e0| 57 65 61 70 6f 6e 42 6f | 6e 65 46 6f 72 28 49 6e |WeaponBo|neFor(In|
|000011f0| 76 65 6e 74 6f 72 79 20 | 49 29 0d 0a 7b 0d 0a 09 |ventory |I)..{...|
|00001200| 72 65 74 75 72 6e 20 27 | 77 65 61 70 6f 6e 5f 62 |return '|weapon_b|
|00001210| 6f 6e 65 27 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |one';..}|....func|
|00001220| 74 69 6f 6e 20 43 68 65 | 63 6b 42 6f 62 28 66 6c |tion Che|ckBob(fl|
|00001230| 6f 61 74 20 44 65 6c 74 | 61 54 69 6d 65 2c 20 76 |oat Delt|aTime, v|
|00001240| 65 63 74 6f 72 20 59 29 | 0d 0a 7b 0d 0a 09 6c 6f |ector Y)|..{...lo|
|00001250| 63 61 6c 20 66 6c 6f 61 | 74 20 4f 6c 64 42 6f 62 |cal floa|t OldBob|
|00001260| 54 69 6d 65 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |Time;...|local in|
|00001270| 74 20 6d 2c 6e 3b 0d 0a | 0d 0a 09 4f 6c 64 42 6f |t m,n;..|...OldBo|
|00001280| 62 54 69 6d 65 20 3d 20 | 42 6f 62 54 69 6d 65 3b |bTime = |BobTime;|
|00001290| 0d 0a 09 53 75 70 65 72 | 2e 43 68 65 63 6b 42 6f |...Super|.CheckBo|
|000012a0| 62 28 44 65 6c 74 61 54 | 69 6d 65 2c 59 29 3b 0d |b(DeltaT|ime,Y);.|
|000012b0| 0a 0d 0a 09 69 66 20 28 | 20 28 50 68 79 73 69 63 |....if (| (Physic|
|000012c0| 73 20 21 3d 20 50 48 59 | 53 5f 57 61 6c 6b 69 6e |s != PHY|S_Walkin|
|000012d0| 67 29 20 7c 7c 20 28 56 | 53 69 7a 65 28 56 65 6c |g) || (V|Size(Vel|
|000012e0| 6f 63 69 74 79 29 20 3c | 20 31 30 29 0d 0a 09 09 |ocity) <| 10)....|
|000012f0| 7c 7c 20 28 28 50 6c 61 | 79 65 72 43 6f 6e 74 72 ||| ((Pla|yerContr|
|00001300| 6f 6c 6c 65 72 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |oller(Co|ntroller|
|00001310| 29 20 21 3d 20 4e 6f 6e | 65 29 20 26 26 20 50 6c |) != Non|e) && Pl|
|00001320| 61 79 65 72 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 43 |ayerCont|roller(C|
|00001330| 6f 6e 74 72 6f 6c 6c 65 | 72 29 2e 62 42 65 68 69 |ontrolle|r).bBehi|
|00001340| 6e 64 56 69 65 77 29 20 | 29 0d 0a 09 09 72 65 74 |ndView) |)....ret|
|00001350| 75 72 6e 3b 0d 0a 0d 0a | 09 6d 20 3d 20 69 6e 74 |urn;....|.m = int|
|00001360| 28 30 2e 35 20 2a 20 50 | 69 20 2b 20 39 2e 30 20 |(0.5 * P|i + 9.0 |
|00001370| 2a 20 4f 6c 64 42 6f 62 | 54 69 6d 65 2f 50 69 29 |* OldBob|Time/Pi)|
|00001380| 3b 0d 0a 09 6e 20 3d 20 | 69 6e 74 28 30 2e 35 20 |;...n = |int(0.5 |
|00001390| 2a 20 50 69 20 2b 20 39 | 2e 30 20 2a 20 42 6f 62 |* Pi + 9|.0 * Bob|
|000013a0| 54 69 6d 65 2f 50 69 29 | 3b 0d 0a 0d 0a 09 69 66 |Time/Pi)|;.....if|
|000013b0| 20 28 20 28 6d 20 21 3d | 20 6e 29 20 26 26 20 21 | ( (m !=| n) && !|
|000013c0| 62 49 73 57 61 6c 6b 69 | 6e 67 20 26 26 20 21 62 |bIsWalki|ng && !b|
|000013d0| 49 73 43 72 6f 75 63 68 | 65 64 20 29 0d 0a 09 09 |IsCrouch|ed )....|
|000013e0| 46 6f 6f 74 53 74 65 70 | 70 69 6e 67 28 30 29 3b |FootStep|ping(0);|
|000013f0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 21 62 57 |...else |if ( !bW|
|00001400| 65 61 70 6f 6e 42 6f 62 | 20 26 26 20 62 50 6c 61 |eaponBob| && bPla|
|00001410| 79 4f 77 6e 46 6f 6f 74 | 53 74 65 70 73 20 26 26 |yOwnFoot|Steps &&|
|00001420| 20 21 62 49 73 57 61 6c | 6b 69 6e 67 20 26 26 20 | !bIsWal|king && |
|00001430| 21 62 49 73 43 72 6f 75 | 63 68 65 64 20 26 26 20 |!bIsCrou|ched && |
|00001440| 28 4c 65 76 65 6c 2e 54 | 69 6d 65 53 65 63 6f 6e |(Level.T|imeSecon|
|00001450| 64 73 20 2d 20 4c 61 73 | 74 46 6f 6f 74 53 74 65 |ds - Las|tFootSte|
|00001460| 70 54 69 6d 65 20 3e 20 | 30 2e 33 35 29 20 29 0d |pTime > |0.35) ).|
|00001470| 0a 09 7b 0d 0a 09 09 4c | 61 73 74 46 6f 6f 74 53 |..{....L|astFootS|
|00001480| 74 65 70 54 69 6d 65 20 | 3d 20 4c 65 76 65 6c 2e |tepTime |= Level.|
|00001490| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 09 09 |TimeSeco|nds;....|
|000014a0| 46 6f 6f 74 53 74 65 70 | 70 69 6e 67 28 30 29 3b |FootStep|ping(0);|
|000014b0| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 2f 2a 20 49 73 |...}..}.|.../* Is|
|000014c0| 49 6e 4c 6f 61 64 6f 75 | 74 28 29 0d 0a 72 65 74 |InLoadou|t()..ret|
|000014d0| 75 72 6e 20 74 72 75 65 | 20 69 66 20 49 6e 76 65 |urn true| if Inve|
|000014e0| 6e 74 6f 72 79 43 6c 61 | 73 73 20 69 73 20 70 61 |ntoryCla|ss is pa|
|000014f0| 72 74 20 6f 66 20 72 65 | 71 75 69 72 65 64 20 6f |rt of re|quired o|
|00001500| 72 20 6f 70 74 69 6f 6e | 61 6c 20 65 71 75 69 70 |r option|al equip|
|00001510| 6d 65 6e 74 0d 0a 2a 2f | 0d 0a 66 75 6e 63 74 69 |ment..*/|..functi|
|00001520| 6f 6e 20 62 6f 6f 6c 20 | 49 73 49 6e 4c 6f 61 64 |on bool |IsInLoad|
|00001530| 6f 75 74 28 63 6c 61 73 | 73 3c 49 6e 76 65 6e 74 |out(clas|s<Invent|
|00001540| 6f 72 79 3e 20 49 6e 76 | 65 6e 74 6f 72 79 43 6c |ory> Inv|entoryCl|
|00001550| 61 73 73 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ass)..{.|..local |
|00001560| 69 6e 74 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 73 |int i;..|.local s|
|00001570| 74 72 69 6e 67 20 69 6e | 76 73 74 72 69 6e 67 3b |tring in|vstring;|
|00001580| 0d 0a 0d 0a 09 69 66 20 | 28 20 62 41 63 63 65 70 |.....if |( bAccep|
|00001590| 74 41 6c 6c 49 6e 76 65 | 6e 74 6f 72 79 20 29 0d |tAllInve|ntory ).|
|000015a0| 0a 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000015b0| 0a 0d 0a 09 69 6e 76 73 | 74 72 69 6e 67 20 3d 20 |....invs|tring = |
|000015c0| 73 74 72 69 6e 67 28 49 | 6e 76 65 6e 74 6f 72 79 |string(I|nventory|
|000015d0| 43 6c 61 73 73 29 3b 0d | 0a 0d 0a 09 66 6f 72 20 |Class);.|....for |
|000015e0| 28 20 69 3d 30 3b 20 69 | 3c 31 36 3b 20 69 2b 2b |( i=0; i|<16; i++|
|000015f0| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 52 | )...{..|..if ( R|
|00001600| 65 71 75 69 72 65 64 45 | 71 75 69 70 6d 65 6e 74 |equiredE|quipment|
|00001610| 5b 69 5d 20 7e 3d 20 69 | 6e 76 73 74 72 69 6e 67 |[i] ~= i|nvstring|
|00001620| 20 29 0d 0a 09 09 09 72 | 65 74 75 72 6e 20 74 72 | ).....r|eturn tr|
|00001630| 75 65 3b 0d 0a 09 09 65 | 6c 73 65 20 69 66 20 28 |ue;....e|lse if (|
|00001640| 20 52 65 71 75 69 72 65 | 64 45 71 75 69 70 6d 65 | Require|dEquipme|
|00001650| 6e 74 5b 69 5d 20 3d 3d | 20 22 22 20 29 0d 0a 09 |nt[i] ==| "" )...|
|00001660| 09 09 62 72 65 61 6b 3b | 0d 0a 09 7d 0d 0a 0d 0a |..break;|...}....|
|00001670| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 31 36 |.for ( i|=0; i<16|
|00001680| 3b 20 69 2b 2b 20 29 0d | 0a 09 7b 0d 0a 09 09 69 |; i++ ).|..{....i|
|00001690| 66 20 28 20 4f 70 74 69 | 6f 6e 61 6c 45 71 75 69 |f ( Opti|onalEqui|
|000016a0| 70 6d 65 6e 74 5b 69 5d | 20 7e 3d 20 69 6e 76 73 |pment[i]| ~= invs|
|000016b0| 74 72 69 6e 67 20 29 0d | 0a 09 09 09 72 65 74 75 |tring ).|....retu|
|000016c0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 65 6c 73 65 |rn true;|....else|
|000016d0| 20 69 66 20 28 20 4f 70 | 74 69 6f 6e 61 6c 45 71 | if ( Op|tionalEq|
|000016e0| 75 69 70 6d 65 6e 74 5b | 69 5d 20 3d 3d 20 22 22 |uipment[|i] == ""|
|000016f0| 20 29 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 09 | ).....b|reak;...|
|00001700| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |}...retu|rn false|
|00001710| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00001720| 20 41 64 64 44 65 66 61 | 75 6c 74 49 6e 76 65 6e | AddDefa|ultInven|
|00001730| 74 6f 72 79 28 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |tory()..|{...loca|
|00001740| 6c 20 69 6e 74 20 69 3b | 0d 0a 0d 0a 09 69 66 20 |l int i;|.....if |
|00001750| 28 20 49 73 4c 6f 63 61 | 6c 6c 79 43 6f 6e 74 72 |( IsLoca|llyContr|
|00001760| 6f 6c 6c 65 64 28 29 20 | 29 0d 0a 09 7b 0d 0a 09 |olled() |)...{...|
|00001770| 09 66 6f 72 20 28 20 69 | 3d 30 3b 20 69 3c 31 36 |.for ( i|=0; i<16|
|00001780| 3b 20 69 2b 2b 20 29 0d | 0a 09 09 09 69 66 20 28 |; i++ ).|....if (|
|00001790| 20 52 65 71 75 69 72 65 | 64 45 71 75 69 70 6d 65 | Require|dEquipme|
|000017a0| 6e 74 5b 69 5d 20 21 3d | 20 22 22 20 29 0d 0a 09 |nt[i] !=| "" )...|
|000017b0| 09 09 09 43 72 65 61 74 | 65 49 6e 76 65 6e 74 6f |...Creat|eInvento|
|000017c0| 72 79 28 52 65 71 75 69 | 72 65 64 45 71 75 69 70 |ry(Requi|redEquip|
|000017d0| 6d 65 6e 74 5b 69 5d 29 | 3b 0d 0a 0d 0a 09 09 66 |ment[i])|;......f|
|000017e0| 6f 72 20 28 20 69 3d 30 | 3b 20 69 3c 31 36 3b 20 |or ( i=0|; i<16; |
|000017f0| 69 2b 2b 20 29 0d 0a 09 | 09 09 69 66 20 28 20 28 |i++ )...|..if ( (|
|00001800| 53 65 6c 65 63 74 65 64 | 45 71 75 69 70 6d 65 6e |Selected|Equipmen|
|00001810| 74 5b 69 5d 20 3d 3d 20 | 31 29 20 26 26 20 28 4f |t[i] == |1) && (O|
|00001820| 70 74 69 6f 6e 61 6c 45 | 71 75 69 70 6d 65 6e 74 |ptionalE|quipment|
|00001830| 5b 69 5d 20 21 3d 20 22 | 22 29 20 29 0d 0a 09 09 |[i] != "|") )....|
|00001840| 09 09 43 72 65 61 74 65 | 49 6e 76 65 6e 74 6f 72 |..Create|Inventor|
|00001850| 79 28 4f 70 74 69 6f 6e | 61 6c 45 71 75 69 70 6d |y(Option|alEquipm|
|00001860| 65 6e 74 5b 69 5d 29 3b | 0d 0a 0d 0a 09 20 20 20 |ent[i]);|..... |
|00001870| 20 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 41 64 64 47 | Level.G|ame.AddG|
|00001880| 61 6d 65 53 70 65 63 69 | 66 69 63 49 6e 76 65 6e |ameSpeci|ficInven|
|00001890| 74 6f 72 79 28 73 65 6c | 66 29 3b 0d 0a 09 7d 0d |tory(sel|f);...}.|
|000018a0| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 20 20 20 |..else..|.{... |
|000018b0| 20 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 41 64 64 47 | Level.G|ame.AddG|
|000018c0| 61 6d 65 53 70 65 63 69 | 66 69 63 49 6e 76 65 6e |ameSpeci|ficInven|
|000018d0| 74 6f 72 79 28 73 65 6c | 66 29 3b 0d 0a 0d 0a 09 |tory(sel|f);.....|
|000018e0| 09 66 6f 72 20 28 20 69 | 3d 31 35 3b 20 69 3e 3d |.for ( i|=15; i>=|
|000018f0| 30 3b 20 69 2d 2d 20 29 | 0d 0a 09 09 09 69 66 20 |0; i-- )|.....if |
|00001900| 28 20 28 53 65 6c 65 63 | 74 65 64 45 71 75 69 70 |( (Selec|tedEquip|
|00001910| 6d 65 6e 74 5b 69 5d 20 | 3d 3d 20 31 29 20 26 26 |ment[i] |== 1) &&|
|00001920| 20 28 4f 70 74 69 6f 6e | 61 6c 45 71 75 69 70 6d | (Option|alEquipm|
|00001930| 65 6e 74 5b 69 5d 20 21 | 3d 20 22 22 29 20 29 0d |ent[i] !|= "") ).|
|00001940| 0a 09 09 09 09 43 72 65 | 61 74 65 49 6e 76 65 6e |.....Cre|ateInven|
|00001950| 74 6f 72 79 28 4f 70 74 | 69 6f 6e 61 6c 45 71 75 |tory(Opt|ionalEqu|
|00001960| 69 70 6d 65 6e 74 5b 69 | 5d 29 3b 0d 0a 0d 0a 09 |ipment[i|]);.....|
|00001970| 09 66 6f 72 20 28 20 69 | 3d 31 35 3b 20 69 3e 3d |.for ( i|=15; i>=|
|00001980| 30 3b 20 69 2d 2d 20 29 | 0d 0a 09 09 09 69 66 20 |0; i-- )|.....if |
|00001990| 28 20 52 65 71 75 69 72 | 65 64 45 71 75 69 70 6d |( Requir|edEquipm|
|000019a0| 65 6e 74 5b 69 5d 20 21 | 3d 20 22 22 20 29 0d 0a |ent[i] !|= "" )..|
|000019b0| 09 09 09 09 43 72 65 61 | 74 65 49 6e 76 65 6e 74 |....Crea|teInvent|
|000019c0| 6f 72 79 28 52 65 71 75 | 69 72 65 64 45 71 75 69 |ory(Requ|iredEqui|
|000019d0| 70 6d 65 6e 74 5b 69 5d | 29 3b 0d 0a 09 7d 0d 0a |pment[i]|);...}..|
|000019e0| 0d 0a 09 2f 2f 20 48 41 | 43 4b 20 46 49 58 4d 45 |...// HA|CK FIXME|
|000019f0| 0d 0a 09 69 66 20 28 20 | 69 6e 76 65 6e 74 6f 72 |...if ( |inventor|
|00001a00| 79 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 69 |y != Non|e )....i|
|00001a10| 6e 76 65 6e 74 6f 72 79 | 2e 4f 77 6e 65 72 45 76 |nventory|.OwnerEv|
|00001a20| 65 6e 74 28 27 4c 6f 61 | 64 4f 75 74 27 29 3b 0d |ent('Loa|dOut');.|
|00001a30| 0a 0d 0a 09 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 43 |....Cont|roller.C|
|00001a40| 6c 69 65 6e 74 53 77 69 | 74 63 68 54 6f 42 65 73 |lientSwi|tchToBes|
|00001a50| 74 57 65 61 70 6f 6e 28 | 29 3b 0d 0a 7d 0d 0a 0d |tWeapon(|);..}...|
|00001a60| 0a 66 75 6e 63 74 69 6f | 6e 20 43 72 65 61 74 65 |.functio|n Create|
|00001a70| 49 6e 76 65 6e 74 6f 72 | 79 28 73 74 72 69 6e 67 |Inventor|y(string|
|00001a80| 20 49 6e 76 65 6e 74 6f | 72 79 43 6c 61 73 73 4e | Invento|ryClassN|
|00001a90| 61 6d 65 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ame)..{.|..local |
|00001aa0| 49 6e 76 65 6e 74 6f 72 | 79 20 49 6e 76 3b 0d 0a |Inventor|y Inv;..|
|00001ab0| 09 6c 6f 63 61 6c 20 63 | 6c 61 73 73 3c 49 6e 76 |.local c|lass<Inv|
|00001ac0| 65 6e 74 6f 72 79 3e 20 | 49 6e 76 65 6e 74 6f 72 |entory> |Inventor|
|00001ad0| 79 43 6c 61 73 73 3b 0d | 0a 0d 0a 09 49 6e 76 65 |yClass;.|....Inve|
|00001ae0| 6e 74 6f 72 79 43 6c 61 | 73 73 20 3d 20 4c 65 76 |ntoryCla|ss = Lev|
|00001af0| 65 6c 2e 47 61 6d 65 2e | 42 61 73 65 4d 75 74 61 |el.Game.|BaseMuta|
|00001b00| 74 6f 72 2e 47 65 74 49 | 6e 76 65 6e 74 6f 72 79 |tor.GetI|nventory|
|00001b10| 43 6c 61 73 73 28 49 6e | 76 65 6e 74 6f 72 79 43 |Class(In|ventoryC|
|00001b20| 6c 61 73 73 4e 61 6d 65 | 29 3b 0d 0a 09 69 66 28 |lassName|);...if(|
|00001b30| 20 28 49 6e 76 65 6e 74 | 6f 72 79 43 6c 61 73 73 | (Invent|oryClass|
|00001b40| 21 3d 4e 6f 6e 65 29 20 | 26 26 20 28 46 69 6e 64 |!=None) |&& (Find|
|00001b50| 49 6e 76 65 6e 74 6f 72 | 79 54 79 70 65 28 49 6e |Inventor|yType(In|
|00001b60| 76 65 6e 74 6f 72 79 43 | 6c 61 73 73 29 3d 3d 4e |ventoryC|lass)==N|
|00001b70| 6f 6e 65 29 20 29 0d 0a | 09 7b 0d 0a 09 09 49 6e |one) )..|.{....In|
|00001b80| 76 20 3d 20 53 70 61 77 | 6e 28 49 6e 76 65 6e 74 |v = Spaw|n(Invent|
|00001b90| 6f 72 79 43 6c 61 73 73 | 29 3b 0d 0a 09 09 69 66 |oryClass|);....if|
|00001ba0| 28 20 49 6e 76 20 21 3d | 20 4e 6f 6e 65 20 29 0d |( Inv !=| None ).|
|00001bb0| 0a 09 09 7b 0d 0a 09 09 | 09 49 6e 76 2e 47 69 76 |...{....|.Inv.Giv|
|00001bc0| 65 54 6f 28 73 65 6c 66 | 29 3b 0d 0a 09 09 09 69 |eTo(self|);.....i|
|00001bd0| 66 20 28 20 49 6e 76 20 | 21 3d 20 4e 6f 6e 65 20 |f ( Inv |!= None |
|00001be0| 29 0d 0a 09 09 09 09 49 | 6e 76 2e 50 69 63 6b 75 |)......I|nv.Picku|
|00001bf0| 70 46 75 6e 63 74 69 6f | 6e 28 73 65 6c 66 29 3b |pFunctio|n(self);|
|00001c00| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |....}...|}..}....|
|00001c10| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 50 65 |function| bool Pe|
|00001c20| 72 66 6f 72 6d 44 6f 64 | 67 65 28 65 44 6f 75 62 |rformDod|ge(eDoub|
|00001c30| 6c 65 43 6c 69 63 6b 44 | 69 72 20 44 6f 75 62 6c |leClickD|ir Doubl|
|00001c40| 65 43 6c 69 63 6b 4d 6f | 76 65 2c 20 76 65 63 74 |eClickMo|ve, vect|
|00001c50| 6f 72 20 44 69 72 2c 20 | 76 65 63 74 6f 72 20 43 |or Dir, |vector C|
|00001c60| 72 6f 73 73 29 3b 0d 0a | 0d 0a 66 75 6e 63 74 69 |ross);..|..functi|
|00001c70| 6f 6e 20 62 6f 6f 6c 20 | 44 6f 64 67 65 28 65 44 |on bool |Dodge(eD|
|00001c80| 6f 75 62 6c 65 43 6c 69 | 63 6b 44 69 72 20 44 6f |oubleCli|ckDir Do|
|00001c90| 75 62 6c 65 43 6c 69 63 | 6b 4d 6f 76 65 29 0d 0a |ubleClic|kMove)..|
|00001ca0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 76 65 63 74 6f 72 |{...loca|l vector|
|00001cb0| 20 58 2c 59 2c 5a 3b 0d | 0a 0d 0a 09 69 66 20 28 | X,Y,Z;.|....if (|
|00001cc0| 20 62 49 73 43 72 6f 75 | 63 68 65 64 20 7c 7c 20 | bIsCrou|ched || |
|00001cd0| 62 57 61 6e 74 73 54 6f | 43 72 6f 75 63 68 20 7c |bWantsTo|Crouch ||
|00001ce0| 7c 20 28 50 68 79 73 69 | 63 73 20 21 3d 20 50 48 || (Physi|cs != PH|
|00001cf0| 59 53 5f 57 61 6c 6b 69 | 6e 67 29 20 29 0d 0a 09 |YS_Walki|ng) )...|
|00001d00| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00001d10| 0d 0a 20 20 20 20 47 65 | 74 41 78 65 73 28 52 6f |.. Ge|tAxes(Ro|
|00001d20| 74 61 74 69 6f 6e 2c 58 | 2c 59 2c 5a 29 3b 0d 0a |tation,X|,Y,Z);..|
|00001d30| 09 69 66 20 28 44 6f 75 | 62 6c 65 43 6c 69 63 6b |.if (Dou|bleClick|
|00001d40| 4d 6f 76 65 20 3d 3d 20 | 44 43 4c 49 43 4b 5f 46 |Move == |DCLICK_F|
|00001d50| 6f 72 77 61 72 64 29 0d | 0a 09 09 56 65 6c 6f 63 |orward).|...Veloc|
|00001d60| 69 74 79 20 3d 20 31 2e | 35 2a 47 72 6f 75 6e 64 |ity = 1.|5*Ground|
|00001d70| 53 70 65 65 64 2a 58 20 | 2b 20 28 56 65 6c 6f 63 |Speed*X |+ (Veloc|
|00001d80| 69 74 79 20 44 6f 74 20 | 59 29 2a 59 3b 0d 0a 09 |ity Dot |Y)*Y;...|
|00001d90| 65 6c 73 65 20 69 66 20 | 28 44 6f 75 62 6c 65 43 |else if |(DoubleC|
|00001da0| 6c 69 63 6b 4d 6f 76 65 | 20 3d 3d 20 44 43 4c 49 |lickMove| == DCLI|
|00001db0| 43 4b 5f 42 61 63 6b 29 | 0d 0a 09 09 56 65 6c 6f |CK_Back)|....Velo|
|00001dc0| 63 69 74 79 20 3d 20 2d | 31 2e 35 2a 47 72 6f 75 |city = -|1.5*Grou|
|00001dd0| 6e 64 53 70 65 65 64 2a | 58 20 2b 20 28 56 65 6c |ndSpeed*|X + (Vel|
|00001de0| 6f 63 69 74 79 20 44 6f | 74 20 59 29 2a 59 3b 0d |ocity Do|t Y)*Y;.|
|00001df0| 0a 09 65 6c 73 65 20 69 | 66 20 28 44 6f 75 62 6c |..else i|f (Doubl|
|00001e00| 65 43 6c 69 63 6b 4d 6f | 76 65 20 3d 3d 20 44 43 |eClickMo|ve == DC|
|00001e10| 4c 49 43 4b 5f 4c 65 66 | 74 29 0d 0a 09 09 56 65 |LICK_Lef|t)....Ve|
|00001e20| 6c 6f 63 69 74 79 20 3d | 20 31 2e 35 2a 47 72 6f |locity =| 1.5*Gro|
|00001e30| 75 6e 64 53 70 65 65 64 | 2a 59 20 2b 20 28 56 65 |undSpeed|*Y + (Ve|
|00001e40| 6c 6f 63 69 74 79 20 44 | 6f 74 20 58 29 2a 58 3b |locity D|ot X)*X;|
|00001e50| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 44 6f 75 62 |...else |if (Doub|
|00001e60| 6c 65 43 6c 69 63 6b 4d | 6f 76 65 20 3d 3d 20 44 |leClickM|ove == D|
|00001e70| 43 4c 49 43 4b 5f 52 69 | 67 68 74 29 0d 0a 09 09 |CLICK_Ri|ght)....|
|00001e80| 56 65 6c 6f 63 69 74 79 | 20 3d 20 2d 31 2e 35 2a |Velocity| = -1.5*|
|00001e90| 47 72 6f 75 6e 64 53 70 | 65 65 64 2a 59 20 2b 20 |GroundSp|eed*Y + |
|00001ea0| 28 56 65 6c 6f 63 69 74 | 79 20 44 6f 74 20 58 29 |(Velocit|y Dot X)|
|00001eb0| 2a 58 3b 0d 0a 0d 0a 09 | 56 65 6c 6f 63 69 74 79 |*X;.....|Velocity|
|00001ec0| 2e 5a 20 3d 20 32 31 30 | 3b 0d 0a 09 43 75 72 72 |.Z = 210|;...Curr|
|00001ed0| 65 6e 74 44 69 72 20 3d | 20 44 6f 75 62 6c 65 43 |entDir =| DoubleC|
|00001ee0| 6c 69 63 6b 4d 6f 76 65 | 3b 0d 0a 09 53 65 74 50 |lickMove|;...SetP|
|00001ef0| 68 79 73 69 63 73 28 50 | 48 59 53 5f 46 61 6c 6c |hysics(P|HYS_Fall|
|00001f00| 69 6e 67 29 3b 0d 0a 09 | 72 65 74 75 72 6e 20 74 |ing);...|return t|
|00001f10| 72 75 65 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |rue;..}.|...simul|
|00001f20| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 50 6f |ated fun|ction Po|
|00001f30| 73 74 42 65 67 69 6e 50 | 6c 61 79 28 29 0d 0a 7b |stBeginP|lay()..{|
|00001f40| 0d 0a 09 53 75 70 65 72 | 2e 50 6f 73 74 42 65 67 |...Super|.PostBeg|
|00001f50| 69 6e 50 6c 61 79 28 29 | 3b 0d 0a 0d 0a 09 69 66 |inPlay()|;.....if|
|00001f60| 20 28 20 4c 65 76 65 6c | 2e 62 53 74 61 72 74 75 | ( Level|.bStartu|
|00001f70| 70 20 26 26 20 21 62 4e | 6f 44 65 66 61 75 6c 74 |p && !bN|oDefault|
|00001f80| 49 6e 76 65 6e 74 6f 72 | 79 20 29 0d 0a 09 09 41 |Inventor|y )....A|
|00001f90| 64 64 44 65 66 61 75 6c | 74 49 6e 76 65 6e 74 6f |ddDefaul|tInvento|
|00001fa0| 72 79 28 29 3b 0d 0a 7d | 0d 0a 0d 0a 73 69 6d 75 |ry();..}|....simu|
|00001fb0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 50 |lated fu|nction P|
|00001fc0| 6f 73 74 4e 65 74 42 65 | 67 69 6e 50 6c 61 79 28 |ostNetBe|ginPlay(|
|00001fd0| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 53 71 75 |)..{...l|ocal Squ|
|00001fe0| 61 64 41 49 20 53 3b 0d | 0a 09 6c 6f 63 61 6c 20 |adAI S;.|..local |
|00001ff0| 52 6f 73 74 65 72 45 6e | 74 72 79 20 52 3b 0d 0a |RosterEn|try R;..|
|00002000| 0d 0a 09 53 75 70 65 72 | 2e 50 6f 73 74 4e 65 74 |...Super|.PostNet|
|00002010| 42 65 67 69 6e 50 6c 61 | 79 28 29 3b 0d 0a 09 69 |BeginPla|y();...i|
|00002020| 66 20 28 20 28 52 6f 6c | 65 20 3d 3d 20 52 4f 4c |f ( (Rol|e == ROL|
|00002030| 45 5f 41 75 74 68 6f 72 | 69 74 79 29 20 26 26 20 |E_Author|ity) && |
|00002040| 4c 65 76 65 6c 2e 62 53 | 74 61 72 74 75 70 20 29 |Level.bS|tartup )|
|00002050| 0d 0a 09 7b 0d 0a 09 09 | 69 66 20 28 20 55 6e 72 |...{....|if ( Unr|
|00002060| 65 61 6c 4d 50 47 61 6d | 65 49 6e 66 6f 28 4c 65 |ealMPGam|eInfo(Le|
|00002070| 76 65 6c 2e 47 61 6d 65 | 29 20 3d 3d 20 4e 6f 6e |vel.Game|) == Non|
|00002080| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |e )....{|.....if |
|00002090| 28 20 42 6f 74 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |( Bot(Co|ntroller|
|000020a0| 29 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |) != Non|e ).....|
|000020b0| 7b 0d 0a 09 09 09 09 46 | 6f 72 45 61 63 68 20 44 |{......F|orEach D|
|000020c0| 79 6e 61 6d 69 63 41 63 | 74 6f 72 73 28 63 6c 61 |ynamicAc|tors(cla|
|000020d0| 73 73 27 53 71 75 61 64 | 41 49 27 2c 53 2c 53 71 |ss'Squad|AI',S,Sq|
|000020e0| 75 61 64 4e 61 6d 65 29 | 0d 0a 09 09 09 09 09 62 |uadName)|.......b|
|000020f0| 72 65 61 6b 3b 0d 0a 09 | 09 09 09 69 66 20 28 20 |reak;...|...if ( |
|00002100| 53 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |S == Non|e ).....|
|00002110| 09 09 53 20 3d 20 73 70 | 61 77 6e 28 63 6c 61 73 |..S = sp|awn(clas|
|00002120| 73 27 53 71 75 61 64 41 | 49 27 29 3b 0d 0a 09 09 |s'SquadA|I');....|
|00002130| 09 09 53 2e 54 61 67 20 | 3d 20 53 71 75 61 64 4e |..S.Tag |= SquadN|
|00002140| 61 6d 65 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 62 |ame;....|..if ( b|
|00002150| 49 73 53 71 75 61 64 4c | 65 61 64 65 72 20 7c 7c |IsSquadL|eader |||
|00002160| 20 28 53 2e 53 71 75 61 | 64 4c 65 61 64 65 72 20 | (S.Squa|dLeader |
|00002170| 3d 3d 20 4e 6f 6e 65 29 | 20 29 0d 0a 09 09 09 09 |== None)| )......|
|00002180| 09 53 2e 53 65 74 4c 65 | 61 64 65 72 28 43 6f 6e |.S.SetLe|ader(Con|
|00002190| 74 72 6f 6c 6c 65 72 29 | 3b 0d 0a 09 09 09 09 53 |troller)|;......S|
|000021a0| 2e 41 64 64 42 6f 74 28 | 42 6f 74 28 43 6f 6e 74 |.AddBot(|Bot(Cont|
|000021b0| 72 6f 6c 6c 65 72 29 29 | 3b 0d 0a 09 09 09 7d 0d |roller))|;.....}.|
|000021c0| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |...}....|else....|
|000021d0| 7b 0d 0a 09 09 09 52 20 | 3d 20 47 65 74 50 6c 61 |{.....R |= GetPla|
|000021e0| 63 65 64 52 6f 73 74 65 | 72 28 29 3b 0d 0a 09 09 |cedRoste|r();....|
|000021f0| 09 55 6e 72 65 61 6c 4d | 50 47 61 6d 65 49 6e 66 |.UnrealM|PGameInf|
|00002200| 6f 28 4c 65 76 65 6c 2e | 47 61 6d 65 29 2e 49 6e |o(Level.|Game).In|
|00002210| 69 74 50 6c 61 63 65 64 | 42 6f 74 28 43 6f 6e 74 |itPlaced|Bot(Cont|
|00002220| 72 6f 6c 6c 65 72 2c 52 | 29 3b 0d 0a 09 09 7d 0d |roller,R|);....}.|
|00002230| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |..}..}..|..functi|
|00002240| 6f 6e 20 52 6f 73 74 65 | 72 45 6e 74 72 79 20 47 |on Roste|rEntry G|
|00002250| 65 74 50 6c 61 63 65 64 | 52 6f 73 74 65 72 28 29 |etPlaced|Roster()|
|00002260| 0d 0a 7b 0d 0a 09 72 65 | 74 75 72 6e 20 4e 6f 6e |..{...re|turn Non|
|00002270| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00002280| 6e 20 53 65 74 4d 6f 76 | 65 6d 65 6e 74 50 68 79 |n SetMov|ementPhy|
|00002290| 73 69 63 73 28 29 0d 0a | 7b 0d 0a 09 69 66 20 28 |sics()..|{...if (|
|000022a0| 50 68 79 73 69 63 73 20 | 3d 3d 20 50 48 59 53 5f |Physics |== PHYS_|
|000022b0| 46 61 6c 6c 69 6e 67 29 | 0d 0a 09 09 72 65 74 75 |Falling)|....retu|
|000022c0| 72 6e 3b 0d 0a 09 69 66 | 20 28 20 50 68 79 73 69 |rn;...if| ( Physi|
|000022d0| 63 73 56 6f 6c 75 6d 65 | 2e 62 57 61 74 65 72 56 |csVolume|.bWaterV|
|000022e0| 6f 6c 75 6d 65 20 29 0d | 0a 09 09 53 65 74 50 68 |olume ).|...SetPh|
|000022f0| 79 73 69 63 73 28 50 48 | 59 53 5f 53 77 69 6d 6d |ysics(PH|YS_Swimm|
|00002300| 69 6e 67 29 3b 0d 0a 09 | 65 6c 73 65 0d 0a 09 09 |ing);...|else....|
|00002310| 53 65 74 50 68 79 73 69 | 63 73 28 50 48 59 53 5f |SetPhysi|cs(PHYS_|
|00002320| 57 61 6c 6b 69 6e 67 29 | 3b 0d 0a 7d 0d 0a 0d 0a |Walking)|;..}....|
|00002330| 66 75 6e 63 74 69 6f 6e | 20 54 61 6b 65 44 72 6f |function| TakeDro|
|00002340| 77 6e 69 6e 67 44 61 6d | 61 67 65 28 29 0d 0a 7b |wningDam|age()..{|
|00002350| 0d 0a 09 54 61 6b 65 44 | 61 6d 61 67 65 28 35 2c |...TakeD|amage(5,|
|00002360| 20 4e 6f 6e 65 2c 20 4c | 6f 63 61 74 69 6f 6e 20 | None, L|ocation |
|00002370| 2b 20 43 6f 6c 6c 69 73 | 69 6f 6e 48 65 69 67 68 |+ Collis|ionHeigh|
|00002380| 74 20 2a 20 76 65 63 74 | 28 30 2c 30 2c 30 2e 35 |t * vect|(0,0,0.5|
|00002390| 29 2b 20 30 2e 37 20 2a | 20 43 6f 6c 6c 69 73 69 |)+ 0.7 *| Collisi|
|000023a0| 6f 6e 52 61 64 69 75 73 | 20 2a 20 76 65 63 74 6f |onRadius| * vecto|
|000023b0| 72 28 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 52 6f 74 |r(Contro|ller.Rot|
|000023c0| 61 74 69 6f 6e 29 2c 20 | 76 65 63 74 28 30 2c 30 |ation), |vect(0,0|
|000023d0| 2c 30 29 2c 20 63 6c 61 | 73 73 27 44 72 6f 77 6e |,0), cla|ss'Drown|
|000023e0| 65 64 27 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |ed');..}|....func|
|000023f0| 74 69 6f 6e 20 69 6e 74 | 20 47 65 74 53 70 72 65 |tion int| GetSpre|
|00002400| 65 28 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |e()..{..|.return |
|00002410| 73 70 72 65 65 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |spree;..|}....fun|
|00002420| 63 74 69 6f 6e 20 49 6e | 63 72 65 6d 65 6e 74 53 |ction In|crementS|
|00002430| 70 72 65 65 28 29 0d 0a | 7b 0d 0a 09 73 70 72 65 |pree()..|{...spre|
|00002440| 65 2b 2b 3b 0d 0a 7d 0d | 0a 0d 0a 73 69 6d 75 6c |e++;..}.|...simul|
|00002450| 61 74 65 64 20 66 75 6e | 63 74 69 6f 6e 20 50 6c |ated fun|ction Pl|
|00002460| 61 79 46 6f 6f 74 53 74 | 65 70 28 69 6e 74 20 53 |ayFootSt|ep(int S|
|00002470| 69 64 65 29 0d 0a 7b 0d | 0a 09 69 66 20 28 20 28 |ide)..{.|..if ( (|
|00002480| 52 6f 6c 65 3d 3d 52 4f | 4c 45 5f 53 69 6d 75 6c |Role==RO|LE_Simul|
|00002490| 61 74 65 64 50 72 6f 78 | 79 29 20 7c 7c 20 28 50 |atedProx|y) || (P|
|000024a0| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|000024b0| 43 6f 6e 74 72 6f 6c 6c | 65 72 29 20 3d 3d 20 4e |Controll|er) == N|
|000024c0| 6f 6e 65 29 20 7c 7c 20 | 50 6c 61 79 65 72 43 6f |one) || |PlayerCo|
|000024d0| 6e 74 72 6f 6c 6c 65 72 | 28 43 6f 6e 74 72 6f 6c |ntroller|(Control|
|000024e0| 6c 65 72 29 2e 62 42 65 | 68 69 6e 64 56 69 65 77 |ler).bBe|hindView|
|000024f0| 20 29 0d 0a 09 7b 0d 0a | 09 09 46 6f 6f 74 53 74 | )...{..|..FootSt|
|00002500| 65 70 70 69 6e 67 28 53 | 69 64 65 29 3b 0d 0a 09 |epping(S|ide);...|
|00002510| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 7d 0d |.return;|...}..}.|
|00002520| 0a 0d 0a 2f 2f 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |...//---|--------|
|00002530| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002540| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002550| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002570| 2d 2d 0d 0a 0d 0a 2f 2a | 0d 0a 50 61 77 6e 20 77 |--..../*|..Pawn w|
|00002580| 61 73 20 6b 69 6c 6c 65 | 64 20 2d 20 64 65 74 61 |as kille|d - deta|
|00002590| 63 68 20 61 6e 79 20 63 | 6f 6e 74 72 6f 6c 6c 65 |ch any c|ontrolle|
|000025a0| 72 2c 20 61 6e 64 20 64 | 69 65 0d 0a 2a 2f 0d 0a |r, and d|ie..*/..|
|000025b0| 73 69 6d 75 6c 61 74 65 | 64 20 66 75 6e 63 74 69 |simulate|d functi|
|000025c0| 6f 6e 20 43 68 75 6e 6b | 55 70 28 20 52 6f 74 61 |on Chunk|Up( Rota|
|000025d0| 74 6f 72 20 48 69 74 52 | 6f 74 61 74 69 6f 6e 2c |tor HitR|otation,|
|000025e0| 20 66 6c 6f 61 74 20 43 | 68 75 6e 6b 50 65 72 74 | float C|hunkPert|
|000025f0| 65 72 62 61 74 69 6f 6e | 20 29 0d 0a 7b 0d 0a 09 |erbation| )..{...|
|00002600| 69 66 20 28 20 28 4c 65 | 76 65 6c 2e 4e 65 74 4d |if ( (Le|vel.NetM|
|00002610| 6f 64 65 20 21 3d 20 4e | 4d 5f 43 6c 69 65 6e 74 |ode != N|M_Client|
|00002620| 29 20 26 26 20 28 43 6f | 6e 74 72 6f 6c 6c 65 72 |) && (Co|ntroller|
|00002630| 20 21 3d 20 4e 6f 6e 65 | 29 20 29 0d 0a 09 7b 0d | != None|) )...{.|
|00002640| 0a 09 09 69 66 20 28 20 | 43 6f 6e 74 72 6f 6c 6c |...if ( |Controll|
|00002650| 65 72 2e 62 49 73 50 6c | 61 79 65 72 20 29 0d 0a |er.bIsPl|ayer )..|
|00002660| 09 09 09 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 50 61 |...Contr|oller.Pa|
|00002670| 77 6e 44 69 65 64 28 73 | 65 6c 66 29 3b 0d 0a 09 |wnDied(s|elf);...|
|00002680| 09 65 6c 73 65 0d 0a 09 | 09 09 43 6f 6e 74 72 6f |.else...|..Contro|
|00002690| 6c 6c 65 72 2e 44 65 73 | 74 72 6f 79 28 29 3b 0d |ller.Des|troy();.|
|000026a0| 0a 09 7d 0d 0a 0d 0a 09 | 62 54 65 61 72 4f 66 66 |..}.....|bTearOff|
|000026b0| 20 3d 20 74 72 75 65 3b | 0d 0a 09 48 69 74 44 61 | = true;|...HitDa|
|000026c0| 6d 61 67 65 54 79 70 65 | 20 3d 20 63 6c 61 73 73 |mageType| = class|
|000026d0| 27 47 69 62 62 65 64 27 | 3b 20 2f 2f 20 6d 61 6b |'Gibbed'|; // mak|
|000026e0| 65 20 73 75 72 65 20 63 | 6c 69 65 6e 74 73 20 67 |e sure c|lients g|
|000026f0| 69 62 20 61 6c 73 6f 0d | 0a 09 69 66 20 28 20 28 |ib also.|..if ( (|
|00002700| 4c 65 76 65 6c 2e 4e 65 | 74 4d 6f 64 65 20 3d 3d |Level.Ne|tMode ==|
|00002710| 20 4e 4d 5f 44 65 64 69 | 63 61 74 65 64 53 65 72 | NM_Dedi|catedSer|
|00002720| 76 65 72 29 20 7c 7c 20 | 28 4c 65 76 65 6c 2e 4e |ver) || |(Level.N|
|00002730| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 4c 69 73 |etMode =|= NM_Lis|
|00002740| 74 65 6e 53 65 72 76 65 | 72 29 20 29 0d 0a 09 09 |tenServe|r) )....|
|00002750| 47 6f 74 6f 53 74 61 74 | 65 28 27 54 69 6d 69 6e |GotoStat|e('Timin|
|00002760| 67 4f 75 74 27 29 3b 0d | 0a 09 69 66 20 28 20 4c |gOut');.|..if ( L|
|00002770| 65 76 65 6c 2e 4e 65 74 | 4d 6f 64 65 20 3d 3d 20 |evel.Net|Mode == |
|00002780| 4e 4d 5f 44 65 64 69 63 | 61 74 65 64 53 65 72 76 |NM_Dedic|atedServ|
|00002790| 65 72 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 3b 0d |er )....|return;.|
|000027a0| 0a 09 69 66 20 28 20 63 | 6c 61 73 73 27 47 61 6d |..if ( c|lass'Gam|
|000027b0| 65 49 6e 66 6f 27 2e 73 | 74 61 74 69 63 2e 55 73 |eInfo'.s|tatic.Us|
|000027c0| 65 4c 6f 77 47 6f 72 65 | 28 29 20 29 0d 0a 09 7b |eLowGore|() )...{|
|000027d0| 0d 0a 09 09 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |....Dest|roy();..|
|000027e0| 09 09 72 65 74 75 72 6e | 3b 0d 0a 09 7d 0d 0a 09 |..return|;...}...|
|000027f0| 53 70 61 77 6e 47 69 62 | 73 28 48 69 74 52 6f 74 |SpawnGib|s(HitRot|
|00002800| 61 74 69 6f 6e 2c 43 68 | 75 6e 6b 50 65 72 74 65 |ation,Ch|unkPerte|
|00002810| 72 62 61 74 69 6f 6e 29 | 3b 0d 0a 0d 0a 09 69 66 |rbation)|;.....if|
|00002820| 20 28 20 4c 65 76 65 6c | 2e 4e 65 74 4d 6f 64 65 | ( Level|.NetMode|
|00002830| 20 21 3d 20 4e 4d 5f 4c | 69 73 74 65 6e 53 65 72 | != NM_L|istenSer|
|00002840| 76 65 72 20 29 0d 0a 09 | 09 44 65 73 74 72 6f 79 |ver )...|.Destroy|
|00002850| 28 29 3b 0d 0a 7d 0d 0a | 0d 0a 2f 2f 20 73 70 61 |();..}..|..// spa|
|00002860| 77 6e 20 67 69 62 73 20 | 28 6c 6f 63 61 6c 2c 20 |wn gibs |(local, |
|00002870| 6e 6f 74 20 72 65 70 6c | 69 63 61 74 65 64 29 0d |not repl|icated).|
|00002880| 0a 73 69 6d 75 6c 61 74 | 65 64 20 66 75 6e 63 74 |.simulat|ed funct|
|00002890| 69 6f 6e 20 53 70 61 77 | 6e 47 69 62 73 28 52 6f |ion Spaw|nGibs(Ro|
|000028a0| 74 61 74 6f 72 20 48 69 | 74 52 6f 74 61 74 69 6f |tator Hi|tRotatio|
|000028b0| 6e 2c 20 66 6c 6f 61 74 | 20 43 68 75 6e 6b 50 65 |n, float| ChunkPe|
|000028c0| 72 74 65 72 62 61 74 69 | 6f 6e 29 3b 0d 0a 0d 0a |rterbati|on);....|
|000028d0| 2f 2a 20 54 69 6d 69 6e | 67 4f 75 74 20 2d 20 77 |/* Timin|gOut - w|
|000028e0| 68 65 72 65 20 67 69 62 | 62 65 64 20 70 61 77 6e |here gib|bed pawn|
|000028f0| 73 20 67 6f 20 74 6f 20 | 64 69 65 20 28 64 65 6c |s go to |die (del|
|00002900| 61 79 20 73 6f 20 74 68 | 65 79 20 63 61 6e 20 67 |ay so th|ey can g|
|00002910| 65 74 20 72 65 70 6c 69 | 63 61 74 65 64 29 0d 0a |et repli|cated)..|
|00002920| 2a 2f 0d 0a 53 74 61 74 | 65 20 54 69 6d 69 6e 67 |*/..Stat|e Timing|
|00002930| 4f 75 74 0d 0a 7b 0d 0a | 69 67 6e 6f 72 65 73 20 |Out..{..|ignores |
|00002940| 42 61 73 65 43 68 61 6e | 67 65 2c 20 4c 61 6e 64 |BaseChan|ge, Land|
|00002950| 65 64 2c 20 41 6e 69 6d | 45 6e 64 2c 20 54 72 69 |ed, Anim|End, Tri|
|00002960| 67 67 65 72 2c 20 42 75 | 6d 70 2c 20 48 69 74 57 |gger, Bu|mp, HitW|
|00002970| 61 6c 6c 2c 20 48 65 61 | 64 56 6f 6c 75 6d 65 43 |all, Hea|dVolumeC|
|00002980| 68 61 6e 67 65 2c 20 50 | 68 79 73 69 63 73 56 6f |hange, P|hysicsVo|
|00002990| 6c 75 6d 65 43 68 61 6e | 67 65 2c 20 46 61 6c 6c |lumeChan|ge, Fall|
|000029a0| 69 6e 67 2c 20 42 72 65 | 61 74 68 54 69 6d 65 72 |ing, Bre|athTimer|
|000029b0| 3b 0d 0a 0d 0a 09 66 75 | 6e 63 74 69 6f 6e 20 54 |;.....fu|nction T|
|000029c0| 61 6b 65 44 61 6d 61 67 | 65 28 20 69 6e 74 20 44 |akeDamag|e( int D|
|000029d0| 61 6d 61 67 65 2c 20 50 | 61 77 6e 20 69 6e 73 74 |amage, P|awn inst|
|000029e0| 69 67 61 74 65 64 42 79 | 2c 20 56 65 63 74 6f 72 |igatedBy|, Vector|
|000029f0| 20 68 69 74 6c 6f 63 61 | 74 69 6f 6e 2c 0d 0a 09 | hitloca|tion,...|
|00002a00| 09 09 09 09 09 09 56 65 | 63 74 6f 72 20 6d 6f 6d |......Ve|ctor mom|
|00002a10| 65 6e 74 75 6d 2c 20 63 | 6c 61 73 73 3c 44 61 6d |entum, c|lass<Dam|
|00002a20| 61 67 65 54 79 70 65 3e | 20 64 61 6d 61 67 65 54 |ageType>| damageT|
|00002a30| 79 70 65 29 0d 0a 09 7b | 0d 0a 09 7d 0d 0a 0d 0a |ype)...{|...}....|
|00002a40| 09 66 75 6e 63 74 69 6f | 6e 20 42 65 67 69 6e 53 |.functio|n BeginS|
|00002a50| 74 61 74 65 28 29 0d 0a | 09 7b 0d 0a 09 09 53 65 |tate()..|.{....Se|
|00002a60| 74 50 68 79 73 69 63 73 | 28 50 48 59 53 5f 4e 6f |tPhysics|(PHYS_No|
|00002a70| 6e 65 29 3b 0d 0a 09 09 | 53 65 74 43 6f 6c 6c 69 |ne);....|SetColli|
|00002a80| 73 69 6f 6e 28 66 61 6c | 73 65 2c 66 61 6c 73 65 |sion(fal|se,false|
|00002a90| 2c 66 61 6c 73 65 29 3b | 0d 0a 09 09 4c 69 66 65 |,false);|....Life|
|00002aa0| 53 70 61 6e 20 3d 20 31 | 2e 30 3b 0d 0a 09 09 69 |Span = 1|.0;....i|
|00002ab0| 66 20 28 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 21 |f ( Cont|roller !|
|00002ac0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 09 09 7b 0d 0a 09 |= None )|....{...|
|00002ad0| 09 09 69 66 20 28 20 43 | 6f 6e 74 72 6f 6c 6c 65 |..if ( C|ontrolle|
|00002ae0| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 29 0d 0a 09 |r.bIsPla|yer )...|
|00002af0| 09 09 09 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 50 61 |...Contr|oller.Pa|
|00002b00| 77 6e 44 69 65 64 28 73 | 65 6c 66 29 3b 0d 0a 09 |wnDied(s|elf);...|
|00002b10| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 43 6f 6e 74 |..else..|....Cont|
|00002b20| 72 6f 6c 6c 65 72 2e 44 | 65 73 74 72 6f 79 28 29 |roller.D|estroy()|
|00002b30| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |;....}..|.}..}...|
|00002b40| 0a 53 74 61 74 65 20 44 | 79 69 6e 67 0d 0a 7b 0d |.State D|ying..{.|
|00002b50| 0a 69 67 6e 6f 72 65 73 | 20 41 6e 69 6d 45 6e 64 |.ignores| AnimEnd|
|00002b60| 2c 20 54 72 69 67 67 65 | 72 2c 20 42 75 6d 70 2c |, Trigge|r, Bump,|
|00002b70| 20 48 69 74 57 61 6c 6c | 2c 20 48 65 61 64 56 6f | HitWall|, HeadVo|
|00002b80| 6c 75 6d 65 43 68 61 6e | 67 65 2c 20 50 68 79 73 |lumeChan|ge, Phys|
|00002b90| 69 63 73 56 6f 6c 75 6d | 65 43 68 61 6e 67 65 2c |icsVolum|eChange,|
|00002ba0| 20 46 61 6c 6c 69 6e 67 | 2c 20 42 72 65 61 74 68 | Falling|, Breath|
|00002bb0| 54 69 6d 65 72 3b 0d 0a | 0d 0a 09 66 75 6e 63 74 |Timer;..|...funct|
|00002bc0| 69 6f 6e 20 4c 61 6e 64 | 65 64 28 76 65 63 74 6f |ion Land|ed(vecto|
|00002bd0| 72 20 48 69 74 4e 6f 72 | 6d 61 6c 29 0d 0a 09 7b |r HitNor|mal)...{|
|00002be0| 0d 0a 09 09 69 66 20 28 | 20 4c 65 76 65 6c 2e 4e |....if (| Level.N|
|00002bf0| 65 74 4d 6f 64 65 20 3d | 3d 20 4e 4d 5f 44 65 64 |etMode =|= NM_Ded|
|00002c00| 69 63 61 74 65 64 53 65 | 72 76 65 72 20 29 0d 0a |icatedSe|rver )..|
|00002c10| 09 09 09 72 65 74 75 72 | 6e 3b 0d 0a 09 09 69 66 |...retur|n;....if|
|00002c20| 20 28 20 53 68 61 64 6f | 77 20 21 3d 20 4e 6f 6e | ( Shado|w != Non|
|00002c30| 65 20 29 0d 0a 09 09 09 | 53 68 61 64 6f 77 2e 44 |e ).....|Shadow.D|
|00002c40| 65 73 74 72 6f 79 28 29 | 3b 0d 0a 09 7d 0d 0a 0d |estroy()|;...}...|
|00002c50| 0a 09 73 69 6e 67 75 6c | 61 72 20 66 75 6e 63 74 |..singul|ar funct|
|00002c60| 69 6f 6e 20 42 61 73 65 | 43 68 61 6e 67 65 28 29 |ion Base|Change()|
|00002c70| 0d 0a 09 7b 0d 0a 09 09 | 53 75 70 65 72 2e 42 61 |...{....|Super.Ba|
|00002c80| 73 65 43 68 61 6e 67 65 | 28 29 3b 0d 0a 09 09 2f |seChange|();..../|
|00002c90| 2f 20 66 69 78 6d 65 20 | 2d 20 77 61 6b 65 20 75 |/ fixme |- wake u|
|00002ca0| 70 20 6b 61 72 6d 61 0d | 0a 09 7d 0d 0a 0d 0a 09 |p karma.|..}.....|
|00002cb0| 66 75 6e 63 74 69 6f 6e | 20 42 65 67 69 6e 53 74 |function| BeginSt|
|00002cc0| 61 74 65 28 29 0d 0a 09 | 7b 0d 0a 09 09 6c 6f 63 |ate()...|{....loc|
|00002cd0| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 09 09 53 |al int i|;......S|
|00002ce0| 65 74 43 6f 6c 6c 69 73 | 69 6f 6e 28 74 72 75 65 |etCollis|ion(true|
|00002cf0| 2c 66 61 6c 73 65 2c 66 | 61 6c 73 65 29 3b 0d 0a |,false,f|alse);..|
|00002d00| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 62 54 65 | |if ( bTe|
|00002d10| 61 72 4f 66 66 20 26 26 | 20 28 4c 65 76 65 6c 2e |arOff &&| (Level.|
|00002d20| 4e 65 74 4d 6f 64 65 20 | 3d 3d 20 4e 4d 5f 44 65 |NetMode |== NM_De|
|00002d30| 64 69 63 61 74 65 64 53 | 65 72 76 65 72 29 20 29 |dicatedS|erver) )|
|00002d40| 0d 0a 09 09 09 4c 69 66 | 65 53 70 61 6e 20 3d 20 |.....Lif|eSpan = |
|00002d50| 31 2e 30 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |1.0;....|else....|
|00002d60| 09 53 65 74 54 69 6d 65 | 72 28 32 2e 30 2c 20 66 |.SetTime|r(2.0, f|
|00002d70| 61 6c 73 65 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |alse);..| |
|00002d80| 53 65 74 50 68 79 73 69 | 63 73 28 50 48 59 53 5f |SetPhysi|cs(PHYS_|
|00002d90| 46 61 6c 6c 69 6e 67 29 | 3b 0d 0a 09 09 62 49 6e |Falling)|;....bIn|
|00002da0| 76 75 6c 6e 65 72 61 62 | 6c 65 42 6f 64 79 20 3d |vulnerab|leBody =|
|00002db0| 20 74 72 75 65 3b 0d 0a | 09 09 69 66 20 28 20 43 | true;..|..if ( C|
|00002dc0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 21 3d 20 4e 6f 6e |ontrolle|r != Non|
|00002dd0| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 20 |e )....{|.....if |
|00002de0| 28 20 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 62 49 73 |( Contro|ller.bIs|
|00002df0| 50 6c 61 79 65 72 20 29 | 0d 0a 09 09 09 09 43 6f |Player )|......Co|
|00002e00| 6e 74 72 6f 6c 6c 65 72 | 2e 50 61 77 6e 44 69 65 |ntroller|.PawnDie|
|00002e10| 64 28 73 65 6c 66 29 3b | 0d 0a 09 09 09 65 6c 73 |d(self);|.....els|
|00002e20| 65 0d 0a 09 09 09 09 43 | 6f 6e 74 72 6f 6c 6c 65 |e......C|ontrolle|
|00002e30| 72 2e 44 65 73 74 72 6f | 79 28 29 3b 0d 0a 09 09 |r.Destro|y();....|
|00002e40| 7d 0d 0a 0d 0a 09 09 66 | 6f 72 20 28 69 20 3d 20 |}......f|or (i = |
|00002e50| 30 3b 20 69 20 3c 20 41 | 74 74 61 63 68 65 64 2e |0; i < A|ttached.|
|00002e60| 6c 65 6e 67 74 68 3b 20 | 69 2b 2b 29 0d 0a 09 09 |length; |i++)....|
|00002e70| 09 69 66 20 28 41 74 74 | 61 63 68 65 64 5b 69 5d |.if (Att|ached[i]|
|00002e80| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 09 09 41 | != None|)......A|
|00002e90| 74 74 61 63 68 65 64 5b | 69 5d 2e 50 61 77 6e 42 |ttached[|i].PawnB|
|00002ea0| 61 73 65 44 69 65 64 28 | 29 3b 0d 0a 09 7d 0d 0a |aseDied(|);...}..|
|00002eb0| 7d 0d 0a 0d 0a 00 | |}..... | |
+--------+-------------------------+-------------------------+--------+--------+