home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / Chip_06_2000.iso / games / WheelofTime / WoTDemo.exe / System / WoTTraps.u / WallSlab_Pit_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  4.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 | 71 41 2f 2f 3d 3d 3d 3d |........|qA//====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 20 50 69 |========|=..// Pi|
|00000060| 74 2e 75 63 0d 0a 2f 2f | 3d 3d 3d 3d 3d 3d 3d 3d |t.uc..//|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 0d 0a 63 | 6c 61 73 73 20 50 69 74 |=====..c|lass Pit|
|000000c0| 20 65 78 70 61 6e 64 73 | 20 54 72 61 70 3b 0d 0a | expands| Trap;..|
|000000d0| 0d 0a 23 65 78 65 63 20 | 4d 45 53 48 20 49 4d 50 |..#exec |MESH IMP|
|000000e0| 4f 52 54 20 4d 45 53 48 | 3d 50 69 74 20 41 4e 49 |ORT MESH|=Pit ANI|
|000000f0| 56 46 49 4c 45 3d 4d 4f | 44 45 4c 53 5c 50 69 74 |VFILE=MO|DELS\Pit|
|00000100| 5c 54 72 61 70 50 69 74 | 5f 61 2e 33 44 20 44 41 |\TrapPit|_a.3D DA|
|00000110| 54 41 46 49 4c 45 3d 4d | 4f 44 45 4c 53 5c 50 69 |TAFILE=M|ODELS\Pi|
|00000120| 74 5c 54 72 61 70 50 69 | 74 5f 64 2e 33 44 20 58 |t\TrapPi|t_d.3D X|
|00000130| 3d 30 20 59 3d 30 20 5a | 3d 30 20 4d 4c 4f 44 3d |=0 Y=0 Z|=0 MLOD=|
|00000140| 30 0d 0a 23 65 78 65 63 | 20 4d 45 53 48 20 4f 52 |0..#exec| MESH OR|
|00000150| 49 47 49 4e 20 4d 45 53 | 48 3d 50 69 74 20 58 3d |IGIN MES|H=Pit X=|
|00000160| 30 20 59 3d 2d 32 38 20 | 5a 3d 30 20 59 41 57 3d |0 Y=-28 |Z=0 YAW=|
|00000170| 36 34 20 52 4f 4c 4c 3d | 31 32 38 0d 0a 23 65 78 |64 ROLL=|128..#ex|
|00000180| 65 63 20 4d 45 53 48 20 | 53 45 51 55 45 4e 43 45 |ec MESH |SEQUENCE|
|00000190| 20 4d 45 53 48 3d 50 69 | 74 20 53 45 51 3d 57 61 | MESH=Pi|t SEQ=Wa|
|000001a0| 69 74 69 6e 67 20 20 53 | 54 41 52 54 46 52 41 4d |iting S|TARTFRAM|
|000001b0| 45 3d 30 20 20 20 4e 55 | 4d 46 52 41 4d 45 53 3d |E=0 NU|MFRAMES=|
|000001c0| 31 0d 0a 0d 0a 23 65 78 | 65 63 20 54 45 58 54 55 |1....#ex|ec TEXTU|
|000001d0| 52 45 20 49 4d 50 4f 52 | 54 20 4e 41 4d 45 3d 54 |RE IMPOR|T NAME=T|
|000001e0| 72 61 70 50 69 74 20 46 | 49 4c 45 3d 4d 4f 44 45 |rapPit F|ILE=MODE|
|000001f0| 4c 53 5c 50 69 74 5c 54 | 72 61 70 50 69 74 2e 50 |LS\Pit\T|rapPit.P|
|00000200| 43 58 20 47 52 4f 55 50 | 3d 53 6b 69 6e 73 0d 0a |CX GROUP|=Skins..|
|00000210| 0d 0a 23 65 78 65 63 20 | 4d 45 53 48 4d 41 50 20 |..#exec |MESHMAP |
|00000220| 4e 45 57 20 20 20 4d 45 | 53 48 4d 41 50 3d 50 69 |NEW ME|SHMAP=Pi|
|00000230| 74 20 4d 45 53 48 3d 50 | 69 74 0d 0a 23 65 78 65 |t MESH=P|it..#exe|
|00000240| 63 20 4d 45 53 48 4d 41 | 50 20 53 43 41 4c 45 20 |c MESHMA|P SCALE |
|00000250| 4d 45 53 48 4d 41 50 3d | 50 69 74 20 58 3d 30 2e |MESHMAP=|Pit X=0.|
|00000260| 32 20 59 3d 30 2e 32 20 | 5a 3d 30 2e 34 0d 0a 23 |2 Y=0.2 |Z=0.4..#|
|00000270| 65 78 65 63 20 4d 45 53 | 48 4d 41 50 20 53 45 54 |exec MES|HMAP SET|
|00000280| 54 45 58 54 55 52 45 20 | 4d 45 53 48 4d 41 50 3d |TEXTURE |MESHMAP=|
|00000290| 50 69 74 20 4e 55 4d 3d | 35 20 54 45 58 54 55 52 |Pit NUM=|5 TEXTUR|
|000002a0| 45 3d 54 72 61 70 50 69 | 74 0d 0a 0d 0a 76 61 72 |E=TrapPi|t....var|
|000002b0| 20 50 69 74 54 72 61 70 | 20 54 68 65 50 69 74 54 | PitTrap| ThePitT|
|000002c0| 72 61 70 3b 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |rap;....|function|
|000002d0| 20 50 72 65 42 65 67 69 | 6e 50 6c 61 79 28 29 0d | PreBegi|nPlay().|
|000002e0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 50 69 74 4f 70 |.{...loc|al PitOp|
|000002f0| 65 6e 69 6e 67 20 54 68 | 65 50 69 74 4f 70 65 6e |ening Th|ePitOpen|
|00000300| 69 6e 67 3b 0d 0a 0d 0a | 09 54 68 65 50 69 74 54 |ing;....|.ThePitT|
|00000310| 72 61 70 20 3d 20 53 70 | 61 77 6e 28 20 63 6c 61 |rap = Sp|awn( cla|
|00000320| 73 73 27 50 69 74 54 72 | 61 70 27 20 29 3b 0d 0a |ss'PitTr|ap' );..|
|00000330| 09 69 66 28 20 54 68 65 | 50 69 74 54 72 61 70 20 |.if( The|PitTrap |
|00000340| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 7b 0d 0a 09 |!= None |)...{...|
|00000350| 09 54 68 65 50 69 74 54 | 72 61 70 2e 53 65 74 4f |.ThePitT|rap.SetO|
|00000360| 77 6e 65 72 28 20 53 65 | 6c 66 20 29 3b 20 0d 0a |wner( Se|lf ); ..|
|00000370| 09 09 54 68 65 50 69 74 | 54 72 61 70 2e 48 69 64 |..ThePit|Trap.Hid|
|00000380| 65 28 29 3b 20 0d 0a 0d | 0a 09 09 2f 2f 20 66 69 |e(); ...|...// fi|
|00000390| 6e 64 20 61 6e 20 75 6e | 75 73 65 64 20 50 69 74 |nd an un|used Pit|
|000003a0| 4f 70 65 6e 69 6e 67 0d | 0a 09 09 66 6f 72 65 61 |Opening.|...forea|
|000003b0| 63 68 20 41 6c 6c 41 63 | 74 6f 72 73 28 20 63 6c |ch AllAc|tors( cl|
|000003c0| 61 73 73 20 27 50 69 74 | 4f 70 65 6e 69 6e 67 27 |ass 'Pit|Opening'|
|000003d0| 2c 20 54 68 65 50 69 74 | 4f 70 65 6e 69 6e 67 20 |, ThePit|Opening |
|000003e0| 29 20 0d 0a 09 09 7b 0d | 0a 09 09 09 69 66 28 20 |) ....{.|....if( |
|000003f0| 54 68 65 50 69 74 4f 70 | 65 6e 69 6e 67 2e 54 68 |ThePitOp|ening.Th|
|00000400| 65 50 69 74 54 72 61 70 | 20 3d 3d 20 4e 6f 6e 65 |ePitTrap| == None|
|00000410| 20 29 20 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 54 | ) .....|{......T|
|00000420| 68 65 50 69 74 4f 70 65 | 6e 69 6e 67 2e 54 68 65 |hePitOpe|ning.The|
|00000430| 50 69 74 54 72 61 70 20 | 3d 20 54 68 65 50 69 74 |PitTrap |= ThePit|
|00000440| 54 72 61 70 3b 0d 0a 09 | 09 09 09 54 68 65 50 69 |Trap;...|...ThePi|
|00000450| 74 54 72 61 70 2e 54 68 | 65 50 69 74 4f 70 65 6e |tTrap.Th|ePitOpen|
|00000460| 69 6e 67 20 3d 20 54 68 | 65 50 69 74 4f 70 65 6e |ing = Th|ePitOpen|
|00000470| 69 6e 67 3b 0d 0a 0d 0a | 09 09 09 09 54 68 65 50 |ing;....|....TheP|
|00000480| 69 74 4f 70 65 6e 69 6e | 67 2e 53 65 74 4f 77 6e |itOpenin|g.SetOwn|
|00000490| 65 72 28 20 53 65 6c 66 | 20 29 3b 0d 0a 0d 0a 09 |er( Self| );.....|
|000004a0| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 09 7d 0d |...break|;.....}.|
|000004b0| 0a 09 09 7d 0d 0a 0d 0a | 09 09 69 66 28 20 54 68 |...}....|..if( Th|
|000004c0| 65 50 69 74 54 72 61 70 | 2e 54 68 65 50 69 74 4f |ePitTrap|.ThePitO|
|000004d0| 70 65 6e 69 6e 67 20 3d | 3d 20 4e 6f 6e 65 20 29 |pening =|= None )|
|000004e0| 20 0d 0a 09 09 7b 0d 0a | 09 09 09 54 68 65 50 69 | ....{..|...ThePi|
|000004f0| 74 54 72 61 70 2e 44 65 | 73 74 72 6f 79 28 29 3b |tTrap.De|stroy();|
|00000500| 0d 0a 09 09 09 54 68 65 | 50 69 74 54 72 61 70 20 |.....The|PitTrap |
|00000510| 3d 20 4e 6f 6e 65 3b 0d | 0a 09 09 09 50 6c 61 79 |= None;.|....Play|
|00000520| 65 72 50 61 77 6e 28 4f | 77 6e 65 72 29 2e 43 6c |erPawn(O|wner).Cl|
|00000530| 69 65 6e 74 4d 65 73 73 | 61 67 65 28 20 22 45 72 |ientMess|age( "Er|
|00000540| 72 6f 72 3a 20 4e 6f 20 | 70 69 74 73 20 61 72 65 |ror: No |pits are|
|00000550| 20 61 76 61 69 6c 61 62 | 6c 65 2e 22 20 29 3b 0d | availab|le." );.|
|00000560| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 0d 0a 09 53 75 70 |...}...}|.....Sup|
|00000570| 65 72 2e 50 72 65 42 65 | 67 69 6e 50 6c 61 79 28 |er.PreBe|ginPlay(|
|00000580| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00000590| 6e 20 49 6e 69 74 53 69 | 6e 67 6c 65 50 6c 61 79 |n InitSi|nglePlay|
|000005a0| 65 72 28 29 0d 0a 7b 0d | 0a 09 54 68 65 50 69 74 |er()..{.|..ThePit|
|000005b0| 54 72 61 70 2e 53 65 74 | 4c 6f 63 61 74 69 6f 6e |Trap.Set|Location|
|000005c0| 28 20 4c 6f 63 61 74 69 | 6f 6e 20 29 3b 09 0d 0a |( Locati|on );...|
|000005d0| 09 54 68 65 50 69 74 54 | 72 61 70 2e 53 65 74 52 |.ThePitT|rap.SetR|
|000005e0| 6f 74 61 74 69 6f 6e 28 | 20 52 6f 74 61 74 69 6f |otation(| Rotatio|
|000005f0| 6e 20 29 3b 0d 0a 09 53 | 65 74 43 6f 6c 6c 69 73 |n );...S|etCollis|
|00000600| 69 6f 6e 28 20 66 61 6c | 73 65 2c 20 66 61 6c 73 |ion( fal|se, fals|
|00000610| 65 2c 20 66 61 6c 73 65 | 20 29 3b 0d 0a 7d 0d 0a |e, false| );..}..|
|00000620| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 44 65 73 74 72 |..functi|on Destr|
|00000630| 6f 79 65 64 28 29 0d 0a | 7b 0d 0a 09 69 66 28 20 |oyed()..|{...if( |
|00000640| 54 68 65 50 69 74 54 72 | 61 70 20 21 3d 20 4e 6f |ThePitTr|ap != No|
|00000650| 6e 65 20 29 20 0d 0a 09 | 7b 0d 0a 09 09 54 68 65 |ne ) ...|{....The|
|00000660| 50 69 74 54 72 61 70 2e | 44 65 73 74 72 6f 79 28 |PitTrap.|Destroy(|
|00000670| 29 3b 0d 0a 09 7d 0d 0a | 09 53 75 70 65 72 2e 44 |);...}..|.Super.D|
|00000680| 65 73 74 72 6f 79 65 64 | 28 29 3b 0d 0a 7d 0d 0a |estroyed|();..}..|
|00000690| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|000006a0| 41 70 70 72 6f 78 45 71 | 28 66 6c 6f 61 74 20 66 |ApproxEq|(float f|
|000006b0| 31 2c 20 66 6c 6f 61 74 | 20 66 32 29 0d 0a 7b 0d |1, float| f2)..{.|
|000006c0| 0a 09 69 66 28 20 61 62 | 73 28 20 66 31 20 2d 20 |..if( ab|s( f1 - |
|000006d0| 66 32 20 29 20 3c 3d 20 | 30 2e 30 33 20 29 20 0d |f2 ) <= |0.03 ) .|
|000006e0| 0a 09 7b 0d 0a 09 09 72 | 65 74 75 72 6e 20 74 72 |..{....r|eturn tr|
|000006f0| 75 65 3b 0d 0a 09 7d 0d | 0a 09 65 6c 73 65 20 0d |ue;...}.|..else .|
|00000700| 0a 09 7b 0d 0a 09 09 72 | 65 74 75 72 6e 20 66 61 |..{....r|eturn fa|
|00000710| 6c 73 65 3b 0d 0a 09 7d | 0d 0a 7d 0d 0a 0d 0a 66 |lse;...}|..}....f|
|00000720| 75 6e 63 74 69 6f 6e 20 | 61 63 74 6f 72 20 41 6e |unction |actor An|
|00000730| 79 41 63 74 6f 72 73 49 | 6e 41 72 65 61 28 20 76 |yActorsI|nArea( v|
|00000740| 65 63 74 6f 72 20 53 65 | 61 72 63 68 4c 6f 63 61 |ector Se|archLoca|
|00000750| 74 69 6f 6e 2c 20 69 6e | 74 20 53 65 61 72 63 68 |tion, in|t Search|
|00000760| 44 69 73 74 61 6e 63 65 | 20 29 0d 0a 7b 0d 0a 09 |Distance| )..{...|
|00000770| 6c 6f 63 61 6c 20 4d 6f | 76 65 72 20 4d 3b 0d 0a |local Mo|ver M;..|
|00000780| 09 6c 6f 63 61 6c 20 76 | 65 63 74 6f 72 20 44 65 |.local v|ector De|
|00000790| 6c 74 61 3b 0d 0a 0d 0a | 09 66 6f 72 65 61 63 68 |lta;....|.foreach|
|000007a0| 20 52 61 64 69 75 73 41 | 63 74 6f 72 73 28 20 63 | RadiusA|ctors( c|
|000007b0| 6c 61 73 73 27 4d 6f 76 | 65 72 27 2c 20 4d 2c 20 |lass'Mov|er', M, |
|000007c0| 35 31 32 2c 20 53 65 61 | 72 63 68 4c 6f 63 61 74 |512, Sea|rchLocat|
|000007d0| 69 6f 6e 20 29 20 2f 2f | 68 61 63 6b 65 64 20 74 |ion ) //|hacked t|
|000007e0| 6f 20 22 66 61 72 2c 20 | 62 75 74 20 6e 6f 74 20 |o "far, |but not |
|000007f0| 74 6f 6f 20 66 61 72 22 | 0d 0a 09 7b 0d 0a 09 09 |too far"|...{....|
|00000800| 44 65 6c 74 61 20 3d 20 | 53 65 61 72 63 68 4c 6f |Delta = |SearchLo|
|00000810| 63 61 74 69 6f 6e 20 2d | 20 4d 2e 52 65 61 6c 50 |cation -| M.RealP|
|00000820| 6f 73 69 74 69 6f 6e 3b | 0d 0a 09 09 44 65 6c 74 |osition;|....Delt|
|00000830| 61 2e 5a 20 3d 20 30 3b | 0d 0a 09 09 69 66 28 20 |a.Z = 0;|....if( |
|00000840| 56 53 69 7a 65 28 20 44 | 65 6c 74 61 20 29 20 3c |VSize( D|elta ) <|
|00000850| 20 31 32 30 20 29 20 2f | 2f 68 61 63 6b 65 64 20 | 120 ) /|/hacked |
|00000860| 74 6f 20 22 61 62 6f 75 | 74 20 74 68 65 20 72 69 |to "abou|t the ri|
|00000870| 67 68 74 20 64 69 73 74 | 61 6e 63 65 22 20 66 6f |ght dist|ance" fo|
|00000880| 72 20 74 68 65 20 6d 61 | 70 73 0d 0a 09 09 7b 0d |r the ma|ps....{.|
|00000890| 0a 09 09 09 72 65 74 75 | 72 6e 20 4d 3b 0d 0a 09 |....retu|rn M;...|
|000008a0| 09 7d 0d 0a 09 7d 0d 0a | 0d 0a 09 72 65 74 75 72 |.}...}..|...retur|
|000008b0| 6e 20 53 75 70 65 72 2e | 41 6e 79 41 63 74 6f 72 |n Super.|AnyActor|
|000008c0| 73 49 6e 41 72 65 61 28 | 20 53 65 61 72 63 68 4c |sInArea(| SearchL|
|000008d0| 6f 63 61 74 69 6f 6e 2c | 20 53 65 61 72 63 68 44 |ocation,| SearchD|
|000008e0| 69 73 74 61 6e 63 65 20 | 29 3b 0d 0a 7d 0d 0a 0d |istance |);..}...|
|000008f0| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 43 |.functio|n bool C|
|00000900| 61 6c 63 4c 6f 63 61 74 | 69 6f 6e 28 20 6f 75 74 |alcLocat|ion( out|
|00000910| 20 76 65 63 74 6f 72 20 | 48 69 74 4c 6f 63 61 74 | vector |HitLocat|
|00000920| 69 6f 6e 2c 20 6f 75 74 | 20 76 65 63 74 6f 72 20 |ion, out| vector |
|00000930| 48 69 74 4e 6f 72 6d 61 | 6c 20 29 0d 0a 7b 0d 0a |HitNorma|l )..{..|
|00000940| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 09 50 69 74 |.local f|loat.Pit|
|00000950| 52 61 64 69 75 73 3b 0d | 0a 09 6c 6f 63 61 6c 20 |Radius;.|..local |
|00000960| 76 65 63 74 6f 72 20 78 | 2c 20 79 2c 20 7a 2c 0d |vector x|, y, z,.|
|00000970| 0a 09 09 09 09 54 65 73 | 74 50 6f 69 6e 74 2c 0d |.....Tes|tPoint,.|
|00000980| 0a 09 09 09 09 54 72 61 | 63 65 48 69 74 2c 0d 0a |.....Tra|ceHit,..|
|00000990| 09 09 09 09 54 72 61 63 | 65 4e 6f 72 6d 61 6c 2c |....Trac|eNormal,|
|000009a0| 0d 0a 09 09 09 09 54 72 | 61 63 65 45 6e 64 3b 0d |......Tr|aceEnd;.|
|000009b0| 0a 09 6c 6f 63 61 6c 20 | 61 63 74 6f 72 20 4f 74 |..local |actor Ot|
|000009c0| 68 65 72 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |her;...l|ocal int|
|000009d0| 20 69 2c 20 6a 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 | i, j;..|.local b|
|000009e0| 6f 6f 6c 20 53 75 63 63 | 65 73 73 3b 0d 0a 0d 0a |ool Succ|ess;....|
|000009f0| 09 53 75 63 63 65 73 73 | 20 3d 20 66 61 6c 73 65 |.Success| = false|
|00000a00| 3b 0d 0a 09 48 69 64 65 | 28 29 3b 0d 0a 0d 0a 09 |;...Hide|();.....|
|00000a10| 69 66 28 20 48 69 74 4e | 6f 72 6d 61 6c 2e 5a 20 |if( HitN|ormal.Z |
|00000a20| 3c 20 30 2e 39 35 20 29 | 20 0d 0a 09 7b 0d 0a 09 |< 0.95 )| ...{...|
|00000a30| 09 67 6f 74 6f 20 52 65 | 74 75 72 6e 4c 61 62 65 |.goto Re|turnLabe|
|00000a40| 6c 3b 0d 0a 09 7d 0d 0a | 09 2f 2f 20 4d 61 6b 65 |l;...}..|.// Make|
|00000a50| 20 73 75 72 65 20 74 68 | 65 20 70 69 74 20 64 6f | sure th|e pit do|
|00000a60| 65 73 6e 27 74 20 68 61 | 6e 67 20 6f 76 65 72 20 |esn't ha|ng over |
|00000a70| 61 6e 20 65 64 67 65 0d | 0a 09 2f 2f 20 54 72 79 |an edge.|..// Try|
|00000a80| 20 63 6f 72 6e 65 72 73 | 2c 20 63 6f 6e 74 65 72 | corners|, conter|
|00000a90| 20 70 6f 69 6e 74 73 20 | 6f 66 20 73 69 64 65 73 | points |of sides|
|00000aa0| 2c 20 61 6e 64 20 63 65 | 6e 74 65 72 20 6f 66 20 |, and ce|nter of |
|00000ab0| 70 69 74 0d 0a 09 47 65 | 74 41 78 65 73 28 20 72 |pit...Ge|tAxes( r|
|00000ac0| 6f 74 61 74 6f 72 28 20 | 48 69 74 4e 6f 72 6d 61 |otator( |HitNorma|
|00000ad0| 6c 20 29 2c 20 78 2c 20 | 79 2c 20 7a 29 3b 0d 0a |l ), x, |y, z);..|
|00000ae0| 0d 0a 09 50 69 74 52 61 | 64 69 75 73 20 3d 20 63 |...PitRa|dius = c|
|00000af0| 6c 61 73 73 27 50 69 74 | 54 72 61 70 27 2e 64 65 |lass'Pit|Trap'.de|
|00000b00| 66 61 75 6c 74 2e 54 72 | 61 70 52 61 64 69 75 73 |fault.Tr|apRadius|
|00000b10| 3b 0d 0a 0d 0a 09 2f 2f | 20 4e 6f 77 20 6d 61 6b |;.....//| Now mak|
|00000b20| 65 20 73 75 72 65 20 79 | 6f 75 20 63 61 6e 20 67 |e sure y|ou can g|
|00000b30| 6f 20 66 72 6f 6d 20 63 | 65 6e 74 65 72 20 74 6f |o from c|enter to|
|00000b40| 20 65 64 67 65 73 0d 0a | 09 66 6f 72 28 20 69 20 | edges..|.for( i |
|00000b50| 3d 20 2d 31 3b 20 69 20 | 3c 3d 20 31 3b 20 69 2b |= -1; i |<= 1; i+|
|00000b60| 2b 20 29 20 0d 0a 09 7b | 0d 0a 09 09 66 6f 72 28 |+ ) ...{|....for(|
|00000b70| 20 6a 20 3d 20 2d 31 3b | 20 6a 20 3c 3d 20 31 3b | j = -1;| j <= 1;|
|00000b80| 20 6a 2b 2b 20 29 20 0d | 0a 09 09 7b 0d 0a 09 09 | j++ ) .|...{....|
|00000b90| 09 54 65 73 74 50 6f 69 | 6e 74 20 3d 20 48 69 74 |.TestPoi|nt = Hit|
|00000ba0| 4c 6f 63 61 74 69 6f 6e | 3b 0d 0a 09 09 09 54 72 |Location|;.....Tr|
|00000bb0| 61 63 65 45 6e 64 20 20 | 3d 20 48 69 74 4c 6f 63 |aceEnd |= HitLoc|
|00000bc0| 61 74 69 6f 6e 20 2b 20 | 50 69 74 52 61 64 69 75 |ation + |PitRadiu|
|00000bd0| 73 09 2a 20 28 20 79 20 | 2a 20 69 20 2b 20 7a 20 |s.* ( y |* i + z |
|00000be0| 2a 20 6a 20 29 3b 0d 0a | 0d 0a 09 09 09 4f 74 68 |* j );..|.....Oth|
|00000bf0| 65 72 20 3d 20 54 72 61 | 63 65 28 20 54 72 61 63 |er = Tra|ce( Trac|
|00000c00| 65 48 69 74 2c 20 54 72 | 61 63 65 4e 6f 72 6d 61 |eHit, Tr|aceNorma|
|00000c10| 6c 2c 20 54 72 61 63 65 | 45 6e 64 2c 20 54 65 73 |l, Trace|End, Tes|
|00000c20| 74 50 6f 69 6e 74 2c 20 | 74 72 75 65 20 29 3b 0d |tPoint, |true );.|
|00000c30| 0a 09 09 09 69 66 28 20 | 28 20 4f 74 68 65 72 20 |....if( |( Other |
|00000c40| 3d 3d 20 4c 65 76 65 6c | 20 29 20 29 20 0d 0a 09 |== Level| ) ) ...|
|00000c50| 09 09 7b 0d 0a 09 09 09 | 09 67 6f 74 6f 20 52 65 |..{.....|.goto Re|
|00000c60| 74 75 72 6e 4c 61 62 65 | 6c 3b 0d 0a 09 09 09 7d |turnLabe|l;.....}|
|00000c70| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 53 75 |....}...|}.....Su|
|00000c80| 63 63 65 73 73 20 3d 20 | 74 72 75 65 3b 0d 0a 0d |ccess = |true;...|
|00000c90| 0a 52 65 74 75 72 6e 4c | 61 62 65 6c 3a 0d 0a 09 |.ReturnL|abel:...|
|00000ca0| 53 68 6f 77 28 29 3b 0d | 0a 0d 0a 09 72 65 74 75 |Show();.|....retu|
|00000cb0| 72 6e 20 53 75 63 63 65 | 73 73 3b 0d 0a 7d 0d 0a |rn Succe|ss;..}..|
|00000cc0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00000cd0| 44 65 70 6c 6f 79 52 65 | 73 6f 75 72 63 65 28 20 |DeployRe|source( |
|00000ce0| 76 65 63 74 6f 72 20 48 | 69 74 4c 6f 63 61 74 69 |vector H|itLocati|
|00000cf0| 6f 6e 2c 20 76 65 63 74 | 6f 72 20 48 69 74 4e 6f |on, vect|or HitNo|
|00000d00| 72 6d 61 6c 20 29 0d 0a | 7b 0d 0a 09 69 66 28 20 |rmal )..|{...if( |
|00000d10| 54 68 65 50 69 74 54 72 | 61 70 20 3d 3d 20 4e 6f |ThePitTr|ap == No|
|00000d20| 6e 65 20 29 20 0d 0a 09 | 7b 0d 0a 09 09 72 65 74 |ne ) ...|{....ret|
|00000d30| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 7d 0d 0a |urn fals|e;...}..|
|00000d40| 0d 0a 09 69 66 28 20 21 | 43 61 6c 63 4c 6f 63 61 |...if( !|CalcLoca|
|00000d50| 74 69 6f 6e 28 20 48 69 | 74 4c 6f 63 61 74 69 6f |tion( Hi|tLocatio|
|00000d60| 6e 2c 20 48 69 74 4e 6f | 72 6d 61 6c 20 29 20 29 |n, HitNo|rmal ) )|
|00000d70| 20 0d 0a 09 7b 0d 0a 09 | 09 72 65 74 75 72 6e 20 | ...{...|.return |
|00000d80| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 09 69 66 28 |false;..|.}...if(|
|00000d90| 20 41 6e 79 41 63 74 6f | 72 73 49 6e 41 72 65 61 | AnyActo|rsInArea|
|00000da0| 28 20 48 69 74 4c 6f 63 | 61 74 69 6f 6e 2c 20 53 |( HitLoc|ation, S|
|00000db0| 65 70 61 72 61 74 69 6f | 6e 44 69 73 74 61 6e 63 |eparatio|nDistanc|
|00000dc0| 65 20 29 20 21 3d 20 4e | 6f 6e 65 20 29 20 0d 0a |e ) != N|one ) ..|
|00000dd0| 09 7b 0d 0a 09 09 72 65 | 74 75 72 6e 20 66 61 6c |.{....re|turn fal|
|00000de0| 73 65 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 54 68 65 50 |se;...}.|....TheP|
|00000df0| 69 74 54 72 61 70 2e 53 | 65 74 4c 6f 63 61 74 69 |itTrap.S|etLocati|
|00000e00| 6f 6e 28 20 48 69 74 4c | 6f 63 61 74 69 6f 6e 20 |on( HitL|ocation |
|00000e10| 29 3b 09 0d 0a 09 54 68 | 65 50 69 74 54 72 61 70 |);....Th|ePitTrap|
|00000e20| 2e 53 65 74 52 6f 74 61 | 74 69 6f 6e 28 20 72 6f |.SetRota|tion( ro|
|00000e30| 74 61 74 6f 72 28 20 48 | 69 74 4e 6f 72 6d 61 6c |tator( H|itNormal|
|00000e40| 20 29 20 29 3b 0d 0a 0d | 0a 09 53 65 74 4c 6f 63 | ) );...|..SetLoc|
|00000e50| 61 74 69 6f 6e 28 20 48 | 69 74 4c 6f 63 61 74 69 |ation( H|itLocati|
|00000e60| 6f 6e 20 29 3b 0d 0a 09 | 53 65 74 52 6f 74 61 74 |on );...|SetRotat|
|00000e70| 69 6f 6e 28 20 72 6f 74 | 61 74 6f 72 28 20 48 69 |ion( rot|ator( Hi|
|00000e80| 74 4e 6f 72 6d 61 6c 20 | 29 20 29 3b 0d 0a 0d 0a |tNormal |) );....|
|00000e90| 09 72 65 74 75 72 6e 20 | 56 61 6c 69 64 61 74 65 |.return |Validate|
|00000ea0| 54 72 61 70 28 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |Trap();.|.}....fu|
|00000eb0| 6e 63 74 69 6f 6e 20 42 | 65 67 69 6e 45 64 69 74 |nction B|eginEdit|
|00000ec0| 69 6e 67 52 65 73 6f 75 | 72 63 65 28 20 69 6e 74 |ingResou|rce( int|
|00000ed0| 20 50 6c 61 63 65 64 42 | 79 54 65 61 6d 20 29 0d | PlacedB|yTeam ).|
|00000ee0| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 42 65 67 69 6e |.{...Sup|er.Begin|
|00000ef0| 45 64 69 74 69 6e 67 52 | 65 73 6f 75 72 63 65 28 |EditingR|esource(|
|00000f00| 20 50 6c 61 63 65 64 42 | 79 54 65 61 6d 20 29 3b | PlacedB|yTeam );|
|00000f10| 0d 0a 09 53 65 74 43 6f | 6c 6c 69 73 69 6f 6e 28 |...SetCo|llision(|
|00000f20| 20 74 72 75 65 2c 20 66 | 61 6c 73 65 2c 20 66 61 | true, f|alse, fa|
|00000f30| 6c 73 65 20 29 3b 0d 0a | 09 54 68 65 50 69 74 54 |lse );..|.ThePitT|
|00000f40| 72 61 70 2e 48 69 64 65 | 28 29 3b 0d 0a 7d 0d 0a |rap.Hide|();..}..|
|00000f50| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 45 6e 64 45 64 |..functi|on EndEd|
|00000f60| 69 74 69 6e 67 52 65 73 | 6f 75 72 63 65 28 29 0d |itingRes|ource().|
|00000f70| 0a 7b 0d 0a 09 53 75 70 | 65 72 2e 45 6e 64 45 64 |.{...Sup|er.EndEd|
|00000f80| 69 74 69 6e 67 52 65 73 | 6f 75 72 63 65 28 29 3b |itingRes|ource();|
|00000f90| 0d 0a 09 53 65 74 43 6f | 6c 6c 69 73 69 6f 6e 28 |...SetCo|llision(|
|00000fa0| 20 66 61 6c 73 65 2c 20 | 66 61 6c 73 65 2c 20 66 | false, |false, f|
|00000fb0| 61 6c 73 65 20 29 3b 0d | 0a 09 54 68 65 50 69 74 |alse );.|..ThePit|
|00000fc0| 54 72 61 70 2e 53 68 6f | 77 28 29 3b 0d 0a 7d 0d |Trap.Sho|w();..}.|
|00000fd0| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00000fe0| 20 49 73 49 6e 61 63 74 | 69 76 65 28 20 61 63 74 | IsInact|ive( act|
|00000ff0| 6f 72 20 4f 74 68 65 72 | 20 29 0d 0a 7b 0d 0a 09 |or Other| )..{...|
|00001000| 69 66 28 20 4f 74 68 65 | 72 20 21 3d 20 4e 6f 6e |if( Othe|r != Non|
|00001010| 65 20 26 26 20 4f 74 68 | 65 72 2e 49 73 41 28 20 |e && Oth|er.IsA( |
|00001020| 27 53 65 61 6c 27 20 29 | 20 29 0d 0a 09 09 72 65 |'Seal' )| )....re|
|00001030| 74 75 72 6e 20 74 72 75 | 65 3b 0d 0a 0d 0a 09 72 |turn tru|e;.....r|
|00001040| 65 74 75 72 6e 20 53 75 | 70 65 72 2e 49 73 49 6e |eturn Su|per.IsIn|
|00001050| 61 63 74 69 76 65 28 20 | 4f 74 68 65 72 20 29 3b |active( |Other );|
|00001060| 0d 0a 7d 0d 0a 0d 0a 2f | 2f 65 6e 64 20 6f 66 20 |..}..../|/end of |
|00001070| 50 69 74 2e 75 63 0d 0a | 0d 0a 00 |Pit.uc..|... |
+--------+-------------------------+-------------------------+--------+--------+