home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 2 (DVD) / XENIADVD2.iso / Demo / Devastation / data1.cab / App_Executables / System / DDebug.u / Player_DWeapToolIH_ScriptText.TextBuffer < prev    next >
Unknown  |  2003-02-28  |  7.6 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 | 46 7a 2f 2f 2f 2f 2f 2f |........|Fz//////|
|00000010| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000020| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000030| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000040| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000050| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 0d 0a 2f 2f 20 20 20 |////////|/..// |
|00000060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|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 20 | 2f 2f 0d 0a 2f 2f 20 24 | |//..// $|
|000000b0| 57 6f 72 6b 66 69 6c 65 | 3a 3a 20 44 57 65 61 70 |Workfile|:: DWeap|
|000000c0| 54 6f 6f 6c 49 48 2e 75 | 63 20 20 20 20 20 20 20 |ToolIH.u|c |
|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| 24 52 65 76 69 73 69 6f | 6e 3a 3a 20 31 37 20 20 |$Revisio|n:: 17 |
|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 24 2f 2f 0d 0a 2f 2f | | $//..//|
|00000150| 20 20 20 20 20 24 44 61 | 74 65 3a 3a 20 32 2f 30 | $Da|te:: 2/0|
|00000160| 37 2f 30 33 20 31 32 3a | 30 33 61 20 20 20 20 20 |7/03 12:|03a |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|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 24 2f 2f 0d 0a | | $//..|
|000001a0| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |// | |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2f 0d | | //.|
|000001f0| 0a 2f 2f 20 28 63 29 20 | 32 30 30 30 2d 32 30 30 |.// (c) |2000-200|
|00000200| 31 20 44 69 67 69 74 61 | 6c 6f 20 53 74 75 64 69 |1 Digita|lo Studi|
|00000210| 6f 73 2c 20 49 6e 63 2e | 20 20 20 20 20 20 20 20 |os, Inc.| |
|00000220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f | | //|
|00000240| 0d 0a 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |..//////|////////|
|00000250| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000260| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000270| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000280| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000290| 2f 0d 0a 63 6c 61 73 73 | 20 44 57 65 61 70 54 6f |/..class| DWeapTo|
|000002a0| 6f 6c 49 48 20 65 78 74 | 65 6e 64 73 20 44 49 6e |olIH ext|ends DIn|
|000002b0| 70 75 74 48 61 6e 64 6c | 65 72 3b 0d 0a 0d 0a 76 |putHandl|er;....v|
|000002c0| 61 72 20 44 57 65 61 70 | 54 6f 6f 6c 20 54 6f 6f |ar DWeap|Tool Too|
|000002d0| 6c 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 43 74 |l;..var |bool bCt|
|000002e0| 72 6c 2c 20 62 41 6c 74 | 2c 20 62 53 68 69 66 74 |rl, bAlt|, bShift|
|000002f0| 3b 0d 0a 76 61 72 20 62 | 6f 6f 6c 20 62 50 6c 61 |;..var b|ool bPla|
|00000300| 79 65 72 43 6f 6e 74 72 | 6f 6c 3b 20 2f 2f 20 53 |yerContr|ol; // S|
|00000310| 77 69 74 63 68 65 73 20 | 63 6f 6e 74 72 6f 6c 20 |witches |control |
|00000320| 74 6f 20 70 6c 61 79 65 | 72 20 77 68 65 6e 20 74 |to playe|r when t|
|00000330| 72 75 65 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 62 4c |rue..var| bool bL|
|00000340| 65 66 74 4d 6f 75 73 65 | 2c 20 62 52 69 67 68 74 |eftMouse|, bRight|
|00000350| 4d 6f 75 73 65 3b 0d 0a | 0d 0a 66 75 6e 63 74 69 |Mouse;..|..functi|
|00000360| 6f 6e 20 62 6f 6f 6c 20 | 4b 65 79 45 76 65 6e 74 |on bool |KeyEvent|
|00000370| 28 20 45 49 6e 70 75 74 | 4b 65 79 20 4b 65 79 2c |( EInput|Key Key,|
|00000380| 20 45 49 6e 70 75 74 41 | 63 74 69 6f 6e 20 41 63 | EInputA|ction Ac|
|00000390| 74 69 6f 6e 2c 20 66 6c | 6f 61 74 20 66 44 65 6c |tion, fl|oat fDel|
|000003a0| 74 61 20 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ta )..{.|..local |
|000003b0| 49 6e 76 65 6e 74 6f 72 | 79 20 49 6e 76 3b 0d 0a |Inventor|y Inv;..|
|000003c0| 0d 0a 20 20 20 20 2f 2f | 20 6c 65 74 20 74 68 65 |.. //| let the|
|000003d0| 20 63 61 6d 65 72 61 20 | 6b 65 79 73 20 66 6c 6f | camera |keys flo|
|000003e0| 77 20 72 69 67 68 74 20 | 6f 6e 20 74 68 72 6f 75 |w right |on throu|
|000003f0| 67 68 0d 0a 20 20 20 20 | 73 77 69 74 63 68 20 28 |gh.. |switch (|
|00000400| 20 4b 65 79 20 29 0d 0a | 20 20 20 20 7b 0d 0a 20 | Key )..| {.. |
|00000410| 20 20 20 20 20 20 20 63 | 61 73 65 20 49 4b 5f 4c | c|ase IK_L|
|00000420| 45 46 54 3a 0d 0a 20 20 | 20 20 20 20 20 20 63 61 |EFT:.. | ca|
|00000430| 73 65 20 49 4b 5f 52 49 | 47 48 54 3a 0d 0a 20 20 |se IK_RI|GHT:.. |
|00000440| 20 20 20 20 20 20 63 61 | 73 65 20 49 4b 5f 55 50 | ca|se IK_UP|
|00000450| 3a 0d 0a 20 20 20 20 20 | 20 20 20 63 61 73 65 20 |:.. | case |
|00000460| 49 4b 5f 44 4f 57 4e 3a | 0d 0a 20 20 20 20 20 20 |IK_DOWN:|.. |
|00000470| 20 20 63 61 73 65 20 49 | 4b 5f 47 52 45 59 50 4c | case I|K_GREYPL|
|00000480| 55 53 3a 0d 0a 20 20 20 | 20 20 20 20 20 63 61 73 |US:.. | cas|
|00000490| 65 20 49 4b 5f 47 52 45 | 59 4d 49 4e 55 53 3a 0d |e IK_GRE|YMINUS:.|
|000004a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 72 65 74 |. | ret|
|000004b0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 20 20 20 20 |urn fals|e;.. |
|000004c0| 7d 0d 0a 0d 0a 20 20 20 | 20 2f 2f 20 70 61 72 73 |}.... | // pars|
|000004d0| 65 20 74 68 65 20 6b 65 | 79 20 61 6e 64 20 74 61 |e the ke|y and ta|
|000004e0| 6b 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 61 |ke appro|priate a|
|000004f0| 63 74 69 6f 6e 0d 0a 09 | 69 66 20 28 20 41 63 74 |ction...|if ( Act|
|00000500| 69 6f 6e 20 3d 3d 20 49 | 53 54 5f 50 72 65 73 73 |ion == I|ST_Press|
|00000510| 20 29 0d 0a 09 7b 0d 0a | 09 09 73 77 69 74 63 68 | )...{..|..switch|
|00000520| 28 20 4b 65 79 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |( Key ).|...{....|
|00000530| 09 2f 2f 20 74 6f 67 67 | 6c 65 20 68 65 6c 70 0d |.// togg|le help.|
|00000540| 0a 09 09 09 63 61 73 65 | 20 49 4b 5f 48 3a 0d 0a |....case| IK_H:..|
|00000550| 09 09 09 09 54 6f 6f 6c | 2e 62 48 65 6c 70 20 3d |....Tool|.bHelp =|
|00000560| 20 21 54 6f 6f 6c 2e 62 | 48 65 6c 70 3b 0d 0a 09 | !Tool.b|Help;...|
|00000570| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00000580| 0a 0d 0a 09 09 09 2f 2f | 20 74 6f 67 67 6c 65 20 |......//| toggle |
|00000590| 68 69 67 68 20 70 6f 6c | 79 0d 0a 09 09 09 63 61 |high pol|y.....ca|
|000005a0| 73 65 20 49 4b 5f 50 3a | 0d 0a 09 09 09 09 54 6f |se IK_P:|......To|
|000005b0| 6f 6c 2e 50 6c 61 79 65 | 72 2e 62 48 69 67 68 50 |ol.Playe|r.bHighP|
|000005c0| 6f 6c 79 57 65 61 70 6f | 6e 73 20 3d 20 21 54 6f |olyWeapo|ns = !To|
|000005d0| 6f 6c 2e 50 6c 61 79 65 | 72 2e 62 48 69 67 68 50 |ol.Playe|r.bHighP|
|000005e0| 6f 6c 79 57 65 61 70 6f | 6e 73 3b 0d 0a 09 09 09 |olyWeapo|ns;.....|
|000005f0| 09 66 6f 72 20 28 20 49 | 6e 76 20 3d 20 47 65 74 |.for ( I|nv = Get|
|00000600| 50 6c 61 79 65 72 28 29 | 2e 49 6e 76 65 6e 74 6f |Player()|.Invento|
|00000610| 72 79 3b 20 49 6e 76 3f | 3b 20 49 6e 76 20 3d 20 |ry; Inv?|; Inv = |
|00000620| 49 6e 76 2e 49 6e 76 65 | 6e 74 6f 72 79 20 29 0d |Inv.Inve|ntory ).|
|00000630| 0a 09 09 09 09 09 49 6e | 76 2e 47 69 76 65 6e 4c |......In|v.GivenL|
|00000640| 6f 63 61 6c 57 65 61 70 | 6f 6e 28 29 3b 0d 0a 09 |ocalWeap|on();...|
|00000650| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00000660| 0a 0d 0a 09 09 09 63 61 | 73 65 20 49 4b 5f 47 3a |......ca|se IK_G:|
|00000670| 0d 0a 09 09 09 09 54 6f | 6f 6c 2e 57 69 6e 64 6f |......To|ol.Windo|
|00000680| 77 2e 62 47 72 69 64 20 | 3d 20 21 54 6f 6f 6c 2e |w.bGrid |= !Tool.|
|00000690| 57 69 6e 64 6f 77 2e 62 | 47 72 69 64 3b 0d 0a 09 |Window.b|Grid;...|
|000006a0| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|000006b0| 0a 0d 0a 09 09 09 63 61 | 73 65 20 49 4b 5f 4c 65 |......ca|se IK_Le|
|000006c0| 66 74 42 72 61 63 6b 65 | 74 3a 0d 0a 09 09 09 09 |ftBracke|t:......|
|000006d0| 54 6f 6f 6c 2e 57 69 6e | 64 6f 77 2e 47 72 69 64 |Tool.Win|dow.Grid|
|000006e0| 58 20 3d 20 46 4d 61 78 | 28 20 34 2c 20 54 6f 6f |X = FMax|( 4, Too|
|000006f0| 6c 2e 57 69 6e 64 6f 77 | 2e 47 72 69 64 58 2f 32 |l.Window|.GridX/2|
|00000700| 20 29 3b 0d 0a 09 09 09 | 09 54 6f 6f 6c 2e 57 69 | );.....|.Tool.Wi|
|00000710| 6e 64 6f 77 2e 47 72 69 | 64 59 20 3d 20 46 4d 61 |ndow.Gri|dY = FMa|
|00000720| 78 28 20 34 2c 20 54 6f | 6f 6c 2e 57 69 6e 64 6f |x( 4, To|ol.Windo|
|00000730| 77 2e 47 72 69 64 59 2f | 32 20 29 3b 0d 0a 09 09 |w.GridY/|2 );....|
|00000740| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00000750| 0d 0a 09 09 09 63 61 73 | 65 20 49 4b 5f 52 69 67 |.....cas|e IK_Rig|
|00000760| 68 74 42 72 61 63 6b 65 | 74 3a 0d 0a 09 09 09 09 |htBracke|t:......|
|00000770| 54 6f 6f 6c 2e 57 69 6e | 64 6f 77 2e 47 72 69 64 |Tool.Win|dow.Grid|
|00000780| 58 20 3d 20 46 4d 69 6e | 28 20 31 32 38 2c 20 54 |X = FMin|( 128, T|
|00000790| 6f 6f 6c 2e 57 69 6e 64 | 6f 77 2e 47 72 69 64 58 |ool.Wind|ow.GridX|
|000007a0| 2a 32 20 29 3b 0d 0a 09 | 09 09 09 54 6f 6f 6c 2e |*2 );...|...Tool.|
|000007b0| 57 69 6e 64 6f 77 2e 47 | 72 69 64 59 20 3d 20 46 |Window.G|ridY = F|
|000007c0| 4d 69 6e 28 20 31 32 38 | 2c 20 54 6f 6f 6c 2e 57 |Min( 128|, Tool.W|
|000007d0| 69 6e 64 6f 77 2e 47 72 | 69 64 59 2a 32 20 29 3b |indow.Gr|idY*2 );|
|000007e0| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|000007f0| 65 3b 0d 0a 0d 0a 09 09 | 09 63 61 73 65 20 49 4b |e;......|.case IK|
|00000800| 5f 4d 4f 55 53 45 57 48 | 45 45 4c 55 50 3a 0d 0a |_MOUSEWH|EELUP:..|
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 54 6f 6f 6c 2e 4d 6f 64 | 69 66 79 53 63 61 6c 65 |Tool.Mod|ifyScale|
|00000830| 28 20 30 2e 30 33 20 29 | 3b 0d 0a 20 20 20 20 20 |( 0.03 )|;.. |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 | | retur|
|00000850| 6e 20 74 72 75 65 3b 0d | 0a 20 20 20 20 20 20 20 |n true;.|. |
|00000860| 20 20 20 20 20 63 61 73 | 65 20 49 4b 5f 4d 4f 55 | cas|e IK_MOU|
|00000870| 53 45 57 48 45 45 4c 44 | 4f 57 4e 3a 0d 0a 20 20 |SEWHEELD|OWN:.. |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 54 6f | | To|
|00000890| 6f 6c 2e 4d 6f 64 69 66 | 79 53 63 61 6c 65 28 20 |ol.Modif|yScale( |
|000008a0| 2d 30 2e 30 33 20 29 3b | 0d 0a 20 20 20 20 20 20 |-0.03 );|.. |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 72 65 74 75 72 6e | | return|
|000008c0| 20 74 72 75 65 3b 0d 0a | 20 20 20 20 20 20 20 20 | true;..| |
|000008d0| 20 20 20 20 63 61 73 65 | 20 49 4b 5f 53 50 41 43 | case| IK_SPAC|
|000008e0| 45 3a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |E:.. | |
|000008f0| 20 20 20 20 54 6f 6f 6c | 2e 53 61 76 65 57 65 61 | Tool|.SaveWea|
|00000900| 70 43 6f 6e 66 69 67 28 | 29 3b 0d 0a 20 20 20 20 |pConfig(|);.. |
|00000910| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|00000920| 72 6e 20 74 72 75 65 3b | 0d 0a 20 20 20 20 20 20 |rn true;|.. |
|00000930| 20 20 20 20 20 20 63 61 | 73 65 20 49 4b 5f 53 3a | ca|se IK_S:|
|00000940| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000950| 20 20 54 6f 6f 6c 2e 53 | 77 69 74 63 68 4d 6f 64 | Tool.S|witchMod|
|00000960| 65 28 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |e();.. | |
|00000970| 20 20 20 20 20 20 72 65 | 74 75 72 6e 20 74 72 75 | re|turn tru|
|00000980| 65 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e;.. | |
|00000990| 63 61 73 65 20 49 4b 5f | 52 3a 0d 0a 09 09 09 09 |case IK_|R:......|
|000009a0| 54 6f 6f 6c 2e 62 53 68 | 65 6c 6c 4d 6f 64 65 20 |Tool.bSh|ellMode |
|000009b0| 3d 20 21 54 6f 6f 6c 2e | 62 53 68 65 6c 6c 4d 6f |= !Tool.|bShellMo|
|000009c0| 64 65 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |de;.....|.return |
|000009d0| 74 72 75 65 3b 0d 0a 09 | 09 09 63 61 73 65 20 49 |true;...|..case I|
|000009e0| 4b 5f 54 3a 0d 0a 09 09 | 09 09 54 6f 6f 6c 2e 4e |K_T:....|..Tool.N|
|000009f0| 65 78 74 53 68 65 6c 6c | 28 29 3b 0d 0a 09 09 09 |extShell|();.....|
|00000a00| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 09 |.return |true;...|
|00000a10| 09 09 63 61 73 65 20 49 | 4b 5f 59 3a 0d 0a 09 09 |..case I|K_Y:....|
|00000a20| 09 09 54 6f 6f 6c 2e 54 | 6f 67 67 6c 65 53 68 65 |..Tool.T|oggleShe|
|00000a30| 6c 6c 28 29 3b 0d 0a 09 | 09 09 09 72 65 74 75 72 |ll();...|...retur|
|00000a40| 6e 20 74 72 75 65 3b 0d | 0a 09 09 09 63 61 73 65 |n true;.|....case|
|00000a50| 20 49 4b 5f 55 3a 0d 0a | 09 09 09 09 54 6f 6f 6c | IK_U:..|....Tool|
|00000a60| 2e 54 6f 67 67 6c 65 44 | 69 72 65 63 74 69 6f 6e |.ToggleD|irection|
|00000a70| 28 29 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |();.....|.return |
|00000a80| 74 72 75 65 3b 0d 0a 09 | 09 09 63 61 73 65 20 49 |true;...|..case I|
|00000a90| 4b 5f 49 3a 0d 0a 09 09 | 09 09 54 6f 6f 6c 2e 54 |K_I:....|..Tool.T|
|00000aa0| 6f 67 67 6c 65 41 6b 69 | 6d 62 6f 53 68 65 6c 6c |oggleAki|mboShell|
|00000ab0| 28 29 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 |();.....|.return |
|00000ac0| 74 72 75 65 3b 0d 0a 09 | 09 09 63 61 73 65 20 49 |true;...|..case I|
|00000ad0| 4b 5f 5a 3a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |K_Z:.. | |
|00000ae0| 20 20 20 20 20 20 54 6f | 6f 6c 2e 55 6e 64 6f 28 | To|ol.Undo(|
|00000af0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00000b00| 20 20 20 20 72 65 74 75 | 72 6e 20 74 72 75 65 3b | retu|rn true;|
|00000b10| 0d 0a 09 09 09 63 61 73 | 65 20 49 4b 5f 45 3a 0d |.....cas|e IK_E:.|
|00000b20| 0a 09 09 09 09 54 6f 6f | 6c 2e 43 79 63 6c 65 45 |.....Too|l.CycleE|
|00000b30| 6d 6f 74 69 6f 6e 28 29 | 3b 0d 0a 09 09 09 09 72 |motion()|;......r|
|00000b40| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 09 09 09 |eturn tr|ue;.....|
|00000b50| 63 61 73 65 20 49 4b 5f | 41 3a 0d 0a 09 09 09 09 |case IK_|A:......|
|00000b60| 69 66 20 28 20 54 6f 6f | 6c 2e 50 6c 61 79 65 72 |if ( Too|l.Player|
|00000b70| 2e 57 65 61 70 6f 6e 2e | 47 65 74 43 6f 75 6e 74 |.Weapon.|GetCount|
|00000b80| 28 29 20 3e 20 31 20 29 | 0d 0a 09 09 09 09 7b 0d |() > 1 )|......{.|
|00000b90| 0a 09 09 09 09 09 54 6f | 6f 6c 2e 53 61 76 65 57 |......To|ol.SaveW|
|00000ba0| 65 61 70 43 6f 6e 66 69 | 67 28 29 3b 0d 0a 09 09 |eapConfi|g();....|
|00000bb0| 09 09 09 54 6f 6f 6c 2e | 62 41 6b 69 6d 62 6f 20 |...Tool.|bAkimbo |
|00000bc0| 3d 20 21 54 6f 6f 6c 2e | 62 41 6b 69 6d 62 6f 3b |= !Tool.|bAkimbo;|
|00000bd0| 0d 0a 09 09 09 09 09 69 | 66 20 28 20 54 6f 6f 6c |.......i|f ( Tool|
|00000be0| 2e 62 46 50 4d 6f 64 65 | 20 29 0d 0a 09 09 09 09 |.bFPMode| )......|
|00000bf0| 09 09 54 6f 6f 6c 2e 50 | 6c 61 79 65 72 2e 57 65 |..Tool.P|layer.We|
|00000c00| 61 70 6f 6e 2e 46 6f 72 | 63 65 53 77 69 74 63 68 |apon.For|ceSwitch|
|00000c10| 28 2d 31 29 3b 0d 0a 09 | 09 09 09 7d 0d 0a 09 09 |(-1);...|...}....|
|00000c20| 09 09 65 6c 73 65 0d 0a | 09 09 09 09 09 54 6f 6f |..else..|.....Too|
|00000c30| 6c 2e 62 41 6b 69 6d 62 | 6f 20 3d 20 46 41 4c 53 |l.bAkimb|o = FALS|
|00000c40| 45 3b 0d 0a 09 09 09 09 | 62 72 65 61 6b 3b 0d 0a |E;......|break;..|
|00000c50| 09 09 09 63 61 73 65 20 | 49 4b 5f 51 3a 0d 0a 20 |...case |IK_Q:.. |
|00000c60| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|00000c70| 49 4b 5f 45 53 43 41 50 | 45 3a 0d 0a 20 20 20 20 |IK_ESCAP|E:.. |
|00000c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 54 6f 6f 6c | | Tool|
|00000c90| 2e 47 6f 41 77 61 79 28 | 29 3b 0d 0a 20 20 20 20 |.GoAway(|);.. |
|00000ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|00000cb0| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 7d 0d 0a 09 |rn true;|....}...|
|00000cc0| 7d 0d 0a 0d 0a 20 20 20 | 20 69 66 28 20 21 62 50 |}.... | if( !bP|
|00000cd0| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 20 29 0d 0a |layerCon|trol )..|
|00000ce0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 4b 65 79 20 3d |.{....if| ( Key =|
|00000cf0| 3d 20 49 4b 5f 43 54 52 | 4c 20 29 0d 0a 20 20 20 |= IK_CTR|L ).. |
|00000d00| 20 09 7b 0d 0a 20 20 20 | 20 20 20 20 20 09 62 43 | .{.. | .bC|
|00000d10| 74 72 6c 20 3d 20 21 28 | 20 41 63 74 69 6f 6e 20 |trl = !(| Action |
|00000d20| 3d 3d 20 49 53 54 5f 52 | 65 6c 65 61 73 65 20 26 |== IST_R|elease &|
|00000d30| 26 20 62 43 74 72 6c 20 | 29 3b 0d 0a 20 20 20 20 |& bCtrl |);.. |
|00000d40| 20 20 20 20 09 72 65 74 | 75 72 6e 20 74 72 75 65 | .ret|urn true|
|00000d50| 3b 0d 0a 20 20 20 20 09 | 7d 0d 0a 0d 0a 20 20 20 |;.. .|}.... |
|00000d60| 20 09 69 66 20 28 20 4b | 65 79 20 3d 3d 20 49 4b | .if ( K|ey == IK|
|00000d70| 5f 41 4c 54 20 29 0d 0a | 20 20 20 20 09 7b 0d 0a |_ALT )..| .{..|
|00000d80| 20 20 20 20 20 20 20 20 | 09 62 41 6c 74 20 3d 20 | |.bAlt = |
|00000d90| 21 28 20 41 63 74 69 6f | 6e 20 3d 3d 20 49 53 54 |!( Actio|n == IST|
|00000da0| 5f 52 65 6c 65 61 73 65 | 20 26 26 20 62 41 6c 74 |_Release| && bAlt|
|00000db0| 20 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 09 72 65 | );.. | .re|
|00000dc0| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 20 20 20 20 |turn tru|e;.. |
|00000dd0| 09 7d 0d 0a 0d 0a 09 09 | 69 66 28 20 4b 65 79 20 |.}......|if( Key |
|00000de0| 3d 3d 20 49 4b 5f 53 48 | 49 46 54 20 29 0d 0a 09 |== IK_SH|IFT )...|
|00000df0| 09 7b 0d 0a 09 09 09 62 | 53 68 69 66 74 20 3d 20 |.{.....b|Shift = |
|00000e00| 21 28 20 41 63 74 69 6f | 6e 20 3d 3d 20 49 53 54 |!( Actio|n == IST|
|00000e10| 5f 52 65 6c 65 61 73 65 | 20 26 26 20 62 53 68 69 |_Release| && bShi|
|00000e20| 66 74 20 29 3b 0d 0a 09 | 09 09 72 65 74 75 72 6e |ft );...|..return|
|00000e30| 20 74 72 75 65 3b 0d 0a | 09 09 7d 0d 0a 0d 0a 09 | true;..|..}.....|
|00000e40| 09 69 66 28 20 4b 65 79 | 20 3d 3d 20 49 4b 5f 4c |.if( Key| == IK_L|
|00000e50| 65 66 74 4d 6f 75 73 65 | 20 29 0d 0a 09 09 7b 0d |eftMouse| )....{.|
|00000e60| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if |
|00000e70| 28 20 41 63 74 69 6f 6e | 20 3d 3d 20 49 53 54 5f |( Action| == IST_|
|00000e80| 50 72 65 73 73 20 29 0d | 0a 20 20 20 20 20 20 20 |Press ).|. |
|00000e90| 20 20 20 20 20 20 20 20 | 20 54 6f 6f 6c 2e 55 70 | | Tool.Up|
|00000ea0| 64 61 74 65 55 6e 64 6f | 28 29 3b 0d 0a 0d 0a 09 |dateUndo|();.....|
|00000eb0| 09 09 62 4c 65 66 74 4d | 6f 75 73 65 20 3d 20 21 |..bLeftM|ouse = !|
|00000ec0| 28 20 41 63 74 69 6f 6e | 20 3d 3d 20 49 53 54 5f |( Action| == IST_|
|00000ed0| 52 65 6c 65 61 73 65 20 | 26 26 20 62 4c 65 66 74 |Release |&& bLeft|
|00000ee0| 4d 6f 75 73 65 20 29 3b | 0d 0a 09 09 09 72 65 74 |Mouse );|.....ret|
|00000ef0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 09 7d 0d 0a |urn true|;....}..|
|00000f00| 0d 0a 09 09 69 66 28 20 | 4b 65 79 20 3d 3d 20 49 |....if( |Key == I|
|00000f10| 4b 5f 52 69 67 68 74 4d | 6f 75 73 65 20 29 0d 0a |K_RightM|ouse )..|
|00000f20| 09 09 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..{.. | |
|00000f30| 20 69 66 20 28 20 41 63 | 74 69 6f 6e 20 3d 3d 20 | if ( Ac|tion == |
|00000f40| 49 53 54 5f 50 72 65 73 | 73 20 29 0d 0a 20 20 20 |IST_Pres|s ).. |
|00000f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 54 6f 6f | | Too|
|00000f60| 6c 2e 55 70 64 61 74 65 | 55 6e 64 6f 28 29 3b 0d |l.Update|Undo();.|
|00000f70| 0a 0d 0a 09 09 09 62 52 | 69 67 68 74 4d 6f 75 73 |......bR|ightMous|
|00000f80| 65 20 3d 20 21 28 20 41 | 63 74 69 6f 6e 20 3d 3d |e = !( A|ction ==|
|00000f90| 20 49 53 54 5f 52 65 6c | 65 61 73 65 20 26 26 20 | IST_Rel|ease && |
|00000fa0| 62 52 69 67 68 74 4d 6f | 75 73 65 20 29 3b 0d 0a |bRightMo|use );..|
|00000fb0| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00000fc0| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 72 65 74 |...}...}|.....ret|
|00000fd0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 7d 0d 0a 0d |urn fals|e;..}...|
|00000fe0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 50 |.functio|n bool P|
|00000ff0| 72 65 4d 61 70 70 65 64 | 49 6e 70 75 74 28 20 66 |reMapped|Input( f|
|00001000| 6c 6f 61 74 20 44 65 6c | 74 61 54 69 6d 65 20 29 |loat Del|taTime )|
|00001010| 0d 0a 7b 0d 0a 09 69 66 | 20 28 20 62 41 6c 74 20 |..{...if| ( bAlt |
|00001020| 26 26 20 62 43 74 72 6c | 20 29 0d 0a 09 09 72 65 |&& bCtrl| )....re|
|00001030| 74 75 72 6e 20 53 63 61 | 6c 65 28 20 44 65 6c 74 |turn Sca|le( Delt|
|00001040| 61 54 69 6d 65 20 29 3b | 0d 0a 0d 0a 09 69 66 28 |aTime );|.....if(|
|00001050| 20 62 41 6c 74 20 29 0d | 0a 09 09 72 65 74 75 72 | bAlt ).|...retur|
|00001060| 6e 20 52 6f 74 61 74 65 | 28 20 44 65 6c 74 61 54 |n Rotate|( DeltaT|
|00001070| 69 6d 65 20 29 3b 0d 0a | 0d 0a 09 2f 2f 20 44 65 |ime );..|...// De|
|00001080| 66 61 75 6c 74 0d 0a 09 | 72 65 74 75 72 6e 20 54 |fault...|return T|
|00001090| 72 61 6e 73 6c 61 74 65 | 28 20 44 65 6c 74 61 54 |ranslate|( DeltaT|
|000010a0| 69 6d 65 20 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |ime );..|}....fun|
|000010b0| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 63 61 6c 65 |ction bo|ol Scale|
|000010c0| 28 20 66 6c 6f 61 74 20 | 44 65 6c 74 61 54 69 6d |( float |DeltaTim|
|000010d0| 65 20 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 66 |e )..{..|.local f|
|000010e0| 6c 6f 61 74 20 4d 6f 76 | 65 3b 0d 0a 09 4d 6f 76 |loat Mov|e;...Mov|
|000010f0| 65 20 3d 20 35 2e 30 66 | 20 2a 20 44 65 6c 74 61 |e = 5.0f| * Delta|
|00001100| 54 69 6d 65 3b 0d 0a 09 | 69 66 20 28 20 54 6f 6f |Time;...|if ( Too|
|00001110| 6c 2e 62 53 68 65 6c 6c | 4d 6f 64 65 20 26 26 20 |l.bShell|Mode && |
|00001120| 54 6f 6f 6c 2e 50 6c 61 | 79 65 72 2e 61 4d 6f 75 |Tool.Pla|yer.aMou|
|00001130| 73 65 59 20 3c 20 30 20 | 29 0d 0a 09 7b 0d 0a 09 |seY < 0 |)...{...|
|00001140| 09 69 66 20 28 20 54 6f | 6f 6c 2e 62 46 50 4d 6f |.if ( To|ol.bFPMo|
|00001150| 64 65 20 29 0d 0a 09 09 | 09 54 6f 6f 6c 2e 53 65 |de )....|.Tool.Se|
|00001160| 74 53 68 65 6c 6c 53 63 | 61 6c 65 28 20 30 2c 20 |tShellSc|ale( 0, |
|00001170| 4d 6f 76 65 20 29 3b 0d | 0a 09 09 65 6c 73 65 0d |Move );.|...else.|
|00001180| 0a 09 09 09 54 6f 6f 6c | 2e 53 65 74 53 68 65 6c |....Tool|.SetShel|
|00001190| 6c 53 63 61 6c 65 28 20 | 31 2c 20 4d 6f 76 65 20 |lScale( |1, Move |
|000011a0| 29 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 20 69 66 |);...}..|.else if|
|000011b0| 20 28 20 54 6f 6f 6c 2e | 62 53 68 65 6c 6c 4d 6f | ( Tool.|bShellMo|
|000011c0| 64 65 20 26 26 20 54 6f | 6f 6c 2e 50 6c 61 79 65 |de && To|ol.Playe|
|000011d0| 72 2e 61 4d 6f 75 73 65 | 59 20 3e 20 30 20 29 0d |r.aMouse|Y > 0 ).|
|000011e0| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 54 6f 6f 6c |..{....i|f ( Tool|
|000011f0| 2e 62 46 50 4d 6f 64 65 | 20 29 0d 0a 09 09 09 54 |.bFPMode| ).....T|
|00001200| 6f 6f 6c 2e 53 65 74 53 | 68 65 6c 6c 53 63 61 6c |ool.SetS|hellScal|
|00001210| 65 28 20 30 2c 20 2d 4d | 6f 76 65 20 29 3b 0d 0a |e( 0, -M|ove );..|
|00001220| 09 09 65 6c 73 65 0d 0a | 09 09 09 54 6f 6f 6c 2e |..else..|...Tool.|
|00001230| 53 65 74 53 68 65 6c 6c | 53 63 61 6c 65 28 20 31 |SetShell|Scale( 1|
|00001240| 2c 20 2d 4d 6f 76 65 20 | 29 3b 0d 0a 09 7d 09 72 |, -Move |);...}.r|
|00001250| 65 74 75 72 6e 20 74 72 | 75 65 3b 0d 0a 7d 0d 0a |eturn tr|ue;..}..|
|00001260| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00001270| 54 72 61 6e 73 6c 61 74 | 65 28 20 66 6c 6f 61 74 |Translat|e( float|
|00001280| 20 44 65 6c 74 61 54 69 | 6d 65 20 29 0d 0a 7b 0d | DeltaTi|me )..{.|
|00001290| 0a 09 6c 6f 63 61 6c 20 | 66 6c 6f 61 74 20 4d 6f |..local |float Mo|
|000012a0| 76 65 3b 0d 0a 0d 0a 09 | 4d 6f 76 65 20 3d 20 31 |ve;.....|Move = 1|
|000012b0| 32 38 2e 30 66 20 2a 20 | 44 65 6c 74 61 54 69 6d |28.0f * |DeltaTim|
|000012c0| 65 3b 0d 0a 0d 0a 09 69 | 66 28 20 21 62 4c 65 66 |e;.....i|f( !bLef|
|000012d0| 74 4d 6f 75 73 65 20 7c | 7c 20 21 62 52 69 67 68 |tMouse ||| !bRigh|
|000012e0| 74 4d 6f 75 73 65 20 29 | 0d 0a 09 7b 0d 0a 09 09 |tMouse )|...{....|
|000012f0| 69 66 20 28 20 54 6f 6f | 6c 2e 62 46 50 4d 6f 64 |if ( Too|l.bFPMod|
|00001300| 65 20 29 0d 0a 09 09 7b | 0d 0a 09 09 09 69 66 28 |e )....{|.....if(|
|00001310| 20 62 4c 65 66 74 4d 6f | 75 73 65 20 26 26 20 54 | bLeftMo|use && T|
|00001320| 6f 6f 6c 2e 50 6c 61 79 | 65 72 2e 61 4d 6f 75 73 |ool.Play|er.aMous|
|00001330| 65 58 20 3c 20 30 20 29 | 0d 0a 09 09 09 7b 0d 0a |eX < 0 )|.....{..|
|00001340| 09 09 09 09 54 6f 6f 6c | 2e 4d 6f 64 69 66 79 4c |....Tool|.ModifyL|
|00001350| 6f 63 61 74 69 6f 6e 4f | 66 66 73 65 74 28 20 30 |ocationO|ffset( 0|
|00001360| 2c 20 4d 6f 76 65 2c 20 | 30 20 29 3b 0d 0a 09 09 |, Move, |0 );....|
|00001370| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00001380| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 20 69 66 |...}....|.else if|
|00001390| 28 20 62 4c 65 66 74 4d | 6f 75 73 65 20 26 26 20 |( bLeftM|ouse && |
|000013a0| 54 6f 6f 6c 2e 50 6c 61 | 79 65 72 2e 61 4d 6f 75 |Tool.Pla|yer.aMou|
|000013b0| 73 65 58 20 3e 20 30 20 | 29 0d 0a 09 09 09 7b 0d |seX > 0 |).....{.|
|000013c0| 0a 09 09 09 09 54 6f 6f | 6c 2e 4d 6f 64 69 66 79 |.....Too|l.Modify|
|000013d0| 4c 6f 63 61 74 69 6f 6e | 4f 66 66 73 65 74 28 20 |Location|Offset( |
|000013e0| 30 2c 20 2d 4d 6f 76 65 | 2c 20 30 20 29 3b 0d 0a |0, -Move|, 0 );..|
|000013f0| 09 09 09 09 72 65 74 75 | 72 6e 20 74 72 75 65 3b |....retu|rn true;|
|00001400| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 65 6c 73 65 20 |.....}..|...else |
|00001410| 69 66 28 20 62 52 69 67 | 68 74 4d 6f 75 73 65 20 |if( bRig|htMouse |
|00001420| 26 26 20 54 6f 6f 6c 2e | 50 6c 61 79 65 72 2e 61 |&& Tool.|Player.a|
|00001430| 4d 6f 75 73 65 59 20 3c | 20 30 20 29 0d 0a 09 09 |MouseY <| 0 )....|
|00001440| 09 7b 0d 0a 09 09 09 09 | 54 6f 6f 6c 2e 4d 6f 64 |.{......|Tool.Mod|
|00001450| 69 66 79 4c 6f 63 61 74 | 69 6f 6e 4f 66 66 73 65 |ifyLocat|ionOffse|
|00001460| 74 28 20 4d 6f 76 65 2c | 20 30 2c 20 30 20 29 3b |t( Move,| 0, 0 );|
|00001470| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00001480| 65 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 09 65 6c 73 |e;.....}|.....els|
|00001490| 65 20 69 66 28 20 62 52 | 69 67 68 74 4d 6f 75 73 |e if( bR|ightMous|
|000014a0| 65 20 26 26 20 54 6f 6f | 6c 2e 50 6c 61 79 65 72 |e && Too|l.Player|
|000014b0| 2e 61 4d 6f 75 73 65 59 | 20 3e 20 30 20 29 0d 0a |.aMouseY| > 0 )..|
|000014c0| 09 09 09 7b 0d 0a 09 09 | 09 09 54 6f 6f 6c 2e 4d |...{....|..Tool.M|
|000014d0| 6f 64 69 66 79 4c 6f 63 | 61 74 69 6f 6e 4f 66 66 |odifyLoc|ationOff|
|000014e0| 73 65 74 28 20 2d 4d 6f | 76 65 2c 20 30 2c 20 30 |set( -Mo|ve, 0, 0|
|000014f0| 20 29 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 | );.....|.return |
|00001500| 74 72 75 65 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 7d |true;...|..}....}|
|00001510| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 7b 0d 0a 09 |....else|....{...|
|00001520| 09 09 69 66 28 20 62 4c | 65 66 74 4d 6f 75 73 65 |..if( bL|eftMouse|
|00001530| 20 26 26 20 54 6f 6f 6c | 2e 50 6c 61 79 65 72 2e | && Tool|.Player.|
|00001540| 61 4d 6f 75 73 65 59 20 | 3c 20 30 20 29 0d 0a 09 |aMouseY |< 0 )...|
|00001550| 09 09 7b 0d 0a 09 09 09 | 09 54 6f 6f 6c 2e 4d 6f |..{.....|.Tool.Mo|
|00001560| 64 69 66 79 4c 6f 63 61 | 74 69 6f 6e 4f 66 66 73 |difyLoca|tionOffs|
|00001570| 65 74 28 20 30 2c 20 4d | 6f 76 65 2c 20 30 20 29 |et( 0, M|ove, 0 )|
|00001580| 3b 0d 0a 09 09 09 09 72 | 65 74 75 72 6e 20 74 72 |;......r|eturn tr|
|00001590| 75 65 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 09 65 6c |ue;.....|}.....el|
|000015a0| 73 65 20 69 66 28 20 62 | 4c 65 66 74 4d 6f 75 73 |se if( b|LeftMous|
|000015b0| 65 20 26 26 20 54 6f 6f | 6c 2e 50 6c 61 79 65 72 |e && Too|l.Player|
|000015c0| 2e 61 4d 6f 75 73 65 59 | 20 3e 20 30 20 29 0d 0a |.aMouseY| > 0 )..|
|000015d0| 09 09 09 7b 0d 0a 09 09 | 09 09 54 6f 6f 6c 2e 4d |...{....|..Tool.M|
|000015e0| 6f 64 69 66 79 4c 6f 63 | 61 74 69 6f 6e 4f 66 66 |odifyLoc|ationOff|
|000015f0| 73 65 74 28 20 30 2c 20 | 2d 4d 6f 76 65 2c 20 30 |set( 0, |-Move, 0|
|00001600| 20 29 3b 0d 0a 09 09 09 | 09 72 65 74 75 72 6e 20 | );.....|.return |
|00001610| 74 72 75 65 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |true;...|..}.....|
|00001620| 65 6c 73 65 20 69 66 28 | 20 62 52 69 67 68 74 4d |else if(| bRightM|
|00001630| 6f 75 73 65 20 26 26 20 | 54 6f 6f 6c 2e 50 6c 61 |ouse && |Tool.Pla|
|00001640| 79 65 72 2e 61 4d 6f 75 | 73 65 58 20 3c 20 30 20 |yer.aMou|seX < 0 |
|00001650| 29 0d 0a 09 09 09 7b 0d | 0a 09 09 09 09 54 6f 6f |).....{.|.....Too|
|00001660| 6c 2e 4d 6f 64 69 66 79 | 4c 6f 63 61 74 69 6f 6e |l.Modify|Location|
|00001670| 4f 66 66 73 65 74 28 20 | 4d 6f 76 65 2c 20 30 2c |Offset( |Move, 0,|
|00001680| 20 30 20 29 3b 0d 0a 09 | 09 09 09 72 65 74 75 72 | 0 );...|...retur|
|00001690| 6e 20 74 72 75 65 3b 0d | 0a 09 09 09 7d 0d 0a 09 |n true;.|....}...|
|000016a0| 09 09 65 6c 73 65 20 69 | 66 28 20 62 52 69 67 68 |..else i|f( bRigh|
|000016b0| 74 4d 6f 75 73 65 20 26 | 26 20 54 6f 6f 6c 2e 50 |tMouse &|& Tool.P|
|000016c0| 6c 61 79 65 72 2e 61 4d | 6f 75 73 65 58 20 3e 20 |layer.aM|ouseX > |
|000016d0| 30 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 54 |0 ).....|{......T|
|000016e0| 6f 6f 6c 2e 4d 6f 64 69 | 66 79 4c 6f 63 61 74 69 |ool.Modi|fyLocati|
|000016f0| 6f 6e 4f 66 66 73 65 74 | 28 20 2d 4d 6f 76 65 2c |onOffset|( -Move,|
|00001700| 20 30 2c 20 30 20 29 3b | 0d 0a 09 09 09 09 72 65 | 0, 0 );|......re|
|00001710| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 09 09 09 7d |turn tru|e;.....}|
|00001720| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |....}...|}...else|
|00001730| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 20 42 6f 74 68 20 |...{....|// Both |
|00001740| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 73 20 70 72 |mouse bu|ttons pr|
|00001750| 65 73 73 65 64 0d 0a 09 | 09 69 66 28 20 54 6f 6f |essed...|.if( Too|
|00001760| 6c 2e 50 6c 61 79 65 72 | 2e 61 4d 6f 75 73 65 59 |l.Player|.aMouseY|
|00001770| 20 3e 20 30 20 29 0d 0a | 20 20 20 20 20 20 20 20 | > 0 )..| |
|00001780| 7b 0d 0a 09 09 09 54 6f | 6f 6c 2e 4d 6f 64 69 66 |{.....To|ol.Modif|
|00001790| 79 4c 6f 63 61 74 69 6f | 6e 4f 66 66 73 65 74 28 |yLocatio|nOffset(|
|000017a0| 20 30 2c 20 30 2c 20 4d | 6f 76 65 20 29 3b 0d 0a | 0, 0, M|ove );..|
|000017b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 65 74 75 | | retu|
|000017c0| 72 6e 20 74 72 75 65 3b | 0d 0a 20 20 20 20 20 20 |rn true;|.. |
|000017d0| 20 20 7d 0d 0a 09 09 65 | 6c 73 65 20 69 66 28 20 | }....e|lse if( |
|000017e0| 54 6f 6f 6c 2e 50 6c 61 | 79 65 72 2e 61 4d 6f 75 |Tool.Pla|yer.aMou|
|000017f0| 73 65 59 20 3c 20 30 20 | 29 0d 0a 20 20 20 20 20 |seY < 0 |).. |
|00001800| 20 20 20 7b 0d 0a 09 09 | 09 54 6f 6f 6c 2e 4d 6f | {....|.Tool.Mo|
|00001810| 64 69 66 79 4c 6f 63 61 | 74 69 6f 6e 4f 66 66 73 |difyLoca|tionOffs|
|00001820| 65 74 28 20 30 2c 20 30 | 2c 20 2d 4d 6f 76 65 20 |et( 0, 0|, -Move |
|00001830| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00001840| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 20 20 |return t|rue;.. |
|00001850| 20 20 20 20 20 20 7d 0d | 0a 09 7d 0d 0a 0d 0a 09 | }.|..}.....|
|00001860| 54 6f 6f 6c 2e 50 6c 61 | 79 65 72 2e 61 53 74 72 |Tool.Pla|yer.aStr|
|00001870| 61 66 65 20 3d 20 30 3b | 0d 0a 20 20 20 20 54 6f |afe = 0;|.. To|
|00001880| 6f 6c 2e 50 6c 61 79 65 | 72 2e 61 4d 6f 75 73 65 |ol.Playe|r.aMouse|
|00001890| 58 20 3d 20 30 3b 0d 0a | 20 20 20 20 54 6f 6f 6c |X = 0;..| Tool|
|000018a0| 2e 50 6c 61 79 65 72 2e | 61 4d 6f 75 73 65 59 20 |.Player.|aMouseY |
|000018b0| 3d 20 30 3b 0d 0a 0d 0a | 20 20 20 20 2f 2f 20 77 |= 0;....| // w|
|000018c0| 65 20 64 69 64 6e 27 74 | 20 65 61 74 20 74 68 65 |e didn't| eat the|
|000018d0| 20 69 6e 70 75 74 21 21 | 0d 0a 20 20 20 20 72 65 | input!!|.. re|
|000018e0| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |turn fal|se;..}..|
|000018f0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00001900| 52 6f 74 61 74 65 28 20 | 66 6c 6f 61 74 20 44 65 |Rotate( |float De|
|00001910| 6c 74 61 54 69 6d 65 20 | 29 0d 0a 7b 0d 0a 09 6c |ltaTime |)..{...l|
|00001920| 6f 63 61 6c 20 66 6c 6f | 61 74 20 4d 6f 76 65 3b |ocal flo|at Move;|
|00001930| 0d 0a 0d 0a 09 4d 6f 76 | 65 20 3d 20 31 30 32 34 |.....Mov|e = 1024|
|00001940| 2e 30 66 20 2a 20 44 65 | 6c 74 61 54 69 6d 65 3b |.0f * De|ltaTime;|
|00001950| 0d 0a 0d 0a 09 69 66 28 | 20 21 62 4c 65 66 74 4d |.....if(| !bLeftM|
|00001960| 6f 75 73 65 20 7c 7c 20 | 21 62 52 69 67 68 74 4d |ouse || |!bRightM|
|00001970| 6f 75 73 65 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |ouse )..|.{....if|
|00001980| 28 20 62 4c 65 66 74 4d | 6f 75 73 65 20 26 26 20 |( bLeftM|ouse && |
|00001990| 54 6f 6f 6c 2e 50 6c 61 | 79 65 72 2e 61 4d 6f 75 |Tool.Pla|yer.aMou|
|000019a0| 73 65 58 20 3c 20 30 20 | 29 0d 0a 20 20 20 20 20 |seX < 0 |).. |
|000019b0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 09 54 | {.. | .T|
|000019c0| 6f 6f 6c 2e 4d 6f 64 69 | 66 79 52 6f 74 61 74 69 |ool.Modi|fyRotati|
|000019d0| 6f 6e 4f 66 66 73 65 74 | 28 20 30 2c 20 4d 6f 76 |onOffset|( 0, Mov|
|000019e0| 65 2c 20 30 20 29 3b 0d | 0a 20 20 20 20 20 20 20 |e, 0 );.|. |
|000019f0| 20 20 20 20 20 72 65 74 | 75 72 6e 20 74 72 75 65 | ret|urn true|
|00001a00| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|00001a10| 20 20 09 65 6c 73 65 20 | 69 66 28 20 62 4c 65 66 | .else |if( bLef|
|00001a20| 74 4d 6f 75 73 65 20 26 | 26 20 54 6f 6f 6c 2e 50 |tMouse &|& Tool.P|
|00001a30| 6c 61 79 65 72 2e 61 4d | 6f 75 73 65 58 20 3e 20 |layer.aM|ouseX > |
|00001a40| 30 20 29 0d 0a 20 20 20 | 20 20 20 20 20 7b 0d 0a |0 ).. | {..|
|00001a50| 20 20 20 20 20 20 20 20 | 09 54 6f 6f 6c 2e 4d 6f | |.Tool.Mo|
|00001a60| 64 69 66 79 52 6f 74 61 | 74 69 6f 6e 4f 66 66 73 |difyRota|tionOffs|
|00001a70| 65 74 28 20 30 2c 20 2d | 4d 6f 76 65 2c 20 30 20 |et( 0, -|Move, 0 |
|00001a80| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00001a90| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 20 20 |return t|rue;.. |
|00001aa0| 20 20 20 20 20 20 7d 0d | 0a 20 20 20 20 09 65 6c | }.|. .el|
|00001ab0| 73 65 20 69 66 28 20 62 | 52 69 67 68 74 4d 6f 75 |se if( b|RightMou|
|00001ac0| 73 65 20 26 26 20 54 6f | 6f 6c 2e 50 6c 61 79 65 |se && To|ol.Playe|
|00001ad0| 72 2e 61 4d 6f 75 73 65 | 59 20 3e 20 30 20 29 0d |r.aMouse|Y > 0 ).|
|00001ae0| 0a 20 20 20 20 20 20 20 | 20 7b 0d 0a 20 20 20 20 |. | {.. |
|00001af0| 20 20 20 20 09 54 6f 6f | 6c 2e 4d 6f 64 69 66 79 | .Too|l.Modify|
|00001b00| 52 6f 74 61 74 69 6f 6e | 4f 66 66 73 65 74 28 20 |Rotation|Offset( |
|00001b10| 4d 6f 76 65 2c 20 30 2c | 20 30 20 29 3b 0d 0a 20 |Move, 0,| 0 );.. |
|00001b20| 20 20 20 20 20 20 20 20 | 20 20 20 72 65 74 75 72 | | retur|
|00001b30| 6e 20 74 72 75 65 3b 0d | 0a 20 20 20 20 20 20 20 |n true;.|. |
|00001b40| 20 7d 0d 0a 20 20 20 20 | 09 65 6c 73 65 20 69 66 | }.. |.else if|
|00001b50| 28 20 62 52 69 67 68 74 | 4d 6f 75 73 65 20 26 26 |( bRight|Mouse &&|
|00001b60| 20 54 6f 6f 6c 2e 50 6c | 61 79 65 72 2e 61 4d 6f | Tool.Pl|ayer.aMo|
|00001b70| 75 73 65 59 20 3c 20 30 | 20 29 0d 0a 20 20 20 20 |useY < 0| ).. |
|00001b80| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 09 | {.. | .|
|00001b90| 54 6f 6f 6c 2e 4d 6f 64 | 69 66 79 52 6f 74 61 74 |Tool.Mod|ifyRotat|
|00001ba0| 69 6f 6e 4f 66 66 73 65 | 74 28 20 2d 4d 6f 76 65 |ionOffse|t( -Move|
|00001bb0| 2c 20 30 2c 20 30 20 29 | 3b 0d 0a 20 20 20 20 20 |, 0, 0 )|;.. |
|00001bc0| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 74 72 | r|eturn tr|
|00001bd0| 75 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 7d 0d 0a |ue;.. | }..|
|00001be0| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 7b 0d 0a 09 |.}...els|e...{...|
|00001bf0| 09 2f 2f 20 42 6f 74 68 | 20 6d 6f 75 73 65 20 62 |.// Both| mouse b|
|00001c00| 75 74 74 6f 6e 73 20 70 | 72 65 73 73 65 64 0d 0a |uttons p|ressed..|
|00001c10| 09 09 69 66 28 20 54 6f | 6f 6c 2e 50 6c 61 79 65 |..if( To|ol.Playe|
|00001c20| 72 2e 61 4d 6f 75 73 65 | 59 20 3c 20 30 20 29 0d |r.aMouse|Y < 0 ).|
|00001c30| 0a 20 20 20 20 20 20 20 | 20 7b 0d 0a 09 09 09 54 |. | {.....T|
|00001c40| 6f 6f 6c 2e 4d 6f 64 69 | 66 79 52 6f 74 61 74 69 |ool.Modi|fyRotati|
|00001c50| 6f 6e 4f 66 66 73 65 74 | 28 20 30 2c 20 30 2c 20 |onOffset|( 0, 0, |
|00001c60| 4d 6f 76 65 20 29 3b 0d | 0a 20 20 20 20 20 20 20 |Move );.|. |
|00001c70| 20 20 20 20 20 72 65 74 | 75 72 6e 20 74 72 75 65 | ret|urn true|
|00001c80| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 09 09 |;.. | }....|
|00001c90| 65 6c 73 65 20 69 66 28 | 20 54 6f 6f 6c 2e 50 6c |else if(| Tool.Pl|
|00001ca0| 61 79 65 72 2e 61 4d 6f | 75 73 65 59 20 3e 20 30 |ayer.aMo|useY > 0|
|00001cb0| 20 29 0d 0a 20 20 20 20 | 20 20 20 20 7b 0d 0a 09 | ).. | {...|
|00001cc0| 09 09 54 6f 6f 6c 2e 4d | 6f 64 69 66 79 52 6f 74 |..Tool.M|odifyRot|
|00001cd0| 61 74 69 6f 6e 4f 66 66 | 73 65 74 28 20 30 2c 20 |ationOff|set( 0, |
|00001ce0| 30 2c 20 2d 4d 6f 76 65 | 20 29 3b 0d 0a 20 20 20 |0, -Move| );.. |
|00001cf0| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 | | return |
|00001d00| 74 72 75 65 3b 0d 0a 20 | 20 20 20 20 20 20 20 7d |true;.. | }|
|00001d10| 0d 0a 09 7d 0d 0a 0d 0a | 20 20 20 20 54 6f 6f 6c |...}....| Tool|
|00001d20| 2e 50 6c 61 79 65 72 2e | 61 4d 6f 75 73 65 58 20 |.Player.|aMouseX |
|00001d30| 3d 20 30 3b 0d 0a 20 20 | 20 20 54 6f 6f 6c 2e 50 |= 0;.. | Tool.P|
|00001d40| 6c 61 79 65 72 2e 61 4d | 6f 75 73 65 59 20 3d 20 |layer.aM|ouseY = |
|00001d50| 30 3b 0d 0a 0d 0a 20 20 | 20 20 2f 2f 20 72 75 6e |0;.... | // run|
|00001d60| 20 66 72 65 65 20 6c 69 | 74 74 6c 65 20 69 6e 70 | free li|ttle inp|
|00001d70| 75 74 73 21 21 0d 0a 20 | 20 20 20 72 65 74 75 72 |uts!!.. | retur|
|00001d80| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 65 |n false;|..}....e|
|00001d90| 78 65 63 20 66 75 6e 63 | 74 69 6f 6e 20 4a 75 6d |xec func|tion Jum|
|00001da0| 70 28 20 6f 70 74 69 6f | 6e 61 6c 20 66 6c 6f 61 |p( optio|nal floa|
|00001db0| 74 20 46 20 29 0d 0a 7b | 0d 0a 20 09 69 66 28 20 |t F )..{|.. .if( |
|00001dc0| 62 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 20 29 |bPlayerC|ontrol )|
|00001dd0| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 28 29 2e |....GetP|layer().|
|00001de0| 4a 75 6d 70 28 20 46 20 | 29 3b 0d 0a 7d 0d 0a 0d |Jump( F |);..}...|
|00001df0| 0a 65 78 65 63 20 66 75 | 6e 63 74 69 6f 6e 20 46 |.exec fu|nction F|
|00001e00| 69 72 65 28 29 0d 0a 7b | 0d 0a 20 09 69 66 28 20 |ire()..{|.. .if( |
|00001e10| 62 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 20 29 |bPlayerC|ontrol )|
|00001e20| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 28 29 2e |....GetP|layer().|
|00001e30| 46 69 72 65 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 78 |Fire();.|.}....ex|
|00001e40| 65 63 20 66 75 6e 63 74 | 69 6f 6e 20 41 6c 74 46 |ec funct|ion AltF|
|00001e50| 69 72 65 28 29 0d 0a 7b | 0d 0a 20 09 69 66 28 20 |ire()..{|.. .if( |
|00001e60| 62 50 6c 61 79 65 72 43 | 6f 6e 74 72 6f 6c 20 29 |bPlayerC|ontrol )|
|00001e70| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 28 29 2e |....GetP|layer().|
|00001e80| 41 6c 74 46 69 72 65 28 | 29 3b 0d 0a 7d 0d 0a 00 |AltFire(|);..}...|
+--------+-------------------------+-------------------------+--------+--------+