home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 April / Gamestar_72_2005-04_dvd.iso / Patche / ut2004_patchv3355.exe / UT2004-Patch / System / UTV2004s.u / ScriptText1.TextBuffer < prev    next >
Unknown  |  2005-02-15  |  4.9 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 | 7e 4d 2f 2f 2d 2d 2d 2d |........|~M//----|
|00000010| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000020| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000030| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000040| 2d 2d 2d 2d 2d 2d 2d 0d | 0a 2f 2f 0d 0a 2f 2f 2d |-------.|.//..//-|
|00000050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0a 63 6c 61 73 |--------|--..clas|
|00000090| 73 20 75 74 76 4d 75 74 | 61 74 6f 72 20 65 78 74 |s utvMut|ator ext|
|000000a0| 65 6e 64 73 20 4d 75 74 | 61 74 6f 72 3b 0d 0a 0d |ends Mut|ator;...|
|000000b0| 0a 76 61 72 20 73 74 72 | 69 6e 67 20 6f 72 69 67 |.var str|ing orig|
|000000c0| 63 6f 6e 74 72 6f 6c 6c | 65 72 3b 0d 0a 76 61 72 |controll|er;..var|
|000000d0| 20 63 6c 61 73 73 3c 50 | 6c 61 79 65 72 43 6f 6e | class<P|layerCon|
|000000e0| 74 72 6f 6c 6c 65 72 3e | 20 6f 72 69 67 63 63 6c |troller>| origccl|
|000000f0| 61 73 73 3b 0d 0a 0d 0a | 76 61 72 20 61 72 72 61 |ass;....|var arra|
|00000100| 79 3c 69 6e 74 3e 20 75 | 74 76 49 64 3b 0d 0a 0d |y<int> u|tvId;...|
|00000110| 0a 2f 2f 43 20 69 73 20 | 74 68 65 20 6f 77 6e 65 |.//C is |the owne|
|00000120| 72 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 43 72 65 61 |r..funct|ion Crea|
|00000130| 74 65 49 6e 69 74 69 61 | 6c 55 74 76 52 65 70 6c |teInitia|lUtvRepl|
|00000140| 69 63 61 74 69 6f 6e 28 | 43 6f 6e 74 72 6f 6c 6c |ication(|Controll|
|00000150| 65 72 20 63 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |er c)..{|.. lo|
|00000160| 63 61 6c 20 75 74 76 52 | 65 70 6c 69 63 61 74 69 |cal utvR|eplicati|
|00000170| 6f 6e 49 6e 66 6f 20 75 | 72 69 3b 0d 0a 20 20 20 |onInfo u|ri;.. |
|00000180| 20 6c 6f 63 61 6c 20 43 | 6f 6e 74 72 6f 6c 6c 65 | local C|ontrolle|
|00000190| 72 20 70 3b 0d 0a 0d 0a | 20 20 20 20 66 6f 72 65 |r p;....| fore|
|000001a0| 61 63 68 20 64 79 6e 61 | 6d 69 63 61 63 74 6f 72 |ach dyna|micactor|
|000001b0| 73 28 63 6c 61 73 73 27 | 43 6f 6e 74 72 6f 6c 6c |s(class'|Controll|
|000001c0| 65 72 27 2c 20 70 29 20 | 7b 0d 0a 20 20 20 20 20 |er', p) |{.. |
|000001d0| 20 20 20 69 66 20 28 70 | 20 21 3d 20 63 29 20 7b | if (p| != c) {|
|000001e0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 2f 2f |.. | //|
|000001f0| 4c 6f 67 28 22 49 6e 69 | 74 69 61 6c 6c 79 20 73 |Log("Ini|tially s|
|00000200| 70 61 77 6e 69 6e 67 20 | 75 74 76 52 65 70 6c 69 |pawning |utvRepli|
|00000210| 63 61 74 69 6f 6e 49 6e | 66 6f 20 66 6f 72 20 70 |cationIn|fo for p|
|00000220| 6c 61 79 65 72 20 22 20 | 24 20 70 2e 50 6c 61 79 |layer " |$ p.Play|
|00000230| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000240| 6f 2e 50 6c 61 79 65 72 | 4e 61 6d 65 20 24 20 22 |o.Player|Name $ "|
|00000250| 20 6f 77 6e 65 72 20 22 | 20 24 20 63 2e 50 6c 61 | owner "| $ c.Pla|
|00000260| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000270| 66 6f 2e 50 6c 61 79 65 | 72 4e 61 6d 65 29 3b 0d |fo.Playe|rName);.|
|00000280| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 75 72 69 |. | uri|
|00000290| 20 3d 20 53 70 61 77 6e | 28 63 6c 61 73 73 27 75 | = Spawn|(class'u|
|000002a0| 74 76 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |tvReplic|ationInf|
|000002b0| 6f 27 2c 20 63 29 3b 0d | 0a 20 20 20 20 20 20 20 |o', c);.|. |
|000002c0| 20 20 20 20 20 75 72 69 | 2e 4f 77 6e 65 72 43 74 | uri|.OwnerCt|
|000002d0| 72 6c 20 3d 20 70 3b 0d | 0a 20 20 20 20 20 20 20 |rl = p;.|. |
|000002e0| 20 7d 0d 0a 20 20 20 20 | 7d 0d 0a 7d 0d 0a 0d 0a | }.. |}..}....|
|000002f0| 2f 2f 43 20 69 73 20 74 | 68 65 20 70 6f 73 73 69 |//C is t|he possi|
|00000300| 62 6c 65 20 6e 65 77 20 | 70 6c 61 79 65 72 0d 0a |ble new |player..|
|00000310| 66 75 6e 63 74 69 6f 6e | 20 43 72 65 61 74 65 55 |function| CreateU|
|00000320| 74 76 52 65 70 6c 69 63 | 61 74 69 6f 6e 28 43 6f |tvReplic|ation(Co|
|00000330| 6e 74 72 6f 6c 6c 65 72 | 20 63 29 0d 0a 7b 0d 0a |ntroller| c)..{..|
|00000340| 20 20 20 20 6c 6f 63 61 | 6c 20 75 74 76 52 65 70 | loca|l utvRep|
|00000350| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 20 75 72 69 |lication|Info uri|
|00000360| 3b 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 50 6c 61 |;.. l|ocal Pla|
|00000370| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 20 70 63 |yerContr|oller pc|
|00000380| 3b 0d 0a 20 20 20 20 6c | 6f 63 61 6c 20 62 6f 6f |;.. l|ocal boo|
|00000390| 6c 20 66 6f 75 6e 64 3b | 0d 0a 0d 0a 20 20 20 20 |l found;|.... |
|000003a0| 66 6f 72 65 61 63 68 20 | 64 79 6e 61 6d 69 63 61 |foreach |dynamica|
|000003b0| 63 74 6f 72 73 28 63 6c | 61 73 73 27 50 6c 61 79 |ctors(cl|ass'Play|
|000003c0| 65 72 43 6f 6e 74 72 6f | 6c 6c 65 72 27 2c 20 70 |erContro|ller', p|
|000003d0| 63 29 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 2f 2f |c) {.. | //|
|000003e0| 4f 6e 6c 79 20 73 70 61 | 77 6e 20 74 68 65 73 65 |Only spa|wn these|
|000003f0| 20 66 6f 72 20 63 6f 6e | 74 72 6f 6c 6c 65 72 73 | for con|trollers|
|00000400| 20 74 68 61 74 20 61 72 | 65 20 75 74 76 20 69 6e | that ar|e utv in|
|00000410| 20 73 65 65 61 6c 6c 20 | 6d 6f 64 65 0d 0a 20 20 | seeall |mode.. |
|00000420| 20 20 20 20 20 20 69 66 | 20 28 21 70 63 2e 62 41 | if| (!pc.bA|
|00000430| 6c 6c 41 63 74 6f 72 73 | 52 65 6c 65 76 61 6e 74 |llActors|Relevant|
|00000440| 29 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 63 |).. | c|
|00000450| 6f 6e 74 69 6e 75 65 3b | 0d 0a 0d 0a 20 20 20 20 |ontinue;|.... |
|00000460| 20 20 20 20 66 6f 75 6e | 64 20 3d 20 66 61 6c 73 | foun|d = fals|
|00000470| 65 3b 0d 0a 20 20 20 20 | 20 20 20 20 66 6f 72 65 |e;.. | fore|
|00000480| 61 63 68 20 64 79 6e 61 | 6d 69 63 61 63 74 6f 72 |ach dyna|micactor|
|00000490| 73 28 63 6c 61 73 73 27 | 75 74 76 52 65 70 6c 69 |s(class'|utvRepli|
|000004a0| 63 61 74 69 6f 6e 49 6e | 66 6f 27 2c 20 75 72 69 |cationIn|fo', uri|
|000004b0| 29 20 7b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |) {.. | |
|000004c0| 20 69 66 20 28 28 75 72 | 69 2e 4f 77 6e 65 72 50 | if ((ur|i.OwnerP|
|000004d0| 6c 61 79 65 72 20 3d 3d | 20 63 2e 50 6c 61 79 65 |layer ==| c.Playe|
|000004e0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000004f0| 29 20 26 26 20 28 75 72 | 69 2e 4f 77 6e 65 72 20 |) && (ur|i.Owner |
|00000500| 3d 3d 20 70 63 29 29 20 | 7b 0d 0a 20 20 20 20 20 |== pc)) |{.. |
|00000510| 20 20 20 20 20 20 20 20 | 20 20 20 66 6f 75 6e 64 | | found|
|00000520| 20 3d 20 74 72 75 65 3b | 0d 0a 20 20 20 20 20 20 | = true;|.. |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 3b | | break;|
|00000540| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0d |.. | }.|
|00000550| 0a 20 20 20 20 20 20 20 | 20 7d 0d 0a 20 20 20 20 |. | }.. |
|00000560| 20 20 20 20 69 66 20 28 | 21 66 6f 75 6e 64 29 20 | if (|!found) |
|00000570| 7b 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |{.. | /|
|00000580| 2f 4c 6f 67 28 22 53 70 | 61 77 6e 69 6e 67 20 75 |/Log("Sp|awning u|
|00000590| 74 76 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |tvReplic|ationInf|
|000005a0| 6f 20 66 6f 72 20 70 6c | 61 79 65 72 20 22 20 24 |o for pl|ayer " $|
|000005b0| 20 63 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 | c.Playe|rReplica|
|000005c0| 74 69 6f 6e 49 6e 66 6f | 2e 50 6c 61 79 65 72 4e |tionInfo|.PlayerN|
|000005d0| 61 6d 65 20 24 20 22 20 | 6f 77 6e 65 72 20 22 20 |ame $ " |owner " |
|000005e0| 24 20 70 63 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |$ pc.Pla|yerRepli|
|000005f0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 50 6c 61 79 65 |cationIn|fo.Playe|
|00000600| 72 4e 61 6d 65 29 3b 0d | 0a 20 20 20 20 20 20 20 |rName);.|. |
|00000610| 20 20 20 20 20 75 72 69 | 20 3d 20 53 70 61 77 6e | uri| = Spawn|
|00000620| 28 63 6c 61 73 73 27 75 | 74 76 52 65 70 6c 69 63 |(class'u|tvReplic|
|00000630| 61 74 69 6f 6e 49 6e 66 | 6f 27 2c 20 70 63 29 3b |ationInf|o', pc);|
|00000640| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 75 72 |.. | ur|
|00000650| 69 2e 4f 77 6e 65 72 43 | 74 72 6c 20 3d 20 63 3b |i.OwnerC|trl = c;|
|00000660| 0d 0a 20 20 20 20 20 20 | 20 20 7d 0d 0a 20 20 20 |.. | }.. |
|00000670| 20 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f | }..}...|.functio|
|00000680| 6e 20 54 69 63 6b 28 66 | 6c 6f 61 74 20 64 65 6c |n Tick(f|loat del|
|00000690| 74 61 54 69 6d 65 29 0d | 0a 7b 0d 0a 20 20 20 20 |taTime).|.{.. |
|000006a0| 6c 6f 63 61 6c 20 50 6c | 61 79 65 72 43 6f 6e 74 |local Pl|ayerCont|
|000006b0| 72 6f 6c 6c 65 72 20 70 | 63 3b 0d 0a 20 20 20 20 |roller p|c;.. |
|000006c0| 6c 6f 63 61 6c 20 69 6e | 74 20 69 3b 0d 0a 0d 0a |local in|t i;....|
|000006d0| 20 20 20 20 73 75 70 65 | 72 2e 54 69 63 6b 28 64 | supe|r.Tick(d|
|000006e0| 65 6c 74 61 54 69 6d 65 | 29 3b 0d 0a 0d 0a 20 20 |eltaTime|);.... |
|000006f0| 20 20 69 66 20 28 75 74 | 76 49 64 2e 4c 65 6e 67 | if (ut|vId.Leng|
|00000700| 74 68 20 3e 20 30 29 20 | 7b 0d 0a 20 20 20 20 20 |th > 0) |{.. |
|00000710| 20 20 20 66 6f 72 65 61 | 63 68 20 64 79 6e 61 6d | forea|ch dynam|
|00000720| 69 63 61 63 74 6f 72 73 | 28 63 6c 61 73 73 27 50 |icactors|(class'P|
|00000730| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 27 |layerCon|troller'|
|00000740| 2c 20 70 63 29 20 7b 0d | 0a 20 20 20 20 20 20 20 |, pc) {.|. |
|00000750| 20 20 20 20 20 66 6f 72 | 20 28 69 20 3d 20 30 3b | for| (i = 0;|
|00000760| 20 69 20 3c 20 75 74 76 | 49 64 2e 4c 65 6e 67 74 | i < utv|Id.Lengt|
|00000770| 68 3b 20 2b 2b 69 29 20 | 7b 0d 0a 20 20 20 20 20 |h; ++i) |{.. |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 69 66 20 28 70 | | if (p|
|00000790| 63 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |c.Player|Replicat|
|000007a0| 69 6f 6e 49 6e 66 6f 2e | 50 6c 61 79 65 72 49 44 |ionInfo.|PlayerID|
|000007b0| 20 3d 3d 20 75 74 76 49 | 64 5b 69 5d 29 20 7b 0d | == utvI|d[i]) {.|
|000007c0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000007d0| 20 20 20 20 20 43 72 65 | 61 74 65 49 6e 69 74 69 | Cre|ateIniti|
|000007e0| 61 6c 55 74 76 52 65 70 | 6c 69 63 61 74 69 6f 6e |alUtvRep|lication|
|000007f0| 28 70 63 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 20 |(pc);.. | |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 4c 6f 67 28 46 | | Log(F|
|00000810| 72 69 65 6e 64 6c 79 4e | 61 6d 65 20 24 20 22 3a |riendlyN|ame $ ":|
|00000820| 20 46 6f 75 6e 64 20 6e | 65 77 20 55 54 56 20 70 | Found n|ew UTV p|
|00000830| 6c 61 79 65 72 3a 20 22 | 20 24 20 70 63 2e 50 6c |layer: "| $ pc.Pl|
|00000840| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00000850| 6e 66 6f 2e 50 6c 61 79 | 65 72 4e 61 6d 65 29 3b |nfo.Play|erName);|
|00000860| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000870| 20 20 20 20 20 20 75 74 | 76 49 64 2e 52 65 6d 6f | ut|vId.Remo|
|00000880| 76 65 28 69 2c 20 31 29 | 3b 0d 0a 20 20 20 20 20 |ve(i, 1)|;.. |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 69 | | i|
|000008a0| 2d 2d 3b 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |--;.. | |
|000008b0| 20 20 20 20 20 7d 0d 0a | 20 20 20 20 20 20 20 20 | }..| |
|000008c0| 20 20 20 20 7d 0d 0a 20 | 20 20 20 20 20 20 20 7d | }.. | }|
|000008d0| 0d 0a 20 20 20 20 7d 0d | 0a 7d 0d 0a 0d 0a 2f 2f |.. }.|.}....//|
|000008e0| 52 65 74 75 72 6e 73 20 | 61 20 73 75 69 74 61 62 |Returns |a suitab|
|000008f0| 6c 65 20 55 54 56 2d 73 | 70 65 63 74 61 74 6f 72 |le UTV-s|pectator|
|00000900| 20 63 6c 61 73 73 2e 20 | 4b 6e 6f 77 73 20 61 62 | class. |Knows ab|
|00000910| 6f 75 74 20 55 54 43 6f | 6d 70 20 61 6e 64 20 54 |out UTCo|mp and T|
|00000920| 54 4d 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 73 74 72 |TM..func|tion str|
|00000930| 69 6e 67 20 47 65 74 4e | 65 77 43 6f 6e 74 72 6f |ing GetN|ewContro|
|00000940| 6c 6c 65 72 28 29 0d 0a | 7b 0d 0a 20 20 20 20 6c |ller()..|{.. l|
|00000950| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 63 75 72 3b |ocal str|ing cur;|
|00000960| 0d 0a 20 20 20 20 6c 6f | 63 61 6c 20 73 74 72 69 |.. lo|cal stri|
|00000970| 6e 67 20 6e 65 77 63 3b | 0d 0a 20 20 20 20 63 75 |ng newc;|.. cu|
|00000980| 72 20 3d 20 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 50 |r = Leve|l.Game.P|
|00000990| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 43 |layerCon|trollerC|
|000009a0| 6c 61 73 73 4e 61 6d 65 | 3b 0d 0a 0d 0a 20 20 20 |lassName|;.... |
|000009b0| 20 2f 2f 55 74 63 6f 6d | 70 3f 0d 0a 20 20 20 20 | //Utcom|p?.. |
|000009c0| 69 66 20 28 49 6e 53 74 | 72 28 63 75 72 2c 20 22 |if (InSt|r(cur, "|
|000009d0| 42 53 5f 22 29 20 3e 20 | 30 29 20 7b 0d 0a 20 20 |BS_") > |0) {.. |
|000009e0| 20 20 20 20 20 20 6e 65 | 77 63 20 3d 20 52 65 70 | ne|wc = Rep|
|000009f0| 6c 28 63 75 72 2c 20 22 | 42 53 5f 22 2c 20 22 55 |l(cur, "|BS_", "U|
|00000a00| 54 56 5f 42 53 5f 22 2c | 20 66 61 6c 73 65 29 3b |TV_BS_",| false);|
|00000a10| 0d 0a 20 20 20 20 20 20 | 20 20 4c 6f 67 28 46 72 |.. | Log(Fr|
|00000a20| 69 65 6e 64 6c 79 4e 61 | 6d 65 20 24 20 22 3a 20 |iendlyNa|me $ ": |
|00000a30| 55 54 43 6f 6d 70 20 64 | 65 74 65 63 74 65 64 2c |UTComp d|etected,|
|00000a40| 20 75 73 69 6e 67 20 63 | 6c 61 73 73 20 22 20 24 | using c|lass " $|
|00000a50| 20 6e 65 77 63 29 3b 0d | 0a 20 20 20 20 7d 0d 0a | newc);.|. }..|
|00000a60| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 49 6e 53 | else| if (InS|
|00000a70| 74 72 28 63 75 72 2c 20 | 22 54 54 4d 5f 50 6c 61 |tr(cur, |"TTM_Pla|
|00000a80| 79 65 72 43 6f 6e 74 72 | 6f 6c 6c 65 72 22 29 20 |yerContr|oller") |
|00000a90| 3e 20 30 29 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |> 0) {..| |
|00000aa0| 6e 65 77 63 20 3d 20 52 | 65 70 6c 28 63 75 72 2c |newc = R|epl(cur,|
|00000ab0| 20 22 54 54 4d 5f 50 6c | 61 79 65 72 43 6f 6e 74 | "TTM_Pl|ayerCont|
|00000ac0| 72 6f 6c 6c 65 72 22 2c | 20 22 54 54 4d 5f 55 54 |roller",| "TTM_UT|
|00000ad0| 56 5f 53 70 65 63 74 61 | 74 6f 72 22 2c 20 66 61 |V_Specta|tor", fa|
|00000ae0| 6c 73 65 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 4c |lse);.. | L|
|00000af0| 6f 67 28 46 72 69 65 6e | 64 6c 79 4e 61 6d 65 20 |og(Frien|dlyName |
|00000b00| 24 20 22 3a 20 54 54 4d | 20 64 65 74 65 63 74 65 |$ ": TTM| detecte|
|00000b10| 64 2c 20 75 73 69 6e 67 | 20 63 6c 61 73 73 20 22 |d, using| class "|
|00000b20| 20 24 20 6e 65 77 63 29 | 3b 0d 0a 20 20 20 20 7d | $ newc)|;.. }|
|00000b30| 0d 0a 20 20 20 20 65 6c | 73 65 20 7b 0d 0a 20 20 |.. el|se {.. |
|00000b40| 20 20 20 20 20 20 6e 65 | 77 63 20 3d 20 46 72 69 | ne|wc = Fri|
|00000b50| 65 6e 64 6c 79 4e 61 6d | 65 20 24 20 22 2e 75 74 |endlyNam|e $ ".ut|
|00000b60| 76 53 70 65 63 74 61 74 | 6f 72 22 3b 0d 0a 20 20 |vSpectat|or";.. |
|00000b70| 20 20 20 20 20 20 4c 6f | 67 28 46 72 69 65 6e 64 | Lo|g(Friend|
|00000b80| 6c 79 4e 61 6d 65 20 24 | 20 22 3a 20 55 73 69 6e |lyName $| ": Usin|
|00000b90| 67 20 63 6c 61 73 73 20 | 22 20 24 20 6e 65 77 63 |g class |" $ newc|
|00000ba0| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 |);.. |}.... |
|00000bb0| 20 72 65 74 75 72 6e 20 | 6e 65 77 63 3b 0d 0a 7d | return |newc;..}|
|00000bc0| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4d 6f 64 |....func|tion Mod|
|00000bd0| 69 66 79 4c 6f 67 69 6e | 28 6f 75 74 20 73 74 72 |ifyLogin|(out str|
|00000be0| 69 6e 67 20 50 6f 72 74 | 61 6c 2c 20 6f 75 74 20 |ing Port|al, out |
|00000bf0| 73 74 72 69 6e 67 20 4f | 70 74 69 6f 6e 73 29 0d |string O|ptions).|
|00000c00| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 62 6f 6f 6c 20 |.{...loc|al bool |
|00000c10| 62 53 65 65 41 6c 6c 3b | 0d 0a 09 6c 6f 63 61 6c |bSeeAll;|...local|
|00000c20| 20 62 6f 6f 6c 20 62 53 | 70 65 63 74 61 74 6f 72 | bool bS|pectator|
|00000c30| 3b 0d 0a 0d 0a 09 73 75 | 70 65 72 2e 4d 6f 64 69 |;.....su|per.Modi|
|00000c40| 66 79 4c 6f 67 69 6e 20 | 28 50 6f 72 74 61 6c 2c |fyLogin |(Portal,|
|00000c50| 20 4f 70 74 69 6f 6e 73 | 29 3b 0d 0a 0d 0a 09 69 | Options|);.....i|
|00000c60| 66 20 28 4c 65 76 65 6c | 2e 67 61 6d 65 20 3d 3d |f (Level|.game ==|
|00000c70| 20 6e 6f 6e 65 29 20 7b | 0d 0a 09 09 4c 6f 67 20 | none) {|....Log |
|00000c80| 28 46 72 69 65 6e 64 6c | 79 4e 61 6d 65 20 24 20 |(Friendl|yName $ |
|00000c90| 22 3a 20 4c 65 76 65 6c | 2e 67 61 6d 65 20 69 73 |": Level|.game is|
|00000ca0| 20 6e 6f 6e 65 3f 22 29 | 3b 0d 0a 09 09 72 65 74 | none?")|;....ret|
|00000cb0| 75 72 6e 3b 0d 0a 09 7d | 0d 0a 0d 0a 20 20 20 20 |urn;...}|.... |
|00000cc0| 2f 2f 49 66 20 77 65 20 | 72 65 70 6c 61 63 65 64 |//If we |replaced|
|00000cd0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 6c 65 72 20 | the con|troller |
|00000ce0| 6c 61 73 74 20 74 69 6d | 65 20 72 6f 75 6e 64 2c |last tim|e round,|
|00000cf0| 20 6d 61 6b 65 20 73 75 | 72 65 20 74 6f 20 72 65 | make su|re to re|
|00000d00| 73 74 6f 72 65 20 69 74 | 0d 0a 09 69 66 20 28 6f |store it|...if (o|
|00000d10| 72 69 67 63 6f 6e 74 72 | 6f 6c 6c 65 72 20 21 3d |rigcontr|oller !=|
|00000d20| 20 22 22 29 20 7b 0d 0a | 09 09 4c 65 76 65 6c 2e | "") {..|..Level.|
|00000d30| 47 61 6d 65 2e 50 6c 61 | 79 65 72 43 6f 6e 74 72 |Game.Pla|yerContr|
|00000d40| 6f 6c 6c 65 72 43 6c 61 | 73 73 4e 61 6d 65 20 3d |ollerCla|ssName =|
|00000d50| 20 6f 72 69 67 63 6f 6e | 74 72 6f 6c 6c 65 72 3b | origcon|troller;|
|00000d60| 0d 0a 09 09 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 50 |....Leve|l.Game.P|
|00000d70| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 43 |layerCon|trollerC|
|00000d80| 6c 61 73 73 20 3d 20 6f | 72 69 67 63 63 6c 61 73 |lass = o|rigcclas|
|00000d90| 73 3b 0d 0a 09 09 6f 72 | 69 67 63 6f 6e 74 72 6f |s;....or|igcontro|
|00000da0| 6c 6c 65 72 20 3d 20 22 | 22 3b 0d 0a 09 7d 0d 0a |ller = "|";...}..|
|00000db0| 0d 0a 20 20 20 20 62 53 | 70 65 63 74 61 74 6f 72 |.. bS|pectator|
|00000dc0| 20 3d 20 28 20 4c 65 76 | 65 6c 2e 47 61 6d 65 2e | = ( Lev|el.Game.|
|00000dd0| 50 61 72 73 65 4f 70 74 | 69 6f 6e 28 20 4f 70 74 |ParseOpt|ion( Opt|
|00000de0| 69 6f 6e 73 2c 20 22 53 | 70 65 63 74 61 74 6f 72 |ions, "S|pectator|
|00000df0| 4f 6e 6c 79 22 20 29 20 | 7e 3d 20 22 31 22 20 29 |Only" ) |~= "1" )|
|00000e00| 3b 0d 0a 20 20 20 20 62 | 53 65 65 41 6c 6c 20 3d |;.. b|SeeAll =|
|00000e10| 20 28 20 4c 65 76 65 6c | 2e 47 61 6d 65 2e 50 61 | ( Level|.Game.Pa|
|00000e20| 72 73 65 4f 70 74 69 6f | 6e 28 20 4f 70 74 69 6f |rseOptio|n( Optio|
|00000e30| 6e 73 2c 20 22 55 54 56 | 53 65 65 41 6c 6c 22 20 |ns, "UTV|SeeAll" |
|00000e40| 29 20 7e 3d 20 22 31 22 | 20 29 3b 0d 0a 0d 0a 09 |) ~= "1"| );.....|
|00000e50| 69 66 20 28 62 53 65 65 | 41 6c 6c 20 26 26 20 62 |if (bSee|All && b|
|00000e60| 53 70 65 63 74 61 74 6f | 72 29 20 7b 0d 0a 20 20 |Spectato|r) {.. |
|00000e70| 20 20 20 20 20 4c 6f 67 | 28 46 72 69 65 6e 64 6c | Log|(Friendl|
|00000e80| 79 4e 61 6d 65 20 24 20 | 22 3a 20 50 6c 61 79 65 |yName $ |": Playe|
|00000e90| 72 20 77 69 74 68 20 69 | 64 20 22 20 24 20 4c 65 |r with i|d " $ Le|
|00000ea0| 76 65 6c 2e 47 61 6d 65 | 2e 43 75 72 72 65 6e 74 |vel.Game|.Current|
|00000eb0| 49 44 20 24 20 22 20 69 | 73 20 72 65 71 75 65 73 |ID $ " i|s reques|
|00000ec0| 74 69 6e 67 20 53 65 65 | 41 6c 6c 22 29 3b 0d 0a |ting See|All");..|
|00000ed0| 0d 0a 20 20 20 20 20 20 | 20 75 74 76 49 64 5b 75 |.. | utvId[u|
|00000ee0| 74 76 49 64 2e 4c 65 6e | 67 74 68 5d 20 3d 20 4c |tvId.Len|gth] = L|
|00000ef0| 65 76 65 6c 2e 47 61 6d | 65 2e 43 75 72 72 65 6e |evel.Gam|e.Curren|
|00000f00| 74 49 44 3b 0d 0a 0d 0a | 20 20 20 20 20 20 20 6f |tID;....| o|
|00000f10| 72 69 67 63 6f 6e 74 72 | 6f 6c 6c 65 72 20 3d 20 |rigcontr|oller = |
|00000f20| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 50 6c 61 79 65 |Level.Ga|me.Playe|
|00000f30| 72 43 6f 6e 74 72 6f 6c | 6c 65 72 43 6c 61 73 73 |rControl|lerClass|
|00000f40| 4e 61 6d 65 3b 0d 0a 09 | 20 20 20 6f 72 69 67 63 |Name;...| origc|
|00000f50| 63 6c 61 73 73 20 3d 20 | 4c 65 76 65 6c 2e 47 61 |class = |Level.Ga|
|00000f60| 6d 65 2e 50 6c 61 79 65 | 72 43 6f 6e 74 72 6f 6c |me.Playe|rControl|
|00000f70| 6c 65 72 43 6c 61 73 73 | 3b 0d 0a 09 20 20 20 4c |lerClass|;... L|
|00000f80| 65 76 65 6c 2e 47 61 6d | 65 2e 50 6c 61 79 65 72 |evel.Gam|e.Player|
|00000f90| 43 6f 6e 74 72 6f 6c 6c | 65 72 43 6c 61 73 73 4e |Controll|erClassN|
|00000fa0| 61 6d 65 20 3d 20 47 65 | 74 4e 65 77 43 6f 6e 74 |ame = Ge|tNewCont|
|00000fb0| 72 6f 6c 6c 65 72 28 29 | 3b 0d 0a 09 20 20 20 4c |roller()|;... L|
|00000fc0| 65 76 65 6c 2e 47 61 6d | 65 2e 50 6c 61 79 65 72 |evel.Gam|e.Player|
|00000fd0| 43 6f 6e 74 72 6f 6c 6c | 65 72 43 6c 61 73 73 20 |Controll|erClass |
|00000fe0| 3d 20 6e 6f 6e 65 3b 0d | 0a 20 20 20 20 7d 0d 0a |= none;.|. }..|
|00000ff0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4d 6f |}....fun|ction Mo|
|00001000| 64 69 66 79 50 6c 61 79 | 65 72 28 50 61 77 6e 20 |difyPlay|er(Pawn |
|00001010| 4f 74 68 65 72 29 0d 0a | 7b 0d 0a 20 20 20 20 73 |Other)..|{.. s|
|00001020| 75 70 65 72 2e 4d 6f 64 | 69 66 79 50 6c 61 79 65 |uper.Mod|ifyPlaye|
|00001030| 72 28 4f 74 68 65 72 29 | 3b 0d 0a 0d 0a 20 20 20 |r(Other)|;.... |
|00001040| 20 43 72 65 61 74 65 55 | 74 76 52 65 70 6c 69 63 | CreateU|tvReplic|
|00001050| 61 74 69 6f 6e 28 4f 74 | 68 65 72 2e 43 6f 6e 74 |ation(Ot|her.Cont|
|00001060| 72 6f 6c 6c 65 72 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |roller);|..}....f|
|00001070| 75 6e 63 74 69 6f 6e 20 | 4e 6f 74 69 66 79 4c 6f |unction |NotifyLo|
|00001080| 67 6f 75 74 28 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |gout(Con|troller |
|00001090| 45 78 69 74 69 6e 67 29 | 0d 0a 7b 0d 0a 20 20 20 |Exiting)|..{.. |
|000010a0| 20 6c 6f 63 61 6c 20 75 | 74 76 52 65 70 6c 69 63 | local u|tvReplic|
|000010b0| 61 74 69 6f 6e 49 6e 66 | 6f 20 75 72 69 3b 0d 0a |ationInf|o uri;..|
|000010c0| 20 20 20 20 6c 6f 63 61 | 6c 20 50 6c 61 79 65 72 | loca|l Player|
|000010d0| 43 6f 6e 74 72 6f 6c 6c | 65 72 20 70 63 3b 0d 0a |Controll|er pc;..|
|000010e0| 0d 0a 20 20 20 20 73 75 | 70 65 72 2e 4e 6f 74 69 |.. su|per.Noti|
|000010f0| 66 79 4c 6f 67 6f 75 74 | 28 45 78 69 74 69 6e 67 |fyLogout|(Exiting|
|00001100| 29 3b 0d 0a 0d 0a 20 20 | 20 20 2f 2f 4c 6f 67 20 |);.... | //Log |
|00001110| 69 66 20 73 65 65 61 6c | 6c 20 70 6c 61 79 65 72 |if seeal|l player|
|00001120| 73 20 6c 65 61 76 65 0d | 0a 20 20 20 20 70 63 20 |s leave.|. pc |
|00001130| 3d 20 50 6c 61 79 65 72 | 43 6f 6e 74 72 6f 6c 6c |= Player|Controll|
|00001140| 65 72 28 45 78 69 74 69 | 6e 67 29 3b 0d 0a 20 20 |er(Exiti|ng);.. |
|00001150| 20 20 69 66 20 28 28 70 | 63 20 21 3d 20 6e 6f 6e | if ((p|c != non|
|00001160| 65 29 20 26 26 20 28 70 | 63 2e 62 41 6c 6c 41 63 |e) && (p|c.bAllAc|
|00001170| 74 6f 72 73 52 65 6c 65 | 76 61 6e 74 29 29 20 7b |torsRele|vant)) {|
|00001180| 0d 0a 20 20 20 20 20 20 | 20 20 4c 6f 67 28 46 72 |.. | Log(Fr|
|00001190| 69 65 6e 64 6c 79 4e 61 | 6d 65 20 24 20 22 3a 20 |iendlyNa|me $ ": |
|000011a0| 53 65 65 41 6c 6c 20 65 | 6e 61 62 6c 65 64 20 70 |SeeAll e|nabled p|
|000011b0| 6c 61 79 65 72 20 22 20 | 24 20 45 78 69 74 69 6e |layer " |$ Exitin|
|000011c0| 67 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |g.Player|Replicat|
|000011d0| 69 6f 6e 49 6e 66 6f 2e | 50 6c 61 79 65 72 4e 61 |ionInfo.|PlayerNa|
|000011e0| 6d 65 20 24 20 22 20 28 | 22 20 24 20 45 78 69 74 |me $ " (|" $ Exit|
|000011f0| 69 6e 67 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |ing.Play|erReplic|
|00001200| 61 74 69 6f 6e 49 6e 66 | 6f 2e 50 6c 61 79 65 72 |ationInf|o.Player|
|00001210| 49 44 20 24 20 22 29 20 | 6c 65 61 76 69 6e 67 22 |ID $ ") |leaving"|
|00001220| 29 3b 0d 0a 20 20 20 20 | 7d 0d 0a 0d 0a 20 20 20 |);.. |}.... |
|00001230| 20 2f 2f 52 65 6d 6f 76 | 65 20 61 6c 6c 20 75 74 | //Remov|e all ut|
|00001240| 76 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |vReplica|tionInfo|
|00001250| 73 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |s associ|ated wit|
|00001260| 68 20 74 68 65 20 6c 65 | 61 76 69 6e 67 20 70 6c |h the le|aving pl|
|00001270| 61 79 65 72 0d 0a 20 20 | 20 20 66 6f 72 65 61 63 |ayer.. | foreac|
|00001280| 68 20 64 79 6e 61 6d 69 | 63 61 63 74 6f 72 73 28 |h dynami|cactors(|
|00001290| 63 6c 61 73 73 27 75 74 | 76 52 65 70 6c 69 63 61 |class'ut|vReplica|
|000012a0| 74 69 6f 6e 49 6e 66 6f | 27 2c 20 75 72 69 29 20 |tionInfo|', uri) |
|000012b0| 7b 0d 0a 20 20 20 20 20 | 20 20 20 69 66 20 28 28 |{.. | if ((|
|000012c0| 75 72 69 2e 4f 77 6e 65 | 72 43 74 72 6c 20 3d 3d |uri.Owne|rCtrl ==|
|000012d0| 20 45 78 69 74 69 6e 67 | 29 20 7c 7c 20 28 75 72 | Exiting|) || (ur|
|000012e0| 69 2e 4f 77 6e 65 72 20 | 3d 3d 20 45 78 69 74 69 |i.Owner |== Exiti|
|000012f0| 6e 67 29 29 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |ng)) {..| |
|00001300| 20 20 20 20 2f 2f 4c 6f | 67 28 22 52 65 6d 6f 76 | //Lo|g("Remov|
|00001310| 69 6e 67 20 75 74 76 52 | 65 70 6c 69 63 61 74 69 |ing utvR|eplicati|
|00001320| 6f 6e 20 66 6f 72 20 70 | 61 77 6e 20 22 20 24 20 |on for p|awn " $ |
|00001330| 45 78 69 74 69 6e 67 20 | 24 20 22 20 70 6c 61 79 |Exiting |$ " play|
|00001340| 65 72 20 22 20 24 20 75 | 72 69 2e 4f 77 6e 65 72 |er " $ u|ri.Owner|
|00001350| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |);.. | |
|00001360| 75 72 69 2e 44 65 73 74 | 72 6f 79 28 29 3b 0d 0a |uri.Dest|roy();..|
|00001370| 20 20 20 20 20 20 20 20 | 7d 0d 0a 20 20 20 20 7d | |}.. }|
|00001380| 0d 0a 7d 0d 0a 0d 0a 00 | |..}.....| |
+--------+-------------------------+-------------------------+--------+--------+