home *** CD-ROM | disk | FTP | other *** search
/ PC User 2000 May / Australian_PC_User_2000-05_cd2.iso / patches / nerfpatch1-2.exe / System / Vox.u / ScriptText.TextBuffer < prev    next >
Unknown  |  2000-02-16  |  12.8 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 | 48 cd 01 2f 2f 3d 3d 3d |........|H..//===|
|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 3d 0d 0a 2f 2f 20 56 |========|==..// V|
|00000060| 6f 78 42 6f 78 0d 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |oxBox../|/=======|
|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 3d 0d 0a | 63 6c 61 73 73 20 56 6f |======..|class Vo|
|000000c0| 78 42 6f 78 20 65 78 70 | 61 6e 64 73 20 49 6e 66 |xBox exp|ands Inf|
|000000d0| 6f 3b 0d 0a 0d 0a 0d 0a | 23 65 78 65 63 20 4f 42 |o;......|#exec OB|
|000000e0| 4a 20 4c 4f 41 44 20 46 | 49 4c 45 3d 2e 2e 5c 73 |J LOAD F|ILE=..\s|
|000000f0| 6f 75 6e 64 73 5c 43 68 | 61 72 56 4f 2e 75 61 78 |ounds\Ch|arVO.uax|
|00000100| 0d 0a 23 65 78 65 63 20 | 4f 42 4a 20 4c 4f 41 44 |..#exec |OBJ LOAD|
|00000110| 20 46 49 4c 45 3d 2e 2e | 5c 73 6f 75 6e 64 73 5c | FILE=..|\sounds\|
|00000120| 50 41 46 6c 61 67 2e 75 | 61 78 0d 0a 23 65 78 65 |PAFlag.u|ax..#exe|
|00000130| 63 20 4f 42 4a 20 4c 4f | 41 44 20 46 49 4c 45 3d |c OBJ LO|AD FILE=|
|00000140| 2e 2e 5c 73 6f 75 6e 64 | 73 5c 50 41 42 61 6c 6c |..\sound|s\PABall|
|00000150| 2e 75 61 78 0d 0a 0d 0a | 0d 0a 72 65 70 6c 69 63 |.uax....|..replic|
|00000160| 61 74 69 6f 6e 0d 0a 7b | 0d 0a 20 20 20 75 6e 72 |ation..{|.. unr|
|00000170| 65 6c 69 61 62 6c 65 20 | 69 66 28 20 52 6f 6c 65 |eliable |if( Role|
|00000180| 3c 52 4f 4c 45 5f 41 75 | 74 68 6f 72 69 74 79 20 |<ROLE_Au|thority |
|00000190| 29 0d 0a 20 20 20 20 20 | 20 20 53 70 65 61 6b 2c |).. | Speak,|
|000001a0| 20 56 4a 4e 65 77 4c 65 | 61 64 65 72 2c 20 56 4a | VJNewLe|ader, VJ|
|000001b0| 46 6c 61 67 45 76 65 6e | 74 2c 20 56 4a 42 61 6c |FlagEven|t, VJBal|
|000001c0| 6c 45 76 65 6e 74 3b 0d | 0a 7d 0d 0a 0d 0a 2f 2f |lEvent;.|.}....//|
|000001d0| 20 44 53 4c 3a 0d 0a 2f | 2f 20 69 6d 70 6c 65 6d | DSL:../|/ implem|
|000001e0| 65 6e 74 65 64 20 73 6f | 20 66 61 72 0d 0a 2f 2f |ented so| far..//|
|000001f0| 20 54 41 55 4e 54 5f 47 | 65 6e 65 72 61 6c 20 20 | TAUNT_G|eneral |
|00000200| 20 20 20 20 20 20 30 0d | 0a 2f 2f 20 54 41 55 4e | 0.|.// TAUN|
|00000210| 54 5f 47 6f 74 59 61 20 | 20 20 20 20 20 20 20 20 |T_GotYa | |
|00000220| 20 32 0d 0a 2f 2f 20 54 | 41 55 4e 54 5f 47 6c 6f | 2..// T|AUNT_Glo|
|00000230| 61 74 20 20 20 20 20 20 | 20 20 20 20 35 20 20 20 |at | 5 |
|00000240| 28 20 67 6f 74 20 79 61 | 20 67 6f 6f 64 20 73 74 |( got ya| good st|
|00000250| 61 6e 64 69 6e 67 20 69 | 6e 20 66 6f 72 20 67 6c |anding i|n for gl|
|00000260| 6f 61 74 20 29 0d 0a 2f | 2f 0d 0a 2f 2f 20 6e 6f |oat )../|/..// no|
|00000270| 74 20 69 6d 70 6c 65 6d | 65 6e 74 65 64 20 73 6f |t implem|ented so|
|00000280| 20 66 61 72 0d 0a 2f 2f | 20 54 41 55 4e 54 5f 4d | far..//| TAUNT_M|
|00000290| 69 73 73 65 64 4d 65 2c | 20 20 20 20 20 20 31 0d |issedMe,| 1.|
|000002a0| 0a 2f 2f 20 54 41 55 4e | 54 5f 47 6f 74 59 61 47 |.// TAUN|T_GotYaG|
|000002b0| 6f 6f 64 20 20 20 20 20 | 20 33 0d 0a 2f 2f 20 54 |ood | 3..// T|
|000002c0| 41 55 4e 54 5f 59 6f 75 | 53 6c 6f 77 20 20 20 20 |AUNT_You|Slow |
|000002d0| 20 20 20 20 34 0d 0a 2f | 2f 20 54 41 55 4e 54 5f | 4../|/ TAUNT_|
|000002e0| 47 6f 74 4d 65 20 20 20 | 20 20 20 20 20 20 20 36 |GotMe | 6|
|000002f0| 0d 0a 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |....//==|========|
|00000300| 3d 3d 3d 64 61 74 61 20 | 73 74 72 75 63 74 73 0d |===data |structs.|
|00000310| 0a 0d 0a 73 74 72 75 63 | 74 20 54 61 75 6e 74 4c |...struc|t TauntL|
|00000320| 69 6e 65 0d 0a 7b 0d 0a | 20 20 20 20 76 61 72 20 |ine..{..| var |
|00000330| 53 6f 75 6e 64 20 4c 69 | 6e 65 5b 34 5d 3b 20 20 |Sound Li|ne[4]; |
|00000340| 20 20 20 20 20 20 20 20 | 2f 2f 20 72 6f 6f 6d 20 | |// room |
|00000350| 66 6f 72 20 75 70 20 74 | 6f 20 66 6f 75 72 20 76 |for up t|o four v|
|00000360| 61 72 69 61 74 69 6f 6e | 73 0d 0a 7d 3b 0d 0a 0d |ariation|s..};...|
|00000370| 0a 73 74 72 75 63 74 20 | 54 61 75 6e 74 47 72 6f |.struct |TauntGro|
|00000380| 75 70 0d 0a 7b 0d 0a 20 | 20 20 20 76 61 72 20 54 |up..{.. | var T|
|00000390| 61 75 6e 74 4c 69 6e 65 | 20 47 72 6f 75 70 5b 37 |auntLine| Group[7|
|000003a0| 5d 3b 0d 0a 7d 3b 0d 0a | 0d 0a 2f 2f 20 6d 65 61 |];..};..|..// mea|
|000003b0| 6e 73 20 6f 66 20 72 65 | 6d 65 6d 62 65 72 69 6e |ns of re|memberin|
|000003c0| 67 20 77 68 61 74 20 68 | 61 73 20 62 65 65 6e 20 |g what h|as been |
|000003d0| 73 61 69 64 20 72 65 63 | 65 6e 74 6c 79 20 73 6f |said rec|ently so|
|000003e0| 27 73 20 77 65 0d 0a 2f | 2f 20 64 6f 6e 27 74 20 |'s we../|/ don't |
|000003f0| 72 65 70 65 61 74 20 6f | 75 72 73 65 6c 66 73 20 |repeat o|urselfs |
|00000400| 74 6f 6f 20 6f 66 74 65 | 6e 0d 0a 0d 0a 73 74 72 |too ofte|n....str|
|00000410| 75 63 74 20 54 61 75 6e | 74 52 65 63 6f 72 64 0d |uct Taun|tRecord.|
|00000420| 0a 7b 0d 0a 20 20 20 20 | 76 61 72 20 45 54 61 75 |.{.. |var ETau|
|00000430| 6e 74 54 79 70 65 20 20 | 74 79 70 65 3b 0d 0a 20 |ntType |type;.. |
|00000440| 20 20 20 76 61 72 20 62 | 6f 6f 6c 09 20 20 20 20 | var b|ool. |
|00000450| 67 65 6e 65 3b 0d 0a 20 | 20 20 20 76 61 72 20 69 |gene;.. | var i|
|00000460| 6e 74 20 20 20 20 20 20 | 20 20 20 69 78 6c 69 6e |nt | ixlin|
|00000470| 65 3b 0d 0a 20 20 20 20 | 76 61 72 20 66 6c 6f 61 |e;.. |var floa|
|00000480| 74 20 20 20 20 20 20 20 | 77 68 65 6e 3b 0d 0a 7d |t |when;..}|
|00000490| 3b 0d 0a 0d 0a 2f 2f 3d | 3d 3d 3d 3d 3d 3d 3d 3d |;....//=|========|
|000004a0| 3d 3d 3d 3d 76 61 72 73 | 0d 0a 0d 0a 76 61 72 20 |====vars|....var |
|000004b0| 54 61 75 6e 74 47 72 6f | 75 70 20 20 4d 54 77 69 |TauntGro|up MTwi|
|000004c0| 73 74 65 72 3b 0d 0a 76 | 61 72 20 54 61 75 6e 74 |ster;..v|ar Taunt|
|000004d0| 47 72 6f 75 70 20 20 46 | 54 77 69 73 74 65 72 3b |Group F|Twister;|
|000004e0| 0d 0a 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 20 20 |....var |float |
|000004f0| 20 20 20 20 6c 61 73 74 | 54 61 75 6e 74 3b 0d 0a | last|Taunt;..|
|00000500| 76 61 72 20 54 61 75 6e | 74 52 65 63 6f 72 64 20 |var Taun|tRecord |
|00000510| 74 61 70 65 5b 38 5d 3b | 20 20 20 20 20 20 20 20 |tape[8];| |
|00000520| 2f 2f 20 4e 4f 54 45 3a | 20 73 68 6f 75 6c 64 20 |// NOTE:| should |
|00000530| 62 65 20 74 61 70 65 5b | 74 61 70 65 6c 65 6e 5d |be tape[|tapelen]|
|00000540| 0d 0a 76 61 72 20 69 6e | 74 20 20 20 20 20 20 20 |..var in|t |
|00000550| 20 20 74 61 70 65 70 74 | 72 3b 0d 0a 76 61 72 20 | tapept|r;..var |
|00000560| 69 6e 74 20 20 20 20 20 | 20 20 20 20 74 61 70 65 |int | tape|
|00000570| 6c 65 6e 3b 0d 0a 2f 2f | 76 61 72 20 73 74 72 69 |len;..//|var stri|
|00000580| 6e 67 20 20 20 20 20 20 | 54 65 61 6d 4e 61 6d 65 |ng |TeamName|
|00000590| 5b 38 5d 3b 0d 0a 76 61 | 72 20 66 6c 6f 61 74 20 |[8];..va|r float |
|000005a0| 20 20 20 20 20 20 4c 61 | 73 74 50 41 54 69 6d 65 | La|stPATime|
|000005b0| 3b 0d 0a 76 61 72 20 66 | 6c 6f 61 74 20 20 20 20 |;..var f|loat |
|000005c0| 20 20 20 50 41 44 65 6c | 61 79 3b 0d 0a 76 61 72 | PADel|ay;..var|
|000005d0| 20 73 6f 75 6e 64 20 20 | 20 20 20 20 20 47 65 6e | sound | Gen|
|000005e0| 4c 65 61 64 3b 0d 0a 76 | 61 72 20 73 6f 75 6e 64 |Lead;..v|ar sound|
|000005f0| 20 20 20 20 20 20 20 4e | 4c 65 61 64 65 72 5b 33 | N|Leader[3|
|00000600| 32 5d 3b 0d 0a 76 61 72 | 20 73 74 72 69 6e 67 20 |2];..var| string |
|00000610| 20 20 20 20 20 4e 65 77 | 4c 64 72 53 74 72 5b 33 | New|LdrStr[3|
|00000620| 32 5d 3b 0d 0a 76 61 72 | 20 45 42 6f 74 49 6e 64 |2];..var| EBotInd|
|00000630| 65 78 20 20 20 69 78 4c | 61 73 74 4c 65 61 64 65 |ex ixL|astLeade|
|00000640| 72 3b 0d 0a 2f 2f 20 62 | 61 6c 6c 62 6c 61 73 74 |r;..// b|allblast|
|00000650| 0d 0a 76 61 72 20 73 74 | 72 69 6e 67 20 20 20 20 |..var st|ring |
|00000660| 20 20 42 61 6c 6c 53 74 | 72 5b 34 5d 3b 0d 0a 76 | BallSt|r[4];..v|
|00000670| 61 72 20 73 6f 75 6e 64 | 20 20 20 20 20 20 20 42 |ar sound| B|
|00000680| 61 6c 6c 53 6e 64 5b 34 | 5d 3b 0d 0a 2f 2f 20 73 |allSnd[4|];..// s|
|00000690| 70 65 65 64 62 6c 61 73 | 74 0d 0a 76 61 72 20 73 |peedblas|t..var s|
|000006a0| 74 72 69 6e 67 20 20 20 | 20 20 20 46 6c 61 67 53 |tring | FlagS|
|000006b0| 74 72 5b 37 5d 3b 0d 0a | 76 61 72 20 73 6f 75 6e |tr[7];..|var soun|
|000006c0| 64 20 20 20 20 20 20 20 | 46 6c 61 67 53 6e 64 5b |d |FlagSnd[|
|000006d0| 37 5d 3b 0d 0a 0d 0a 2f | 2f 3d 3d 3d 3d 3d 3d 3d |7];..../|/=======|
|000006e0| 3d 3d 3d 3d 3d 3d 66 75 | 6e 63 73 0d 0a 0d 0a 66 |======fu|ncs....f|
|000006f0| 75 6e 63 74 69 6f 6e 20 | 50 72 65 42 65 67 69 6e |unction |PreBegin|
|00000700| 50 6c 61 79 28 29 0d 0a | 7b 0d 0a 2f 2a 0d 0a 20 |Play()..|{../*.. |
|00000710| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|00000720| 70 5b 30 5d 2e 4c 69 6e | 65 5b 30 5d 20 3d 20 53 |p[0].Lin|e[0] = S|
|00000730| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|00000740| 77 30 31 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w01';.. | MTwis|
|00000750| 74 65 72 2e 47 72 6f 75 | 70 5b 30 5d 2e 4c 69 6e |ter.Grou|p[0].Lin|
|00000760| 65 5b 31 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[1] = S|ound'Cha|
|00000770| 72 56 4f 2e 74 6e 74 74 | 77 30 32 27 3b 0d 0a 20 |rVO.tntt|w02';.. |
|00000780| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|00000790| 70 5b 30 5d 2e 4c 69 6e | 65 5b 32 5d 20 3d 20 53 |p[0].Lin|e[2] = S|
|000007a0| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|000007b0| 77 30 33 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w03';.. | MTwis|
|000007c0| 74 65 72 2e 47 72 6f 75 | 70 5b 30 5d 2e 4c 69 6e |ter.Grou|p[0].Lin|
|000007d0| 65 5b 33 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[3] = S|ound'Cha|
|000007e0| 72 56 4f 2e 74 6e 74 74 | 77 30 34 27 3b 0d 0a 20 |rVO.tntt|w04';.. |
|000007f0| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|00000800| 70 5b 32 5d 2e 4c 69 6e | 65 5b 30 5d 20 3d 20 53 |p[2].Lin|e[0] = S|
|00000810| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|00000820| 77 30 35 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w05';.. | MTwis|
|00000830| 74 65 72 2e 47 72 6f 75 | 70 5b 32 5d 2e 4c 69 6e |ter.Grou|p[2].Lin|
|00000840| 65 5b 31 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[1] = S|ound'Cha|
|00000850| 72 56 4f 2e 74 6e 74 74 | 77 30 36 27 3b 0d 0a 20 |rVO.tntt|w06';.. |
|00000860| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|00000870| 70 5b 32 5d 2e 4c 69 6e | 65 5b 32 5d 20 3d 20 53 |p[2].Lin|e[2] = S|
|00000880| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|00000890| 77 30 37 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w07';.. | MTwis|
|000008a0| 74 65 72 2e 47 72 6f 75 | 70 5b 32 5d 2e 4c 69 6e |ter.Grou|p[2].Lin|
|000008b0| 65 5b 33 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[3] = S|ound'Cha|
|000008c0| 72 56 4f 2e 74 6e 74 74 | 77 30 39 27 3b 0d 0a 20 |rVO.tntt|w09';.. |
|000008d0| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|000008e0| 70 5b 35 5d 2e 4c 69 6e | 65 5b 30 5d 20 3d 20 53 |p[5].Lin|e[0] = S|
|000008f0| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|00000900| 77 31 30 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w10';.. | MTwis|
|00000910| 74 65 72 2e 47 72 6f 75 | 70 5b 35 5d 2e 4c 69 6e |ter.Grou|p[5].Lin|
|00000920| 65 5b 31 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[1] = S|ound'Cha|
|00000930| 72 56 4f 2e 74 6e 74 74 | 77 31 31 27 3b 0d 0a 20 |rVO.tntt|w11';.. |
|00000940| 20 20 20 4d 54 77 69 73 | 74 65 72 2e 47 72 6f 75 | MTwis|ter.Grou|
|00000950| 70 5b 35 5d 2e 4c 69 6e | 65 5b 32 5d 20 3d 20 53 |p[5].Lin|e[2] = S|
|00000960| 6f 75 6e 64 27 43 68 61 | 72 56 4f 2e 74 6e 74 74 |ound'Cha|rVO.tntt|
|00000970| 77 31 32 27 3b 0d 0a 20 | 20 20 20 4d 54 77 69 73 |w12';.. | MTwis|
|00000980| 74 65 72 2e 47 72 6f 75 | 70 5b 35 5d 2e 4c 69 6e |ter.Grou|p[5].Lin|
|00000990| 65 5b 33 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[3] = S|ound'Cha|
|000009a0| 72 56 4f 2e 74 6e 74 74 | 77 31 33 27 3b 0d 0a 0d |rVO.tntt|w13';...|
|000009b0| 0a 20 20 20 20 46 54 77 | 69 73 74 65 72 2e 47 72 |. FTw|ister.Gr|
|000009c0| 6f 75 70 5b 30 5d 2e 4c | 69 6e 65 5b 30 5d 20 3d |oup[0].L|ine[0] =|
|000009d0| 20 53 6f 75 6e 64 27 43 | 68 61 72 56 4f 2e 74 6e | Sound'C|harVO.tn|
|000009e0| 74 74 77 66 30 31 27 3b | 0d 0a 20 20 20 20 46 54 |ttwf01';|.. FT|
|000009f0| 77 69 73 74 65 72 2e 47 | 72 6f 75 70 5b 30 5d 2e |wister.G|roup[0].|
|00000a00| 4c 69 6e 65 5b 31 5d 20 | 3d 20 53 6f 75 6e 64 27 |Line[1] |= Sound'|
|00000a10| 43 68 61 72 56 4f 2e 74 | 6e 74 74 77 66 30 32 27 |CharVO.t|nttwf02'|
|00000a20| 3b 0d 0a 20 20 20 20 46 | 54 77 69 73 74 65 72 2e |;.. F|Twister.|
|00000a30| 47 72 6f 75 70 5b 30 5d | 2e 4c 69 6e 65 5b 32 5d |Group[0]|.Line[2]|
|00000a40| 20 3d 20 53 6f 75 6e 64 | 27 43 68 61 72 56 4f 2e | = Sound|'CharVO.|
|00000a50| 74 6e 74 74 77 66 30 33 | 27 3b 0d 0a 20 20 20 20 |tnttwf03|';.. |
|00000a60| 46 54 77 69 73 74 65 72 | 2e 47 72 6f 75 70 5b 30 |FTwister|.Group[0|
|00000a70| 5d 2e 4c 69 6e 65 5b 33 | 5d 20 3d 20 53 6f 75 6e |].Line[3|] = Soun|
|00000a80| 64 27 43 68 61 72 56 4f | 2e 74 6e 74 74 77 66 30 |d'CharVO|.tnttwf0|
|00000a90| 34 27 3b 0d 0a 20 20 20 | 20 46 54 77 69 73 74 65 |4';.. | FTwiste|
|00000aa0| 72 2e 47 72 6f 75 70 5b | 32 5d 2e 4c 69 6e 65 5b |r.Group[|2].Line[|
|00000ab0| 30 5d 20 3d 20 53 6f 75 | 6e 64 27 43 68 61 72 56 |0] = Sou|nd'CharV|
|00000ac0| 4f 2e 74 6e 74 74 77 66 | 30 35 27 3b 0d 0a 20 20 |O.tnttwf|05';.. |
|00000ad0| 20 20 46 54 77 69 73 74 | 65 72 2e 47 72 6f 75 70 | FTwist|er.Group|
|00000ae0| 5b 32 5d 2e 4c 69 6e 65 | 5b 31 5d 20 3d 20 53 6f |[2].Line|[1] = So|
|00000af0| 75 6e 64 27 43 68 61 72 | 56 4f 2e 74 6e 74 74 77 |und'Char|VO.tnttw|
|00000b00| 66 30 36 27 3b 0d 0a 20 | 20 20 20 46 54 77 69 73 |f06';.. | FTwis|
|00000b10| 74 65 72 2e 47 72 6f 75 | 70 5b 32 5d 2e 4c 69 6e |ter.Grou|p[2].Lin|
|00000b20| 65 5b 32 5d 20 3d 20 53 | 6f 75 6e 64 27 43 68 61 |e[2] = S|ound'Cha|
|00000b30| 72 56 4f 2e 74 6e 74 74 | 77 66 30 37 27 3b 0d 0a |rVO.tntt|wf07';..|
|00000b40| 20 20 20 20 46 54 77 69 | 73 74 65 72 2e 47 72 6f | FTwi|ster.Gro|
|00000b50| 75 70 5b 32 5d 2e 4c 69 | 6e 65 5b 33 5d 20 3d 20 |up[2].Li|ne[3] = |
|00000b60| 53 6f 75 6e 64 27 43 68 | 61 72 56 4f 2e 74 6e 74 |Sound'Ch|arVO.tnt|
|00000b70| 74 77 66 30 38 27 3b 0d | 0a 20 20 20 20 46 54 77 |twf08';.|. FTw|
|00000b80| 69 73 74 65 72 2e 47 72 | 6f 75 70 5b 35 5d 2e 4c |ister.Gr|oup[5].L|
|00000b90| 69 6e 65 5b 30 5d 20 3d | 20 53 6f 75 6e 64 27 43 |ine[0] =| Sound'C|
|00000ba0| 68 61 72 56 4f 2e 74 6e | 74 74 77 66 30 39 27 3b |harVO.tn|ttwf09';|
|00000bb0| 0d 0a 20 20 20 20 46 54 | 77 69 73 74 65 72 2e 47 |.. FT|wister.G|
|00000bc0| 72 6f 75 70 5b 35 5d 2e | 4c 69 6e 65 5b 31 5d 20 |roup[5].|Line[1] |
|00000bd0| 3d 20 53 6f 75 6e 64 27 | 43 68 61 72 56 4f 2e 74 |= Sound'|CharVO.t|
|00000be0| 6e 74 74 77 66 31 30 27 | 3b 0d 0a 20 20 20 20 46 |nttwf10'|;.. F|
|00000bf0| 54 77 69 73 74 65 72 2e | 47 72 6f 75 70 5b 35 5d |Twister.|Group[5]|
|00000c00| 2e 4c 69 6e 65 5b 32 5d | 20 3d 20 53 6f 75 6e 64 |.Line[2]| = Sound|
|00000c10| 27 43 68 61 72 56 4f 2e | 74 6e 74 74 77 66 31 31 |'CharVO.|tnttwf11|
|00000c20| 27 3b 0d 0a 20 20 20 20 | 46 54 77 69 73 74 65 72 |';.. |FTwister|
|00000c30| 2e 47 72 6f 75 70 5b 35 | 5d 2e 4c 69 6e 65 5b 33 |.Group[5|].Line[3|
|00000c40| 5d 20 3d 20 53 6f 75 6e | 64 27 43 68 61 72 56 4f |] = Soun|d'CharVO|
|00000c50| 2e 74 6e 74 74 77 66 31 | 32 27 3b 0d 0a 0d 0a 20 |.tnttwf1|2';.... |
|00000c60| 20 20 20 42 61 6c 6c 53 | 6e 64 5b 30 5d 20 3d 20 | BallS|nd[0] = |
|00000c70| 53 6f 75 6e 64 27 50 41 | 42 61 6c 6c 2e 70 61 73 |Sound'PA|Ball.pas|
|00000c80| 6c 6d 64 6e 6b 27 3b 0d | 0a 20 20 20 20 42 61 6c |lmdnk';.|. Bal|
|00000c90| 6c 53 6e 64 5b 31 5d 20 | 3d 20 53 6f 75 6e 64 27 |lSnd[1] |= Sound'|
|00000ca0| 50 41 42 61 6c 6c 2e 70 | 61 62 75 6c 6c 27 3b 0d |PABall.p|abull';.|
|00000cb0| 0a 20 20 20 20 42 61 6c | 6c 53 6e 64 5b 32 5d 20 |. Bal|lSnd[2] |
|00000cc0| 3d 20 53 6f 75 6e 64 27 | 50 41 42 61 6c 6c 2e 70 |= Sound'|PABall.p|
|00000cd0| 61 67 6f 6c 64 27 3b 0d | 0a 20 20 20 20 42 61 6c |agold';.|. Bal|
|00000ce0| 6c 53 6e 64 5b 33 5d 20 | 3d 20 53 6f 75 6e 64 27 |lSnd[3] |= Sound'|
|00000cf0| 50 41 42 61 6c 6c 2e 70 | 61 62 61 6c 6c 37 27 3b |PABall.p|aball7';|
|00000d00| 0d 0a 0d 0a 20 20 20 20 | 46 6c 61 67 53 6e 64 5b |.... |FlagSnd[|
|00000d10| 30 5d 20 3d 20 53 6f 75 | 6e 64 27 50 41 46 6c 61 |0] = Sou|nd'PAFla|
|00000d20| 67 2e 70 61 66 6c 61 67 | 31 27 3b 0d 0a 20 20 20 |g.paflag|1';.. |
|00000d30| 20 46 6c 61 67 53 6e 64 | 5b 31 5d 20 3d 20 53 6f | FlagSnd|[1] = So|
|00000d40| 75 6e 64 27 50 41 46 6c | 61 67 2e 70 61 66 6c 61 |und'PAFl|ag.pafla|
|00000d50| 67 32 27 3b 0d 0a 20 20 | 20 20 46 6c 61 67 53 6e |g2';.. | FlagSn|
|00000d60| 64 5b 32 5d 20 3d 20 53 | 6f 75 6e 64 27 50 41 46 |d[2] = S|ound'PAF|
|00000d70| 6c 61 67 2e 70 61 66 6c | 61 67 33 27 3b 0d 0a 20 |lag.pafl|ag3';.. |
|00000d80| 20 20 20 46 6c 61 67 53 | 6e 64 5b 33 5d 20 3d 20 | FlagS|nd[3] = |
|00000d90| 53 6f 75 6e 64 27 50 41 | 46 6c 61 67 2e 70 61 66 |Sound'PA|Flag.paf|
|00000da0| 6c 61 67 34 27 3b 0d 0a | 20 20 20 20 46 6c 61 67 |lag4';..| Flag|
|00000db0| 53 6e 64 5b 34 5d 20 3d | 20 53 6f 75 6e 64 27 50 |Snd[4] =| Sound'P|
|00000dc0| 41 46 6c 61 67 2e 70 61 | 66 6c 61 67 35 27 3b 0d |AFlag.pa|flag5';.|
|00000dd0| 0a 20 20 20 20 46 6c 61 | 67 53 6e 64 5b 35 5d 20 |. Fla|gSnd[5] |
|00000de0| 3d 20 53 6f 75 6e 64 27 | 50 41 46 6c 61 67 2e 70 |= Sound'|PAFlag.p|
|00000df0| 61 66 6c 61 67 36 27 3b | 0d 0a 20 20 20 20 46 6c |aflag6';|.. Fl|
|00000e00| 61 67 53 6e 64 5b 36 5d | 20 3d 20 53 6f 75 6e 64 |agSnd[6]| = Sound|
|00000e10| 27 50 41 46 6c 61 67 2e | 70 61 66 6c 61 67 37 27 |'PAFlag.|paflag7'|
|00000e20| 3b 0d 0a 2a 2f 0d 0a 0d | 0a 20 20 20 20 69 78 4c |;..*/...|. ixL|
|00000e30| 61 73 74 4c 65 61 64 65 | 72 20 3d 20 41 4b 41 5f |astLeade|r = AKA_|
|00000e40| 4e 6f 6e 65 3b 0d 0a 7d | 0d 0a 0d 0a 0d 0a 2f 2f |None;..}|......//|
|00000e50| 20 72 65 74 75 72 6e 20 | 46 41 4c 53 45 20 69 66 | return |FALSE if|
|00000e60| 20 6c 69 6e 65 20 68 61 | 73 20 62 65 65 6e 20 72 | line ha|s been r|
|00000e70| 65 63 65 6e 74 6c 79 20 | 75 73 65 64 0d 0a 2f 2f |ecently |used..//|
|00000e80| 20 65 6c 73 65 20 54 52 | 55 45 20 3d 20 67 6f 20 | else TR|UE = go |
|00000e90| 61 68 65 61 64 20 61 6e | 64 20 73 61 79 20 69 74 |ahead an|d say it|
|00000ea0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00000eb0| 43 68 65 63 6b 4c 6f 67 | 28 20 45 54 61 75 6e 74 |CheckLog|( ETaunt|
|00000ec0| 54 79 70 65 20 74 74 2c | 20 69 6e 74 20 69 78 2c |Type tt,| int ix,|
|00000ed0| 20 62 6f 6f 6c 20 67 20 | 29 0d 0a 7b 0d 0a 20 20 | bool g |)..{.. |
|00000ee0| 20 20 6c 6f 63 61 6c 20 | 69 6e 74 20 6a 3b 0d 0a | local |int j;..|
|00000ef0| 20 20 20 20 66 6f 72 20 | 28 20 6a 20 3d 20 30 3b | for |( j = 0;|
|00000f00| 20 6a 20 3c 20 74 61 70 | 65 6c 65 6e 3b 20 6a 2b | j < tap|elen; j+|
|00000f10| 2b 20 29 0d 0a 20 20 20 | 20 7b 0d 0a 20 20 20 20 |+ ).. | {.. |
|00000f20| 20 20 20 20 69 66 20 28 | 20 28 74 61 70 65 5b 6a | if (| (tape[j|
|00000f30| 5d 2e 74 79 70 65 20 3d | 3d 20 74 74 29 0d 0a 20 |].type =|= tt).. |
|00000f40| 20 20 20 20 20 20 20 20 | 20 26 26 20 28 74 61 70 | | && (tap|
|00000f50| 65 5b 6a 5d 2e 67 65 6e | 65 20 3d 3d 20 67 20 29 |e[j].gen|e == g )|
|00000f60| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 26 26 20 28 |.. | && (|
|00000f70| 74 61 70 65 5b 6a 5d 2e | 69 78 6c 69 6e 65 20 3d |tape[j].|ixline =|
|00000f80| 3d 20 69 78 20 29 20 29 | 0d 0a 20 20 20 20 20 20 |= ix ) )|.. |
|00000f90| 20 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 3b 0d | return| false;.|
|00000fa0| 0a 20 20 20 20 7d 0d 0a | 0d 0a 20 20 20 20 72 65 |. }..|.. re|
|00000fb0| 74 75 72 6e 20 74 72 75 | 65 3b 20 20 20 20 0d 0a |turn tru|e; ..|
|00000fc0| 7d 0d 0a 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |}......f|unction |
|00000fd0| 53 6f 75 6e 64 20 77 68 | 6f 73 74 61 6c 6b 69 6e |Sound wh|ostalkin|
|00000fe0| 67 28 20 54 61 75 6e 74 | 47 72 6f 75 70 20 74 67 |g( Taunt|Group tg|
|00000ff0| 2c 20 45 54 61 75 6e 74 | 54 79 70 65 20 74 74 2c |, ETaunt|Type tt,|
|00001000| 20 69 6e 74 20 77 68 69 | 63 68 6c 69 6e 65 29 0d | int whi|chline).|
|00001010| 0a 7b 0d 0a 20 20 20 20 | 6c 6f 63 61 6c 20 53 6f |.{.. |local So|
|00001020| 75 6e 64 20 53 3b 0d 0a | 09 6c 6f 63 61 6c 20 73 |und S;..|.local s|
|00001030| 74 72 69 6e 67 20 72 73 | 72 63 3b 0d 0a 09 6c 6f |tring rs|rc;...lo|
|00001040| 63 61 6c 20 69 6e 74 20 | 74 61 75 6e 74 6c 69 6e |cal int |tauntlin|
|00001050| 65 69 6e 64 65 78 3b 0d | 0a 0d 0a 09 69 66 20 28 |eindex;.|....if (|
|00001060| 20 74 67 20 3d 3d 20 4d | 54 77 69 73 74 65 72 29 | tg == M|Twister)|
|00001070| 0d 0a 09 7b 0d 0a 09 09 | 73 77 69 74 63 68 28 69 |...{....|switch(i|
|00001080| 6e 74 28 74 74 29 29 0d | 0a 09 09 7b 0d 0a 09 09 |nt(tt)).|...{....|
|00001090| 09 63 61 73 65 20 30 3a | 09 74 61 75 6e 74 6c 69 |.case 0:|.tauntli|
|000010a0| 6e 65 69 6e 64 65 78 3d | 74 74 2a 32 2b 77 68 69 |neindex=|tt*2+whi|
|000010b0| 63 68 6c 69 6e 65 2b 31 | 3b 0d 0a 09 09 09 09 09 |chline+1|;.......|
|000010c0| 72 73 72 63 3d 22 43 68 | 61 72 56 4f 2e 74 6e 74 |rsrc="Ch|arVO.tnt|
|000010d0| 74 77 30 22 24 74 61 75 | 6e 74 6c 69 6e 65 69 6e |tw0"$tau|ntlinein|
|000010e0| 64 65 78 3b 0d 0a 09 09 | 09 09 09 53 3d 53 6f 75 |dex;....|...S=Sou|
|000010f0| 6e 64 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |nd(Dynam|icLoadOb|
|00001100| 6a 65 63 74 28 72 73 72 | 63 2c 63 6c 61 73 73 27 |ject(rsr|c,class'|
|00001110| 53 6f 75 6e 64 27 29 29 | 3b 0d 0a 09 09 09 09 09 |Sound'))|;.......|
|00001120| 72 65 74 75 72 6e 20 53 | 3b 0d 0a 09 09 09 63 61 |return S|;.....ca|
|00001130| 73 65 20 32 3a 09 69 66 | 20 28 77 68 69 63 68 6c |se 2:.if| (whichl|
|00001140| 69 6e 65 20 3d 3d 20 33 | 29 0d 0a 09 09 09 09 09 |ine == 3|).......|
|00001150| 09 74 61 75 6e 74 6c 69 | 6e 65 69 6e 64 65 78 3d |.tauntli|neindex=|
|00001160| 74 74 2a 32 2b 77 68 69 | 63 68 6c 69 6e 65 2b 32 |tt*2+whi|chline+2|
|00001170| 3b 0d 0a 09 09 09 09 09 | 65 6c 73 65 20 0d 0a 09 |;.......|else ...|
|00001180| 09 09 09 09 09 74 61 75 | 6e 74 6c 69 6e 65 69 6e |.....tau|ntlinein|
|00001190| 64 65 78 3d 74 74 2a 32 | 2b 77 68 69 63 68 6c 69 |dex=tt*2|+whichli|
|000011a0| 6e 65 2b 31 3b 0d 0a 09 | 09 09 09 09 72 73 72 63 |ne+1;...|....rsrc|
|000011b0| 3d 22 43 68 61 72 56 4f | 2e 74 6e 74 74 77 30 22 |="CharVO|.tnttw0"|
|000011c0| 24 74 61 75 6e 74 6c 69 | 6e 65 69 6e 64 65 78 3b |$tauntli|neindex;|
|000011d0| 0d 0a 09 09 09 09 09 53 | 3d 53 6f 75 6e 64 28 44 |.......S|=Sound(D|
|000011e0| 79 6e 61 6d 69 63 4c 6f | 61 64 4f 62 6a 65 63 74 |ynamicLo|adObject|
|000011f0| 28 72 73 72 63 2c 63 6c | 61 73 73 27 53 6f 75 6e |(rsrc,cl|ass'Soun|
|00001200| 64 27 29 29 3b 0d 0a 09 | 09 09 09 09 72 65 74 75 |d'));...|....retu|
|00001210| 72 6e 20 53 3b 0d 0a 09 | 09 09 63 61 73 65 20 35 |rn S;...|..case 5|
|00001220| 3a 09 74 61 75 6e 74 6c | 69 6e 65 69 6e 64 65 78 |:.tauntl|ineindex|
|00001230| 3d 74 74 2a 32 2b 77 68 | 69 63 68 6c 69 6e 65 3b |=tt*2+wh|ichline;|
|00001240| 0d 0a 09 09 09 09 09 72 | 73 72 63 3d 22 43 68 61 |.......r|src="Cha|
|00001250| 72 56 4f 2e 74 6e 74 74 | 77 22 24 74 61 75 6e 74 |rVO.tntt|w"$taunt|
|00001260| 6c 69 6e 65 69 6e 64 65 | 78 3b 0d 0a 09 09 09 09 |lineinde|x;......|
|00001270| 09 53 3d 53 6f 75 6e 64 | 28 44 79 6e 61 6d 69 63 |.S=Sound|(Dynamic|
|00001280| 4c 6f 61 64 4f 62 6a 65 | 63 74 28 72 73 72 63 2c |LoadObje|ct(rsrc,|
|00001290| 63 6c 61 73 73 27 53 6f | 75 6e 64 27 29 29 3b 0d |class'So|und'));.|
|000012a0| 0a 09 09 09 09 09 72 65 | 74 75 72 6e 20 53 3b 0d |......re|turn S;.|
|000012b0| 0a 09 09 7d 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 20 |...}...}|...else |
|000012c0| 69 66 20 28 74 67 20 3d | 3d 20 46 54 77 69 73 74 |if (tg =|= FTwist|
|000012d0| 65 72 29 0d 0a 09 7b 0d | 0a 09 09 73 77 69 74 63 |er)...{.|...switc|
|000012e0| 68 28 69 6e 74 28 74 74 | 29 29 0d 0a 09 09 7b 0d |h(int(tt|))....{.|
|000012f0| 0a 09 09 09 63 61 73 65 | 20 30 3a 09 0d 0a 09 09 |....case| 0:.....|
|00001300| 09 63 61 73 65 20 32 3a | 09 0d 0a 09 09 09 09 09 |.case 2:|........|
|00001310| 74 61 75 6e 74 6c 69 6e | 65 69 6e 64 65 78 3d 74 |tauntlin|eindex=t|
|00001320| 74 2a 32 2b 77 68 69 63 | 68 6c 69 6e 65 2b 31 3b |t*2+whic|hline+1;|
|00001330| 0d 0a 09 09 09 09 09 72 | 73 72 63 3d 22 43 68 61 |.......r|src="Cha|
|00001340| 72 56 4f 2e 74 6e 74 74 | 77 30 22 24 74 61 75 6e |rVO.tntt|w0"$taun|
|00001350| 74 6c 69 6e 65 69 6e 64 | 65 78 3b 0d 0a 09 09 09 |tlineind|ex;.....|
|00001360| 09 09 53 3d 53 6f 75 6e | 64 28 44 79 6e 61 6d 69 |..S=Soun|d(Dynami|
|00001370| 63 4c 6f 61 64 4f 62 6a | 65 63 74 28 72 73 72 63 |cLoadObj|ect(rsrc|
|00001380| 2c 63 6c 61 73 73 27 53 | 6f 75 6e 64 27 29 29 3b |,class'S|ound'));|
|00001390| 0d 0a 09 09 09 09 09 72 | 65 74 75 72 6e 20 53 3b |.......r|eturn S;|
|000013a0| 0d 0a 09 09 09 63 61 73 | 65 20 35 3a 09 74 61 75 |.....cas|e 5:.tau|
|000013b0| 6e 74 6c 69 6e 65 69 6e | 64 65 78 3d 74 74 2a 32 |ntlinein|dex=tt*2|
|000013c0| 2b 77 68 69 63 68 6c 69 | 6e 65 2d 31 3b 0d 0a 09 |+whichli|ne-1;...|
|000013d0| 09 09 09 09 69 66 20 28 | 74 61 75 6e 74 6c 69 6e |....if (|tauntlin|
|000013e0| 65 69 6e 64 65 78 20 3c | 20 31 30 29 0d 0a 09 09 |eindex <| 10)....|
|000013f0| 09 09 09 09 72 73 72 63 | 3d 22 43 68 61 72 56 4f |....rsrc|="CharVO|
|00001400| 2e 74 6e 74 74 77 30 22 | 24 74 61 75 6e 74 6c 69 |.tnttw0"|$tauntli|
|00001410| 6e 65 69 6e 64 65 78 3b | 0d 0a 09 09 09 09 09 65 |neindex;|.......e|
|00001420| 6c 73 65 0d 0a 09 09 09 | 09 09 09 72 73 72 63 3d |lse.....|...rsrc=|
|00001430| 22 43 68 61 72 56 4f 2e | 74 6e 74 74 77 30 22 24 |"CharVO.|tnttw0"$|
|00001440| 74 61 75 6e 74 6c 69 6e | 65 69 6e 64 65 78 3b 0d |tauntlin|eindex;.|
|00001450| 0a 09 09 09 09 09 53 3d | 53 6f 75 6e 64 28 44 79 |......S=|Sound(Dy|
|00001460| 6e 61 6d 69 63 4c 6f 61 | 64 4f 62 6a 65 63 74 28 |namicLoa|dObject(|
|00001470| 72 73 72 63 2c 63 6c 61 | 73 73 27 53 6f 75 6e 64 |rsrc,cla|ss'Sound|
|00001480| 27 29 29 3b 0d 0a 09 09 | 09 09 09 72 65 74 75 72 |'));....|...retur|
|00001490| 6e 20 53 3b 0d 0a 09 09 | 7d 0d 0a 0d 0a 09 7d 0d |n S;....|}.....}.|
|000014a0| 0a 09 0d 0a 09 72 65 74 | 75 72 6e 20 4e 6f 6e 65 |.....ret|urn None|
|000014b0| 3b 0d 0a 7d 0d 0a 0d 0a | 73 69 6d 75 6c 61 74 65 |;..}....|simulate|
|000014c0| 64 20 66 75 6e 63 74 69 | 6f 6e 20 53 70 65 61 6b |d functi|on Speak|
|000014d0| 28 20 50 61 77 6e 20 50 | 2c 20 45 54 61 75 6e 74 |( Pawn P|, ETaunt|
|000014e0| 54 79 70 65 20 74 74 20 | 29 0d 0a 7b 0d 0a 20 20 |Type tt |)..{.. |
|000014f0| 20 20 6c 6f 63 61 6c 20 | 53 6f 75 6e 64 20 20 20 | local |Sound |
|00001500| 20 20 20 20 20 20 73 3b | 0d 0a 20 20 20 20 6c 6f | s;|.. lo|
|00001510| 63 61 6c 20 45 54 65 61 | 6d 54 79 70 65 20 20 20 |cal ETea|mType |
|00001520| 20 20 74 3b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 | t;.. | local |
|00001530| 69 6e 74 20 20 20 20 20 | 20 20 20 20 20 20 69 3b |int | i;|
|00001540| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 45 42 6f 74 |.. lo|cal EBot|
|00001550| 49 6e 64 65 78 20 20 20 | 20 20 6e 3b 0d 0a 20 20 |Index | n;.. |
|00001560| 20 20 6c 6f 63 61 6c 20 | 62 6f 6f 6c 20 20 20 20 | local |bool |
|00001570| 20 20 20 67 3b 20 20 20 | 20 20 20 0d 0a 0d 0a 20 | g; | .... |
|00001580| 20 20 20 6c 6f 63 61 6c | 20 54 61 75 6e 74 47 72 | local| TauntGr|
|00001590| 6f 75 70 20 20 20 20 74 | 67 3b 0d 0a 20 20 20 20 |oup t|g;.. |
|000015a0| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 20 20 20 20 20 |local bo|ol |
|000015b0| 20 20 20 20 62 47 6f 3b | 0d 0a 20 20 20 20 0d 0a | bGo;|.. ..|
|000015c0| 20 20 20 20 74 20 3d 20 | 50 2e 50 6c 61 79 65 72 | t = |P.Player|
|000015d0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000015e0| 54 65 61 6d 54 79 70 65 | 3b 0d 0a 20 20 20 20 6e |TeamType|;.. n|
|000015f0| 20 3d 20 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 | = P.Pla|yerRepli|
|00001600| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 42 6f 74 49 6e |cationIn|fo.BotIn|
|00001610| 64 65 78 3b 0d 0a 20 20 | 20 20 67 20 3d 20 50 2e |dex;.. | g = P.|
|00001620| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001630| 6e 49 6e 66 6f 2e 62 49 | 73 46 65 6d 61 6c 65 3b |nInfo.bI|sFemale;|
|00001640| 0d 0a 0d 0a 2f 2f 6c 6f | 67 28 20 22 44 53 4c 20 |....//lo|g( "DSL |
|00001650| 2d 20 41 62 6f 75 74 20 | 74 6f 20 53 70 65 61 6b |- About |to Speak|
|00001660| 22 20 29 3b 0d 0a 2f 2f | 20 6c 65 74 27 73 20 6e |" );..//| let's n|
|00001670| 6f 74 20 67 65 74 20 74 | 6f 6f 20 63 68 61 74 74 |ot get t|oo chatt|
|00001680| 79 20 69 66 20 77 65 20 | 61 72 65 20 61 20 62 6f |y if we |are a bo|
|00001690| 74 0d 0a 0d 0a 20 20 20 | 20 69 66 20 28 20 50 2e |t.... | if ( P.|
|000016a0| 49 73 41 28 27 4e 65 72 | 66 42 6f 74 73 27 29 20 |IsA('Ner|fBots') |
|000016b0| 29 0d 0a 20 20 20 20 7b | 0d 0a 2f 2f 6c 6f 67 28 |).. {|..//log(|
|000016c0| 20 22 56 4f 58 3a 20 49 | 27 6d 20 61 20 62 6f 74 | "VOX: I|'m a bot|
|000016d0| 2c 20 73 6f 20 49 20 6d | 69 67 68 74 20 62 65 20 |, so I m|ight be |
|000016e0| 63 65 6e 73 6f 72 65 64 | 22 20 29 3b 0d 0a 20 20 |censored|" );.. |
|000016f0| 20 20 20 20 20 20 69 66 | 20 28 20 28 4c 65 76 65 | if| ( (Leve|
|00001700| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 2d 20 |l.TimeSe|conds - |
|00001710| 6c 61 73 74 54 61 75 6e | 74 29 20 3c 20 31 32 2e |lastTaun|t) < 12.|
|00001720| 30 20 20 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |0 ).. | |
|00001730| 20 20 72 65 74 75 72 6e | 3b 0d 0a 20 20 20 20 7d | return|;.. }|
|00001740| 0d 0a 0d 0a 20 20 20 20 | 69 20 3d 20 52 61 6e 64 |.... |i = Rand|
|00001750| 28 20 33 20 29 3b 20 20 | 20 20 20 20 20 20 20 20 |( 3 ); | |
|00001760| 20 20 20 20 20 20 20 20 | 2f 2f 20 70 69 63 6b 20 | |// pick |
|00001770| 61 20 6c 69 6e 65 2c 20 | 61 6e 79 20 6c 69 6e 65 |a line, |any line|
|00001780| 0d 0a 0d 0a 20 20 20 20 | 74 67 20 3d 20 4d 54 77 |.... |tg = MTw|
|00001790| 69 73 74 65 72 3b 20 20 | 20 20 20 20 20 20 20 20 |ister; | |
|000017a0| 20 20 20 20 20 20 20 20 | 2f 2f 20 64 65 66 61 75 | |// defau|
|000017b0| 6c 74 20 74 6f 20 6d 61 | 6c 65 20 76 6f 69 63 65 |lt to ma|le voice|
|000017c0| 73 0d 0a 20 20 20 20 69 | 66 20 28 20 67 20 29 0d |s.. i|f ( g ).|
|000017d0| 0a 20 20 20 20 20 20 20 | 20 74 67 20 3d 20 46 54 |. | tg = FT|
|000017e0| 77 69 73 74 65 72 3b 20 | 20 20 20 20 20 20 20 20 |wister; | |
|000017f0| 20 20 20 20 20 2f 2f 20 | 65 6c 73 65 20 66 65 6d | // |else fem|
|00001800| 61 6c 65 0d 0a 0d 0a 20 | 20 20 20 62 47 6f 20 3d |ale.... | bGo =|
|00001810| 20 43 68 65 63 6b 4c 6f | 67 28 20 74 74 2c 20 69 | CheckLo|g( tt, i|
|00001820| 2c 20 67 20 29 3b 20 20 | 20 20 20 2f 2f 20 61 72 |, g ); | // ar|
|00001830| 65 20 77 65 20 61 62 6f | 75 74 20 74 6f 20 72 65 |e we abo|ut to re|
|00001840| 70 65 61 74 20 6f 75 72 | 73 65 6c 76 65 73 3f 0d |peat our|selves?.|
|00001850| 0a 20 20 20 20 69 66 20 | 28 20 21 62 47 6f 20 29 |. if |( !bGo )|
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001870| 20 20 20 20 20 2f 2f 20 | 79 65 73 2c 20 74 72 79 | // |yes, try|
|00001880| 20 6f 6e 65 20 6d 6f 72 | 65 20 74 69 6d 65 0d 0a | one mor|e time..|
|00001890| 20 20 20 20 7b 0d 0a 20 | 20 20 20 20 20 20 20 69 | {.. | i|
|000018a0| 20 3d 20 52 61 6e 64 28 | 20 33 20 29 3b 20 20 0d | = Rand(| 3 ); .|
|000018b0| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 20 69 20 |. | if ( i |
|000018c0| 3e 20 33 20 29 20 69 20 | 3d 20 30 3b 0d 0a 20 20 |> 3 ) i |= 0;.. |
|000018d0| 20 20 7d 0d 0a 20 20 20 | 20 62 47 6f 20 3d 20 43 | }.. | bGo = C|
|000018e0| 68 65 63 6b 4c 6f 67 28 | 20 74 74 2c 20 69 2c 20 |heckLog(| tt, i, |
|000018f0| 67 20 29 3b 0d 0a 0d 0a | 20 20 20 20 69 66 20 28 |g );....| if (|
|00001900| 20 62 47 6f 20 29 0d 0a | 20 20 20 20 7b 0d 0a 2f | bGo )..| {../|
|00001910| 2f 20 20 20 20 20 20 20 | 20 73 20 3d 20 74 67 2e |/ | s = tg.|
|00001920| 47 72 6f 75 70 5b 74 74 | 5d 2e 4c 69 6e 65 5b 69 |Group[tt|].Line[i|
|00001930| 5d 3b 0d 0a 0d 0a 2f 2f | 23 23 6e 65 72 66 20 57 |];....//|##nerf W|
|00001940| 45 53 0d 0a 2f 2f 20 4d | 6f 64 69 66 69 65 64 20 |ES..// M|odified |
|00001950| 66 6f 72 20 44 79 6e 61 | 6d 69 63 20 6c 6f 61 64 |for Dyna|mic load|
|00001960| 20 73 6f 75 6e 64 20 66 | 69 6c 65 73 2e 20 57 65 | sound f|iles. We|
|00001970| 20 6f 6e 6c 79 20 6e 65 | 65 64 20 74 6f 20 72 65 | only ne|ed to re|
|00001980| 74 75 72 6e 20 6f 6e 65 | 20 73 6f 75 6e 64 20 66 |turn one| sound f|
|00001990| 69 6c 65 0d 0a 2f 2f 20 | 73 6f 20 74 68 61 74 20 |ile..// |so that |
|000019a0| 77 65 20 64 6f 6e 27 74 | 20 6e 65 65 64 20 74 6f |we don't| need to|
|000019b0| 20 73 74 6f 72 65 20 74 | 68 65 20 77 68 6f 6c 65 | store t|he whole|
|000019c0| 20 61 72 72 61 79 20 77 | 68 69 63 68 20 6d 61 6b | array w|hich mak|
|000019d0| 65 73 20 6c 65 73 73 20 | 75 73 65 20 6f 66 20 6d |es less |use of m|
|000019e0| 65 6d 6f 72 69 65 73 0d | 0a 20 20 20 20 20 20 20 |emories.|. |
|000019f0| 20 73 20 3d 20 77 68 6f | 73 74 61 6c 6b 69 6e 67 | s = who|stalking|
|00001a00| 28 74 67 2c 20 74 74 2c | 20 69 29 3b 0d 0a 0d 0a |(tg, tt,| i);....|
|00001a10| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 73 20 21 | |if ( s !|
|00001a20| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 20 20 20 20 20 20 |= None )|.. |
|00001a30| 20 20 7b 0d 0a 2f 2f 42 | 72 6f 61 64 63 61 73 74 | {..//B|roadcast|
|00001a40| 4d 65 73 73 61 67 65 28 | 20 22 4e 6f 77 20 73 70 |Message(| "Now sp|
|00001a50| 65 61 6b 69 6e 67 3a 20 | 22 24 50 2e 4e 61 6d 65 |eaking: |"$P.Name|
|00001a60| 24 22 20 6f 66 20 74 68 | 65 20 22 24 54 65 61 6d |$" of th|e "$Team|
|00001a70| 4e 61 6d 65 5b 74 5d 20 | 29 3b 0d 0a 20 20 20 20 |Name[t] |);.. |
|00001a80| 20 20 20 20 20 20 20 20 | 50 2e 50 6c 61 79 53 6f | |P.PlaySo|
|00001a90| 75 6e 64 28 20 73 2c 20 | 53 4c 4f 54 5f 4e 6f 6e |und( s, |SLOT_Non|
|00001aa0| 65 2c 20 31 32 2e 30 2c | 20 74 72 75 65 20 29 3b |e, 12.0,| true );|
|00001ab0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 61 |.. | la|
|00001ac0| 73 74 54 61 75 6e 74 20 | 3d 20 4c 65 76 65 6c 2e |stTaunt |= Level.|
|00001ad0| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 2f 2f |TimeSeco|nds;..//|
|00001ae0| 20 6d 61 6b 65 20 61 20 | 72 65 63 6f 72 64 20 6f | make a |record o|
|00001af0| 66 20 6f 75 72 20 72 65 | 63 65 6e 74 20 76 6f 69 |f our re|cent voi|
|00001b00| 63 69 6e 67 73 0d 0a 20 | 20 20 20 20 20 20 20 20 |cings.. | |
|00001b10| 20 20 20 74 61 70 65 5b | 74 61 70 65 70 74 72 5d | tape[|tapeptr]|
|00001b20| 2e 77 68 65 6e 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |.when = |Level.Ti|
|00001b30| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 20 20 20 20 |meSecond|s;.. |
|00001b40| 20 20 20 20 20 20 20 20 | 74 61 70 65 5b 74 61 70 | |tape[tap|
|00001b50| 65 70 74 72 5d 2e 74 79 | 70 65 20 3d 20 74 74 3b |eptr].ty|pe = tt;|
|00001b60| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 74 61 |.. | ta|
|00001b70| 70 65 5b 74 61 70 65 70 | 74 72 5d 2e 69 78 6c 69 |pe[tapep|tr].ixli|
|00001b80| 6e 65 20 3d 20 69 3b 0d | 0a 20 20 20 20 20 20 20 |ne = i;.|. |
|00001b90| 20 20 20 20 20 74 61 70 | 65 5b 74 61 70 65 70 74 | tap|e[tapept|
|00001ba0| 72 5d 2e 67 65 6e 65 20 | 3d 20 67 3b 0d 0a 20 20 |r].gene |= g;.. |
|00001bb0| 20 20 20 20 20 20 20 20 | 20 20 74 61 70 65 70 74 | | tapept|
|00001bc0| 72 2b 2b 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |r++;.. | |
|00001bd0| 20 20 69 66 20 28 20 74 | 61 70 65 70 74 72 20 3e | if ( t|apeptr >|
|00001be0| 3d 20 74 61 70 65 6c 65 | 6e 20 29 20 20 20 20 20 |= tapele|n ) |
|00001bf0| 20 2f 2f 20 77 72 61 70 | 20 72 65 63 6f 72 64 68 | // wrap| recordh|
|00001c00| 65 61 64 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ead.. | |
|00001c10| 20 20 20 20 20 74 61 70 | 65 70 74 72 20 3d 20 30 | tap|eptr = 0|
|00001c20| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|00001c30| 20 20 7d 0d 0a 7d 0d 0a | 0d 0a 2f 2a 0d 0a 66 75 | }..}..|../*..fu|
|00001c40| 6e 63 74 69 6f 6e 20 53 | 70 65 61 6b 28 20 50 61 |nction S|peak( Pa|
|00001c50| 77 6e 20 50 2c 20 45 54 | 61 75 6e 74 54 79 70 65 |wn P, ET|auntType|
|00001c60| 20 74 74 20 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f | tt )..{|.. lo|
|00001c70| 63 61 6c 20 53 6f 75 6e | 64 20 20 20 20 20 20 20 |cal Soun|d |
|00001c80| 20 20 73 3b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 | s;.. | local |
|00001c90| 45 54 65 61 6d 54 79 70 | 65 20 20 20 20 20 74 3b |ETeamTyp|e t;|
|00001ca0| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 69 6e 74 20 |.. lo|cal int |
|00001cb0| 20 20 20 20 20 20 20 20 | 20 20 69 3b 0d 0a 20 20 | | i;.. |
|00001cc0| 20 20 6c 6f 63 61 6c 20 | 45 42 6f 74 49 6e 64 65 | local |EBotInde|
|00001cd0| 78 20 20 20 20 20 6e 3b | 0d 0a 20 20 20 20 6c 6f |x n;|.. lo|
|00001ce0| 63 61 6c 20 62 6f 6f 6c | 20 20 20 20 20 20 20 67 |cal bool| g|
|00001cf0| 3b 20 20 20 20 20 20 0d | 0a 0d 0a 20 20 20 20 6c |; .|... l|
|00001d00| 6f 63 61 6c 20 54 61 75 | 6e 74 47 72 6f 75 70 20 |ocal Tau|ntGroup |
|00001d10| 20 20 20 74 67 3b 0d 0a | 20 20 20 20 6c 6f 63 61 | tg;..| loca|
|00001d20| 6c 20 62 6f 6f 6c 20 20 | 20 20 20 20 20 20 20 20 |l bool | |
|00001d30| 62 47 6f 3b 0d 0a 20 20 | 20 20 0d 0a 20 20 20 20 |bGo;.. | .. |
|00001d40| 74 20 3d 20 50 2e 50 6c | 61 79 65 72 52 65 70 6c |t = P.Pl|ayerRepl|
|00001d50| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00001d60| 54 79 70 65 3b 0d 0a 20 | 20 20 20 6e 20 3d 20 50 |Type;.. | n = P|
|00001d70| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001d80| 6f 6e 49 6e 66 6f 2e 42 | 6f 74 49 6e 64 65 78 3b |onInfo.B|otIndex;|
|00001d90| 0d 0a 20 20 20 20 67 20 | 3d 20 50 2e 50 6c 61 79 |.. g |= P.Play|
|00001da0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001db0| 6f 2e 62 49 73 46 65 6d | 61 6c 65 3b 0d 0a 0d 0a |o.bIsFem|ale;....|
|00001dc0| 2f 2f 6c 6f 67 28 20 22 | 44 53 4c 20 2d 20 41 62 |//log( "|DSL - Ab|
|00001dd0| 6f 75 74 20 74 6f 20 53 | 70 65 61 6b 22 20 29 3b |out to S|peak" );|
|00001de0| 0d 0a 2f 2f 20 6c 65 74 | 27 73 20 6e 6f 74 20 67 |..// let|'s not g|
|00001df0| 65 74 20 74 6f 6f 20 63 | 68 61 74 74 79 20 69 66 |et too c|hatty if|
|00001e00| 20 77 65 20 61 72 65 20 | 61 20 62 6f 74 0d 0a 0d | we are |a bot...|
|00001e10| 0a 20 20 20 20 69 66 20 | 28 20 50 2e 49 73 41 28 |. if |( P.IsA(|
|00001e20| 27 4e 65 72 66 42 6f 74 | 73 27 29 20 29 0d 0a 20 |'NerfBot|s') ).. |
|00001e30| 20 20 20 7b 0d 0a 2f 2f | 6c 6f 67 28 20 22 56 4f | {..//|log( "VO|
|00001e40| 58 3a 20 49 27 6d 20 61 | 20 62 6f 74 2c 20 73 6f |X: I'm a| bot, so|
|00001e50| 20 49 20 6d 69 67 68 74 | 20 62 65 20 63 65 6e 73 | I might| be cens|
|00001e60| 6f 72 65 64 22 20 29 3b | 0d 0a 20 20 20 20 20 20 |ored" );|.. |
|00001e70| 20 20 69 66 20 28 20 28 | 4c 65 76 65 6c 2e 54 69 | if ( (|Level.Ti|
|00001e80| 6d 65 53 65 63 6f 6e 64 | 73 20 2d 20 6c 61 73 74 |meSecond|s - last|
|00001e90| 54 61 75 6e 74 29 20 3c | 20 32 34 2e 30 20 20 29 |Taunt) <| 24.0 )|
|00001ea0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 72 65 |.. | re|
|00001eb0| 74 75 72 6e 3b 0d 0a 20 | 20 20 20 7d 0d 0a 0d 0a |turn;.. | }....|
|00001ec0| 20 20 20 20 69 20 3d 20 | 52 61 6e 64 28 20 33 20 | i = |Rand( 3 |
|00001ed0| 29 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |); | |
|00001ee0| 20 20 20 20 2f 2f 20 70 | 69 63 6b 20 61 20 6c 69 | // p|ick a li|
|00001ef0| 6e 65 2c 20 61 6e 79 20 | 6c 69 6e 65 0d 0a 0d 0a |ne, any |line....|
|00001f00| 20 20 20 20 74 67 20 3d | 20 4d 54 77 69 73 74 65 | tg =| MTwiste|
|00001f10| 72 3b 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r; | |
|00001f20| 20 20 20 20 2f 2f 20 64 | 65 66 61 75 6c 74 20 74 | // d|efault t|
|00001f30| 6f 20 6d 61 6c 65 20 76 | 6f 69 63 65 73 0d 0a 20 |o male v|oices.. |
|00001f40| 20 20 20 69 66 20 28 20 | 67 20 29 0d 0a 20 20 20 | if ( |g ).. |
|00001f50| 20 20 20 20 20 74 67 20 | 3d 20 46 54 77 69 73 74 | tg |= FTwist|
|00001f60| 65 72 3b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |er; | |
|00001f70| 20 2f 2f 20 65 6c 73 65 | 20 66 65 6d 61 6c 65 0d | // else| female.|
|00001f80| 0a 0d 0a 20 20 20 20 62 | 47 6f 20 3d 20 43 68 65 |... b|Go = Che|
|00001f90| 63 6b 4c 6f 67 28 20 74 | 74 2c 20 69 2c 20 67 20 |ckLog( t|t, i, g |
|00001fa0| 29 3b 20 20 20 20 20 2f | 2f 20 61 72 65 20 77 65 |); /|/ are we|
|00001fb0| 20 61 62 6f 75 74 20 74 | 6f 20 72 65 70 65 61 74 | about t|o repeat|
|00001fc0| 20 6f 75 72 73 65 6c 76 | 65 73 3f 0d 0a 20 20 20 | ourselv|es?.. |
|00001fd0| 20 69 66 20 28 20 21 62 | 47 6f 20 29 20 20 20 20 | if ( !b|Go ) |
|00001fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ff0| 20 2f 2f 20 79 65 73 2c | 20 74 72 79 20 6f 6e 65 | // yes,| try one|
|00002000| 20 6d 6f 72 65 20 74 69 | 6d 65 0d 0a 20 20 20 20 | more ti|me.. |
|00002010| 7b 0d 0a 20 20 20 20 20 | 20 20 20 69 20 3d 20 52 |{.. | i = R|
|00002020| 61 6e 64 28 20 33 20 29 | 3b 20 20 0d 0a 20 20 20 |and( 3 )|; .. |
|00002030| 20 20 20 20 20 69 66 20 | 28 20 69 20 3e 20 33 20 | if |( i > 3 |
|00002040| 29 20 69 20 3d 20 30 3b | 0d 0a 20 20 20 20 7d 0d |) i = 0;|.. }.|
|00002050| 0a 20 20 20 20 62 47 6f | 20 3d 20 43 68 65 63 6b |. bGo| = Check|
|00002060| 4c 6f 67 28 20 74 74 2c | 20 69 2c 20 67 20 29 3b |Log( tt,| i, g );|
|00002070| 0d 0a 0d 0a 20 20 20 20 | 69 66 20 28 20 62 47 6f |.... |if ( bGo|
|00002080| 20 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | ).. |{.. |
|00002090| 20 20 20 73 20 3d 20 74 | 67 2e 47 72 6f 75 70 5b | s = t|g.Group[|
|000020a0| 74 74 5d 2e 4c 69 6e 65 | 5b 69 5d 3b 0d 0a 0d 0a |tt].Line|[i];....|
|000020b0| 20 20 20 20 20 20 20 20 | 69 66 20 28 20 73 20 21 | |if ( s !|
|000020c0| 3d 20 4e 6f 6e 65 20 29 | 0d 0a 20 20 20 20 20 20 |= None )|.. |
|000020d0| 20 20 7b 0d 0a 2f 2f 42 | 72 6f 61 64 63 61 73 74 | {..//B|roadcast|
|000020e0| 4d 65 73 73 61 67 65 28 | 20 22 4e 6f 77 20 73 70 |Message(| "Now sp|
|000020f0| 65 61 6b 69 6e 67 3a 20 | 22 24 50 2e 4e 61 6d 65 |eaking: |"$P.Name|
|00002100| 24 22 20 6f 66 20 74 68 | 65 20 22 24 54 65 61 6d |$" of th|e "$Team|
|00002110| 4e 61 6d 65 5b 74 5d 20 | 29 3b 0d 0a 20 20 20 20 |Name[t] |);.. |
|00002120| 20 20 20 20 20 20 20 20 | 50 2e 50 6c 61 79 53 6f | |P.PlaySo|
|00002130| 75 6e 64 28 20 73 2c 20 | 53 4c 4f 54 5f 4e 6f 6e |und( s, |SLOT_Non|
|00002140| 65 2c 20 31 32 2e 30 2c | 20 74 72 75 65 20 29 3b |e, 12.0,| true );|
|00002150| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 6c 61 |.. | la|
|00002160| 73 74 54 61 75 6e 74 20 | 3d 20 4c 65 76 65 6c 2e |stTaunt |= Level.|
|00002170| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 2f 2f |TimeSeco|nds;..//|
|00002180| 20 6d 61 6b 65 20 61 20 | 72 65 63 6f 72 64 20 6f | make a |record o|
|00002190| 66 20 6f 75 72 20 72 65 | 63 65 6e 74 20 76 6f 69 |f our re|cent voi|
|000021a0| 63 69 6e 67 73 0d 0a 20 | 20 20 20 20 20 20 20 20 |cings.. | |
|000021b0| 20 20 20 74 61 70 65 5b | 74 61 70 65 70 74 72 5d | tape[|tapeptr]|
|000021c0| 2e 77 68 65 6e 20 3d 20 | 4c 65 76 65 6c 2e 54 69 |.when = |Level.Ti|
|000021d0| 6d 65 53 65 63 6f 6e 64 | 73 3b 0d 0a 20 20 20 20 |meSecond|s;.. |
|000021e0| 20 20 20 20 20 20 20 20 | 74 61 70 65 5b 74 61 70 | |tape[tap|
|000021f0| 65 70 74 72 5d 2e 74 79 | 70 65 20 3d 20 74 74 3b |eptr].ty|pe = tt;|
|00002200| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 74 61 |.. | ta|
|00002210| 70 65 5b 74 61 70 65 70 | 74 72 5d 2e 69 78 6c 69 |pe[tapep|tr].ixli|
|00002220| 6e 65 20 3d 20 69 3b 0d | 0a 20 20 20 20 20 20 20 |ne = i;.|. |
|00002230| 20 20 20 20 20 74 61 70 | 65 5b 74 61 70 65 70 74 | tap|e[tapept|
|00002240| 72 5d 2e 67 65 6e 65 20 | 3d 20 67 3b 0d 0a 20 20 |r].gene |= g;.. |
|00002250| 20 20 20 20 20 20 20 20 | 20 20 74 61 70 65 70 74 | | tapept|
|00002260| 72 2b 2b 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |r++;.. | |
|00002270| 20 20 69 66 20 28 20 74 | 61 70 65 70 74 72 20 3e | if ( t|apeptr >|
|00002280| 3d 20 74 61 70 65 6c 65 | 6e 20 29 20 20 20 20 20 |= tapele|n ) |
|00002290| 20 2f 2f 20 77 72 61 70 | 20 72 65 63 6f 72 64 68 | // wrap| recordh|
|000022a0| 65 61 64 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |ead.. | |
|000022b0| 20 20 20 20 20 74 61 70 | 65 70 74 72 20 3d 20 30 | tap|eptr = 0|
|000022c0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 7d 0d 0a 20 20 |;.. | }.. |
|000022d0| 20 20 7d 0d 0a 7d 0d 0a | 2a 2f 0d 0a 0d 0a 2f 2f | }..}..|*/....//|
|000022e0| 20 50 41 20 61 6e 6e 6f | 75 6e 63 65 73 20 77 68 | PA anno|unces wh|
|000022f0| 6f 20 68 61 73 20 6a 75 | 73 74 20 74 61 6b 65 6e |o has ju|st taken|
|00002300| 20 6f 76 65 72 20 74 68 | 65 20 6c 65 61 64 0d 0a | over th|e lead..|
|00002310| 2f 2f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |// | |
|00002320| 61 20 62 61 6c 6c 20 68 | 61 73 20 6a 75 73 74 20 |a ball h|as just |
|00002330| 62 65 65 6e 20 73 63 6f | 72 65 64 20 62 79 20 70 |been sco|red by p|
|00002340| 6c 61 79 65 72 0d 0a 2f | 2f 20 20 20 20 20 20 20 |layer../|/ |
|00002350| 20 20 20 20 20 20 20 67 | 6f 6c 64 20 62 61 6c 6c | g|old ball|
|00002360| 20 69 6e 20 70 6c 61 79 | 0d 0a 2f 2f 20 20 20 20 | in play|..// |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 66 6c 61 67 20 72 | | flag r|
|00002380| 65 61 63 68 65 64 0d 0a | 2f 2f 20 73 6b 69 70 20 |eached..|// skip |
|00002390| 69 66 20 70 72 65 76 69 | 6f 75 73 20 61 6e 6e 6f |if previ|ous anno|
|000023a0| 75 6e 63 65 6d 65 6e 74 | 20 77 69 74 68 69 6e 20 |uncement| within |
|000023b0| 6c 61 73 74 20 50 41 44 | 65 6c 61 79 20 73 65 63 |last PAD|elay sec|
|000023c0| 6f 6e 64 73 0d 0a 0d 0a | 0d 0a 0d 0a 73 69 6d 75 |onds....|....simu|
|000023d0| 6c 61 74 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 56 |lated fu|nction V|
|000023e0| 4a 4e 65 77 4c 65 61 64 | 65 72 28 20 45 42 6f 74 |JNewLead|er( EBot|
|000023f0| 49 6e 64 65 78 20 69 78 | 4c 65 61 64 65 72 20 29 |Index ix|Leader )|
|00002400| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 73 |..{.. | local s|
|00002410| 6f 75 6e 64 20 53 3b 0d | 0a 20 20 20 20 6c 6f 63 |ound S;.|. loc|
|00002420| 61 6c 20 73 74 72 69 6e | 67 20 72 73 72 63 3b 0d |al strin|g rsrc;.|
|00002430| 0a 0d 0a 2f 2f 20 61 73 | 73 75 6d 65 20 77 65 27 |...// as|sume we'|
|00002440| 6c 6c 20 66 61 6c 6c 20 | 62 61 63 6b 20 74 6f 20 |ll fall |back to |
|00002450| 67 65 6e 65 72 69 63 0d | 0a 20 20 20 20 53 20 3d |generic.|. S =|
|00002460| 20 4e 6f 6e 65 3b 0d 0a | 0d 0a 2f 2f 20 68 61 73 | None;..|..// has|
|00002470| 20 65 6e 6f 75 67 68 20 | 74 69 6d 65 20 70 61 73 | enough |time pas|
|00002480| 73 65 64 20 73 69 6e 63 | 65 20 6f 75 72 20 6c 61 |sed sinc|e our la|
|00002490| 73 74 20 61 6e 6e 6f 75 | 6e 63 65 6d 65 6e 74 3f |st annou|ncement?|
|000024a0| 0d 0a 20 20 20 20 69 66 | 20 20 28 20 4c 65 76 65 |.. if| ( Leve|
|000024b0| 6c 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 3e 20 |l.TimeSe|conds > |
|000024c0| 28 4c 61 73 74 50 41 54 | 69 6d 65 20 2b 20 50 41 |(LastPAT|ime + PA|
|000024d0| 44 65 6c 61 79 29 20 26 | 26 20 28 69 78 4c 65 61 |Delay) &|& (ixLea|
|000024e0| 64 65 72 20 21 3d 20 69 | 78 4c 61 73 74 4c 65 61 |der != i|xLastLea|
|000024f0| 64 65 72 29 20 29 0d 0a | 20 20 20 20 7b 0d 0a 2f |der) )..| {../|
|00002500| 2f 20 64 69 64 20 77 65 | 20 72 65 63 65 69 76 65 |/ did we| receive|
|00002510| 20 61 20 76 61 6c 69 64 | 20 69 6e 64 65 78 3f 0d | a valid| index?.|
|00002520| 0a 20 20 20 20 20 20 20 | 20 69 66 20 28 20 69 78 |. | if ( ix|
|00002530| 4c 65 61 64 65 72 20 3c | 20 33 32 20 26 26 20 69 |Leader <| 32 && i|
|00002540| 78 4c 65 61 64 65 72 20 | 3e 20 2d 31 20 29 0d 0a |xLeader |> -1 )..|
|00002550| 20 20 20 20 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | |{.. |
|00002560| 20 20 20 20 20 20 20 53 | 20 3d 20 4e 4c 65 61 64 | S| = NLead|
|00002570| 65 72 5b 69 78 4c 65 61 | 64 65 72 5d 3b 0d 0a 2f |er[ixLea|der];../|
|00002580| 2f 20 77 61 73 20 74 68 | 65 20 73 6f 75 6e 64 20 |/ was th|e sound |
|00002590| 61 6c 72 65 61 64 79 20 | 6c 6f 61 64 65 64 3f 0d |already |loaded?.|
|000025a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 69 66 20 |. | if |
|000025b0| 28 20 53 20 3d 3d 20 4e | 6f 6e 65 20 29 20 20 20 |( S == N|one ) |
|000025c0| 20 20 20 20 20 20 20 20 | 20 2f 2f 20 6e 6f 2c 20 | | // no, |
|000025d0| 62 72 69 6e 67 20 69 74 | 20 6f 6e 20 62 6f 61 72 |bring it| on boar|
|000025e0| 64 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |d.. | {|
|000025f0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002600| 20 20 72 73 72 63 20 3d | 20 22 50 41 4c 65 61 64 | rsrc =| "PALead|
|00002610| 2e 22 24 4e 65 77 4c 64 | 72 53 74 72 5b 69 78 4c |."$NewLd|rStr[ixL|
|00002620| 65 61 64 65 72 5d 3b 0d | 0a 20 20 20 20 20 20 20 |eader];.|. |
|00002630| 20 20 20 20 20 20 20 20 | 20 53 20 3d 20 53 6f 75 | | S = Sou|
|00002640| 6e 64 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |nd(Dynam|icLoadOb|
|00002650| 6a 65 63 74 28 72 73 72 | 63 2c 63 6c 61 73 73 27 |ject(rsr|c,class'|
|00002660| 53 6f 75 6e 64 27 29 29 | 3b 0d 0a 20 20 20 20 20 |Sound'))|;.. |
|00002670| 20 20 20 20 20 20 20 20 | 20 20 20 4e 4c 65 61 64 | | NLead|
|00002680| 65 72 5b 69 78 4c 65 61 | 64 65 72 5d 20 3d 20 53 |er[ixLea|der] = S|
|00002690| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 7d |;.. | }|
|000026a0| 0d 0a 20 20 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 |.. | }.. |
|000026b0| 20 20 20 20 20 0d 0a 20 | 20 20 20 20 20 20 20 69 | .. | i|
|000026c0| 66 20 28 20 53 20 3d 3d | 20 4e 6f 6e 65 20 29 20 |f ( S ==| None ) |
|000026d0| 53 20 3d 20 47 65 6e 4c | 65 61 64 3b 0d 0a 20 20 |S = GenL|ead;.. |
|000026e0| 20 20 20 20 20 20 50 6c | 61 79 53 6f 75 6e 64 28 | Pl|aySound(|
|000026f0| 20 53 2c 20 53 4c 4f 54 | 5f 4e 6f 6e 65 2c 20 31 | S, SLOT|_None, 1|
|00002700| 36 2c 20 74 72 75 65 2c | 20 31 30 30 30 30 30 30 |6, true,| 1000000|
|00002710| 20 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 4c 61 73 | );.. | Las|
|00002720| 74 50 41 54 69 6d 65 20 | 3d 20 4c 65 76 65 6c 2e |tPATime |= Level.|
|00002730| 54 69 6d 65 53 65 63 6f | 6e 64 73 3b 0d 0a 20 20 |TimeSeco|nds;.. |
|00002740| 20 20 20 20 20 20 69 78 | 4c 61 73 74 4c 65 61 64 | ix|LastLead|
|00002750| 65 72 20 3d 20 69 78 4c | 65 61 64 65 72 3b 0d 0a |er = ixL|eader;..|
|00002760| 20 20 20 20 7d 0d 0a 7d | 0d 0a 0d 0a 2f 2a 0d 0a | }..}|..../*..|
|00002770| 66 75 6e 63 74 69 6f 6e | 20 56 4a 42 61 6c 6c 45 |function| VJBallE|
|00002780| 76 65 6e 74 28 20 45 42 | 61 6c 6c 45 76 65 6e 74 |vent( EB|allEvent|
|00002790| 20 69 78 45 76 65 6e 74 | 20 29 0d 0a 7b 0d 0a 20 | ixEvent| )..{.. |
|000027a0| 20 20 20 6c 6f 63 61 6c | 20 73 6f 75 6e 64 20 20 | local| sound |
|000027b0| 20 20 20 20 20 20 20 53 | 3b 0d 0a 20 20 20 20 6c | S|;.. l|
|000027c0| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 20 20 20 20 |ocal str|ing |
|000027d0| 20 20 20 72 73 72 63 3b | 0d 0a 20 20 20 20 6c 6f | rsrc;|.. lo|
|000027e0| 63 61 6c 20 45 53 6f 75 | 6e 64 53 6c 6f 74 20 20 |cal ESou|ndSlot |
|000027f0| 20 20 73 6c 6f 74 3b 0d | 0a 0d 0a 20 20 20 20 69 | slot;.|... i|
|00002800| 66 20 20 28 20 69 78 45 | 76 65 6e 74 20 3d 3d 20 |f ( ixE|vent == |
|00002810| 42 45 5f 47 6f 6c 64 0d | 0a 20 20 20 20 20 20 20 |BE_Gold.|. |
|00002820| 20 7c 7c 20 69 78 45 76 | 65 6e 74 20 3d 3d 20 42 | || ixEv|ent == B|
|00002830| 45 5f 42 61 6c 6c 37 0d | 0a 20 20 20 20 20 20 20 |E_Ball7.|. |
|00002840| 20 7c 7c 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 | || Leve|l.TimeSe|
|00002850| 63 6f 6e 64 73 20 3e 20 | 28 4c 61 73 74 50 41 54 |conds > |(LastPAT|
|00002860| 69 6d 65 20 2b 20 50 41 | 44 65 6c 61 79 29 20 29 |ime + PA|Delay) )|
|00002870| 0d 0a 20 20 20 20 7b 0d | 0a 2f 2f 20 64 69 64 20 |.. {.|.// did |
|00002880| 77 65 20 72 65 63 65 69 | 76 65 20 61 20 76 61 6c |we recei|ve a val|
|00002890| 69 64 20 69 6e 64 65 78 | 3f 0d 0a 20 20 20 20 20 |id index|?.. |
|000028a0| 20 20 20 69 66 20 28 20 | 69 78 45 76 65 6e 74 20 | if ( |ixEvent |
|000028b0| 3c 20 34 20 26 26 20 69 | 78 45 76 65 6e 74 20 3e |< 4 && i|xEvent >|
|000028c0| 20 2d 31 20 29 0d 0a 20 | 20 20 20 20 20 20 20 7b | -1 ).. | {|
|000028d0| 0d 0a 2f 2f 6c 6f 67 28 | 20 22 44 53 4c 20 2d 20 |..//log(| "DSL - |
|000028e0| 41 62 6f 75 74 20 74 6f | 20 41 6e 6e 6f 75 6e 63 |About to| Announc|
|000028f0| 65 20 42 61 6c 6c 20 65 | 76 65 6e 74 22 20 29 3b |e Ball e|vent" );|
|00002900| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 53 20 |.. | S |
|00002910| 3d 20 42 61 6c 6c 53 6e | 64 5b 69 78 45 76 65 6e |= BallSn|d[ixEven|
|00002920| 74 5d 3b 0d 0a 2f 2f 20 | 77 61 73 20 74 68 65 20 |t];..// |was the |
|00002930| 73 6f 75 6e 64 20 61 6c | 72 65 61 64 79 20 6c 6f |sound al|ready lo|
|00002940| 61 64 65 64 3f 0d 0a 20 | 20 20 20 20 20 20 20 20 |aded?.. | |
|00002950| 20 20 20 69 66 20 28 20 | 53 20 3d 3d 20 4e 6f 6e | if ( |S == Non|
|00002960| 65 20 29 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |e ) | /|
|00002970| 2f 20 6e 6f 2c 20 62 72 | 69 6e 67 20 69 74 20 6f |/ no, br|ing it o|
|00002980| 6e 20 62 6f 61 72 64 0d | 0a 20 20 20 20 20 20 20 |n board.|. |
|00002990| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|000029a0| 20 20 20 20 20 20 20 20 | 72 73 72 63 20 3d 20 22 | |rsrc = "|
|000029b0| 50 41 42 61 6c 6c 2e 22 | 24 42 61 6c 6c 53 74 72 |PABall."|$BallStr|
|000029c0| 5b 69 78 45 76 65 6e 74 | 5d 3b 0d 0a 20 20 20 20 |[ixEvent|];.. |
|000029d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 20 3d 20 | | S = |
|000029e0| 53 6f 75 6e 64 28 44 79 | 6e 61 6d 69 63 4c 6f 61 |Sound(Dy|namicLoa|
|000029f0| 64 4f 62 6a 65 63 74 28 | 72 73 72 63 2c 63 6c 61 |dObject(|rsrc,cla|
|00002a00| 73 73 27 53 6f 75 6e 64 | 27 29 29 3b 0d 0a 20 20 |ss'Sound|'));.. |
|00002a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 42 61 | | Ba|
|00002a20| 6c 6c 53 6e 64 5b 69 78 | 45 76 65 6e 74 5d 20 3d |llSnd[ix|Event] =|
|00002a30| 20 53 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | S;.. | |
|00002a40| 20 7d 0d 0a 20 20 20 20 | 20 20 20 20 0d 0a 20 20 | }.. | .. |
|00002a50| 20 20 20 20 20 20 20 20 | 20 20 73 6c 6f 74 20 3d | | slot =|
|00002a60| 20 53 4c 4f 54 5f 4e 6f | 6e 65 3b 20 20 20 20 20 | SLOT_No|ne; |
|00002a70| 20 20 20 20 20 20 2f 2f | 20 6c 6f 77 65 73 74 20 | //| lowest |
|00002a80| 70 72 69 6f 72 69 74 79 | 0d 0a 20 20 20 20 20 20 |priority|.. |
|00002a90| 20 20 20 20 20 20 69 66 | 20 28 20 69 78 45 76 65 | if| ( ixEve|
|00002aa0| 6e 74 20 3d 3d 20 42 45 | 5f 47 6f 6c 64 20 7c 7c |nt == BE|_Gold |||
|00002ab0| 20 69 78 45 76 65 6e 74 | 20 3d 3d 20 42 45 5f 42 | ixEvent| == BE_B|
|00002ac0| 61 6c 6c 37 20 29 0d 0a | 20 20 20 20 20 20 20 20 |all7 )..| |
|00002ad0| 20 20 20 20 20 20 20 20 | 73 6c 6f 74 20 3d 20 53 | |slot = S|
|00002ae0| 4c 4f 54 5f 49 6e 74 65 | 72 66 61 63 65 3b 20 20 |LOT_Inte|rface; |
|00002af0| 2f 2f 20 68 69 67 68 65 | 73 74 20 70 72 69 6f 72 |// highe|st prior|
|00002b00| 69 74 79 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |ity.... | |
|00002b10| 20 20 20 69 66 20 28 20 | 53 20 21 3d 20 4e 6f 6e | if ( |S != Non|
|00002b20| 65 20 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |e ).. | |
|00002b30| 20 7b 0d 0a 6c 6f 67 28 | 20 22 44 53 4c 20 70 6c | {..log(| "DSL pl|
|00002b40| 61 79 69 6e 67 20 53 20 | 3d 20 22 24 53 20 29 3b |aying S |= "$S );|
|00002b50| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00002b60| 20 20 50 6c 61 79 53 6f | 75 6e 64 28 20 53 2c 20 | PlaySo|und( S, |
|00002b70| 53 4c 4f 54 5f 54 61 6c | 6b 2c 20 31 36 2c 20 74 |SLOT_Tal|k, 16, t|
|00002b80| 72 75 65 2c 20 31 30 30 | 30 30 30 30 20 29 3b 0d |rue, 100|0000 );.|
|00002b90| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002ba0| 20 4c 61 73 74 50 41 54 | 69 6d 65 20 3d 20 4c 65 | LastPAT|ime = Le|
|00002bb0| 76 65 6c 2e 54 69 6d 65 | 53 65 63 6f 6e 64 73 3b |vel.Time|Seconds;|
|00002bc0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d |.. | }.|
|00002bd0| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 |. | }.. |
|00002be0| 7d 0d 0a 7d 0d 0a 2a 2f | 0d 0a 66 75 6e 63 74 69 |}..}..*/|..functi|
|00002bf0| 6f 6e 20 56 4a 42 61 6c | 6c 45 76 65 6e 74 28 20 |on VJBal|lEvent( |
|00002c00| 69 6e 74 20 69 78 45 76 | 65 6e 74 20 29 0d 0a 7b |int ixEv|ent )..{|
|00002c10| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 73 6f 75 6e |.. lo|cal soun|
|00002c20| 64 20 20 20 20 20 20 20 | 20 20 53 3b 0d 0a 20 20 |d | S;.. |
|00002c30| 20 20 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 20 | local |string |
|00002c40| 20 20 20 20 20 20 72 73 | 72 63 3b 0d 0a 20 20 20 | rs|rc;.. |
|00002c50| 20 6c 6f 63 61 6c 20 45 | 53 6f 75 6e 64 53 6c 6f | local E|SoundSlo|
|00002c60| 74 20 20 20 20 73 6c 6f | 74 3b 0d 0a 0d 0a 20 20 |t slo|t;.... |
|00002c70| 20 20 69 66 20 20 28 20 | 69 78 45 76 65 6e 74 20 | if ( |ixEvent |
|00002c80| 3d 3d 20 32 09 09 09 09 | 2f 2f 42 45 5f 47 6f 6c |== 2....|//BE_Gol|
|00002c90| 64 0d 0a 20 20 20 20 20 | 20 20 20 7c 7c 20 69 78 |d.. | || ix|
|00002ca0| 45 76 65 6e 74 20 3d 3d | 20 33 09 09 09 09 2f 2f |Event ==| 3....//|
|00002cb0| 42 45 5f 42 61 6c 6c 37 | 0d 0a 20 20 20 20 20 20 |BE_Ball7|.. |
|00002cc0| 20 20 7c 7c 20 4c 65 76 | 65 6c 2e 54 69 6d 65 53 | || Lev|el.TimeS|
|00002cd0| 65 63 6f 6e 64 73 20 3e | 20 28 4c 61 73 74 50 41 |econds >| (LastPA|
|00002ce0| 54 69 6d 65 20 2b 20 50 | 41 44 65 6c 61 79 29 20 |Time + P|ADelay) |
|00002cf0| 29 0d 0a 20 20 20 20 7b | 0d 0a 20 20 20 20 20 20 |).. {|.. |
|00002d00| 20 20 69 66 20 28 20 69 | 78 45 76 65 6e 74 20 3c | if ( i|xEvent <|
|00002d10| 20 34 20 26 26 20 69 78 | 45 76 65 6e 74 20 3e 20 | 4 && ix|Event > |
|00002d20| 2d 31 20 29 0d 0a 20 20 | 20 20 20 20 20 20 7b 0d |-1 ).. | {.|
|00002d30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 53 20 3d |. | S =|
|00002d40| 20 42 61 6c 6c 53 6e 64 | 5b 69 78 45 76 65 6e 74 | BallSnd|[ixEvent|
|00002d50| 5d 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |];.. | |
|00002d60| 69 66 20 28 20 53 20 3d | 3d 20 4e 6f 6e 65 20 29 |if ( S =|= None )|
|00002d70| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 20 6e | | // n|
|00002d80| 6f 2c 20 62 72 69 6e 67 | 20 69 74 20 6f 6e 20 62 |o, bring| it on b|
|00002d90| 6f 61 72 64 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |oard.. | |
|00002da0| 20 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 | {.. | |
|00002db0| 20 20 20 20 20 72 73 72 | 63 20 3d 20 22 50 41 42 | rsr|c = "PAB|
|00002dc0| 61 6c 6c 2e 22 24 42 61 | 6c 6c 53 74 72 5b 69 78 |all."$Ba|llStr[ix|
|00002dd0| 45 76 65 6e 74 5d 3b 0d | 0a 20 20 20 20 20 20 20 |Event];.|. |
|00002de0| 20 20 20 20 20 20 20 20 | 20 53 20 3d 20 53 6f 75 | | S = Sou|
|00002df0| 6e 64 28 44 79 6e 61 6d | 69 63 4c 6f 61 64 4f 62 |nd(Dynam|icLoadOb|
|00002e00| 6a 65 63 74 28 72 73 72 | 63 2c 63 6c 61 73 73 27 |ject(rsr|c,class'|
|00002e10| 53 6f 75 6e 64 27 29 29 | 3b 0d 0a 20 20 20 20 20 |Sound'))|;.. |
|00002e20| 20 20 20 20 20 20 20 20 | 20 20 20 42 61 6c 6c 53 | | BallS|
|00002e30| 6e 64 5b 69 78 45 76 65 | 6e 74 5d 20 3d 20 53 3b |nd[ixEve|nt] = S;|
|00002e40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d |.. | }.|
|00002e50| 0a 20 20 20 20 20 20 20 | 20 0d 0a 20 20 20 20 20 |. | .. |
|00002e60| 20 20 20 20 20 20 20 69 | 66 20 28 20 53 20 21 3d | i|f ( S !=|
|00002e70| 20 4e 6f 6e 65 20 29 0d | 0a 20 20 20 20 20 20 20 | None ).|. |
|00002e80| 20 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 | {..| |
|00002e90| 20 20 20 20 20 20 20 20 | 50 6c 61 79 53 6f 75 6e | |PlaySoun|
|00002ea0| 64 28 20 53 2c 20 53 4c | 4f 54 5f 54 61 6c 6b 2c |d( S, SL|OT_Talk,|
|00002eb0| 20 31 36 2c 20 74 72 75 | 65 2c 20 31 30 30 30 30 | 16, tru|e, 10000|
|00002ec0| 30 30 20 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |00 );.. | |
|00002ed0| 20 20 20 20 20 20 20 4c | 61 73 74 50 41 54 69 6d | L|astPATim|
|00002ee0| 65 20 3d 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |e = Leve|l.TimeSe|
|00002ef0| 63 6f 6e 64 73 3b 0d 0a | 20 20 20 20 20 20 20 20 |conds;..| |
|00002f00| 20 20 20 20 7d 0d 0a 20 | 20 20 20 20 20 20 20 7d | }.. | }|
|00002f10| 0d 0a 20 20 20 20 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |.. }.|.}....fu|
|00002f20| 6e 63 74 69 6f 6e 20 56 | 4a 46 6c 61 67 45 76 65 |nction V|JFlagEve|
|00002f30| 6e 74 28 20 69 6e 74 20 | 69 78 46 6c 61 67 20 29 |nt( int |ixFlag )|
|00002f40| 0d 0a 7b 0d 0a 20 20 20 | 20 6c 6f 63 61 6c 20 73 |..{.. | local s|
|00002f50| 6f 75 6e 64 20 20 20 20 | 20 20 20 20 20 53 3b 0d |ound | S;.|
|00002f60| 0a 20 20 20 20 6c 6f 63 | 61 6c 20 73 74 72 69 6e |. loc|al strin|
|00002f70| 67 20 20 20 20 20 20 20 | 20 72 73 72 63 3b 0d 0a |g | rsrc;..|
|00002f80| 0d 0a 20 20 20 20 69 66 | 20 20 28 20 69 78 46 6c |.. if| ( ixFl|
|00002f90| 61 67 20 3e 20 35 0d 0a | 20 20 20 20 20 20 20 20 |ag > 5..| |
|00002fa0| 7c 7c 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 ||| Level|.TimeSec|
|00002fb0| 6f 6e 64 73 20 3e 20 28 | 4c 61 73 74 50 41 54 69 |onds > (|LastPATi|
|00002fc0| 6d 65 20 2b 20 50 41 44 | 65 6c 61 79 29 20 29 0d |me + PAD|elay) ).|
|00002fd0| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|00002fe0| 69 66 20 28 20 69 78 46 | 6c 61 67 20 3c 20 38 20 |if ( ixF|lag < 8 |
|00002ff0| 26 26 20 69 78 46 6c 61 | 67 20 3e 20 2d 31 20 29 |&& ixFla|g > -1 )|
|00003000| 0d 0a 20 20 20 20 20 20 | 20 20 7b 0d 0a 20 20 20 |.. | {.. |
|00003010| 20 20 20 20 20 20 20 20 | 20 53 20 3d 20 46 6c 61 | | S = Fla|
|00003020| 67 53 6e 64 5b 69 78 46 | 6c 61 67 5d 3b 0d 0a 20 |gSnd[ixF|lag];.. |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 20 | | if ( |
|00003040| 53 20 3d 3d 20 4e 6f 6e | 65 20 29 20 20 20 20 20 |S == Non|e ) |
|00003050| 20 20 20 20 20 20 20 2f | 2f 20 6e 6f 2c 20 62 72 | /|/ no, br|
|00003060| 69 6e 67 20 69 74 20 6f | 6e 20 62 6f 61 72 64 0d |ing it o|n board.|
|00003070| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 0d 0a |. | {..|
|00003080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003090| 72 73 72 63 20 3d 20 22 | 50 41 46 6c 61 67 2e 22 |rsrc = "|PAFlag."|
|000030a0| 24 46 6c 61 67 53 74 72 | 5b 69 78 46 6c 61 67 5d |$FlagStr|[ixFlag]|
|000030b0| 3b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;.. | |
|000030c0| 20 20 20 53 20 3d 20 53 | 6f 75 6e 64 28 44 79 6e | S = S|ound(Dyn|
|000030d0| 61 6d 69 63 4c 6f 61 64 | 4f 62 6a 65 63 74 28 72 |amicLoad|Object(r|
|000030e0| 73 72 63 2c 63 6c 61 73 | 73 27 53 6f 75 6e 64 27 |src,clas|s'Sound'|
|000030f0| 29 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |));.. | |
|00003100| 20 20 20 20 20 46 6c 61 | 67 53 6e 64 5b 69 78 46 | Fla|gSnd[ixF|
|00003110| 6c 61 67 5d 20 3d 20 53 | 3b 0d 0a 20 20 20 20 20 |lag] = S|;.. |
|00003120| 20 20 20 20 20 20 20 7d | 0d 0a 20 20 20 20 20 20 | }|.. |
|00003130| 20 20 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 | .. | |
|00003140| 69 66 20 28 20 53 20 21 | 3d 20 4e 6f 6e 65 20 29 |if ( S !|= None )|
|00003150| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 0d |.. | {.|
|00003160| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003170| 20 50 6c 61 79 53 6f 75 | 6e 64 28 20 53 2c 20 53 | PlaySou|nd( S, S|
|00003180| 4c 4f 54 5f 54 61 6c 6b | 2c 20 31 36 2c 20 74 72 |LOT_Talk|, 16, tr|
|00003190| 75 65 2c 20 31 30 30 30 | 30 30 30 20 29 3b 0d 0a |ue, 1000|000 );..|
|000031a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031b0| 4c 61 73 74 50 41 54 69 | 6d 65 20 3d 20 4c 65 76 |LastPATi|me = Lev|
|000031c0| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 3b 0d |el.TimeS|econds;.|
|000031d0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 7d 0d 0a |. | }..|
|000031e0| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 7d | |}.. }|
|000031f0| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 2f 2a 0d 0a 69 6e 74 |..}.....|./*..int|
|00003200| 72 69 6e 73 69 63 28 32 | 36 34 29 20 66 69 6e 61 |rinsic(2|64) fina|
|00003210| 6c 20 66 75 6e 63 74 69 | 6f 6e 20 50 6c 61 79 53 |l functi|on PlayS|
|00003220| 6f 75 6e 64 0d 0a 28 0d | 0a 09 73 6f 75 6e 64 09 |ound..(.|..sound.|
|00003230| 09 09 09 53 6f 75 6e 64 | 2c 0d 0a 09 6f 70 74 69 |...Sound|,...opti|
|00003240| 6f 6e 61 6c 20 45 53 6f | 75 6e 64 53 6c 6f 74 20 |onal ESo|undSlot |
|00003250| 53 6c 6f 74 2c 0d 0a 09 | 6f 70 74 69 6f 6e 61 6c |Slot,...|optional|
|00003260| 20 66 6c 6f 61 74 09 09 | 56 6f 6c 75 6d 65 2c 0d | float..|Volume,.|
|00003270| 0a 09 6f 70 74 69 6f 6e | 61 6c 20 62 6f 6f 6c 09 |..option|al bool.|
|00003280| 09 62 4e 6f 4f 76 65 72 | 72 69 64 65 2c 0d 0a 09 |.bNoOver|ride,...|
|00003290| 6f 70 74 69 6f 6e 61 6c | 20 66 6c 6f 61 74 09 09 |optional| float..|
|000032a0| 52 61 64 69 75 73 2c 0d | 0a 09 6f 70 74 69 6f 6e |Radius,.|..option|
|000032b0| 61 6c 20 66 6c 6f 61 74 | 09 09 50 69 74 63 68 0d |al float|..Pitch.|
|000032c0| 0a 29 3b 0d 0a 0d 0a 20 | 20 20 20 20 53 4c 4f 54 |.);.... | SLOT|
|000032d0| 5f 4e 6f 6e 65 2c 0d 0a | 20 20 20 20 20 53 4c 4f |_None,..| SLO|
|000032e0| 54 5f 4d 69 73 63 2c 0d | 0a 20 20 20 20 20 53 4c |T_Misc,.|. SL|
|000032f0| 4f 54 5f 50 61 69 6e 2c | 0d 0a 20 20 20 20 20 53 |OT_Pain,|.. S|
|00003300| 4c 4f 54 5f 49 6e 74 65 | 72 61 63 74 2c 0d 0a 20 |LOT_Inte|ract,.. |
|00003310| 20 20 20 20 53 4c 4f 54 | 5f 41 6d 62 69 65 6e 74 | SLOT|_Ambient|
|00003320| 2c 0d 0a 20 20 20 20 20 | 53 4c 4f 54 5f 54 61 6c |,.. |SLOT_Tal|
|00003330| 6b 2c 0d 0a 20 20 20 20 | 20 53 4c 4f 54 5f 49 6e |k,.. | SLOT_In|
|00003340| 74 65 72 66 61 63 65 2c | 0d 0a 0d 0a 2a 2f 0d 0a |terface,|....*/..|
|00003350| 0d 0a 00 | |... | |
+--------+-------------------------+-------------------------+--------+--------+