home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 2 (DVD) / XENIADVD2.iso / Demo / Devastation / data1.cab / App_Executables / System / DDebug.u / Player_DWeapTool_ScriptText.TextBuffer < prev    next >
Unknown  |  2003-02-28  |  7.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 4f 72 2f 2f 20 24 57 6f |........|Or// $Wo|
|00000010| 72 6b 66 69 6c 65 3a 3a | 20 44 57 65 61 70 54 6f |rkfile::| DWeapTo|
|00000020| 6f 6c 2e 75 63 20 20 20 | 20 20 20 20 20 20 20 20 |ol.uc | |
|00000030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000040| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000050| 20 20 20 20 20 20 24 2f | 2f 0d 0a 2f 2f 20 24 52 | $/|/..// $R|
|00000060| 65 76 69 73 69 6f 6e 3a | 3a 20 31 39 20 20 20 20 |evision:|: 19 |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000a0| 20 20 20 20 20 20 20 24 | 2f 2f 0d 0a 2f 2f 20 20 | $|//..// |
|000000b0| 20 20 20 24 44 61 74 65 | 3a 3a 20 32 2f 30 37 2f | $Date|:: 2/07/|
|000000c0| 30 33 20 31 32 3a 30 33 | 61 20 20 20 20 20 20 20 |03 12:03|a |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000f0| 20 20 20 20 20 20 20 20 | 24 2f 2f 0d 0a 2f 2f 20 | |$//..// |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000140| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 0d 0a 2f 2f | | //..//|
|00000150| 20 28 63 29 20 32 30 30 | 30 2d 32 30 30 31 20 44 | (c) 200|0-2001 D|
|00000160| 69 67 69 74 61 6c 6f 20 | 53 74 75 64 69 6f 73 2c |igitalo |Studios,|
|00000170| 20 49 6e 63 2e 20 20 20 | 20 20 20 20 20 20 20 20 | Inc. | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2f 0d 0a 2f | | //../|
|000001a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000001b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000001c0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000001d0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000001e0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 0d 0a |////////|//////..|
|000001f0| 0d 0a 63 6c 61 73 73 20 | 44 57 65 61 70 54 6f 6f |..class |DWeapToo|
|00000200| 6c 20 65 78 74 65 6e 64 | 73 20 41 63 74 6f 72 3b |l extend|s Actor;|
|00000210| 0d 0a 0d 0a 76 61 72 20 | 44 50 6c 61 79 65 72 50 |....var |DPlayerP|
|00000220| 61 77 6e 20 50 6c 61 79 | 65 72 3b 0d 0a 76 61 72 |awn Play|er;..var|
|00000230| 20 44 57 65 61 70 54 6f | 6f 6c 49 48 20 48 61 6e | DWeapTo|olIH Han|
|00000240| 64 6c 65 72 3b 0d 0a 76 | 61 72 20 44 57 65 61 70 |dler;..v|ar DWeap|
|00000250| 54 6f 6f 6c 57 6e 64 20 | 57 69 6e 64 6f 77 3b 0d |ToolWnd |Window;.|
|00000260| 0a 76 61 72 20 62 6f 6f | 6c 20 62 46 50 4d 6f 64 |.var boo|l bFPMod|
|00000270| 65 2c 20 62 48 65 6c 70 | 2c 20 62 4a 75 73 74 53 |e, bHelp|, bJustS|
|00000280| 61 76 65 64 2c 20 62 4a | 75 73 74 55 6e 64 69 64 |aved, bJ|ustUndid|
|00000290| 2c 20 62 53 68 61 6b 65 | 4f 66 66 4d 6f 64 65 3b |, bShake|OffMode;|
|000002a0| 0d 0a 0d 0a 76 61 72 20 | 69 6e 74 20 57 65 61 70 |....var |int Weap|
|000002b0| 3b 0d 0a 2f 2f 20 74 68 | 69 72 64 20 70 65 72 73 |;..// th|ird pers|
|000002c0| 6f 6e 0d 0a 76 61 72 20 | 69 6e 74 20 45 6d 6f 74 |on..var |int Emot|
|000002d0| 69 6f 6e 3b 0d 0a 0d 0a | 2f 2f 20 73 61 76 65 64 |ion;....|// saved|
|000002e0| 20 76 61 72 73 20 66 6f | 72 20 75 6e 64 6f 0d 0a | vars fo|r undo..|
|000002f0| 76 61 72 20 76 65 63 74 | 6f 72 20 73 76 64 50 6c |var vect|or svdPl|
|00000300| 61 79 65 72 56 69 65 77 | 4f 66 66 73 65 74 2c 20 |ayerView|Offset, |
|00000310| 73 76 64 4c 6f 63 4f 66 | 66 73 65 74 3b 0d 0a 76 |svdLocOf|fset;..v|
|00000320| 61 72 20 72 6f 74 61 74 | 6f 72 20 73 76 64 52 6f |ar rotat|or svdRo|
|00000330| 74 4f 66 66 73 65 74 3b | 0d 0a 76 61 72 20 66 6c |tOffset;|..var fl|
|00000340| 6f 61 74 20 73 76 64 57 | 65 61 70 6f 6e 46 4f 56 |oat svdW|eaponFOV|
|00000350| 2c 20 73 76 64 54 50 53 | 63 61 6c 65 3b 0d 0a 0d |, svdTPS|cale;...|
|00000360| 0a 76 61 72 20 62 6f 6f | 6c 20 62 41 6b 69 6d 62 |.var boo|l bAkimb|
|00000370| 6f 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 53 68 |o;..var |bool bSh|
|00000380| 65 6c 6c 4d 6f 64 65 3b | 0d 0a 0d 0a 76 61 72 20 |ellMode;|....var |
|00000390| 66 6c 6f 61 74 20 53 68 | 65 6c 6c 44 65 6c 61 79 |float Sh|ellDelay|
|000003a0| 43 74 72 3b 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |Ctr;....|function|
|000003b0| 20 54 6f 67 67 6c 65 41 | 6b 69 6d 62 6f 53 68 65 | ToggleA|kimboShe|
|000003c0| 6c 6c 28 29 0d 0a 7b 0d | 0a 09 57 65 61 70 20 3d |ll()..{.|..Weap =|
|000003d0| 20 28 57 65 61 70 3d 3d | 30 29 20 3f 3f 20 31 20 | (Weap==|0) ?? 1 |
|000003e0| 3a 20 30 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |: 0;..}.|...funct|
|000003f0| 69 6f 6e 20 54 69 63 6b | 28 20 66 6c 6f 61 74 20 |ion Tick|( float |
|00000400| 44 65 6c 74 61 20 29 0d | 0a 7b 0d 0a 09 69 66 20 |Delta ).|.{...if |
|00000410| 28 20 62 53 68 65 6c 6c | 4d 6f 64 65 20 29 0d 0a |( bShell|Mode )..|
|00000420| 09 7b 0d 0a 09 09 53 68 | 65 6c 6c 44 65 6c 61 79 |.{....Sh|ellDelay|
|00000430| 43 74 72 20 2b 3d 20 44 | 65 6c 74 61 3b 0d 0a 09 |Ctr += D|elta;...|
|00000440| 09 69 66 20 28 20 53 68 | 65 6c 6c 44 65 6c 61 79 |.if ( Sh|ellDelay|
|00000450| 43 74 72 20 3e 20 30 2e | 31 32 35 20 29 0d 0a 09 |Ctr > 0.|125 )...|
|00000460| 09 7b 0d 0a 09 09 09 69 | 66 20 28 20 50 6c 61 79 |.{.....i|f ( Play|
|00000470| 65 72 3f 20 26 26 20 50 | 6c 61 79 65 72 2e 57 65 |er? && P|layer.We|
|00000480| 61 70 6f 6e 3f 20 29 0d | 0a 09 09 09 09 50 6c 61 |apon? ).|.....Pla|
|00000490| 79 65 72 2e 57 65 61 70 | 6f 6e 2e 45 6a 65 63 74 |yer.Weap|on.Eject|
|000004a0| 53 68 65 6c 6c 43 61 73 | 65 28 20 74 72 75 65 20 |ShellCas|e( true |
|000004b0| 29 3b 0d 0a 09 09 09 53 | 68 65 6c 6c 44 65 6c 61 |);.....S|hellDela|
|000004c0| 79 43 74 72 20 3d 20 30 | 3b 0d 0a 09 09 7d 0d 0a |yCtr = 0|;....}..|
|000004d0| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|000004e0| 6e 20 53 65 74 53 68 65 | 6c 6c 53 63 61 6c 65 28 |n SetShe|llScale(|
|000004f0| 20 69 6e 74 20 66 70 2c | 20 66 6c 6f 61 74 20 53 | int fp,| float S|
|00000500| 63 61 6c 65 44 65 6c 74 | 61 20 29 0d 0a 7b 0d 0a |caleDelt|a )..{..|
|00000510| 09 50 6c 61 79 65 72 2e | 57 65 61 70 6f 6e 2e 53 |.Player.|Weapon.S|
|00000520| 65 74 53 68 65 6c 6c 53 | 63 61 6c 65 28 20 66 70 |etShellS|cale( fp|
|00000530| 2c 20 53 63 61 6c 65 44 | 65 6c 74 61 20 29 3b 0d |, ScaleD|elta );.|
|00000540| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4e |.}....fu|nction N|
|00000550| 65 78 74 53 68 65 6c 6c | 28 29 0d 0a 7b 0d 0a 09 |extShell|()..{...|
|00000560| 50 6c 61 79 65 72 2e 57 | 65 61 70 6f 6e 2e 53 65 |Player.W|eapon.Se|
|00000570| 74 53 68 65 6c 6c 54 79 | 70 65 28 20 4e 6f 6e 65 |tShellTy|pe( None|
|00000580| 20 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 | );..}..|..functi|
|00000590| 6f 6e 20 54 6f 67 67 6c | 65 53 68 65 6c 6c 28 29 |on Toggl|eShell()|
|000005a0| 0d 0a 7b 0d 0a 09 50 6c | 61 79 65 72 2e 57 65 61 |..{...Pl|ayer.Wea|
|000005b0| 70 6f 6e 2e 53 65 74 55 | 73 65 53 68 65 6c 6c 28 |pon.SetU|seShell(|
|000005c0| 20 54 72 75 65 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 | True );|..}....f|
|000005d0| 75 6e 63 74 69 6f 6e 20 | 54 6f 67 67 6c 65 44 69 |unction |ToggleDi|
|000005e0| 72 65 63 74 69 6f 6e 28 | 29 0d 0a 7b 0d 0a 09 50 |rection(|)..{...P|
|000005f0| 6c 61 79 65 72 2e 57 65 | 61 70 6f 6e 2e 53 65 74 |layer.We|apon.Set|
|00000600| 53 68 65 6c 6c 44 69 72 | 65 63 74 69 6f 6e 28 20 |ShellDir|ection( |
|00000610| 57 65 61 70 2c 20 30 20 | 29 3b 0d 0a 7d 0d 0a 0d |Weap, 0 |);..}...|
|00000620| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 50 6f 73 74 |...funct|ion Post|
|00000630| 42 65 67 69 6e 50 6c 61 | 79 28 29 0d 0a 7b 0d 0a |BeginPla|y()..{..|
|00000640| 20 20 20 20 6c 6f 63 61 | 6c 20 44 43 6f 6e 73 6f | loca|l DConso|
|00000650| 6c 65 20 43 6f 6e 73 6f | 6c 65 3b 0d 0a 20 20 20 |le Conso|le;.. |
|00000660| 20 6c 6f 63 61 6c 20 44 | 57 65 61 70 54 6f 6f 6c | local D|WeapTool|
|00000670| 20 4f 74 68 65 72 3b 0d | 0a 0d 0a 20 20 20 20 50 | Other;.|... P|
|00000680| 6c 61 79 65 72 20 3d 20 | 44 50 6c 61 79 65 72 50 |layer = |DPlayerP|
|00000690| 61 77 6e 28 4f 77 6e 65 | 72 29 3b 0d 0a 20 20 20 |awn(Owne|r);.. |
|000006a0| 20 69 66 20 28 20 50 6c | 61 79 65 72 20 3d 3d 20 | if ( Pl|ayer == |
|000006b0| 4e 6f 6e 65 20 29 0d 0a | 20 20 20 20 20 20 20 20 |None )..| |
|000006c0| 72 65 74 75 72 6e 3b 0d | 0a 0d 0a 20 20 20 20 66 |return;.|... f|
|000006d0| 6f 72 65 61 63 68 20 41 | 6c 6c 41 63 74 6f 72 73 |oreach A|llActors|
|000006e0| 28 20 63 6c 61 73 73 27 | 44 57 65 61 70 54 6f 6f |( class'|DWeapToo|
|000006f0| 6c 27 2c 20 4f 74 68 65 | 72 20 29 0d 0a 20 20 20 |l', Othe|r ).. |
|00000700| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 | {.. | if (|
|00000710| 20 4f 74 68 65 72 20 21 | 3d 20 73 65 6c 66 20 29 | Other !|= self )|
|00000720| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 4f 74 |.. | Ot|
|00000730| 68 65 72 2e 47 6f 41 77 | 61 79 28 29 3b 0d 0a 20 |her.GoAw|ay();.. |
|00000740| 20 20 20 7d 0d 0a 0d 0a | 20 20 20 20 2f 2f 20 67 | }....| // g|
|00000750| 69 76 65 20 70 6c 61 79 | 65 72 20 61 6c 6c 20 74 |ive play|er all t|
|00000760| 68 65 20 77 65 61 70 6f | 6e 73 0d 0a 20 20 20 20 |he weapo|ns.. |
|00000770| 69 66 20 28 20 50 6c 61 | 79 65 72 2e 57 65 61 70 |if ( Pla|yer.Weap|
|00000780| 6f 6e 20 3d 3d 20 4e 6f | 6e 65 20 29 0d 0a 20 20 |on == No|ne ).. |
|00000790| 20 20 20 20 20 20 50 6c | 61 79 65 72 2e 43 6f 6e | Pl|ayer.Con|
|000007a0| 73 6f 6c 65 43 6f 6d 6d | 61 6e 64 28 20 22 44 6f |soleComm|and( "Do|
|000007b0| 70 65 66 69 73 68 22 20 | 29 3b 0d 0a 0d 0a 20 20 |pefish" |);.... |
|000007c0| 20 20 43 6f 6e 73 6f 6c | 65 20 3d 20 44 43 6f 6e | Consol|e = DCon|
|000007d0| 73 6f 6c 65 28 20 50 6c | 61 79 65 72 2e 50 6c 61 |sole( Pl|ayer.Pla|
|000007e0| 79 65 72 2e 43 6f 6e 73 | 6f 6c 65 20 29 3b 0d 0a |yer.Cons|ole );..|
|000007f0| 20 20 20 20 69 66 20 28 | 20 43 6f 6e 73 6f 6c 65 | if (| Console|
|00000800| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 20 20 20 20 | != None| ).. |
|00000810| 7b 0d 0a 20 20 20 20 20 | 20 20 20 48 61 6e 64 6c |{.. | Handl|
|00000820| 65 72 20 3d 20 44 57 65 | 61 70 54 6f 6f 6c 49 48 |er = DWe|apToolIH|
|00000830| 28 20 43 6f 6e 73 6f 6c | 65 2e 41 74 74 61 63 68 |( Consol|e.Attach|
|00000840| 48 61 6e 64 6c 65 72 28 | 20 22 44 44 65 62 75 67 |Handler(| "DDebug|
|00000850| 2e 44 57 65 61 70 54 6f | 6f 6c 49 48 22 2c 20 50 |.DWeapTo|olIH", P|
|00000860| 6c 61 79 65 72 20 29 20 | 29 3b 0d 0a 20 20 20 20 |layer ) |);.. |
|00000870| 20 20 20 20 48 61 6e 64 | 6c 65 72 2e 54 6f 6f 6c | Hand|ler.Tool|
|00000880| 20 3d 20 73 65 6c 66 3b | 0d 0a 20 20 20 20 7d 0d | = self;|.. }.|
|00000890| 0a 0d 0a 09 69 66 28 20 | 50 6c 61 79 65 72 2e 77 |....if( |Player.w|
|000008a0| 48 55 44 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 20 |HUD != N|one ).. |
|000008b0| 20 20 20 7b 0d 0a 09 09 | 57 69 6e 64 6f 77 20 3d | {....|Window =|
|000008c0| 20 44 57 65 61 70 54 6f | 6f 6c 57 6e 64 28 20 50 | DWeapTo|olWnd( P|
|000008d0| 6c 61 79 65 72 2e 77 48 | 55 44 2e 41 64 64 48 55 |layer.wH|UD.AddHU|
|000008e0| 44 45 6c 65 6d 65 6e 74 | 28 20 22 44 44 65 62 75 |DElement|( "DDebu|
|000008f0| 67 2e 44 57 65 61 70 54 | 6f 6f 6c 57 6e 64 22 20 |g.DWeapT|oolWnd" |
|00000900| 29 20 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 57 69 |) );.. | Wi|
|00000910| 6e 64 6f 77 2e 54 6f 6f | 6c 20 3d 20 73 65 6c 66 |ndow.Too|l = self|
|00000920| 3b 0d 0a 20 20 20 20 7d | 0d 0a 0d 0a 20 20 20 20 |;.. }|.... |
|00000930| 62 46 50 4d 6f 64 65 20 | 3d 20 74 72 75 65 3b 0d |bFPMode |= true;.|
|00000940| 0a 0d 0a 20 20 20 20 55 | 70 64 61 74 65 55 6e 64 |... U|pdateUnd|
|00000950| 6f 28 29 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |o();..}.|...funct|
|00000960| 69 6f 6e 20 47 6f 41 77 | 61 79 28 29 0d 0a 7b 0d |ion GoAw|ay()..{.|
|00000970| 0a 20 20 20 20 50 6c 61 | 79 65 72 2e 57 65 61 70 |. Pla|yer.Weap|
|00000980| 6f 6e 2e 53 65 74 4e 6f | 49 64 6c 65 28 46 61 6c |on.SetNo|Idle(Fal|
|00000990| 73 65 29 3b 0d 0a 20 20 | 20 20 44 43 6f 6e 73 6f |se);.. | DConso|
|000009a0| 6c 65 28 50 6c 61 79 65 | 72 2e 50 6c 61 79 65 72 |le(Playe|r.Player|
|000009b0| 2e 43 6f 6e 73 6f 6c 65 | 29 2e 44 65 74 61 63 68 |.Console|).Detach|
|000009c0| 48 61 6e 64 6c 65 72 28 | 20 22 44 44 65 62 75 67 |Handler(| "DDebug|
|000009d0| 2e 44 77 65 61 70 54 6f | 6f 6c 49 48 22 20 29 3b |.DweapTo|olIH" );|
|000009e0| 0d 0a 09 57 69 6e 64 6f | 77 2e 48 69 64 65 57 69 |...Windo|w.HideWi|
|000009f0| 6e 64 6f 77 28 29 3b 0d | 0a 20 20 20 20 57 69 6e |ndow();.|. Win|
|00000a00| 64 6f 77 2e 43 6c 6f 73 | 65 28 29 3b 0d 0a 20 20 |dow.Clos|e();.. |
|00000a10| 20 20 44 65 73 74 72 6f | 79 28 29 3b 0d 0a 7d 0d | Destro|y();..}.|
|00000a20| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 4d 6f 64 69 |...funct|ion Modi|
|00000a30| 66 79 4c 6f 63 61 74 69 | 6f 6e 4f 66 66 73 65 74 |fyLocati|onOffset|
|00000a40| 28 20 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |( float |X, float|
|00000a50| 20 59 2c 20 66 6c 6f 61 | 74 20 5a 20 29 0d 0a 7b | Y, floa|t Z )..{|
|00000a60| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 76 65 63 74 |.. lo|cal vect|
|00000a70| 6f 72 20 4c 6f 63 4f 66 | 66 73 65 74 3b 0d 0a 20 |or LocOf|fset;.. |
|00000a80| 20 20 20 6c 6f 63 61 6c | 20 72 6f 74 61 74 6f 72 | local| rotator|
|00000a90| 20 52 6f 74 4f 66 66 73 | 65 74 3b 0d 0a 09 6c 6f | RotOffs|et;...lo|
|00000aa0| 63 61 6c 20 76 65 63 74 | 6f 72 20 54 65 6d 70 3b |cal vect|or Temp;|
|00000ab0| 0d 0a 09 54 65 6d 70 2e | 58 20 3d 20 58 2f 35 3b |...Temp.|X = X/5;|
|00000ac0| 0d 0a 09 54 65 6d 70 2e | 59 20 3d 20 59 2f 35 3b |...Temp.|Y = Y/5;|
|00000ad0| 0d 0a 09 54 65 6d 70 2e | 5a 20 3d 20 5a 2f 35 3b |...Temp.|Z = Z/5;|
|00000ae0| 0d 0a 20 20 20 20 69 66 | 20 28 20 62 46 50 4d 6f |.. if| ( bFPMo|
|00000af0| 64 65 20 29 0d 0a 20 20 | 20 20 7b 0d 0a 20 20 20 |de ).. | {.. |
|00000b00| 20 20 20 20 20 2f 2f 20 | 66 69 72 73 74 70 65 72 | // |firstper|
|00000b10| 73 6f 6e 20 6f 66 66 73 | 65 74 0d 0a 09 09 69 66 |son offs|et....if|
|00000b20| 20 28 20 62 53 68 65 6c | 6c 4d 6f 64 65 20 29 0d | ( bShel|lMode ).|
|00000b30| 0a 09 09 7b 0d 0a 09 09 | 09 50 6c 61 79 65 72 2e |...{....|.Player.|
|00000b40| 57 65 61 70 6f 6e 2e 4d | 6f 64 69 66 79 53 68 65 |Weapon.M|odifyShe|
|00000b50| 6c 6c 4f 66 66 73 65 74 | 28 20 30 2c 20 57 65 61 |llOffset|( 0, Wea|
|00000b60| 70 2c 20 54 65 6d 70 20 | 29 3b 0d 0a 09 09 7d 0d |p, Temp |);....}.|
|00000b70| 0a 09 09 65 6c 73 65 20 | 69 66 28 20 48 69 67 68 |...else |if( High|
|00000b80| 50 6f 6c 79 28 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 |Poly() )|....{...|
|00000b90| 09 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|00000ba0| 48 69 67 68 50 6f 6c 79 | 56 69 65 77 4f 66 66 73 |HighPoly|ViewOffs|
|00000bb0| 65 74 2e 58 20 2b 3d 20 | 58 2a 31 30 3b 0d 0a 09 |et.X += |X*10;...|
|00000bc0| 09 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|00000bd0| 48 69 67 68 50 6f 6c 79 | 56 69 65 77 4f 66 66 73 |HighPoly|ViewOffs|
|00000be0| 65 74 2e 59 20 2b 3d 20 | 59 2a 31 30 3b 0d 0a 09 |et.Y += |Y*10;...|
|00000bf0| 09 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|00000c00| 48 69 67 68 50 6f 6c 79 | 56 69 65 77 4f 66 66 73 |HighPoly|ViewOffs|
|00000c10| 65 74 2e 5a 20 2b 3d 20 | 5a 2a 31 30 3b 0d 0a 09 |et.Z += |Z*10;...|
|00000c20| 09 7d 0d 0a 09 09 65 6c | 73 65 0d 0a 09 09 7b 0d |.}....el|se....{.|
|00000c30| 0a 09 09 09 50 6c 61 79 | 65 72 2e 57 65 61 70 6f |....Play|er.Weapo|
|00000c40| 6e 2e 50 6c 61 79 65 72 | 56 69 65 77 4f 66 66 73 |n.Player|ViewOffs|
|00000c50| 65 74 2e 58 20 2b 3d 20 | 58 2a 31 30 3b 0d 0a 09 |et.X += |X*10;...|
|00000c60| 09 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|00000c70| 50 6c 61 79 65 72 56 69 | 65 77 4f 66 66 73 65 74 |PlayerVi|ewOffset|
|00000c80| 2e 59 20 2b 3d 20 59 2a | 31 30 3b 0d 0a 09 09 09 |.Y += Y*|10;.....|
|00000c90| 50 6c 61 79 65 72 2e 57 | 65 61 70 6f 6e 2e 50 6c |Player.W|eapon.Pl|
|00000ca0| 61 79 65 72 56 69 65 77 | 4f 66 66 73 65 74 2e 5a |ayerView|Offset.Z|
|00000cb0| 20 2b 3d 20 5a 2a 31 30 | 3b 0d 0a 09 09 7d 0d 0a | += Z*10|;....}..|
|00000cc0| 20 20 20 20 7d 0d 0a 09 | 65 6c 73 65 0d 0a 09 69 | }...|else...i|
|00000cd0| 66 20 28 20 62 53 68 61 | 6b 65 4f 66 66 4d 6f 64 |f ( bSha|keOffMod|
|00000ce0| 65 20 29 0d 0a 09 7b 0d | 0a 09 09 50 6c 61 79 65 |e )...{.|...Playe|
|00000cf0| 72 2e 57 65 61 70 6f 6e | 2e 53 68 61 6b 65 4f 66 |r.Weapon|.ShakeOf|
|00000d00| 66 73 65 74 4d 61 67 2e | 58 20 2b 3d 20 58 3b 0d |fsetMag.|X += X;.|
|00000d10| 0a 09 09 50 6c 61 79 65 | 72 2e 57 65 61 70 6f 6e |...Playe|r.Weapon|
|00000d20| 2e 53 68 61 6b 65 4f 66 | 66 73 65 74 4d 61 67 2e |.ShakeOf|fsetMag.|
|00000d30| 59 20 2b 3d 20 59 3b 0d | 0a 09 09 50 6c 61 79 65 |Y += Y;.|...Playe|
|00000d40| 72 2e 57 65 61 70 6f 6e | 2e 53 68 61 6b 65 4f 66 |r.Weapon|.ShakeOf|
|00000d50| 66 73 65 74 4d 61 67 2e | 5a 20 2b 3d 20 5a 3b 0d |fsetMag.|Z += Z;.|
|00000d60| 0a 09 7d 0d 0a 20 20 20 | 20 65 6c 73 65 0d 0a 20 |..}.. | else.. |
|00000d70| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 2f 2f | {.. | //|
|00000d80| 20 74 68 69 72 64 70 65 | 72 73 6f 6e 20 72 65 6c | thirdpe|rson rel|
|00000d90| 61 74 69 76 65 20 6c 6f | 63 61 74 69 6f 6e 0d 0a |ative lo|cation..|
|00000da0| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 62 53 68 | |if ( bSh|
|00000db0| 65 6c 6c 4d 6f 64 65 20 | 29 0d 0a 09 09 7b 0d 0a |ellMode |)....{..|
|00000dc0| 09 09 09 50 6c 61 79 65 | 72 2e 57 65 61 70 6f 6e |...Playe|r.Weapon|
|00000dd0| 2e 4d 6f 64 69 66 79 53 | 68 65 6c 6c 4f 66 66 73 |.ModifyS|hellOffs|
|00000de0| 65 74 28 20 31 2c 20 57 | 65 61 70 2c 20 54 65 6d |et( 1, W|eap, Tem|
|00000df0| 70 20 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |p );....|}....els|
|00000e00| 65 0d 0a 09 09 7b 0d 0a | 09 09 09 4c 6f 63 4f 66 |e....{..|...LocOf|
|00000e10| 66 73 65 74 20 3d 20 50 | 6c 61 79 65 72 2e 47 65 |fset = P|layer.Ge|
|00000e20| 74 54 50 57 65 61 70 6f | 6e 4c 6f 63 4f 66 66 73 |tTPWeapo|nLocOffs|
|00000e30| 65 74 28 62 41 6b 69 6d | 62 6f 29 3b 0d 0a 20 20 |et(bAkim|bo);.. |
|00000e40| 20 20 20 20 20 20 09 4c | 6f 63 4f 66 66 73 65 74 | .L|ocOffset|
|00000e50| 2e 58 20 2b 3d 20 59 2f | 35 3b 0d 0a 20 20 20 20 |.X += Y/|5;.. |
|00000e60| 20 20 20 20 09 4c 6f 63 | 4f 66 66 73 65 74 2e 59 | .Loc|Offset.Y|
|00000e70| 20 2b 3d 20 5a 2f 35 3b | 0d 0a 20 20 20 20 20 20 | += Z/5;|.. |
|00000e80| 20 20 09 4c 6f 63 4f 66 | 66 73 65 74 2e 5a 20 2b | .LocOf|fset.Z +|
|00000e90| 3d 20 58 2f 35 3b 0d 0a | 20 20 20 20 20 20 20 20 |= X/5;..| |
|00000ea0| 09 52 6f 74 4f 66 66 73 | 65 74 20 3d 20 50 6c 61 |.RotOffs|et = Pla|
|00000eb0| 79 65 72 2e 47 65 74 54 | 50 57 65 61 70 6f 6e 52 |yer.GetT|PWeaponR|
|00000ec0| 6f 74 4f 66 66 73 65 74 | 28 62 41 6b 69 6d 62 6f |otOffset|(bAkimbo|
|00000ed0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 09 50 6c 61 |);.. | .Pla|
|00000ee0| 79 65 72 2e 55 70 64 61 | 74 65 54 50 57 65 61 70 |yer.Upda|teTPWeap|
|00000ef0| 6f 6e 4f 66 66 73 65 74 | 28 20 4c 6f 63 4f 66 66 |onOffset|( LocOff|
|00000f00| 73 65 74 2c 20 52 6f 74 | 4f 66 66 73 65 74 2c 20 |set, Rot|Offset, |
|00000f10| 62 41 6b 69 6d 62 6f 20 | 29 3b 0d 0a 09 09 7d 0d |bAkimbo |);....}.|
|00000f20| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 2f 2f |. }..|.. //|
|00000f30| 55 70 64 61 74 65 55 6e | 64 6f 28 29 3b 0d 0a 7d |UpdateUn|do();..}|
|00000f40| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4d 6f 64 |....func|tion Mod|
|00000f50| 69 66 79 52 6f 74 61 74 | 69 6f 6e 4f 66 66 73 65 |ifyRotat|ionOffse|
|00000f60| 74 28 20 66 6c 6f 61 74 | 20 50 69 74 63 68 2c 20 |t( float| Pitch, |
|00000f70| 66 6c 6f 61 74 20 59 61 | 77 2c 20 66 6c 6f 61 74 |float Ya|w, float|
|00000f80| 20 52 6f 6c 6c 20 29 0d | 0a 7b 0d 0a 20 20 20 20 | Roll ).|.{.. |
|00000f90| 6c 6f 63 61 6c 20 76 65 | 63 74 6f 72 20 4c 6f 63 |local ve|ctor Loc|
|00000fa0| 4f 66 66 73 65 74 3b 0d | 0a 20 20 20 20 6c 6f 63 |Offset;.|. loc|
|00000fb0| 61 6c 20 72 6f 74 61 74 | 6f 72 20 52 6f 74 4f 66 |al rotat|or RotOf|
|00000fc0| 66 73 65 74 3b 0d 0a 0d | 0a 20 20 20 20 69 66 20 |fset;...|. if |
|00000fd0| 28 20 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 20 |( Player|.Weapon |
|00000fe0| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 20 20 20 20 20 |== None |).. |
|00000ff0| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 20 20 | retur|n;.... |
|00001000| 20 20 69 66 20 28 20 62 | 46 50 4d 6f 64 65 20 29 | if ( b|FPMode )|
|00001010| 0d 0a 20 20 20 20 7b 0d | 0a 09 09 52 6f 74 4f 66 |.. {.|...RotOf|
|00001020| 66 73 65 74 20 3d 20 50 | 6c 61 79 65 72 2e 57 65 |fset = P|layer.We|
|00001030| 61 70 6f 6e 2e 47 65 74 | 4d 65 73 68 52 6f 74 4f |apon.Get|MeshRotO|
|00001040| 72 69 67 69 6e 28 29 3b | 0d 0a 09 09 52 6f 74 4f |rigin();|....RotO|
|00001050| 66 66 73 65 74 2e 50 69 | 74 63 68 20 2b 3d 20 50 |ffset.Pi|tch += P|
|00001060| 69 74 63 68 3b 0d 0a 09 | 09 52 6f 74 4f 66 66 73 |itch;...|.RotOffs|
|00001070| 65 74 2e 59 61 77 20 2b | 3d 20 59 61 77 3b 0d 0a |et.Yaw +|= Yaw;..|
|00001080| 09 09 52 6f 74 4f 66 66 | 73 65 74 2e 52 6f 6c 6c |..RotOff|set.Roll|
|00001090| 20 2b 3d 20 52 6f 6c 6c | 3b 0d 0a 09 09 50 6c 61 | += Roll|;....Pla|
|000010a0| 79 65 72 2e 57 65 61 70 | 6f 6e 2e 53 65 74 4d 65 |yer.Weap|on.SetMe|
|000010b0| 73 68 52 6f 74 4f 72 69 | 67 69 6e 28 20 52 6f 74 |shRotOri|gin( Rot|
|000010c0| 4f 66 66 73 65 74 20 29 | 3b 0d 0a 09 09 69 66 28 |Offset )|;....if(|
|000010d0| 20 48 69 67 68 50 6f 6c | 79 28 29 20 29 0d 0a 09 | HighPol|y() )...|
|000010e0| 09 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|000010f0| 48 69 67 68 50 6f 6c 79 | 56 69 65 77 52 6f 74 4f |HighPoly|ViewRotO|
|00001100| 66 66 73 65 74 20 3d 20 | 52 6f 74 4f 66 66 73 65 |ffset = |RotOffse|
|00001110| 74 3b 0d 0a 09 09 65 6c | 73 65 0d 0a 09 09 09 50 |t;....el|se.....P|
|00001120| 6c 61 79 65 72 2e 57 65 | 61 70 6f 6e 2e 50 6c 61 |layer.We|apon.Pla|
|00001130| 79 65 72 56 69 65 77 52 | 6f 74 4f 66 66 73 65 74 |yerViewR|otOffset|
|00001140| 20 3d 20 52 6f 74 4f 66 | 66 73 65 74 3b 0d 0a 20 | = RotOf|fset;.. |
|00001150| 20 20 20 7d 0d 0a 20 20 | 20 20 65 6c 73 65 0d 0a | }.. | else..|
|00001160| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 2f | {.. | /|
|00001170| 2f 20 74 68 69 72 64 70 | 65 72 73 6f 6e 20 72 65 |/ thirdp|erson re|
|00001180| 6c 61 74 69 76 65 20 72 | 6f 74 61 74 69 6f 6e 0d |lative r|otation.|
|00001190| 0a 20 20 20 20 20 20 20 | 20 4c 6f 63 4f 66 66 73 |. | LocOffs|
|000011a0| 65 74 20 3d 20 50 6c 61 | 79 65 72 2e 47 65 74 54 |et = Pla|yer.GetT|
|000011b0| 50 57 65 61 70 6f 6e 4c | 6f 63 4f 66 66 73 65 74 |PWeaponL|ocOffset|
|000011c0| 28 62 41 6b 69 6d 62 6f | 29 3b 0d 0a 20 20 20 20 |(bAkimbo|);.. |
|000011d0| 20 20 20 20 52 6f 74 4f | 66 66 73 65 74 20 3d 20 | RotO|ffset = |
|000011e0| 50 6c 61 79 65 72 2e 47 | 65 74 54 50 57 65 61 70 |Player.G|etTPWeap|
|000011f0| 6f 6e 52 6f 74 4f 66 66 | 73 65 74 28 62 41 6b 69 |onRotOff|set(bAki|
|00001200| 6d 62 6f 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 52 |mbo);.. | R|
|00001210| 6f 74 4f 66 66 73 65 74 | 2e 50 69 74 63 68 20 2b |otOffset|.Pitch +|
|00001220| 3d 20 50 69 74 63 68 20 | 2a 20 32 30 3b 0d 0a 20 |= Pitch |* 20;.. |
|00001230| 20 20 20 20 20 20 20 52 | 6f 74 4f 66 66 73 65 74 | R|otOffset|
|00001240| 2e 59 61 77 20 2b 3d 20 | 59 61 77 20 2a 20 32 30 |.Yaw += |Yaw * 20|
|00001250| 3b 0d 0a 20 20 20 20 20 | 20 20 20 52 6f 74 4f 66 |;.. | RotOf|
|00001260| 66 73 65 74 2e 52 6f 6c | 6c 20 2b 3d 20 52 6f 6c |fset.Rol|l += Rol|
|00001270| 6c 20 2a 20 32 30 3b 0d | 0a 0d 0a 20 20 20 20 20 |l * 20;.|... |
|00001280| 20 20 20 2f 2f 20 6c 65 | 74 20 70 6c 61 79 65 72 | // le|t player|
|00001290| 20 75 70 64 61 74 65 20 | 74 68 69 72 64 70 65 72 | update |thirdper|
|000012a0| 73 6f 6e 20 77 65 61 70 | 6f 6e 0d 0a 20 20 20 20 |son weap|on.. |
|000012b0| 20 20 20 20 50 6c 61 79 | 65 72 2e 55 70 64 61 74 | Play|er.Updat|
|000012c0| 65 54 50 57 65 61 70 6f | 6e 4f 66 66 73 65 74 28 |eTPWeapo|nOffset(|
|000012d0| 20 4c 6f 63 4f 66 66 73 | 65 74 2c 20 52 6f 74 4f | LocOffs|et, RotO|
|000012e0| 66 66 73 65 74 2c 20 62 | 41 6b 69 6d 62 6f 20 29 |ffset, b|Akimbo )|
|000012f0| 3b 0d 0a 20 20 20 20 7d | 0d 0a 0d 0a 20 20 20 20 |;.. }|.... |
|00001300| 2f 2f 55 70 64 61 74 65 | 55 6e 64 6f 28 29 3b 0d |//Update|Undo();.|
|00001310| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 4d |.}....fu|nction M|
|00001320| 6f 64 69 66 79 53 63 61 | 6c 65 28 20 66 6c 6f 61 |odifySca|le( floa|
|00001330| 74 20 61 6d 74 20 29 0d | 0a 7b 0d 0a 20 20 20 20 |t amt ).|.{.. |
|00001340| 69 66 20 28 20 62 46 50 | 4d 6f 64 65 20 29 0d 0a |if ( bFP|Mode )..|
|00001350| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 2f | {.. | /|
|00001360| 2f 20 6d 6f 64 69 66 79 | 20 77 65 61 70 6f 6e 20 |/ modify| weapon |
|00001370| 66 6f 76 0d 0a 20 20 20 | 20 20 20 20 20 50 6c 61 |fov.. | Pla|
|00001380| 79 65 72 2e 57 65 61 70 | 6f 6e 2e 57 65 61 70 6f |yer.Weap|on.Weapo|
|00001390| 6e 46 4f 56 20 3d 20 4d | 61 78 28 20 31 30 2c 20 |nFOV = M|ax( 10, |
|000013a0| 4d 69 6e 28 20 31 35 30 | 2c 20 50 6c 61 79 65 72 |Min( 150|, Player|
|000013b0| 2e 57 65 61 70 6f 6e 2e | 57 65 61 70 6f 6e 46 4f |.Weapon.|WeaponFO|
|000013c0| 56 20 2b 20 61 6d 74 20 | 2a 20 31 30 30 20 29 20 |V + amt |* 100 ) |
|000013d0| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 65 |);.. |}.. e|
|000013e0| 6c 73 65 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |lse.. | {.. |
|000013f0| 20 20 20 20 2f 2f 20 6d | 6f 64 69 66 79 20 74 68 | // m|odify th|
|00001400| 69 72 64 70 65 72 73 6f | 6e 20 73 63 61 6c 65 0d |irdperso|n scale.|
|00001410| 0a 20 20 20 20 20 20 20 | 20 50 6c 61 79 65 72 2e |. | Player.|
|00001420| 55 70 64 61 74 65 54 50 | 57 65 61 70 6f 6e 53 63 |UpdateTP|WeaponSc|
|00001430| 61 6c 65 28 20 50 6c 61 | 79 65 72 2e 57 65 61 70 |ale( Pla|yer.Weap|
|00001440| 6f 6e 2e 54 68 69 72 64 | 50 65 72 73 6f 6e 53 63 |on.Third|PersonSc|
|00001450| 61 6c 65 20 2b 20 28 61 | 6d 74 2f 33 29 20 29 3b |ale + (a|mt/3) );|
|00001460| 0d 0a 20 20 20 20 7d 0d | 0a 0d 0a 20 20 20 20 55 |.. }.|... U|
|00001470| 70 64 61 74 65 55 6e 64 | 6f 28 29 3b 0d 0a 7d 0d |pdateUnd|o();..}.|
|00001480| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 55 70 64 61 |...funct|ion Upda|
|00001490| 74 65 55 6e 64 6f 28 29 | 0d 0a 7b 0d 0a 20 20 20 |teUndo()|..{.. |
|000014a0| 20 73 76 64 50 6c 61 79 | 65 72 56 69 65 77 4f 66 | svdPlay|erViewOf|
|000014b0| 66 73 65 74 20 3d 20 50 | 6c 61 79 65 72 2e 57 65 |fset = P|layer.We|
|000014c0| 61 70 6f 6e 2e 50 6c 61 | 79 65 72 56 69 65 77 4f |apon.Pla|yerViewO|
|000014d0| 66 66 73 65 74 3b 0d 0a | 20 20 20 20 73 76 64 4c |ffset;..| svdL|
|000014e0| 6f 63 4f 66 66 73 65 74 | 20 3d 20 50 6c 61 79 65 |ocOffset| = Playe|
|000014f0| 72 2e 47 65 74 54 50 57 | 65 61 70 6f 6e 4c 6f 63 |r.GetTPW|eaponLoc|
|00001500| 4f 66 66 73 65 74 28 62 | 41 6b 69 6d 62 6f 29 3b |Offset(b|Akimbo);|
|00001510| 0d 0a 20 20 20 20 73 76 | 64 52 6f 74 4f 66 66 73 |.. sv|dRotOffs|
|00001520| 65 74 20 3d 20 50 6c 61 | 79 65 72 2e 47 65 74 54 |et = Pla|yer.GetT|
|00001530| 50 57 65 61 70 6f 6e 52 | 6f 74 4f 66 66 73 65 74 |PWeaponR|otOffset|
|00001540| 28 62 41 6b 69 6d 62 6f | 29 3b 0d 0a 20 20 20 20 |(bAkimbo|);.. |
|00001550| 73 76 64 57 65 61 70 6f | 6e 46 4f 56 20 3d 20 50 |svdWeapo|nFOV = P|
|00001560| 6c 61 79 65 72 2e 57 65 | 61 70 6f 6e 2e 57 65 61 |layer.We|apon.Wea|
|00001570| 70 6f 6e 46 4f 56 3b 0d | 0a 20 20 20 20 73 76 64 |ponFOV;.|. svd|
|00001580| 54 50 53 63 61 6c 65 20 | 3d 20 50 6c 61 79 65 72 |TPScale |= Player|
|00001590| 2e 57 65 61 70 6f 6e 2e | 54 68 69 72 64 50 65 72 |.Weapon.|ThirdPer|
|000015a0| 73 6f 6e 53 63 61 6c 65 | 3b 0d 0a 7d 0d 0a 0d 0a |sonScale|;..}....|
|000015b0| 66 75 6e 63 74 69 6f 6e | 20 55 6e 64 6f 28 29 0d |function| Undo().|
|000015c0| 0a 7b 0d 0a 20 20 20 20 | 50 6c 61 79 65 72 2e 57 |.{.. |Player.W|
|000015d0| 65 61 70 6f 6e 2e 50 6c | 61 79 65 72 56 69 65 77 |eapon.Pl|ayerView|
|000015e0| 4f 66 66 73 65 74 20 3d | 20 73 76 64 50 6c 61 79 |Offset =| svdPlay|
|000015f0| 65 72 56 69 65 77 4f 66 | 66 73 65 74 3b 0d 0a 20 |erViewOf|fset;.. |
|00001600| 20 20 20 50 6c 61 79 65 | 72 2e 55 70 64 61 74 65 | Playe|r.Update|
|00001610| 54 50 57 65 61 70 6f 6e | 4f 66 66 73 65 74 28 20 |TPWeapon|Offset( |
|00001620| 73 76 64 4c 6f 63 4f 66 | 66 73 65 74 2c 20 73 76 |svdLocOf|fset, sv|
|00001630| 64 52 6f 74 4f 66 66 73 | 65 74 2c 20 62 41 6b 69 |dRotOffs|et, bAki|
|00001640| 6d 62 6f 20 29 3b 0d 0a | 20 20 20 20 50 6c 61 79 |mbo );..| Play|
|00001650| 65 72 2e 57 65 61 70 6f | 6e 2e 57 65 61 70 6f 6e |er.Weapo|n.Weapon|
|00001660| 46 4f 56 20 3d 20 73 76 | 64 57 65 61 70 6f 6e 46 |FOV = sv|dWeaponF|
|00001670| 4f 56 3b 0d 0a 20 20 20 | 20 50 6c 61 79 65 72 2e |OV;.. | Player.|
|00001680| 57 65 61 70 6f 6e 2e 54 | 68 69 72 64 50 65 72 73 |Weapon.T|hirdPers|
|00001690| 6f 6e 53 63 61 6c 65 20 | 3d 20 73 76 64 54 50 53 |onScale |= svdTPS|
|000016a0| 63 61 6c 65 3b 0d 0a 0d | 0a 20 20 20 20 62 4a 75 |cale;...|. bJu|
|000016b0| 73 74 55 6e 64 69 64 20 | 3d 20 74 72 75 65 3b 0d |stUndid |= true;.|
|000016c0| 0a 20 20 20 20 53 65 74 | 54 69 6d 65 72 28 20 30 |. Set|Timer( 0|
|000016d0| 2e 34 2c 20 66 61 6c 73 | 65 20 29 3b 0d 0a 7d 0d |.4, fals|e );..}.|
|000016e0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 53 61 76 65 |...funct|ion Save|
|000016f0| 57 65 61 70 43 6f 6e 66 | 69 67 28 29 0d 0a 7b 0d |WeapConf|ig()..{.|
|00001700| 0a 09 50 6c 61 79 65 72 | 2e 57 65 61 70 6f 6e 2e |..Player|.Weapon.|
|00001710| 48 69 67 68 50 6f 6c 79 | 56 69 65 77 4f 66 66 73 |HighPoly|ViewOffs|
|00001720| 65 74 20 2f 3d 20 31 30 | 30 3b 0d 0a 09 50 6c 61 |et /= 10|0;...Pla|
|00001730| 79 65 72 2e 57 65 61 70 | 6f 6e 2e 50 6c 61 79 65 |yer.Weap|on.Playe|
|00001740| 72 56 69 65 77 4f 66 66 | 73 65 74 20 2f 3d 20 31 |rViewOff|set /= 1|
|00001750| 30 30 3b 0d 0a 0d 0a 09 | 50 6c 61 79 65 72 2e 57 |00;.....|Player.W|
|00001760| 65 61 70 6f 6e 2e 50 72 | 65 53 61 76 65 43 6f 6e |eapon.Pr|eSaveCon|
|00001770| 66 69 67 28 29 3b 0d 0a | 09 50 6c 61 79 65 72 2e |fig();..|.Player.|
|00001780| 57 65 61 70 6f 6e 2e 53 | 61 76 65 43 6f 6e 66 69 |Weapon.S|aveConfi|
|00001790| 67 28 29 3b 0d 0a 09 50 | 6c 61 79 65 72 2e 57 65 |g();...P|layer.We|
|000017a0| 61 70 6f 6e 2e 50 6f 73 | 74 53 61 76 65 43 6f 6e |apon.Pos|tSaveCon|
|000017b0| 66 69 67 28 29 3b 0d 0a | 09 50 6c 61 79 65 72 2e |fig();..|.Player.|
|000017c0| 43 6c 69 65 6e 74 4d 65 | 73 73 61 67 65 28 20 22 |ClientMe|ssage( "|
|000017d0| 57 65 61 70 6f 6e 20 70 | 72 6f 70 65 72 74 69 65 |Weapon p|ropertie|
|000017e0| 73 20 73 61 76 65 64 22 | 20 29 3b 0d 0a 0d 0a 09 |s saved"| );.....|
|000017f0| 50 6c 61 79 65 72 2e 57 | 65 61 70 6f 6e 2e 48 69 |Player.W|eapon.Hi|
|00001800| 67 68 50 6f 6c 79 56 69 | 65 77 4f 66 66 73 65 74 |ghPolyVi|ewOffset|
|00001810| 20 2a 3d 20 31 30 30 3b | 0d 0a 09 50 6c 61 79 65 | *= 100;|...Playe|
|00001820| 72 2e 57 65 61 70 6f 6e | 2e 50 6c 61 79 65 72 56 |r.Weapon|.PlayerV|
|00001830| 69 65 77 4f 66 66 73 65 | 74 20 2a 3d 20 31 30 30 |iewOffse|t *= 100|
|00001840| 3b 0d 0a 0d 0a 20 20 20 | 20 50 6c 61 79 65 72 2e |;.... | Player.|
|00001850| 43 68 61 72 61 63 74 65 | 72 2e 44 65 66 61 75 6c |Characte|r.Defaul|
|00001860| 74 2e 53 6b 65 6c 65 74 | 6f 6e 2e 73 74 61 74 69 |t.Skelet|on.stati|
|00001870| 63 2e 53 65 74 4f 66 66 | 73 65 74 49 6e 66 6f 28 |c.SetOff|setInfo(|
|00001880| 20 50 6c 61 79 65 72 2e | 57 65 61 70 6f 6e 2c 20 | Player.|Weapon, |
|00001890| 63 42 4f 4e 45 5f 52 5f | 48 61 6e 64 5f 49 31 2c |cBONE_R_|Hand_I1,|
|000018a0| 20 50 6c 61 79 65 72 2e | 47 65 74 54 50 57 65 61 | Player.|GetTPWea|
|000018b0| 70 6f 6e 4c 6f 63 4f 66 | 66 73 65 74 28 66 61 6c |ponLocOf|fset(fal|
|000018c0| 73 65 29 2c 20 50 6c 61 | 79 65 72 2e 47 65 74 54 |se), Pla|yer.GetT|
|000018d0| 50 57 65 61 70 6f 6e 52 | 6f 74 4f 66 66 73 65 74 |PWeaponR|otOffset|
|000018e0| 28 66 61 6c 73 65 29 2c | 20 74 72 75 65 2c 20 66 |(false),| true, f|
|000018f0| 61 6c 73 65 20 29 3b 0d | 0a 09 69 66 20 28 20 50 |alse );.|..if ( P|
|00001900| 6c 61 79 65 72 2e 57 65 | 61 70 6f 6e 2e 47 65 74 |layer.We|apon.Get|
|00001910| 43 6f 75 6e 74 28 29 20 | 3e 20 31 20 29 0d 0a 09 |Count() |> 1 )...|
|00001920| 09 50 6c 61 79 65 72 2e | 43 68 61 72 61 63 74 65 |.Player.|Characte|
|00001930| 72 2e 44 65 66 61 75 6c | 74 2e 53 6b 65 6c 65 74 |r.Defaul|t.Skelet|
|00001940| 6f 6e 2e 73 74 61 74 69 | 63 2e 53 65 74 4f 66 66 |on.stati|c.SetOff|
|00001950| 73 65 74 49 6e 66 6f 28 | 20 50 6c 61 79 65 72 2e |setInfo(| Player.|
|00001960| 57 65 61 70 6f 6e 2c 20 | 63 42 4f 4e 45 5f 4c 5f |Weapon, |cBONE_L_|
|00001970| 48 61 6e 64 5f 49 31 2c | 20 50 6c 61 79 65 72 2e |Hand_I1,| Player.|
|00001980| 47 65 74 54 50 57 65 61 | 70 6f 6e 4c 6f 63 4f 66 |GetTPWea|ponLocOf|
|00001990| 66 73 65 74 28 74 72 75 | 65 29 2c 20 50 6c 61 79 |fset(tru|e), Play|
|000019a0| 65 72 2e 47 65 74 54 50 | 57 65 61 70 6f 6e 52 6f |er.GetTP|WeaponRo|
|000019b0| 74 4f 66 66 73 65 74 28 | 74 72 75 65 29 2c 20 74 |tOffset(|true), t|
|000019c0| 72 75 65 2c 20 74 72 75 | 65 20 29 3b 0d 0a 0d 0a |rue, tru|e );....|
|000019d0| 20 20 20 20 55 70 64 61 | 74 65 55 6e 64 6f 28 29 | Upda|teUndo()|
|000019e0| 3b 0d 0a 20 20 20 20 62 | 4a 75 73 74 53 61 76 65 |;.. b|JustSave|
|000019f0| 64 20 3d 20 74 72 75 65 | 3b 0d 0a 20 20 20 20 53 |d = true|;.. S|
|00001a00| 65 74 54 69 6d 65 72 28 | 20 30 2e 34 2c 20 66 61 |etTimer(| 0.4, fa|
|00001a10| 6c 73 65 20 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |lse );..|}....fun|
|00001a20| 63 74 69 6f 6e 20 54 69 | 6d 65 72 28 29 0d 0a 7b |ction Ti|mer()..{|
|00001a30| 0d 0a 20 20 20 20 62 4a | 75 73 74 53 61 76 65 64 |.. bJ|ustSaved|
|00001a40| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 20 20 20 20 62 | = false|;.. b|
|00001a50| 4a 75 73 74 55 6e 64 69 | 64 20 3d 20 66 61 6c 73 |JustUndi|d = fals|
|00001a60| 65 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |e;..}...|.functio|
|00001a70| 6e 20 43 79 63 6c 65 45 | 6d 6f 74 69 6f 6e 28 29 |n CycleE|motion()|
|00001a80| 0d 0a 7b 0d 0a 20 09 45 | 6d 6f 74 69 6f 6e 2b 2b |..{.. .E|motion++|
|00001a90| 3b 0d 0a 09 69 66 28 20 | 45 6d 6f 74 69 6f 6e 20 |;...if( |Emotion |
|00001aa0| 3e 20 7a 41 57 41 52 45 | 5f 41 69 6d 20 29 0d 0a |> zAWARE|_Aim )..|
|00001ab0| 09 09 45 6d 6f 74 69 6f | 6e 20 3d 20 7a 41 57 41 |..Emotio|n = zAWA|
|00001ac0| 52 45 5f 52 65 6c 61 78 | 3b 0d 0a 09 50 6c 61 79 |RE_Relax|;...Play|
|00001ad0| 65 72 2e 53 65 74 45 6d | 6f 74 69 6f 6e 28 20 45 |er.SetEm|otion( E|
|00001ae0| 6d 6f 74 69 6f 6e 20 29 | 3b 0d 0a 7d 0d 0a 0d 0a |motion )|;..}....|
|00001af0| 66 75 6e 63 74 69 6f 6e | 20 53 77 69 74 63 68 4d |function| SwitchM|
|00001b00| 6f 64 65 28 29 0d 0a 7b | 0d 0a 20 20 20 20 69 66 |ode()..{|.. if|
|00001b10| 20 28 20 62 46 50 4d 6f | 64 65 20 29 0d 0a 20 20 | ( bFPMo|de ).. |
|00001b20| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 2f 2f 20 | {.. | // |
|00001b30| 67 6f 74 6f 20 74 68 69 | 72 64 20 70 65 72 73 6f |goto thi|rd perso|
|00001b40| 6e 0d 0a 09 09 50 6c 61 | 79 65 72 2e 50 75 73 68 |n....Pla|yer.Push|
|00001b50| 53 74 61 74 65 28 27 46 | 72 65 65 43 61 6d 4d 6f |State('F|reeCamMo|
|00001b60| 64 65 27 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 50 |de');.. | P|
|00001b70| 6c 61 79 65 72 2e 43 6c | 69 65 6e 74 4d 65 73 73 |layer.Cl|ientMess|
|00001b80| 61 67 65 28 20 22 4e 6f | 77 20 69 6e 20 74 68 69 |age( "No|w in thi|
|00001b90| 72 64 20 70 65 72 73 6f | 6e 20 6d 6f 64 65 22 20 |rd perso|n mode" |
|00001ba0| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 20 20 20 20 65 |);.. |}.. e|
|00001bb0| 6c 73 65 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |lse.. | {.. |
|00001bc0| 20 20 20 20 2f 2f 20 67 | 6f 74 6f 20 66 69 72 73 | // g|oto firs|
|00001bd0| 74 20 70 65 72 73 6f 6e | 0d 0a 20 20 20 20 20 20 |t person|.. |
|00001be0| 20 20 50 6c 61 79 65 72 | 2e 50 6f 70 53 74 61 74 | Player|.PopStat|
|00001bf0| 65 28 29 3b 0d 0a 09 09 | 50 6c 61 79 65 72 2e 43 |e();....|Player.C|
|00001c00| 6c 69 65 6e 74 4d 65 73 | 73 61 67 65 28 20 22 4e |lientMes|sage( "N|
|00001c10| 6f 77 20 69 6e 20 66 69 | 72 73 74 20 70 65 72 73 |ow in fi|rst pers|
|00001c20| 6f 6e 20 6d 6f 64 65 22 | 20 29 3b 0d 0a 20 20 20 |on mode"| );.. |
|00001c30| 20 7d 0d 0a 0d 0a 20 20 | 20 20 62 46 50 4d 6f 64 | }.... | bFPMod|
|00001c40| 65 20 3d 20 21 62 46 50 | 4d 6f 64 65 3b 0d 0a 7d |e = !bFP|Mode;..}|
|00001c50| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00001c60| 6c 20 48 69 67 68 50 6f | 6c 79 28 29 0d 0a 7b 0d |l HighPo|ly()..{.|
|00001c70| 0a 09 72 65 74 75 72 6e | 20 50 6c 61 79 65 72 2e |..return| Player.|
|00001c80| 62 48 69 67 68 50 6f 6c | 79 57 65 61 70 6f 6e 73 |bHighPol|yWeapons|
|00001c90| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+