home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-11-02 | 4.3 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 43 45 2f 2f 3d 3d 3d 3d |........|CE//====|
|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 41 6e |========|=..// An|
|00000060| 67 72 65 61 6c 53 70 61 | 77 6e 50 6f 6f 6c 2c 20 |grealSpa|wnPool, |
|00000070| 73 70 61 77 6e 73 20 69 | 6e 76 65 6e 74 6f 72 79 |spawns i|nventory|
|00000080| 20 6f 62 6a 65 63 74 73 | 20 66 72 6f 6d 20 61 20 | objects| from a |
|00000090| 77 65 69 67 68 74 65 64 | 20 70 6f 6f 6c 20 6f 66 |weighted| pool of|
|000000a0| 20 6f 62 6a 65 63 74 20 | 74 79 70 65 73 0d 0a 2f | object |types../|
|000000b0| 2f 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |/=======|========|
|000000c0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 0d 0a |========|======..|
|00000100| 63 6c 61 73 73 20 41 6e | 67 72 65 61 6c 53 70 61 |class An|grealSpa|
|00000110| 77 6e 50 6f 6f 6c 20 65 | 78 70 61 6e 64 73 20 49 |wnPool e|xpands I|
|00000120| 6e 76 65 6e 74 6f 72 79 | 20 2f 2a 4e 61 76 69 67 |nventory| /*Navig|
|00000130| 61 74 69 6f 6e 50 6f 69 | 6e 74 2a 2f 3b 0d 0a 0d |ationPoi|nt*/;...|
|00000140| 0a 23 65 78 65 63 20 41 | 55 44 49 4f 20 49 4d 50 |.#exec A|UDIO IMP|
|00000150| 4f 52 54 20 46 49 4c 45 | 3d 53 6f 75 6e 64 73 5c |ORT FILE|=Sounds\|
|00000160| 47 65 6e 65 72 61 6c 5c | 52 65 73 70 61 77 6e 41 |General\|RespawnA|
|00000170| 2e 77 61 76 09 47 52 4f | 55 50 3d 45 66 66 65 63 |.wav.GRO|UP=Effec|
|00000180| 74 0d 0a 23 65 78 65 63 | 20 41 55 44 49 4f 20 49 |t..#exec| AUDIO I|
|00000190| 4d 50 4f 52 54 20 46 49 | 4c 45 3d 53 6f 75 6e 64 |MPORT FI|LE=Sound|
|000001a0| 73 5c 47 65 6e 65 72 61 | 6c 5c 52 65 73 70 61 77 |s\Genera|l\Respaw|
|000001b0| 6e 42 2e 77 61 76 09 47 | 52 4f 55 50 3d 45 66 66 |nB.wav.G|ROUP=Eff|
|000001c0| 65 63 74 0d 0a 23 65 78 | 65 63 20 41 55 44 49 4f |ect..#ex|ec AUDIO|
|000001d0| 20 49 4d 50 4f 52 54 20 | 46 49 4c 45 3d 53 6f 75 | IMPORT |FILE=Sou|
|000001e0| 6e 64 73 5c 47 65 6e 65 | 72 61 6c 5c 52 65 73 70 |nds\Gene|ral\Resp|
|000001f0| 61 77 6e 43 2e 77 61 76 | 09 47 52 4f 55 50 3d 45 |awnC.wav|.GROUP=E|
|00000200| 66 66 65 63 74 0d 0a 0d | 0a 76 61 72 28 29 20 62 |ffect...|.var() b|
|00000210| 6f 6f 6c 20 62 52 65 73 | 70 61 77 6e 3b 09 09 2f |ool bRes|pawn;../|
|00000220| 2f 20 73 69 6e 67 6c 65 | 2d 73 68 6f 74 20 76 73 |/ single|-shot vs|
|00000230| 2e 20 72 65 70 65 61 74 | 65 64 0d 0a 76 61 72 28 |. repeat|ed..var(|
|00000240| 29 20 66 6c 6f 61 74 20 | 52 65 73 70 61 77 6e 54 |) float |RespawnT|
|00000250| 69 6d 65 3b 09 2f 2f 20 | 52 65 73 70 61 77 6e 20 |ime;.// |Respawn |
|00000260| 61 66 74 65 72 20 74 68 | 69 73 20 74 69 6d 65 2c |after th|is time,|
|00000270| 20 30 20 74 6f 20 75 73 | 65 20 74 68 65 20 73 70 | 0 to us|e the sp|
|00000280| 61 77 6e 65 64 20 6f 62 | 6a 65 63 74 27 73 20 64 |awned ob|ject's d|
|00000290| 65 6c 61 79 0d 0a 76 61 | 72 28 29 20 63 6c 61 73 |elay..va|r() clas|
|000002a0| 73 3c 69 6e 76 65 6e 74 | 6f 72 79 3e 20 50 6f 6f |s<invent|ory> Poo|
|000002b0| 6c 5b 31 36 5d 3b 20 2f | 2f 20 74 68 65 20 70 6f |l[16]; /|/ the po|
|000002c0| 6f 6c 20 6f 66 20 69 6e | 76 65 6e 74 6f 72 79 20 |ol of in|ventory |
|000002d0| 63 6c 61 73 73 65 73 20 | 75 73 65 64 20 74 6f 20 |classes |used to |
|000002e0| 73 70 61 77 6e 20 61 74 | 20 74 68 69 73 20 70 6f |spawn at| this po|
|000002f0| 69 6e 74 0d 0a 76 61 72 | 28 29 20 62 79 74 65 20 |int..var|() byte |
|00000300| 57 65 69 67 68 74 5b 31 | 36 5d 3b 09 09 2f 2f 20 |Weight[1|6];..// |
|00000310| 77 65 69 67 68 74 20 74 | 6f 20 67 69 76 65 20 65 |weight t|o give e|
|00000320| 61 63 68 20 69 6e 76 65 | 6e 74 6f 72 79 20 63 6c |ach inve|ntory cl|
|00000330| 61 73 73 20 76 73 2e 20 | 74 68 65 20 6f 74 68 65 |ass vs. |the othe|
|00000340| 72 73 0d 0a 0d 0a 76 61 | 72 20 49 6e 76 65 6e 74 |rs....va|r Invent|
|00000350| 6f 72 79 20 50 69 63 6b | 75 70 49 74 65 6d 3b 09 |ory Pick|upItem;.|
|00000360| 2f 2f 20 72 65 73 70 61 | 77 6e 65 64 20 6f 62 6a |// respa|wned obj|
|00000370| 65 63 74 20 77 61 69 74 | 69 6e 67 20 66 6f 72 20 |ect wait|ing for |
|00000380| 74 68 65 20 70 6c 61 79 | 65 72 20 69 6e 20 74 68 |the play|er in th|
|00000390| 65 20 70 6f 6f 6c 0d 0a | 0d 0a 2f 2f 20 53 6f 75 |e pool..|..// Sou|
|000003a0| 6e 64 20 73 74 72 69 6e | 67 73 2e 0d 0a 76 61 72 |nd strin|gs...var|
|000003b0| 28 29 20 73 74 72 69 6e | 67 20 43 6f 6d 6d 6d 6f |() strin|g Commmo|
|000003c0| 6e 53 6f 75 6e 64 3b 0d | 0a 76 61 72 28 29 20 73 |nSound;.|.var() s|
|000003d0| 74 72 69 6e 67 20 55 6e | 43 6f 6d 6d 6d 6f 6e 53 |tring Un|CommmonS|
|000003e0| 6f 75 6e 64 3b 0d 0a 76 | 61 72 28 29 20 73 74 72 |ound;..v|ar() str|
|000003f0| 69 6e 67 20 52 61 72 65 | 53 6f 75 6e 64 3b 0d 0a |ing Rare|Sound;..|
|00000400| 0d 0a 76 61 72 20 66 6c | 6f 61 74 20 57 61 69 74 |..var fl|oat Wait|
|00000410| 69 6e 67 44 65 6c 61 79 | 3b 20 2f 2f 20 22 6c 6f |ingDelay|; // "lo|
|00000420| 63 61 6c 22 20 76 61 72 | 69 61 62 6c 65 0d 0a 0d |cal" var|iable...|
|00000430| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 47 65 |.functio|n int Ge|
|00000440| 74 57 65 69 67 68 74 65 | 64 53 65 6c 65 63 74 69 |tWeighte|dSelecti|
|00000450| 6f 6e 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |on()..{.|..local |
|00000460| 69 6e 74 20 69 2c 20 54 | 6f 74 61 6c 57 65 69 67 |int i, T|otalWeig|
|00000470| 68 74 2c 20 52 65 71 75 | 69 72 65 64 57 65 69 67 |ht, Requ|iredWeig|
|00000480| 68 74 3b 0d 0a 0d 0a 09 | 2f 2f 20 63 6f 6d 70 75 |ht;.....|// compu|
|00000490| 74 65 20 74 68 65 20 74 | 6f 74 61 6c 20 77 65 69 |te the t|otal wei|
|000004a0| 67 68 74 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |ght dist|ribution|
|000004b0| 0d 0a 09 66 6f 72 28 20 | 69 20 3d 20 30 3b 20 69 |...for( |i = 0; i|
|000004c0| 20 3c 20 41 72 72 61 79 | 43 6f 75 6e 74 28 50 6f | < Array|Count(Po|
|000004d0| 6f 6c 29 20 26 26 20 50 | 6f 6f 6c 5b 69 5d 20 21 |ol) && P|ool[i] !|
|000004e0| 3d 20 4e 6f 6e 65 3b 20 | 69 2b 2b 20 29 20 7b 0d |= None; |i++ ) {.|
|000004f0| 0a 09 09 54 6f 74 61 6c | 57 65 69 67 68 74 20 2b |...Total|Weight +|
|00000500| 3d 20 57 65 69 67 68 74 | 5b 69 5d 3b 0d 0a 09 7d |= Weight|[i];...}|
|00000510| 0d 0a 0d 0a 09 2f 2f 20 | 63 68 65 63 6b 20 66 6f |.....// |check fo|
|00000520| 72 20 65 78 70 69 72 61 | 74 69 6f 6e 20 6f 66 20 |r expira|tion of |
|00000530| 74 68 65 20 73 70 61 77 | 6e 20 70 6f 6f 6c 20 28 |the spaw|n pool (|
|00000540| 61 6c 6c 20 61 6e 67 72 | 65 61 6c 20 64 65 70 6c |all angr|eal depl|
|00000550| 65 74 65 64 29 0d 0a 09 | 69 66 28 20 54 6f 74 61 |eted)...|if( Tota|
|00000560| 6c 57 65 69 67 68 74 20 | 3d 3d 20 30 20 29 20 7b |lWeight |== 0 ) {|
|00000570| 0d 0a 09 09 57 61 72 6e | 28 20 53 65 6c 66 20 24 |....Warn|( Self $|
|00000580| 20 22 20 20 69 73 20 65 | 6d 70 74 79 2e 20 20 53 | " is e|mpty. S|
|00000590| 68 75 74 69 6e 67 20 64 | 6f 77 6e 2e 22 20 29 3b |huting d|own." );|
|000005a0| 0d 0a 09 09 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |....Dest|roy();..|
|000005b0| 09 09 72 65 74 75 72 6e | 20 30 3b 0d 0a 09 7d 0d |..return| 0;...}.|
|000005c0| 0a 0d 0a 09 2f 2f 20 73 | 65 6c 65 63 74 20 61 20 |....// s|elect a |
|000005d0| 74 61 72 67 65 74 20 74 | 68 72 65 73 68 68 6f 6c |target t|hreshhol|
|000005e0| 64 0d 0a 09 52 65 71 75 | 69 72 65 64 57 65 69 67 |d...Requ|iredWeig|
|000005f0| 68 74 20 3d 20 52 61 6e | 64 28 20 54 6f 74 61 6c |ht = Ran|d( Total|
|00000600| 57 65 69 67 68 74 20 29 | 3b 0d 0a 0d 0a 09 2f 2f |Weight )|;.....//|
|00000610| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 69 63 68 | determi|ne which|
|00000620| 20 65 6e 74 72 79 20 28 | 63 75 6d 75 6c 61 74 69 | entry (|cumulati|
|00000630| 76 65 6c 79 29 20 70 61 | 73 73 65 73 20 74 68 65 |vely) pa|sses the|
|00000640| 20 74 68 72 65 73 68 68 | 6f 6c 64 0d 0a 09 54 6f | threshh|old...To|
|00000650| 74 61 6c 57 65 69 67 68 | 74 20 3d 20 30 3b 0d 0a |talWeigh|t = 0;..|
|00000660| 09 66 6f 72 28 20 69 20 | 3d 20 30 3b 20 69 20 3c |.for( i |= 0; i <|
|00000670| 20 41 72 72 61 79 43 6f | 75 6e 74 28 50 6f 6f 6c | ArrayCo|unt(Pool|
|00000680| 29 3b 20 69 2b 2b 20 29 | 20 7b 0d 0a 09 09 54 6f |); i++ )| {....To|
|00000690| 74 61 6c 57 65 69 67 68 | 74 20 2b 3d 20 57 65 69 |talWeigh|t += Wei|
|000006a0| 67 68 74 5b 69 5d 3b 0d | 0a 09 09 69 66 28 20 54 |ght[i];.|...if( T|
|000006b0| 6f 74 61 6c 57 65 69 67 | 68 74 20 3e 20 52 65 71 |otalWeig|ht > Req|
|000006c0| 75 69 72 65 64 57 65 69 | 67 68 74 20 29 0d 0a 09 |uiredWei|ght )...|
|000006d0| 09 09 72 65 74 75 72 6e | 20 69 3b 0d 0a 09 7d 0d |..return| i;...}.|
|000006e0| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 30 3b 0d 0a 7d |....retu|rn 0;..}|
|000006f0| 0d 0a 0d 0a 2f 2f 20 4d | 61 6b 65 20 73 75 72 65 |....// M|ake sure|
|00000700| 20 6e 6f 20 70 61 77 6e | 20 61 6c 72 65 61 64 79 | no pawn| already|
|00000710| 20 74 6f 75 63 68 69 6e | 67 20 28 77 68 69 6c 65 | touchin|g (while|
|00000720| 20 74 6f 75 63 68 20 77 | 61 73 20 64 69 73 61 62 | touch w|as disab|
|00000730| 6c 65 64 20 69 6e 20 73 | 6c 65 65 70 29 2e 0d 0a |led in s|leep)...|
|00000740| 66 75 6e 63 74 69 6f 6e | 20 43 68 65 63 6b 54 6f |function| CheckTo|
|00000750| 75 63 68 69 6e 67 28 29 | 0d 0a 7b 0d 0a 09 6c 6f |uching()|..{...lo|
|00000760| 63 61 6c 20 69 6e 74 20 | 69 3b 0d 0a 0d 0a 09 66 |cal int |i;.....f|
|00000770| 6f 72 28 20 69 3d 30 3b | 20 69 20 3c 20 41 72 72 |or( i=0;| i < Arr|
|00000780| 61 79 43 6f 75 6e 74 28 | 54 6f 75 63 68 69 6e 67 |ayCount(|Touching|
|00000790| 29 3b 20 69 2b 2b 20 29 | 0d 0a 09 09 69 66 28 20 |); i++ )|....if( |
|000007a0| 54 6f 75 63 68 69 6e 67 | 5b 69 5d 20 21 3d 20 4e |Touching|[i] != N|
|000007b0| 6f 6e 65 20 26 26 20 54 | 6f 75 63 68 69 6e 67 5b |one && T|ouching[|
|000007c0| 69 5d 2e 49 73 41 28 20 | 27 50 61 77 6e 27 20 29 |i].IsA( |'Pawn' )|
|000007d0| 20 29 0d 0a 09 09 09 54 | 6f 75 63 68 28 20 54 6f | ).....T|ouch( To|
|000007e0| 75 63 68 69 6e 67 5b 69 | 5d 20 29 3b 0d 0a 7d 0d |uching[i|] );..}.|
|000007f0| 0a 0d 0a 61 75 74 6f 20 | 73 74 61 74 65 20 41 63 |...auto |state Ac|
|00000800| 74 69 76 65 0d 0a 7b 0d | 0a 09 66 75 6e 63 74 69 |tive..{.|..functi|
|00000810| 6f 6e 20 42 65 67 69 6e | 53 74 61 74 65 28 29 0d |on Begin|State().|
|00000820| 0a 09 7b 0d 0a 09 09 2f | 2f 20 70 69 63 6b 20 61 |..{..../|/ pick a|
|00000830| 20 6e 65 77 20 6f 62 6a | 65 63 74 20 66 72 6f 6d | new obj|ect from|
|00000840| 20 74 68 65 20 70 6f 6f | 6c 2c 20 74 68 65 6e 20 | the poo|l, then |
|00000850| 73 70 61 77 6e 20 69 74 | 20 2d 2d 20 49 6e 76 65 |spawn it| -- Inve|
|00000860| 6e 74 6f 72 79 20 77 69 | 6c 6c 20 64 65 66 61 75 |ntory wi|ll defau|
|00000870| 6c 74 20 74 6f 20 62 65 | 63 6f 6d 6d 69 6e 67 20 |lt to be|comming |
|00000880| 61 20 70 69 63 6b 75 70 | 0d 0a 09 09 50 69 63 6b |a pickup|....Pick|
|00000890| 75 70 49 74 65 6d 20 3d | 20 53 70 61 77 6e 28 20 |upItem =| Spawn( |
|000008a0| 50 6f 6f 6c 5b 20 47 65 | 74 57 65 69 67 68 74 65 |Pool[ Ge|tWeighte|
|000008b0| 64 53 65 6c 65 63 74 69 | 6f 6e 28 29 20 5d 20 29 |dSelecti|on() ] )|
|000008c0| 3b 0d 0a 0d 0a 09 09 2f | 2f 44 45 42 55 47 20 6c |;....../|/DEBUG l|
|000008d0| 6f 67 28 20 53 65 6c 66 | 20 24 20 22 20 42 65 67 |og( Self| $ " Beg|
|000008e0| 69 6e 53 74 61 74 65 28 | 29 20 73 65 74 20 50 69 |inState(|) set Pi|
|000008f0| 63 6b 75 70 49 74 65 6d | 20 74 6f 20 22 20 24 20 |ckupItem| to " $ |
|00000900| 50 69 63 6b 75 70 49 74 | 65 6d 20 29 3b 0d 0a 09 |PickupIt|em );...|
|00000910| 09 69 66 28 20 50 69 63 | 6b 75 70 49 74 65 6d 20 |.if( Pic|kupItem |
|00000920| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|00000930| 09 09 09 50 69 63 6b 75 | 70 49 74 65 6d 2e 52 65 |...Picku|pItem.Re|
|00000940| 73 70 61 77 6e 54 69 6d | 65 20 3d 20 30 2e 30 3b |spawnTim|e = 0.0;|
|00000950| 20 2f 2f 64 6f 6e 27 74 | 20 72 65 73 70 61 77 6e | //don't| respawn|
|00000960| 0d 0a 09 09 09 50 69 63 | 6b 75 70 49 74 65 6d 2e |.....Pic|kupItem.|
|00000970| 53 65 74 43 6f 6c 6c 69 | 73 69 6f 6e 28 20 66 61 |SetColli|sion( fa|
|00000980| 6c 73 65 2c 20 66 61 6c | 73 65 2c 20 66 61 6c 73 |lse, fal|se, fals|
|00000990| 65 20 29 3b 20 2f 2f 20 | 6c 65 74 20 74 68 65 20 |e ); // |let the |
|000009a0| 53 70 61 77 6e 50 6f 6f | 6c 20 68 61 6e 64 6c 65 |SpawnPoo|l handle|
|000009b0| 20 63 6f 6c 6c 69 73 69 | 6f 6e 0d 0a 0d 0a 09 09 | collisi|on......|
|000009c0| 09 2f 2f 20 50 6c 61 79 | 20 73 6f 75 6e 64 20 61 |.// Play| sound a|
|000009d0| 63 63 6f 72 64 69 6e 67 | 20 74 6f 20 72 61 72 69 |ccording| to rari|
|000009e0| 74 79 2e 0d 0a 09 09 09 | 69 66 28 20 41 6e 67 72 |ty......|if( Angr|
|000009f0| 65 61 6c 49 6e 76 65 6e | 74 6f 72 79 28 50 69 63 |ealInven|tory(Pic|
|00000a00| 6b 75 70 49 74 65 6d 29 | 20 21 3d 20 4e 6f 6e 65 |kupItem)| != None|
|00000a10| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 69 66 | ).....{|......if|
|00000a20| 28 20 41 6e 67 72 65 61 | 6c 49 6e 76 65 6e 74 6f |( Angrea|lInvento|
|00000a30| 72 79 28 50 69 63 6b 75 | 70 49 74 65 6d 29 2e 62 |ry(Picku|pItem).b|
|00000a40| 43 6f 6d 6d 6f 6e 20 29 | 20 0d 0a 09 09 09 09 7b |Common )| ......{|
|00000a50| 0d 0a 09 09 09 09 09 50 | 6c 61 79 53 6f 75 6e 64 |.......P|laySound|
|00000a60| 28 20 53 6f 75 6e 64 28 | 20 44 79 6e 61 6d 69 63 |( Sound(| Dynamic|
|00000a70| 4c 6f 61 64 4f 62 6a 65 | 63 74 28 20 43 6f 6d 6d |LoadObje|ct( Comm|
|00000a80| 6d 6f 6e 53 6f 75 6e 64 | 2c 20 63 6c 61 73 73 27 |monSound|, class'|
|00000a90| 53 6f 75 6e 64 27 29 20 | 29 20 29 3b 0d 0a 09 09 |Sound') |) );....|
|00000aa0| 09 09 7d 0d 0a 09 09 09 | 09 65 6c 73 65 20 69 66 |..}.....|.else if|
|00000ab0| 28 20 41 6e 67 72 65 61 | 6c 49 6e 76 65 6e 74 6f |( Angrea|lInvento|
|00000ac0| 72 79 28 50 69 63 6b 75 | 70 49 74 65 6d 29 2e 62 |ry(Picku|pItem).b|
|00000ad0| 55 6e 43 6f 6d 6d 6f 6e | 20 29 20 0d 0a 09 09 09 |UnCommon| ) .....|
|00000ae0| 09 7b 0d 0a 09 09 09 09 | 09 50 6c 61 79 53 6f 75 |.{......|.PlaySou|
|00000af0| 6e 64 28 20 53 6f 75 6e | 64 28 20 44 79 6e 61 6d |nd( Soun|d( Dynam|
|00000b00| 69 63 4c 6f 61 64 4f 62 | 6a 65 63 74 28 20 55 6e |icLoadOb|ject( Un|
|00000b10| 43 6f 6d 6d 6d 6f 6e 53 | 6f 75 6e 64 2c 20 63 6c |CommmonS|ound, cl|
|00000b20| 61 73 73 27 53 6f 75 6e | 64 27 29 20 29 20 29 3b |ass'Soun|d') ) );|
|00000b30| 0d 0a 09 09 09 09 7d 0d | 0a 09 09 09 09 65 6c 73 |......}.|.....els|
|00000b40| 65 20 69 66 28 20 41 6e | 67 72 65 61 6c 49 6e 76 |e if( An|grealInv|
|00000b50| 65 6e 74 6f 72 79 28 50 | 69 63 6b 75 70 49 74 65 |entory(P|ickupIte|
|00000b60| 6d 29 2e 62 52 61 72 65 | 20 29 20 0d 0a 09 09 09 |m).bRare| ) .....|
|00000b70| 09 7b 0d 0a 09 09 09 09 | 09 50 6c 61 79 53 6f 75 |.{......|.PlaySou|
|00000b80| 6e 64 28 20 53 6f 75 6e | 64 28 20 44 79 6e 61 6d |nd( Soun|d( Dynam|
|00000b90| 69 63 4c 6f 61 64 4f 62 | 6a 65 63 74 28 20 52 61 |icLoadOb|ject( Ra|
|00000ba0| 72 65 53 6f 75 6e 64 2c | 20 63 6c 61 73 73 27 53 |reSound,| class'S|
|00000bb0| 6f 75 6e 64 27 29 20 29 | 20 29 3b 0d 0a 09 09 09 |ound') )| );.....|
|00000bc0| 09 7d 0d 0a 09 09 09 7d | 0d 0a 0d 0a 09 09 09 43 |.}.....}|.......C|
|00000bd0| 68 65 63 6b 54 6f 75 63 | 68 69 6e 67 28 29 3b 0d |heckTouc|hing();.|
|00000be0| 0a 09 09 7d 20 0d 0a 09 | 09 65 6c 73 65 20 0d 0a |...} ...|.else ..|
|00000bf0| 09 09 7b 0d 0a 09 09 09 | 57 61 72 6e 28 20 53 65 |..{.....|Warn( Se|
|00000c00| 6c 66 20 24 20 22 20 50 | 69 63 6b 75 70 49 74 65 |lf $ " P|ickupIte|
|00000c10| 6d 20 69 73 20 69 6e 76 | 61 6c 69 64 2e 20 20 53 |m is inv|alid. S|
|00000c20| 68 75 74 74 69 6e 67 20 | 64 6f 77 6e 2e 22 20 29 |hutting |down." )|
|00000c30| 3b 0d 0a 09 09 09 44 65 | 73 74 72 6f 79 28 29 3b |;.....De|stroy();|
|00000c40| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 2f 2f |....}...|}.....//|
|00000c50| 20 56 61 6c 69 64 61 74 | 65 20 74 6f 75 63 68 2c | Validat|e touch,|
|00000c60| 20 61 6e 64 20 69 66 20 | 76 61 6c 69 64 20 74 72 | and if |valid tr|
|00000c70| 69 67 67 65 72 20 65 76 | 65 6e 74 2e 0d 0a 09 66 |igger ev|ent....f|
|00000c80| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 56 61 6c |unction |bool Val|
|00000c90| 69 64 54 6f 75 63 68 28 | 20 61 63 74 6f 72 20 4f |idTouch(| actor O|
|00000ca0| 74 68 65 72 20 29 0d 0a | 09 7b 0d 0a 09 09 6c 6f |ther )..|.{....lo|
|00000cb0| 63 61 6c 20 41 63 74 6f | 72 20 41 3b 0d 0a 0d 0a |cal Acto|r A;....|
|00000cc0| 09 09 69 66 28 20 4f 74 | 68 65 72 2e 62 49 73 50 |..if( Ot|her.bIsP|
|00000cd0| 61 77 6e 20 26 26 20 50 | 61 77 6e 28 4f 74 68 65 |awn && P|awn(Othe|
|00000ce0| 72 29 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 |r).bIsPl|ayer && |
|00000cf0| 28 50 61 77 6e 28 4f 74 | 68 65 72 29 2e 48 65 61 |(Pawn(Ot|her).Hea|
|00000d00| 6c 74 68 20 3e 20 30 29 | 20 26 26 20 4c 65 76 65 |lth > 0)| && Leve|
|00000d10| 6c 2e 47 61 6d 65 2e 50 | 69 63 6b 75 70 51 75 65 |l.Game.P|ickupQue|
|00000d20| 72 79 28 50 61 77 6e 28 | 4f 74 68 65 72 29 2c 20 |ry(Pawn(|Other), |
|00000d30| 73 65 6c 66 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |self) ).|...{....|
|00000d40| 09 69 66 28 20 45 76 65 | 6e 74 20 21 3d 20 27 27 |.if( Eve|nt != ''|
|00000d50| 20 29 0d 0a 09 09 09 09 | 66 6f 72 65 61 63 68 20 | )......|foreach |
|00000d60| 41 6c 6c 41 63 74 6f 72 | 73 28 20 63 6c 61 73 73 |AllActor|s( class|
|00000d70| 20 27 41 63 74 6f 72 27 | 2c 20 41 2c 20 45 76 65 | 'Actor'|, A, Eve|
|00000d80| 6e 74 20 29 0d 0a 09 09 | 09 09 09 41 2e 54 72 69 |nt )....|...A.Tri|
|00000d90| 67 67 65 72 28 20 4f 74 | 68 65 72 2c 20 4f 74 68 |gger( Ot|her, Oth|
|00000da0| 65 72 2e 49 6e 73 74 69 | 67 61 74 6f 72 20 29 3b |er.Insti|gator );|
|00000db0| 0d 0a 09 09 09 72 65 74 | 75 72 6e 20 74 72 75 65 |.....ret|urn true|
|00000dc0| 3b 0d 0a 09 09 7d 0d 0a | 09 09 72 65 74 75 72 6e |;....}..|..return|
|00000dd0| 20 66 61 6c 73 65 3b 0d | 0a 09 7d 0d 0a 09 09 0d | false;.|..}.....|
|00000de0| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 54 6f 75 63 68 |..functi|on Touch|
|00000df0| 28 20 61 63 74 6f 72 20 | 4f 74 68 65 72 20 29 0d |( actor |Other ).|
|00000e00| 0a 09 7b 0d 0a 09 09 2f | 2f 20 49 66 20 74 6f 75 |..{..../|/ If tou|
|00000e10| 63 68 65 64 20 62 79 20 | 61 20 70 6c 61 79 65 72 |ched by |a player|
|00000e20| 20 70 61 77 6e 2c 20 6c | 65 74 20 68 69 6d 20 70 | pawn, l|et him p|
|00000e30| 69 63 6b 20 74 68 69 73 | 20 75 70 2e 0d 0a 09 09 |ick this| up.....|
|00000e40| 69 66 28 20 56 61 6c 69 | 64 54 6f 75 63 68 28 20 |if( Vali|dTouch( |
|00000e50| 4f 74 68 65 72 20 29 20 | 29 0d 0a 09 09 7b 0d 0a |Other ) |)....{..|
|00000e60| 09 09 09 69 66 28 20 50 | 69 63 6b 75 70 49 74 65 |...if( P|ickupIte|
|00000e70| 6d 20 3d 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 09 |m == Non|e ).....|
|00000e80| 7b 0d 0a 09 09 09 09 57 | 61 72 6e 28 20 53 65 6c |{......W|arn( Sel|
|00000e90| 66 20 24 20 22 20 44 69 | 64 6e 27 74 20 63 6f 6e |f $ " Di|dn't con|
|00000ea0| 74 61 69 6e 20 61 20 70 | 69 63 6b 75 70 2e 22 20 |tain a p|ickup." |
|00000eb0| 29 3b 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 3b 0d |);......|return;.|
|00000ec0| 0a 09 09 09 7d 0d 0a 0d | 0a 09 09 09 2f 2f 20 69 |....}...|....// i|
|00000ed0| 66 20 74 68 65 20 53 70 | 61 77 6e 50 6f 6f 6c 20 |f the Sp|awnPool |
|00000ee0| 69 73 20 74 6f 75 63 68 | 65 64 20 62 79 20 61 20 |is touch|ed by a |
|00000ef0| 70 6c 61 79 65 72 2c 20 | 68 61 6e 64 20 74 68 65 |player, |hand the|
|00000f00| 20 74 6f 75 63 68 20 6f | 66 66 20 74 6f 20 74 68 | touch o|ff to th|
|00000f10| 65 20 50 69 63 6b 75 70 | 49 74 65 6d 0d 0a 09 09 |e Pickup|Item....|
|00000f20| 09 69 66 28 20 50 61 77 | 6e 28 4f 74 68 65 72 29 |.if( Paw|n(Other)|
|00000f30| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 50 61 77 6e | != None| && Pawn|
|00000f40| 28 4f 74 68 65 72 29 2e | 62 49 73 50 6c 61 79 65 |(Other).|bIsPlaye|
|00000f50| 72 20 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 50 |r ).....|{......P|
|00000f60| 69 63 6b 75 70 49 74 65 | 6d 2e 54 6f 75 63 68 28 |ickupIte|m.Touch(|
|00000f70| 20 4f 74 68 65 72 20 29 | 3b 0d 0a 0d 0a 09 09 09 | Other )|;.......|
|00000f80| 09 2f 2f 20 73 65 74 75 | 70 20 66 6f 72 20 6e 65 |.// setu|p for ne|
|00000f90| 78 74 20 67 6f 20 61 72 | 6f 75 6e 64 0d 0a 09 09 |xt go ar|ound....|
|00000fa0| 09 09 50 69 63 6b 75 70 | 49 74 65 6d 20 3d 20 4e |..Pickup|Item = N|
|00000fb0| 6f 6e 65 3b 0d 0a 09 09 | 09 09 69 66 28 20 62 52 |one;....|..if( bR|
|00000fc0| 65 73 70 61 77 6e 20 29 | 0d 0a 09 09 09 09 09 47 |espawn )|.......G|
|00000fd0| 6f 74 6f 53 74 61 74 65 | 28 20 27 57 61 69 74 69 |otoState|( 'Waiti|
|00000fe0| 6e 67 27 20 29 3b 0d 0a | 09 09 09 09 65 6c 73 65 |ng' );..|....else|
|00000ff0| 0d 0a 09 09 09 09 09 44 | 65 73 74 72 6f 79 28 29 |.......D|estroy()|
|00001000| 3b 0d 0a 09 09 09 7d 0d | 0a 09 09 7d 0d 0a 09 7d |;.....}.|...}...}|
|00001010| 0d 0a 7d 0d 0a 0d 0a 73 | 74 61 74 65 20 57 61 69 |..}....s|tate Wai|
|00001020| 74 69 6e 67 0d 0a 7b 0d | 0a 42 65 67 69 6e 3a 0d |ting..{.|.Begin:.|
|00001030| 0a 09 69 66 28 20 52 65 | 73 70 61 77 6e 54 69 6d |..if( Re|spawnTim|
|00001040| 65 20 3e 20 30 2e 30 20 | 29 0d 0a 09 09 57 61 69 |e > 0.0 |)....Wai|
|00001050| 74 69 6e 67 44 65 6c 61 | 79 20 3d 20 52 65 73 70 |tingDela|y = Resp|
|00001060| 61 77 6e 54 69 6d 65 3b | 0d 0a 09 65 6c 73 65 0d |awnTime;|...else.|
|00001070| 0a 09 09 57 61 69 74 69 | 6e 67 44 65 6c 61 79 20 |...Waiti|ngDelay |
|00001080| 3d 20 50 69 63 6b 75 70 | 49 74 65 6d 2e 52 65 73 |= Pickup|Item.Res|
|00001090| 70 61 77 6e 54 69 6d 65 | 3b 0d 0a 09 57 61 69 74 |pawnTime|;...Wait|
|000010a0| 69 6e 67 44 65 6c 61 79 | 20 2f 3d 20 4d 61 78 28 |ingDelay| /= Max(|
|000010b0| 20 31 2c 20 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 4e | 1, Leve|l.Game.N|
|000010c0| 75 6d 50 6c 61 79 65 72 | 73 20 2f 20 4d 61 78 28 |umPlayer|s / Max(|
|000010d0| 20 49 6e 74 28 20 4c 65 | 76 65 6c 2e 49 64 65 61 | Int( Le|vel.Idea|
|000010e0| 6c 50 6c 61 79 65 72 43 | 6f 75 6e 74 20 29 2c 20 |lPlayerC|ount ), |
|000010f0| 31 20 29 20 29 3b 0d 0a | 09 53 6c 65 65 70 28 20 |1 ) );..|.Sleep( |
|00001100| 57 61 69 74 69 6e 67 44 | 65 6c 61 79 20 2b 20 30 |WaitingD|elay + 0|
|00001110| 2e 33 20 29 3b 0d 0a 09 | 47 6f 74 6f 53 74 61 74 |.3 );...|GotoStat|
|00001120| 65 28 20 27 41 63 74 69 | 76 65 27 20 29 3b 0d 0a |e( 'Acti|ve' );..|
|00001130| 7d 0d 0a 0d 0a 2f 2f 65 | 6e 64 20 6f 66 20 53 70 |}....//e|nd of Sp|
|00001140| 61 77 6e 50 6f 6f 6c 2e | 0d 0a 0d 0a 00 |awnPool.|..... |
+--------+-------------------------+-------------------------+--------+--------+