home *** CD-ROM | disk | FTP | other *** search
Unknown | 2004-06-11 | 13.2 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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5b d3 01 2f 2f 3d 3d 3d |........|[..//===|
|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 78 |========|==..// x|
|00000060| 42 6f 6d 62 0d 0a 2f 2f | 20 54 68 69 73 20 69 73 |Bomb..//| This is|
|00000070| 20 74 68 65 20 62 6f 6d | 62 2e 20 20 53 6f 6d 65 | the bom|b. Some|
|00000080| 6f 6e 65 20 73 65 74 20 | 75 73 20 75 70 20 74 68 |one set |us up th|
|00000090| 65 20 62 6f 6d 62 2e 0d | 0a 2f 2f 3d 3d 3d 3d 3d |e bomb..|.//=====|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 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 | 0d 0a 63 6c 61 73 73 20 |========|..class |
|000000f0| 78 42 6f 6d 62 46 6c 61 | 67 20 65 78 74 65 6e 64 |xBombFla|g extend|
|00000100| 73 20 47 61 6d 65 4f 62 | 6a 65 63 74 3b 0d 0a 0d |s GameOb|ject;...|
|00000110| 0a 76 61 72 28 29 20 53 | 74 72 69 6e 67 20 20 20 |.var() S|tring |
|00000120| 20 20 20 20 20 42 6f 6d | 62 4c 61 75 6e 63 68 65 | Bom|bLaunche|
|00000130| 72 43 6c 61 73 73 4e 61 | 6d 65 3b 0d 0a 76 61 72 |rClassNa|me;..var|
|00000140| 28 29 20 63 6c 61 73 73 | 3c 57 65 61 70 6f 6e 3e |() class|<Weapon>|
|00000150| 20 50 72 65 76 57 65 61 | 70 6f 6e 43 6c 61 73 73 | PrevWea|ponClass|
|00000160| 3b 0d 0a 76 61 72 28 29 | 20 50 61 77 6e 20 20 20 |;..var()| Pawn |
|00000170| 20 20 20 20 20 20 20 50 | 61 73 73 54 61 72 67 65 | P|assTarge|
|00000180| 74 3b 0d 0a 76 61 72 28 | 29 20 66 6c 6f 61 74 20 |t;..var(|) float |
|00000190| 20 20 20 20 20 20 20 20 | 54 68 72 6f 77 53 70 65 | |ThrowSpe|
|000001a0| 65 64 3b 0d 0a 76 61 72 | 28 29 20 66 6c 6f 61 74 |ed;..var|() float|
|000001b0| 20 20 20 20 20 20 20 20 | 20 45 6c 61 73 74 69 63 | | Elastic|
|000001c0| 69 74 79 3b 0d 0a 76 61 | 72 28 29 20 73 6f 75 6e |ity;..va|r() soun|
|000001d0| 64 20 20 20 20 20 20 20 | 20 20 49 6d 70 61 63 74 |d | Impact|
|000001e0| 53 6f 75 6e 64 3b 0d 0a | 76 61 72 28 29 20 66 6c |Sound;..|var() fl|
|000001f0| 6f 61 74 20 20 20 20 20 | 20 20 20 20 54 68 72 6f |oat | Thro|
|00000200| 77 65 72 54 6f 75 63 68 | 44 65 6c 61 79 3b 0d 0a |werTouch|Delay;..|
|00000210| 76 61 72 28 29 20 66 6c | 6f 61 74 20 20 20 20 20 |var() fl|oat |
|00000220| 20 20 20 20 54 68 72 6f | 77 65 72 54 69 6d 65 3b | Thro|werTime;|
|00000230| 0d 0a 76 61 72 28 29 20 | 76 65 63 74 6f 72 20 20 |..var() |vector |
|00000240| 20 20 20 20 20 20 49 6e | 69 74 69 61 6c 44 69 72 | In|itialDir|
|00000250| 3b 0d 0a 76 61 72 28 29 | 20 66 6c 6f 61 74 20 20 |;..var()| float |
|00000260| 20 20 20 20 20 20 20 53 | 65 65 6b 49 6e 74 65 72 | S|eekInter|
|00000270| 76 61 6c 3b 0d 0a 76 61 | 72 28 29 20 74 72 61 6e |val;..va|r() tran|
|00000280| 73 69 65 6e 74 20 66 6c | 6f 61 74 20 20 20 20 20 |sient fl|oat |
|00000290| 20 20 20 20 53 65 65 6b | 41 63 63 75 6d 3b 0d 0a | Seek|Accum;..|
|000002a0| 76 61 72 20 6d 61 74 65 | 72 69 61 6c 20 54 65 61 |var mate|rial Tea|
|000002b0| 6d 53 68 61 64 65 72 5b | 32 5d 3b 0d 0a 76 61 72 |mShader[|2];..var|
|000002c0| 20 62 79 74 65 20 54 65 | 61 6d 48 75 65 5b 32 5d | byte Te|amHue[2]|
|000002d0| 3b 0d 0a 0d 0a 76 61 72 | 20 62 6f 6f 6c 09 62 54 |;....var| bool.bT|
|000002e0| 68 72 6f 77 6e 42 6f 6d | 62 3b 0d 0a 76 61 72 20 |hrownBom|b;..var |
|000002f0| 62 6f 6f 6c 09 62 42 61 | 6c 6c 44 72 61 69 6e 73 |bool.bBa|llDrains|
|00000300| 54 72 61 6e 73 6c 6f 63 | 3b 0d 0a 0d 0a 76 61 72 |Transloc|;....var|
|00000310| 20 6d 61 74 65 72 69 61 | 6c 20 53 65 63 6f 6e 64 | materia|l Second|
|00000320| 52 65 70 53 6b 69 6e 3b | 0d 0a 76 61 72 20 78 45 |RepSkin;|..var xE|
|00000330| 6d 69 74 74 65 72 20 54 | 6f 73 73 54 72 61 69 6c |mitter T|ossTrail|
|00000340| 3b 0d 0a 23 65 78 65 63 | 20 4f 42 4a 20 4c 4f 41 |;..#exec| OBJ LOA|
|00000350| 44 20 46 49 4c 45 3d 58 | 47 61 6d 65 53 68 61 64 |D FILE=X|GameShad|
|00000360| 65 72 73 2e 75 74 78 0d | 0a 0d 0a 0d 0a 72 65 70 |ers.utx.|.....rep|
|00000370| 6c 69 63 61 74 69 6f 6e | 0d 0a 7b 0d 0a 20 20 20 |lication|..{.. |
|00000380| 20 72 65 6c 69 61 62 6c | 65 20 69 66 20 28 52 6f | reliabl|e if (Ro|
|00000390| 6c 65 20 3d 3d 20 52 4f | 4c 45 5f 41 75 74 68 6f |le == RO|LE_Autho|
|000003a0| 72 69 74 79 29 0d 0a 20 | 20 20 20 20 20 20 20 53 |rity).. | S|
|000003b0| 65 63 6f 6e 64 52 65 70 | 53 6b 69 6e 2c 20 62 42 |econdRep|Skin, bB|
|000003c0| 61 6c 6c 44 72 61 69 6e | 73 54 72 61 6e 73 6c 6f |allDrain|sTranslo|
|000003d0| 63 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |c;..}...|.functio|
|000003e0| 6e 20 44 65 73 74 72 6f | 79 65 64 28 29 0d 0a 7b |n Destro|yed()..{|
|000003f0| 0d 0a 09 69 66 20 28 20 | 54 6f 73 73 54 72 61 69 |...if ( |TossTrai|
|00000400| 6c 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 54 |l != Non|e )....T|
|00000410| 6f 73 73 54 72 61 69 6c | 2e 44 65 73 74 72 6f 79 |ossTrail|.Destroy|
|00000420| 28 29 3b 0d 0a 0d 0a 09 | 53 75 70 65 72 2e 44 65 |();.....|Super.De|
|00000430| 73 74 72 6f 79 65 64 28 | 29 3b 0d 0a 7d 0d 0a 0d |stroyed(|);..}...|
|00000440| 0a 73 69 6d 75 6c 61 74 | 65 64 20 65 76 65 6e 74 |.simulat|ed event|
|00000450| 20 50 6f 73 74 4e 65 74 | 52 65 63 65 69 76 65 28 | PostNet|Receive(|
|00000460| 29 0d 0a 7b 0d 0a 09 53 | 6b 69 6e 73 5b 32 5d 20 |)..{...S|kins[2] |
|00000470| 3d 20 53 65 63 6f 6e 64 | 52 65 70 53 6b 69 6e 3b |= Second|RepSkin;|
|00000480| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000490| 43 6c 65 61 72 48 6f 6c | 64 65 72 28 29 0d 0a 7b |ClearHol|der()..{|
|000004a0| 0d 0a 20 20 20 20 69 66 | 20 28 48 6f 6c 64 65 72 |.. if| (Holder|
|000004b0| 20 3d 3d 20 4e 6f 6e 65 | 29 0d 0a 20 20 20 20 20 | == None|).. |
|000004c0| 20 20 20 72 65 74 75 72 | 6e 3b 0d 0a 0d 0a 09 69 | retur|n;.....i|
|000004d0| 66 20 28 20 48 6f 6c 64 | 65 72 2e 50 6c 61 79 65 |f ( Hold|er.Playe|
|000004e0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000004f0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 7b 0d 0a | != None| )...{..|
|00000500| 09 09 48 6f 6c 64 65 72 | 2e 50 6c 61 79 65 72 52 |..Holder|.PlayerR|
|00000510| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 48 |eplicati|onInfo.H|
|00000520| 61 73 46 6c 61 67 20 3d | 20 4e 6f 6e 65 3b 0d 0a |asFlag =| None;..|
|00000530| 09 09 48 6f 6c 64 65 72 | 2e 50 6c 61 79 65 72 52 |..Holder|.PlayerR|
|00000540| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 4e |eplicati|onInfo.N|
|00000550| 65 74 55 70 64 61 74 65 | 54 69 6d 65 20 3d 20 4c |etUpdate|Time = L|
|00000560| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00000570| 20 2d 20 31 3b 0d 0a 09 | 7d 0d 0a 20 20 20 20 69 | - 1;...|}.. i|
|00000580| 66 20 28 20 28 48 6f 6c | 64 65 72 2e 50 65 6e 64 |f ( (Hol|der.Pend|
|00000590| 69 6e 67 57 65 61 70 6f | 6e 20 21 3d 20 4e 6f 6e |ingWeapo|n != Non|
|000005a0| 65 29 20 26 26 20 48 6f | 6c 64 65 72 2e 50 65 6e |e) && Ho|lder.Pen|
|000005b0| 64 69 6e 67 57 65 61 70 | 6f 6e 2e 49 73 41 28 27 |dingWeap|on.IsA('|
|000005c0| 42 61 6c 6c 4c 61 75 6e | 63 68 65 72 27 29 20 29 |BallLaun|cher') )|
|000005d0| 0d 0a 09 09 48 6f 6c 64 | 65 72 2e 50 65 6e 64 69 |....Hold|er.Pendi|
|000005e0| 6e 67 57 65 61 70 6f 6e | 20 3d 20 4e 6f 6e 65 3b |ngWeapon| = None;|
|000005f0| 0d 0a 20 20 20 20 69 66 | 20 28 20 28 48 6f 6c 64 |.. if| ( (Hold|
|00000600| 65 72 2e 57 65 61 70 6f | 6e 20 21 3d 20 4e 6f 6e |er.Weapo|n != Non|
|00000610| 65 29 20 26 26 20 28 48 | 6f 6c 64 65 72 2e 43 6f |e) && (H|older.Co|
|00000620| 6e 74 72 6f 6c 6c 65 72 | 20 21 3d 20 4e 6f 6e 65 |ntroller| != None|
|00000630| 29 20 26 26 20 48 6f 6c | 64 65 72 2e 57 65 61 70 |) && Hol|der.Weap|
|00000640| 6f 6e 2e 49 73 41 28 27 | 42 61 6c 6c 4c 61 75 6e |on.IsA('|BallLaun|
|00000650| 63 68 65 72 27 29 20 29 | 0d 0a 09 09 48 6f 6c 64 |cher') )|....Hold|
|00000660| 65 72 2e 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 43 6c |er.Contr|oller.Cl|
|00000670| 69 65 6e 74 53 77 69 74 | 63 68 54 6f 42 65 73 74 |ientSwit|chToBest|
|00000680| 57 65 61 70 6f 6e 28 29 | 3b 0d 0a 20 20 20 20 48 |Weapon()|;.. H|
|00000690| 6f 6c 64 65 72 20 3d 20 | 4e 6f 6e 65 3b 0d 0a 20 |older = |None;.. |
|000006a0| 20 20 20 48 6f 6c 64 65 | 72 50 52 49 20 3d 20 4e | Holde|rPRI = N|
|000006b0| 6f 6e 65 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 53 74 |one;..}.|...// St|
|000006c0| 61 74 65 20 74 72 61 6e | 73 69 74 69 6f 6e 73 0d |ate tran|sitions.|
|000006d0| 0a 66 75 6e 63 74 69 6f | 6e 20 53 65 74 48 6f 6c |.functio|n SetHol|
|000006e0| 64 65 72 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 43 |der(Cont|roller C|
|000006f0| 29 0d 0a 7b 0d 0a 20 20 | 20 20 6c 6f 63 61 6c 20 |)..{.. | local |
|00000700| 43 6c 61 73 73 3c 57 65 | 61 70 6f 6e 3e 20 42 6f |Class<We|apon> Bo|
|00000710| 6d 62 4c 61 75 6e 63 68 | 65 72 43 6c 61 73 73 3b |mbLaunch|erClass;|
|00000720| 0d 0a 09 6c 6f 63 61 6c | 20 57 65 61 70 6f 6e 20 |...local| Weapon |
|00000730| 57 3b 0d 0a 09 6c 6f 63 | 61 6c 20 42 6f 6d 62 69 |W;...loc|al Bombi|
|00000740| 6e 67 52 75 6e 53 71 75 | 61 64 41 49 20 53 3b 0d |ngRunSqu|adAI S;.|
|00000750| 0a 09 6c 6f 63 61 6c 20 | 49 6e 76 65 6e 74 6f 72 |..local |Inventor|
|00000760| 79 20 49 6e 76 3b 0d 0a | 09 6c 6f 63 61 6c 20 50 |y Inv;..|.local P|
|00000770| 61 77 6e 20 50 3b 0d 0a | 0d 0a 09 2f 2f 20 75 70 |awn P;..|...// up|
|00000780| 64 61 74 65 20 41 49 20 | 62 65 66 6f 72 65 20 63 |date AI |before c|
|00000790| 68 61 6e 67 69 6e 67 20 | 73 74 61 74 65 73 0d 0a |hanging |states..|
|000007a0| 20 20 20 20 69 66 20 28 | 20 42 6f 74 28 43 29 20 | if (| Bot(C) |
|000007b0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 53 20 3d |!= None |)....S =|
|000007c0| 20 42 6f 6d 62 69 6e 67 | 52 75 6e 53 71 75 61 64 | Bombing|RunSquad|
|000007d0| 41 49 28 42 6f 74 28 43 | 29 2e 53 71 75 61 64 29 |AI(Bot(C|).Squad)|
|000007e0| 3b 0d 0a 09 65 6c 73 65 | 20 69 66 20 28 20 28 50 |;...else| if ( (P|
|000007f0| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 28 |layerCon|troller(|
|00000800| 43 29 20 21 3d 20 4e 6f | 6e 65 29 20 26 26 20 28 |C) != No|ne) && (|
|00000810| 55 6e 72 65 61 6c 54 65 | 61 6d 49 6e 66 6f 28 43 |UnrealTe|amInfo(C|
|00000820| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000830| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 29 2e 41 49 20 |onInfo.T|eam).AI |
|00000840| 21 3d 20 4e 6f 6e 65 29 | 20 29 0d 0a 09 7b 0d 0a |!= None)| )...{..|
|00000850| 20 20 20 20 20 20 20 20 | 53 20 3d 20 42 6f 6d 62 | |S = Bomb|
|00000860| 69 6e 67 52 75 6e 53 71 | 75 61 64 41 49 28 55 6e |ingRunSq|uadAI(Un|
|00000870| 72 65 61 6c 54 65 61 6d | 49 6e 66 6f 28 43 2e 50 |realTeam|Info(C.P|
|00000880| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00000890| 49 6e 66 6f 2e 54 65 61 | 6d 29 2e 41 49 2e 46 69 |Info.Tea|m).AI.Fi|
|000008a0| 6e 64 48 75 6d 61 6e 53 | 71 75 61 64 28 29 29 3b |ndHumanS|quad());|
|000008b0| 0d 0a 20 20 20 20 20 20 | 20 20 69 66 20 28 20 53 |.. | if ( S|
|000008c0| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 53 2e 53 71 | != None| && S.Sq|
|000008d0| 75 61 64 4c 65 61 64 65 | 72 20 21 3d 20 43 20 29 |uadLeade|r != C )|
|000008e0| 0d 0a 09 09 09 53 20 3d | 20 4e 6f 6e 65 3b 0d 0a |.....S =| None;..|
|000008f0| 20 20 20 20 7d 0d 0a 20 | 20 20 20 69 66 20 28 20 | }.. | if ( |
|00000900| 53 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 53 |S != Non|e )....S|
|00000910| 2e 42 6f 6d 62 54 61 6b | 65 6e 42 79 28 43 29 3b |.BombTak|enBy(C);|
|00000920| 0d 0a 0d 0a 20 20 20 20 | 53 75 70 65 72 2e 53 65 |.... |Super.Se|
|00000930| 74 48 6f 6c 64 65 72 28 | 43 29 3b 0d 0a 09 49 6e |tHolder(|C);...In|
|00000940| 73 74 69 67 61 74 6f 72 | 20 3d 20 48 6f 6c 64 65 |stigator| = Holde|
|00000950| 72 3b 0d 0a 09 62 54 68 | 72 6f 77 6e 42 6f 6d 62 |r;...bTh|rownBomb|
|00000960| 20 3d 20 66 61 6c 73 65 | 3b 0d 0a 20 20 20 20 4c | = false|;.. L|
|00000970| 65 76 65 6c 2e 47 61 6d | 65 2e 47 61 6d 65 52 65 |evel.Gam|e.GameRe|
|00000980| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 46 6c |plicatio|nInfo.Fl|
|00000990| 61 67 54 61 72 67 65 74 | 20 3d 20 4e 6f 6e 65 3b |agTarget| = None;|
|000009a0| 0d 0a 0d 0a 20 20 20 20 | 42 6f 6d 62 4c 61 75 6e |.... |BombLaun|
|000009b0| 63 68 65 72 43 6c 61 73 | 73 20 3d 20 43 6c 61 73 |cherClas|s = Clas|
|000009c0| 73 3c 57 65 61 70 6f 6e | 3e 28 20 44 79 6e 61 6d |s<Weapon|>( Dynam|
|000009d0| 69 63 4c 6f 61 64 4f 62 | 6a 65 63 74 28 20 42 6f |icLoadOb|ject( Bo|
|000009e0| 6d 62 4c 61 75 6e 63 68 | 65 72 43 6c 61 73 73 4e |mbLaunch|erClassN|
|000009f0| 61 6d 65 20 2c 20 63 6c | 61 73 73 27 43 6c 61 73 |ame , cl|ass'Clas|
|00000a00| 73 27 20 29 20 29 3b 0d | 0a 20 20 20 20 50 72 65 |s' ) );.|. Pre|
|00000a10| 76 57 65 61 70 6f 6e 43 | 6c 61 73 73 20 3d 20 43 |vWeaponC|lass = C|
|00000a20| 2e 50 61 77 6e 2e 57 65 | 61 70 6f 6e 2e 43 6c 61 |.Pawn.We|apon.Cla|
|00000a30| 73 73 3b 0d 0a 0d 0a 20 | 20 20 20 69 66 28 20 43 |ss;.... | if( C|
|00000a40| 6c 61 73 73 49 73 43 68 | 69 6c 64 4f 66 28 20 50 |lassIsCh|ildOf( P|
|00000a50| 72 65 76 57 65 61 70 6f | 6e 43 6c 61 73 73 2c 20 |revWeapo|nClass, |
|00000a60| 42 6f 6d 62 4c 61 75 6e | 63 68 65 72 43 6c 61 73 |BombLaun|cherClas|
|00000a70| 73 20 29 20 29 0d 0a 20 | 20 20 20 20 20 20 20 50 |s ) ).. | P|
|00000a80| 72 65 76 57 65 61 70 6f | 6e 43 6c 61 73 73 20 3d |revWeapo|nClass =|
|00000a90| 20 4e 6f 6e 65 3b 0d 0a | 0d 0a 09 2f 2f 20 4d 61 | None;..|...// Ma|
|00000aa0| 6b 65 20 73 75 72 65 20 | 74 68 65 20 6e 65 77 20 |ke sure |the new |
|00000ab0| 68 6f 6c 64 73 20 68 61 | 73 20 74 68 65 20 42 6f |holds ha|s the Bo|
|00000ac0| 6d 62 4c 61 75 6e 63 68 | 65 72 0d 0a 0d 0a 09 50 |mbLaunch|er.....P|
|00000ad0| 20 3d 20 43 2e 50 61 77 | 6e 3b 0d 0a 09 69 66 20 | = C.Paw|n;...if |
|00000ae0| 28 50 3d 3d 4e 6f 6e 65 | 29 0d 0a 09 09 72 65 74 |(P==None|)....ret|
|00000af0| 75 72 6e 3b 0d 0a 0d 0a | 09 66 6f 72 28 20 49 6e |urn;....|.for( In|
|00000b00| 76 3d 50 2e 49 6e 76 65 | 6e 74 6f 72 79 3b 20 49 |v=P.Inve|ntory; I|
|00000b10| 6e 76 21 3d 4e 6f 6e 65 | 3b 20 49 6e 76 3d 49 6e |nv!=None|; Inv=In|
|00000b20| 76 2e 49 6e 76 65 6e 74 | 6f 72 79 20 29 0d 0a 09 |v.Invent|ory )...|
|00000b30| 7b 0d 0a 09 09 69 66 20 | 28 20 43 6c 61 73 73 49 |{....if |( ClassI|
|00000b40| 73 43 68 69 6c 64 4f 66 | 28 49 6e 76 2e 43 6c 61 |sChildOf|(Inv.Cla|
|00000b50| 73 73 2c 20 42 6f 6d 62 | 4c 61 75 6e 63 68 65 72 |ss, Bomb|Launcher|
|00000b60| 43 6c 61 73 73 29 20 29 | 0d 0a 09 09 09 62 72 65 |Class) )|.....bre|
|00000b70| 61 6b 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 69 66 20 28 |ak;...}.|....if (|
|00000b80| 49 6e 76 3d 3d 4e 6f 6e | 65 29 0d 0a 09 7b 0d 0a |Inv==Non|e)...{..|
|00000b90| 09 09 2f 2f 09 47 69 76 | 65 20 74 68 65 20 42 61 |..//.Giv|e the Ba|
|00000ba0| 6c 6c 20 4c 61 75 6e 63 | 68 65 72 20 74 6f 20 74 |ll Launc|her to t|
|00000bb0| 68 65 20 70 6c 61 79 65 | 72 0d 0a 20 20 20 20 20 |he playe|r.. |
|00000bc0| 20 20 20 57 20 3d 20 53 | 70 61 77 6e 28 42 6f 6d | W = S|pawn(Bom|
|00000bd0| 62 4c 61 75 6e 63 68 65 | 72 43 6c 61 73 73 2c 2c |bLaunche|rClass,,|
|00000be0| 2c 50 2e 4c 6f 63 61 74 | 69 6f 6e 29 3b 0d 0a 20 |,P.Locat|ion);.. |
|00000bf0| 20 20 20 20 20 20 20 69 | 66 28 20 57 20 3d 3d 20 | i|f( W == |
|00000c00| 4e 6f 6e 65 20 29 0d 0a | 20 20 20 20 20 20 20 20 |None )..| |
|00000c10| 7b 0d 0a 09 09 09 6c 6f | 67 28 73 65 6c 66 40 22 |{.....lo|g(self@"|
|00000c20| 63 6f 75 6c 64 20 6e 6f | 74 20 73 70 61 77 6e 20 |could no|t spawn |
|00000c30| 61 20 6c 61 75 6e 63 68 | 65 72 20 66 6f 72 20 70 |a launch|er for p|
|00000c40| 6c 61 79 65 72 22 40 70 | 29 3b 0d 0a 09 09 09 72 |layer"@p|);.....r|
|00000c50| 65 74 75 72 6e 3b 0d 0a | 20 20 20 20 20 20 20 20 |eturn;..| |
|00000c60| 7d 0d 0a 20 20 20 20 20 | 20 20 20 77 2e 47 69 76 |}.. | w.Giv|
|00000c70| 65 54 6f 28 50 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 20 |eTo(P);.|..}.... |
|00000c80| 20 20 20 43 2e 43 6c 69 | 65 6e 74 53 65 74 57 65 | C.Cli|entSetWe|
|00000c90| 61 70 6f 6e 28 20 42 6f | 6d 62 4c 61 75 6e 63 68 |apon( Bo|mbLaunch|
|00000ca0| 65 72 43 6c 61 73 73 20 | 29 3b 0d 0a 7d 0d 0a 0d |erClass |);..}...|
|00000cb0| 0a 66 75 6e 63 74 69 6f | 6e 20 53 65 74 54 68 72 |.functio|n SetThr|
|00000cc0| 6f 77 28 76 65 63 74 6f | 72 20 73 74 61 72 74 29 |ow(vecto|r start)|
|00000cd0| 0d 0a 7b 0d 0a 09 49 6e | 73 74 69 67 61 74 6f 72 |..{...In|stigator|
|00000ce0| 20 3d 20 48 6f 6c 64 65 | 72 3b 0d 0a 09 54 68 72 | = Holde|r;...Thr|
|00000cf0| 6f 77 65 72 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |owerTime| = Level|
|00000d00| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 3b 0d 0a 09 |.TimeSec|onds;...|
|00000d10| 62 54 68 72 6f 77 6e 42 | 6f 6d 62 20 3d 20 74 72 |bThrownB|omb = tr|
|00000d20| 75 65 3b 0d 0a 20 20 20 | 20 53 65 74 4c 6f 63 61 |ue;.. | SetLoca|
|00000d30| 74 69 6f 6e 28 73 74 61 | 72 74 29 3b 0d 0a 7d 0d |tion(sta|rt);..}.|
|00000d40| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 54 68 72 6f |...funct|ion Thro|
|00000d50| 77 28 76 65 63 74 6f 72 | 20 73 74 61 72 74 2c 20 |w(vector| start, |
|00000d60| 76 65 63 74 6f 72 20 64 | 69 72 29 0d 0a 7b 0d 0a |vector d|ir)..{..|
|00000d70| 20 20 20 20 53 65 74 54 | 68 72 6f 77 28 73 74 61 | SetT|hrow(sta|
|00000d80| 72 74 29 3b 0d 0a 20 20 | 20 20 44 72 6f 70 28 44 |rt);.. | Drop(D|
|00000d90| 69 72 29 3b 0d 0a 20 20 | 20 20 69 66 28 20 50 61 |ir);.. | if( Pa|
|00000da0| 73 73 54 61 72 67 65 74 | 20 21 3d 20 4e 6f 6e 65 |ssTarget| != None|
|00000db0| 20 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | ).. |{.. |
|00000dc0| 20 20 20 45 6e 61 62 6c | 65 28 27 54 69 63 6b 27 | Enabl|e('Tick'|
|00000dd0| 29 3b 0d 0a 20 20 20 20 | 20 20 20 20 53 65 74 50 |);.. | SetP|
|00000de0| 68 79 73 69 63 73 28 50 | 48 59 53 5f 50 72 6f 6a |hysics(P|HYS_Proj|
|00000df0| 65 63 74 69 6c 65 29 3b | 0d 0a 20 20 20 20 7d 0d |ectile);|.. }.|
|00000e00| 0a 20 20 20 20 65 6c 73 | 65 0d 0a 09 09 44 69 73 |. els|e....Dis|
|00000e10| 61 62 6c 65 28 27 54 69 | 63 6b 27 29 3b 0d 0a 09 |able('Ti|ck');...|
|00000e20| 69 66 20 28 20 50 61 73 | 73 54 61 72 67 65 74 20 |if ( Pas|sTarget |
|00000e30| 3d 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 4c 65 76 |== None |)....Lev|
|00000e40| 65 6c 2e 47 61 6d 65 2e | 47 61 6d 65 52 65 70 6c |el.Game.|GameRepl|
|00000e50| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 46 6c 61 67 |icationI|nfo.Flag|
|00000e60| 54 61 72 67 65 74 20 3d | 20 4e 6f 6e 65 3b 0d 0a |Target =| None;..|
|00000e70| 09 65 6c 73 65 0d 0a 09 | 09 4c 65 76 65 6c 2e 47 |.else...|.Level.G|
|00000e80| 61 6d 65 2e 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |ame.Game|Replicat|
|00000e90| 69 6f 6e 49 6e 66 6f 2e | 46 6c 61 67 54 61 72 67 |ionInfo.|FlagTarg|
|00000ea0| 65 74 20 3d 20 50 61 73 | 73 54 61 72 67 65 74 2e |et = Pas|sTarget.|
|00000eb0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000ec0| 6e 49 6e 66 6f 3b 0d 0a | 20 20 20 20 69 66 20 28 |nInfo;..| if (|
|00000ed0| 20 54 6f 73 73 54 72 61 | 69 6c 20 3d 3d 20 4e 6f | TossTra|il == No|
|00000ee0| 6e 65 20 29 0d 0a 09 09 | 54 6f 73 73 54 72 61 69 |ne )....|TossTrai|
|00000ef0| 6c 20 3d 20 53 70 61 77 | 6e 28 63 6c 61 73 73 27 |l = Spaw|n(class'|
|00000f00| 42 6f 6d 62 54 72 61 69 | 6c 27 2c 20 73 65 6c 66 |BombTrai|l', self|
|00000f10| 29 3b 0d 0a 0d 0a 09 54 | 6f 73 73 54 72 61 69 6c |);.....T|ossTrail|
|00000f20| 2e 53 65 74 42 61 73 65 | 28 73 65 6c 66 29 3b 0d |.SetBase|(self);.|
|00000f30| 0a 09 54 6f 73 73 54 72 | 61 69 6c 2e 53 65 74 52 |..TossTr|ail.SetR|
|00000f40| 65 6c 61 74 69 76 65 4c | 6f 63 61 74 69 6f 6e 28 |elativeL|ocation(|
|00000f50| 76 65 63 74 28 30 2c 30 | 2c 30 29 29 3b 0d 0a 09 |vect(0,0|,0));...|
|00000f60| 69 66 20 28 20 28 50 61 | 73 73 54 61 72 67 65 74 |if ( (Pa|ssTarget|
|00000f70| 20 21 3d 20 4e 6f 6e 65 | 29 20 26 26 20 28 50 61 | != None|) && (Pa|
|00000f80| 73 73 54 61 72 67 65 74 | 20 21 3d 20 49 6e 73 74 |ssTarget| != Inst|
|00000f90| 69 67 61 74 6f 72 29 20 | 29 0d 0a 09 7b 0d 0a 09 |igator) |)...{...|
|00000fa0| 09 69 66 20 28 20 49 6e | 73 74 69 67 61 74 6f 72 |.if ( In|stigator|
|00000fb0| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00000fc0| 6f 6e 49 6e 66 6f 2e 54 | 65 61 6d 2e 54 65 61 6d |onInfo.T|eam.Team|
|00000fd0| 49 6e 64 65 78 20 3d 3d | 20 30 20 29 0d 0a 09 09 |Index ==| 0 )....|
|00000fe0| 7b 0d 0a 09 09 09 54 6f | 73 73 54 72 61 69 6c 2e |{.....To|ssTrail.|
|00000ff0| 6d 43 6f 6c 6f 72 52 61 | 6e 67 65 5b 30 5d 2e 47 |mColorRa|nge[0].G|
|00001000| 20 3d 20 30 3b 0d 0a 09 | 09 09 54 6f 73 73 54 72 | = 0;...|..TossTr|
|00001010| 61 69 6c 2e 6d 43 6f 6c | 6f 72 52 61 6e 67 65 5b |ail.mCol|orRange[|
|00001020| 31 5d 2e 42 20 3d 20 30 | 3b 0d 0a 09 09 09 54 6f |1].B = 0|;.....To|
|00001030| 73 73 54 72 61 69 6c 2e | 6d 43 6f 6c 6f 72 52 61 |ssTrail.|mColorRa|
|00001040| 6e 67 65 5b 30 5d 2e 42 | 20 3d 20 30 3b 0d 0a 09 |nge[0].B| = 0;...|
|00001050| 09 09 54 6f 73 73 54 72 | 61 69 6c 2e 6d 43 6f 6c |..TossTr|ail.mCol|
|00001060| 6f 72 52 61 6e 67 65 5b | 31 5d 2e 47 20 3d 20 30 |orRange[|1].G = 0|
|00001070| 3b 0d 0a 09 09 7d 0d 0a | 09 09 65 6c 73 65 0d 0a |;....}..|..else..|
|00001080| 09 09 7b 0d 0a 09 09 09 | 54 6f 73 73 54 72 61 69 |..{.....|TossTrai|
|00001090| 6c 2e 6d 43 6f 6c 6f 72 | 52 61 6e 67 65 5b 30 5d |l.mColor|Range[0]|
|000010a0| 2e 47 20 3d 20 30 3b 0d | 0a 09 09 09 54 6f 73 73 |.G = 0;.|....Toss|
|000010b0| 54 72 61 69 6c 2e 6d 43 | 6f 6c 6f 72 52 61 6e 67 |Trail.mC|olorRang|
|000010c0| 65 5b 31 5d 2e 52 20 3d | 20 30 3b 0d 0a 09 09 09 |e[1].R =| 0;.....|
|000010d0| 54 6f 73 73 54 72 61 69 | 6c 2e 6d 43 6f 6c 6f 72 |TossTrai|l.mColor|
|000010e0| 52 61 6e 67 65 5b 30 5d | 2e 52 20 3d 20 30 3b 0d |Range[0]|.R = 0;.|
|000010f0| 0a 09 09 09 54 6f 73 73 | 54 72 61 69 6c 2e 6d 43 |....Toss|Trail.mC|
|00001100| 6f 6c 6f 72 52 61 6e 67 | 65 5b 31 5d 2e 47 20 3d |olorRang|e[1].G =|
|00001110| 20 30 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 0d | 0;....}|...}..}.|
|00001120| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 62 6f 6f 6c |...funct|ion bool|
|00001130| 20 43 61 6e 42 65 50 69 | 63 6b 65 64 55 70 42 79 | CanBePi|ckedUpBy|
|00001140| 28 50 61 77 6e 20 50 29 | 0d 0a 7b 0d 0a 09 72 65 |(Pawn P)|..{...re|
|00001150| 74 75 72 6e 20 28 20 28 | 50 20 21 3d 20 49 6e 73 |turn ( (|P != Ins|
|00001160| 74 69 67 61 74 6f 72 29 | 20 7c 7c 20 28 4c 65 76 |tigator)| || (Lev|
|00001170| 65 6c 2e 54 69 6d 65 53 | 65 63 6f 6e 64 73 20 2d |el.TimeS|econds -|
|00001180| 20 54 68 72 6f 77 65 72 | 54 69 6d 65 20 3e 3d 20 | Thrower|Time >= |
|00001190| 54 68 72 6f 77 65 72 54 | 6f 75 63 68 44 65 6c 61 |ThrowerT|ouchDela|
|000011a0| 79 20 2d 20 56 53 69 7a | 65 28 4c 6f 63 61 74 69 |y - VSiz|e(Locati|
|000011b0| 6f 6e 20 2d 20 50 2e 4c | 6f 63 61 74 69 6f 6e 29 |on - P.L|ocation)|
|000011c0| 2f 34 34 30 29 20 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |/440) );|..}....f|
|000011d0| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 56 61 6c |unction |bool Val|
|000011e0| 69 64 48 6f 6c 64 65 72 | 28 41 63 74 6f 72 20 4f |idHolder|(Actor O|
|000011f0| 74 68 65 72 29 0d 0a 7b | 0d 0a 20 20 20 20 6c 6f |ther)..{|.. lo|
|00001200| 63 61 6c 20 50 61 77 6e | 20 50 3b 0d 0a 20 20 20 |cal Pawn| P;.. |
|00001210| 20 6c 6f 63 61 6c 20 56 | 65 63 74 6f 72 20 52 65 | local V|ector Re|
|00001220| 66 4e 6f 72 6d 61 6c 3b | 0d 0a 0d 0a 20 20 20 20 |fNormal;|.... |
|00001230| 69 66 20 28 20 28 4f 74 | 68 65 72 20 3d 3d 20 49 |if ( (Ot|her == I|
|00001240| 6e 73 74 69 67 61 74 6f | 72 29 20 26 26 20 28 4c |nstigato|r) && (L|
|00001250| 65 76 65 6c 2e 54 69 6d | 65 53 65 63 6f 6e 64 73 |evel.Tim|eSeconds|
|00001260| 20 2d 20 54 68 72 6f 77 | 65 72 54 69 6d 65 20 3c | - Throw|erTime <|
|00001270| 20 54 68 72 6f 77 65 72 | 54 6f 75 63 68 44 65 6c | Thrower|TouchDel|
|00001280| 61 79 29 20 29 0d 0a 20 | 20 20 20 20 20 20 20 72 |ay) ).. | r|
|00001290| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|000012a0| 20 20 20 20 50 20 3d 20 | 50 61 77 6e 28 4f 74 68 | P = |Pawn(Oth|
|000012b0| 65 72 29 3b 0d 0a 20 20 | 20 20 69 66 28 20 50 20 |er);.. | if( P |
|000012c0| 21 3d 20 4e 6f 6e 65 20 | 26 26 20 50 2e 57 65 61 |!= None |&& P.Wea|
|000012d0| 70 6f 6e 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 20 |pon != N|one ).. |
|000012e0| 20 20 20 7b 0d 0a 20 20 | 20 20 20 20 20 20 2f 2f | {.. | //|
|000012f0| 20 62 6f 75 6e 63 65 20 | 74 68 65 20 62 61 6c 6c | bounce |the ball|
|00001300| 20 6f 66 66 20 74 68 65 | 20 73 68 69 65 6c 64 0d | off the| shield.|
|00001310| 0a 20 20 20 20 20 20 20 | 20 69 66 28 20 50 2e 57 |. | if( P.W|
|00001320| 65 61 70 6f 6e 2e 43 68 | 65 63 6b 52 65 66 6c 65 |eapon.Ch|eckRefle|
|00001330| 63 74 28 20 4c 6f 63 61 | 74 69 6f 6e 2c 20 52 65 |ct( Loca|tion, Re|
|00001340| 66 4e 6f 72 6d 61 6c 2c | 20 30 20 29 20 29 0d 0a |fNormal,| 0 ) )..|
|00001350| 20 20 20 20 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | |{.. |
|00001360| 20 20 20 20 20 20 20 50 | 2e 57 65 61 70 6f 6e 2e | P|.Weapon.|
|00001370| 44 6f 52 65 66 6c 65 63 | 74 45 66 66 65 63 74 28 |DoReflec|tEffect(|
|00001380| 31 30 29 3b 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |10);.. | |
|00001390| 20 20 56 65 6c 6f 63 69 | 74 79 20 3d 20 28 45 6c | Veloci|ty = (El|
|000013a0| 61 73 74 69 63 69 74 79 | 20 2a 20 32 2e 35 29 20 |asticity| * 2.5) |
|000013b0| 2a 20 28 28 20 56 65 6c | 6f 63 69 74 79 20 64 6f |* (( Vel|ocity do|
|000013c0| 74 20 52 65 66 4e 6f 72 | 6d 61 6c 20 29 20 2a 20 |t RefNor|mal ) * |
|000013d0| 52 65 66 4e 6f 72 6d 61 | 6c 20 2a 20 28 2d 32 2e |RefNorma|l * (-2.|
|000013e0| 30 29 20 2b 20 56 65 6c | 6f 63 69 74 79 29 3b 0d |0) + Vel|ocity);.|
|000013f0| 0a 09 20 20 20 20 20 20 | 20 20 52 61 6e 64 53 70 |.. | RandSp|
|00001400| 69 6e 28 33 30 30 30 30 | 29 3b 0d 0a 20 20 20 20 |in(30000|);.. |
|00001410| 20 20 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 66 | |return f|
|00001420| 61 6c 73 65 3b 0d 0a 20 | 20 20 20 20 20 20 20 7d |alse;.. | }|
|00001430| 0d 0a 20 20 20 20 7d 0d | 0a 20 20 20 20 72 65 74 |.. }.|. ret|
|00001440| 75 72 6e 20 53 75 70 65 | 72 2e 56 61 6c 69 64 48 |urn Supe|r.ValidH|
|00001450| 6f 6c 64 65 72 28 4f 74 | 68 65 72 29 3b 0d 0a 7d |older(Ot|her);..}|
|00001460| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 52 61 6e |....func|tion Ran|
|00001470| 64 53 70 69 6e 28 66 6c | 6f 61 74 20 73 70 69 6e |dSpin(fl|oat spin|
|00001480| 52 61 74 65 29 0d 0a 7b | 0d 0a 09 44 65 73 69 72 |Rate)..{|...Desir|
|00001490| 65 64 52 6f 74 61 74 69 | 6f 6e 20 3d 20 52 6f 74 |edRotati|on = Rot|
|000014a0| 52 61 6e 64 28 29 3b 0d | 0a 09 52 6f 74 61 74 69 |Rand();.|..Rotati|
|000014b0| 6f 6e 52 61 74 65 2e 59 | 61 77 20 3d 20 73 70 69 |onRate.Y|aw = spi|
|000014c0| 6e 52 61 74 65 20 2a 20 | 32 20 2a 46 52 61 6e 64 |nRate * |2 *FRand|
|000014d0| 28 29 20 2d 20 73 70 69 | 6e 52 61 74 65 3b 0d 0a |() - spi|nRate;..|
|000014e0| 09 52 6f 74 61 74 69 6f | 6e 52 61 74 65 2e 50 69 |.Rotatio|nRate.Pi|
|000014f0| 74 63 68 20 3d 20 73 70 | 69 6e 52 61 74 65 20 2a |tch = sp|inRate *|
|00001500| 20 32 20 2a 46 52 61 6e | 64 28 29 20 2d 20 73 70 | 2 *FRan|d() - sp|
|00001510| 69 6e 52 61 74 65 3b 0d | 0a 09 52 6f 74 61 74 69 |inRate;.|..Rotati|
|00001520| 6f 6e 52 61 74 65 2e 52 | 6f 6c 6c 20 3d 20 73 70 |onRate.R|oll = sp|
|00001530| 69 6e 52 61 74 65 20 2a | 20 32 20 2a 46 52 61 6e |inRate *| 2 *FRan|
|00001540| 64 28 29 20 2d 20 73 70 | 69 6e 52 61 74 65 3b 0d |d() - sp|inRate;.|
|00001550| 0a 20 20 20 20 62 46 69 | 78 65 64 52 6f 74 61 74 |. bFi|xedRotat|
|00001560| 69 6f 6e 44 69 72 20 3d | 20 74 72 75 65 3b 0d 0a |ionDir =| true;..|
|00001570| 7d 0d 0a 0d 0a 2f 2f 20 | 45 76 65 6e 74 73 0d 0a |}....// |Events..|
|00001580| 66 75 6e 63 74 69 6f 6e | 20 48 69 74 57 61 6c 6c |function| HitWall|
|00001590| 28 20 76 65 63 74 6f 72 | 20 48 69 74 4e 6f 72 6d |( vector| HitNorm|
|000015a0| 61 6c 2c 20 61 63 74 6f | 72 20 57 61 6c 6c 20 29 |al, acto|r Wall )|
|000015b0| 0d 0a 7b 0d 0a 09 56 65 | 6c 6f 63 69 74 79 20 3d |..{...Ve|locity =|
|000015c0| 20 45 6c 61 73 74 69 63 | 69 74 79 2a 28 28 20 56 | Elastic|ity*(( V|
|000015d0| 65 6c 6f 63 69 74 79 20 | 64 6f 74 20 48 69 74 4e |elocity |dot HitN|
|000015e0| 6f 72 6d 61 6c 20 29 20 | 2a 20 48 69 74 4e 6f 72 |ormal ) |* HitNor|
|000015f0| 6d 61 6c 20 2a 20 28 2d | 32 2e 30 29 20 2b 20 56 |mal * (-|2.0) + V|
|00001600| 65 6c 6f 63 69 74 79 29 | 3b 0d 0a 09 52 61 6e 64 |elocity)|;...Rand|
|00001610| 53 70 69 6e 28 33 30 30 | 30 30 29 3b 0d 0a 0d 0a |Spin(300|00);....|
|00001620| 20 20 20 20 50 6c 61 79 | 53 6f 75 6e 64 28 49 6d | Play|Sound(Im|
|00001630| 70 61 63 74 53 6f 75 6e | 64 2c 20 53 4c 4f 54 5f |pactSoun|d, SLOT_|
|00001640| 4d 69 73 63 20 29 3b 0d | 0a 0d 0a 09 69 66 20 28 |Misc );.|....if (|
|00001650| 20 28 56 53 69 7a 65 28 | 56 65 6c 6f 63 69 74 79 | (VSize(|Velocity|
|00001660| 29 20 3c 20 32 30 29 20 | 26 26 20 28 48 69 74 4e |) < 20) |&& (HitN|
|00001670| 6f 72 6d 61 6c 2e 5a 20 | 3e 3d 20 30 2e 37 29 20 |ormal.Z |>= 0.7) |
|00001680| 26 26 20 57 61 6c 6c 2e | 62 57 6f 72 6c 64 47 65 |&& Wall.|bWorldGe|
|00001690| 6f 6d 65 74 72 79 20 29 | 0d 0a 20 20 20 20 20 20 |ometry )|.. |
|000016a0| 20 20 4c 61 6e 64 65 64 | 28 48 69 74 4e 6f 72 6d | Landed|(HitNorm|
|000016b0| 61 6c 29 3b 0d 0a 20 20 | 20 20 65 6c 73 65 20 69 |al);.. | else i|
|000016c0| 66 20 28 56 53 69 7a 65 | 28 56 65 6c 6f 63 69 74 |f (VSize|(Velocit|
|000016d0| 79 29 20 3c 20 33 30 30 | 20 29 0d 0a 20 20 20 20 |y) < 300| ).. |
|000016e0| 7b 0d 0a 09 09 69 66 20 | 28 20 54 6f 73 73 54 72 |{....if |( TossTr|
|000016f0| 61 69 6c 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ail != N|one )...|
|00001700| 09 09 54 6f 73 73 54 72 | 61 69 6c 2e 44 65 73 74 |..TossTr|ail.Dest|
|00001710| 72 6f 79 28 29 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |roy();..|.}..}...|
|00001720| 0a 66 75 6e 63 74 69 6f | 6e 20 4c 61 6e 64 65 64 |.functio|n Landed|
|00001730| 28 76 65 63 74 6f 72 20 | 68 69 74 4e 6f 72 6d 61 |(vector |hitNorma|
|00001740| 6c 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 20 54 6f 73 |l)..{...|if ( Tos|
|00001750| 73 54 72 61 69 6c 20 21 | 3d 20 4e 6f 6e 65 20 29 |sTrail !|= None )|
|00001760| 0d 0a 09 09 54 6f 73 73 | 54 72 61 69 6c 2e 44 65 |....Toss|Trail.De|
|00001770| 73 74 72 6f 79 28 29 3b | 0d 0a 20 20 20 20 56 65 |stroy();|.. Ve|
|00001780| 6c 6f 63 69 74 79 20 3d | 20 76 65 63 74 28 30 2c |locity =| vect(0,|
|00001790| 30 2c 30 29 3b 0d 0a 20 | 20 20 20 69 66 20 28 20 |0,0);.. | if ( |
|000017a0| 48 6f 6c 64 65 72 20 3d | 3d 20 4e 6f 6e 65 20 29 |Holder =|= None )|
|000017b0| 0d 0a 09 09 53 65 74 50 | 68 79 73 69 63 73 28 50 |....SetP|hysics(P|
|000017c0| 48 59 53 5f 52 6f 74 61 | 74 69 6e 67 29 3b 0d 0a |HYS_Rota|ting);..|
|000017d0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 54 61 |}....fun|ction Ta|
|000017e0| 6b 65 44 61 6d 61 67 65 | 28 20 69 6e 74 20 44 61 |keDamage|( int Da|
|000017f0| 6d 61 67 65 2c 20 50 61 | 77 6e 20 45 76 65 6e 74 |mage, Pa|wn Event|
|00001800| 49 6e 73 74 69 67 61 74 | 6f 72 2c 20 76 65 63 74 |Instigat|or, vect|
|00001810| 6f 72 20 48 69 74 4c 6f | 63 61 74 69 6f 6e 2c 20 |or HitLo|cation, |
|00001820| 76 65 63 74 6f 72 20 4d | 6f 6d 65 6e 74 75 6d 2c |vector M|omentum,|
|00001830| 20 63 6c 61 73 73 3c 44 | 61 6d 61 67 65 54 79 70 | class<D|amageTyp|
|00001840| 65 3e 20 44 61 6d 61 67 | 65 54 79 70 65 29 0d 0a |e> Damag|eType)..|
|00001850| 7b 0d 0a 20 20 20 20 69 | 66 20 28 4d 6f 6d 65 6e |{.. i|f (Momen|
|00001860| 74 75 6d 20 21 3d 20 56 | 65 63 74 28 30 2c 30 2c |tum != V|ect(0,0,|
|00001870| 30 29 20 26 26 20 21 62 | 48 6f 6d 65 20 26 26 20 |0) && !b|Home && |
|00001880| 28 48 6f 6c 64 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |(Holder |== None)|
|00001890| 20 29 0d 0a 20 20 20 20 | 7b 0d 0a 20 20 20 20 20 | ).. |{.. |
|000018a0| 20 20 20 53 65 74 50 68 | 79 73 69 63 73 28 50 48 | SetPh|ysics(PH|
|000018b0| 59 53 5f 46 61 6c 6c 69 | 6e 67 29 3b 0d 0a 20 20 |YS_Falli|ng);.. |
|000018c0| 20 20 20 20 20 20 56 65 | 6c 6f 63 69 74 79 20 2b | Ve|locity +|
|000018d0| 3d 20 4d 6f 6d 65 6e 74 | 75 6d 2f 4d 61 73 73 3b |= Moment|um/Mass;|
|000018e0| 0d 0a 20 20 20 20 7d 0d | 0a 7d 0d 0a 0d 0a 2f 2f |.. }.|.}....//|
|000018f0| 20 4c 6f 67 67 69 6e 67 | 0d 0a 66 75 6e 63 74 69 | Logging|..functi|
|00001900| 6f 6e 20 4c 6f 67 44 72 | 6f 70 70 65 64 28 29 0d |on LogDr|opped().|
|00001910| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 54 65 61 6d 49 |.{...loc|al TeamI|
|00001920| 6e 66 6f 20 54 3b 0d 0a | 0d 0a 09 69 66 20 28 20 |nfo T;..|...if ( |
|00001930| 48 6f 6c 64 65 72 20 3d | 3d 20 4e 6f 6e 65 20 29 |Holder =|= None )|
|00001940| 0d 0a 09 09 72 65 74 75 | 72 6e 3b 0d 0a 0d 0a 09 |....retu|rn;.....|
|00001950| 69 66 20 28 20 48 6f 6c | 64 65 72 2e 48 65 61 6c |if ( Hol|der.Heal|
|00001960| 74 68 20 3c 3d 20 30 20 | 29 0d 0a 09 7b 0d 0a 09 |th <= 0 |)...{...|
|00001970| 09 69 66 20 28 20 48 6f | 6c 64 65 72 2e 50 6c 61 |.if ( Ho|lder.Pla|
|00001980| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00001990| 66 6f 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |fo != No|ne )....|
|000019a0| 7b 0d 0a 09 09 09 69 66 | 20 28 20 62 4c 61 73 74 |{.....if| ( bLast|
|000019b0| 53 65 63 6f 6e 64 53 61 | 76 65 20 29 0d 0a 09 09 |SecondSa|ve )....|
|000019c0| 09 7b 0d 0a 09 09 09 09 | 69 66 20 28 20 48 6f 6c |.{......|if ( Hol|
|000019d0| 64 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |der.Play|erReplic|
|000019e0| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 2e 54 |ationInf|o.Team.T|
|000019f0| 65 61 6d 49 6e 64 65 78 | 20 3d 3d 20 30 20 29 0d |eamIndex| == 0 ).|
|00001a00| 0a 09 09 09 09 09 54 20 | 3d 20 54 65 61 6d 47 61 |......T |= TeamGa|
|00001a10| 6d 65 28 4c 65 76 65 6c | 2e 47 61 6d 65 29 2e 54 |me(Level|.Game).T|
|00001a20| 65 61 6d 73 5b 31 5d 3b | 0d 0a 09 09 09 09 65 6c |eams[1];|......el|
|00001a30| 73 65 0d 0a 09 09 09 09 | 09 54 20 3d 20 54 65 61 |se......|.T = Tea|
|00001a40| 6d 47 61 6d 65 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |mGame(Le|vel.Game|
|00001a50| 29 2e 54 65 61 6d 73 5b | 30 5d 3b 0d 0a 09 09 09 |).Teams[|0];.....|
|00001a60| 7d 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 09 |}.....el|se......|
|00001a70| 54 20 3d 20 54 65 61 6d | 47 61 6d 65 28 4c 65 76 |T = Team|Game(Lev|
|00001a80| 65 6c 2e 47 61 6d 65 29 | 2e 54 65 61 6d 73 5b 48 |el.Game)|.Teams[H|
|00001a90| 6f 6c 64 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |older.Pl|ayerRepl|
|00001aa0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 54 65 61 6d |icationI|nfo.Team|
|00001ab0| 2e 54 65 61 6d 49 6e 64 | 65 78 5d 3b 0d 0a 09 09 |.TeamInd|ex];....|
|00001ac0| 7d 0d 0a 09 09 69 66 20 | 28 20 62 4c 61 73 74 53 |}....if |( bLastS|
|00001ad0| 65 63 6f 6e 64 53 61 76 | 65 20 29 0d 0a 09 09 09 |econdSav|e ).....|
|00001ae0| 42 72 6f 61 64 63 61 73 | 74 4c 6f 63 61 6c 69 7a |Broadcas|tLocaliz|
|00001af0| 65 64 4d 65 73 73 61 67 | 65 28 20 63 6c 61 73 73 |edMessag|e( class|
|00001b00| 27 4c 61 73 74 53 65 63 | 6f 6e 64 4d 65 73 73 61 |'LastSec|ondMessa|
|00001b10| 67 65 27 2c 20 30 2c 20 | 48 6f 6c 64 65 72 2e 50 |ge', 0, |Holder.P|
|00001b20| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00001b30| 49 6e 66 6f 2c 20 4e 6f | 6e 65 2c 20 54 20 29 3b |Info, No|ne, T );|
|00001b40| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 09 42 72 6f |....else|.....Bro|
|00001b50| 61 64 63 61 73 74 4c 6f | 63 61 6c 69 7a 65 64 4d |adcastLo|calizedM|
|00001b60| 65 73 73 61 67 65 28 20 | 4d 65 73 73 61 67 65 43 |essage( |MessageC|
|00001b70| 6c 61 73 73 2c 20 32 2c | 20 48 6f 6c 64 65 72 2e |lass, 2,| Holder.|
|00001b80| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001b90| 6e 49 6e 66 6f 2c 20 4e | 6f 6e 65 2c 20 54 20 29 |nInfo, N|one, T )|
|00001ba0| 3b 0d 0a 09 7d 0d 0a 20 | 20 20 20 55 6e 72 65 61 |;...}.. | Unrea|
|00001bb0| 6c 4d 50 47 61 6d 65 49 | 6e 66 6f 28 4c 65 76 65 |lMPGameI|nfo(Leve|
|00001bc0| 6c 2e 47 61 6d 65 29 2e | 47 61 6d 65 45 76 65 6e |l.Game).|GameEven|
|00001bd0| 74 28 22 62 6f 6d 62 5f | 64 72 6f 70 70 65 64 22 |t("bomb_|dropped"|
|00001be0| 2c 22 32 35 35 22 2c 48 | 6f 6c 64 65 72 2e 50 6c |,"255",H|older.Pl|
|00001bf0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001c00| 6e 66 6f 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |nfo);..}|....func|
|00001c10| 74 69 6f 6e 20 4c 6f 67 | 52 65 74 75 72 6e 65 64 |tion Log|Returned|
|00001c20| 28 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 20 4c 65 76 |()..{...|if ( Lev|
|00001c30| 65 6c 2e 47 61 6d 65 2e | 52 65 73 65 74 43 6f 75 |el.Game.|ResetCou|
|00001c40| 6e 74 44 6f 77 6e 20 3d | 3d 20 30 20 29 0d 0a 09 |ntDown =|= 0 )...|
|00001c50| 09 42 72 6f 61 64 63 61 | 73 74 4c 6f 63 61 6c 69 |.Broadca|stLocali|
|00001c60| 7a 65 64 4d 65 73 73 61 | 67 65 28 20 4d 65 73 73 |zedMessa|ge( Mess|
|00001c70| 61 67 65 43 6c 61 73 73 | 2c 20 33 2c 20 4e 6f 6e |ageClass|, 3, Non|
|00001c80| 65 2c 20 4e 6f 6e 65 2c | 20 4e 6f 6e 65 20 29 3b |e, None,| None );|
|00001c90| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001ca0| 53 65 6e 64 48 6f 6d 65 | 44 69 73 61 62 6c 65 64 |SendHome|Disabled|
|00001cb0| 28 66 6c 6f 61 74 20 54 | 69 6d 65 4f 75 74 29 0d |(float T|imeOut).|
|00001cc0| 0a 7b 0d 0a 09 69 66 20 | 28 20 54 6f 73 73 54 72 |.{...if |( TossTr|
|00001cd0| 61 69 6c 20 21 3d 20 4e | 6f 6e 65 20 29 0d 0a 09 |ail != N|one )...|
|00001ce0| 09 54 6f 73 73 54 72 61 | 69 6c 2e 44 65 73 74 72 |.TossTra|il.Destr|
|00001cf0| 6f 79 28 29 3b 0d 0a 20 | 20 20 20 43 61 6c 63 53 |oy();.. | CalcS|
|00001d00| 65 74 48 6f 6d 65 28 29 | 3b 0d 0a 20 20 20 20 47 |etHome()|;.. G|
|00001d10| 6f 74 6f 53 74 61 74 65 | 28 27 48 6f 6d 65 44 69 |otoState|('HomeDi|
|00001d20| 73 61 62 6c 65 64 27 29 | 3b 0d 0a 7d 0d 0a 0d 0a |sabled')|;..}....|
|00001d30| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00001d40| 43 61 6e 42 65 54 68 72 | 6f 77 6e 42 79 28 50 61 |CanBeThr|ownBy(Pa|
|00001d50| 77 6e 20 50 29 0d 0a 7b | 0d 0a 2f 2f 09 61 73 73 |wn P)..{|..//.ass|
|00001d60| 65 72 74 28 62 42 61 6c | 6c 44 72 61 69 6e 73 54 |ert(bBal|lDrainsT|
|00001d70| 72 61 6e 73 6c 6f 63 20 | 3d 3d 20 78 42 6f 6d 62 |ransloc |== xBomb|
|00001d80| 69 6e 67 52 75 6e 28 4c | 65 76 65 6c 2e 47 61 6d |ingRun(L|evel.Gam|
|00001d90| 65 29 2e 62 42 61 6c 6c | 44 72 61 69 6e 73 54 72 |e).bBall|DrainsTr|
|00001da0| 61 6e 73 6c 6f 63 29 3b | 0d 0a 0d 0a 2f 2f 09 72 |ansloc);|....//.r|
|00001db0| 65 74 75 72 6e 20 21 78 | 42 6f 6d 62 69 6e 67 52 |eturn !x|BombingR|
|00001dc0| 75 6e 28 4c 65 76 65 6c | 2e 47 61 6d 65 29 2e 62 |un(Level|.Game).b|
|00001dd0| 42 61 6c 6c 44 72 61 69 | 6e 73 54 72 61 6e 73 6c |BallDrai|nsTransl|
|00001de0| 6f 63 20 7c 7c 20 28 50 | 2e 48 65 61 6c 74 68 20 |oc || (P|.Health |
|00001df0| 3c 20 34 35 29 3b 0d 0a | 09 72 65 74 75 72 6e 20 |< 45);..|.return |
|00001e00| 21 62 42 61 6c 6c 44 72 | 61 69 6e 73 54 72 61 6e |!bBallDr|ainsTran|
|00001e10| 73 6c 6f 63 20 7c 7c 20 | 50 2e 48 65 61 6c 74 68 |sloc || |P.Health|
|00001e20| 20 3c 20 34 35 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 20 | < 45;..|}....// |
|00001e30| 53 74 61 74 65 73 0d 0a | 61 75 74 6f 20 73 74 61 |States..|auto sta|
|00001e40| 74 65 20 48 6f 6d 65 0d | 0a 7b 0d 0a 20 20 20 20 |te Home.|.{.. |
|00001e50| 69 67 6e 6f 72 65 73 20 | 53 65 6e 64 48 6f 6d 65 |ignores |SendHome|
|00001e60| 2c 20 53 63 6f 72 65 2c | 20 44 72 6f 70 3b 0d 0a |, Score,| Drop;..|
|00001e70| 0d 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 4c |.. fu|nction L|
|00001e80| 6f 67 54 61 6b 65 6e 28 | 43 6f 6e 74 72 6f 6c 6c |ogTaken(|Controll|
|00001e90| 65 72 20 63 29 0d 0a 20 | 20 20 20 7b 0d 0a 09 09 |er c).. | {....|
|00001ea0| 4f 6c 64 54 65 61 6d 20 | 3d 20 43 2e 50 6c 61 79 |OldTeam |= C.Play|
|00001eb0| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001ec0| 6f 2e 54 65 61 6d 3b 0d | 0a 20 20 20 20 20 20 20 |o.Team;.|. |
|00001ed0| 20 42 72 6f 61 64 63 61 | 73 74 4c 6f 63 61 6c 69 | Broadca|stLocali|
|00001ee0| 7a 65 64 4d 65 73 73 61 | 67 65 28 20 4d 65 73 73 |zedMessa|ge( Mess|
|00001ef0| 61 67 65 43 6c 61 73 73 | 2c 20 36 2c 20 43 2e 50 |ageClass|, 6, C.P|
|00001f00| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00001f10| 49 6e 66 6f 2c 20 4e 6f | 6e 65 2c 20 43 2e 50 6c |Info, No|ne, C.Pl|
|00001f20| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00001f30| 6e 66 6f 2e 54 65 61 6d | 20 29 3b 0d 0a 20 20 20 |nfo.Team| );.. |
|00001f40| 20 20 20 20 20 55 6e 72 | 65 61 6c 4d 50 47 61 6d | Unr|ealMPGam|
|00001f50| 65 49 6e 66 6f 28 4c 65 | 76 65 6c 2e 47 61 6d 65 |eInfo(Le|vel.Game|
|00001f60| 29 2e 47 61 6d 65 45 76 | 65 6e 74 28 22 62 6f 6d |).GameEv|ent("bom|
|00001f70| 62 5f 74 61 6b 65 6e 22 | 2c 22 32 35 35 22 2c 43 |b_taken"|,"255",C|
|00001f80| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001f90| 6f 6e 49 6e 66 6f 29 3b | 0d 0a 20 20 20 20 7d 0d |onInfo);|.. }.|
|00001fa0| 0a 0d 0a 20 20 20 20 66 | 75 6e 63 74 69 6f 6e 20 |... f|unction |
|00001fb0| 42 65 67 69 6e 53 74 61 | 74 65 28 29 0d 0a 20 20 |BeginSta|te().. |
|00001fc0| 20 20 7b 0d 0a 09 09 69 | 66 20 28 20 54 6f 73 73 | {....i|f ( Toss|
|00001fd0| 54 72 61 69 6c 20 21 3d | 20 4e 6f 6e 65 20 29 0d |Trail !=| None ).|
|00001fe0| 0a 09 09 09 54 6f 73 73 | 54 72 61 69 6c 2e 44 65 |....Toss|Trail.De|
|00001ff0| 73 74 72 6f 79 28 29 3b | 0d 0a 20 20 20 20 20 20 |stroy();|.. |
|00002000| 20 20 53 6b 69 6e 73 5b | 32 5d 20 3d 20 44 65 66 | Skins[|2] = Def|
|00002010| 61 75 6c 74 2e 53 6b 69 | 6e 73 5b 32 5d 3b 0d 0a |ault.Ski|ns[2];..|
|00002020| 20 20 20 20 20 20 20 20 | 53 65 63 6f 6e 64 52 65 | |SecondRe|
|00002030| 70 53 6b 69 6e 20 3d 20 | 53 6b 69 6e 73 5b 32 5d |pSkin = |Skins[2]|
|00002040| 3b 0d 0a 09 09 53 75 70 | 65 72 2e 42 65 67 69 6e |;....Sup|er.Begin|
|00002050| 53 74 61 74 65 28 29 3b | 0d 0a 09 09 53 65 74 50 |State();|....SetP|
|00002060| 68 79 73 69 63 73 28 50 | 48 59 53 5f 52 6f 74 61 |hysics(P|HYS_Rota|
|00002070| 74 69 6e 67 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |ting);..| |
|00002080| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 47 61 6d 65 52 |Level.Ga|me.GameR|
|00002090| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 46 |eplicati|onInfo.F|
|000020a0| 6c 61 67 53 74 61 74 65 | 5b 30 5d 20 3d 20 45 46 |lagState|[0] = EF|
|000020b0| 6c 61 67 53 74 61 74 65 | 2e 46 4c 41 47 5f 48 6f |lagState|.FLAG_Ho|
|000020c0| 6d 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 4c 65 76 |me;.. | Lev|
|000020d0| 65 6c 2e 47 61 6d 65 2e | 47 61 6d 65 52 65 70 6c |el.Game.|GameRepl|
|000020e0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 46 6c 61 67 |icationI|nfo.Flag|
|000020f0| 53 74 61 74 65 5b 31 5d | 20 3d 20 45 46 6c 61 67 |State[1]| = EFlag|
|00002100| 53 74 61 74 65 2e 46 4c | 41 47 5f 48 6f 6d 65 3b |State.FL|AG_Home;|
|00002110| 0d 0a 09 7d 0d 0a 7d 0d | 0a 0d 0a 0d 0a 73 74 61 |...}..}.|.....sta|
|00002120| 74 65 20 48 6f 6d 65 44 | 69 73 61 62 6c 65 64 0d |te HomeD|isabled.|
|00002130| 0a 7b 0d 0a 20 20 20 20 | 69 67 6e 6f 72 65 73 20 |.{.. |ignores |
|00002140| 53 63 6f 72 65 2c 20 44 | 72 6f 70 3b 0d 0a 0d 0a |Score, D|rop;....|
|00002150| 20 20 20 20 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f | func|tion boo|
|00002160| 6c 20 49 73 48 6f 6d 65 | 28 29 0d 0a 20 20 20 20 |l IsHome|().. |
|00002170| 7b 0d 0a 20 20 20 20 20 | 20 20 20 72 65 74 75 72 |{.. | retur|
|00002180| 6e 20 74 72 75 65 3b 0d | 0a 20 20 20 20 7d 0d 0a |n true;.|. }..|
|00002190| 0d 0a 20 20 20 20 66 75 | 6e 63 74 69 6f 6e 20 42 |.. fu|nction B|
|000021a0| 65 67 69 6e 53 74 61 74 | 65 28 29 0d 0a 20 20 20 |eginStat|e().. |
|000021b0| 20 7b 0d 0a 20 09 09 69 | 66 20 28 20 54 6f 73 73 | {.. ..i|f ( Toss|
|000021c0| 54 72 61 69 6c 20 21 3d | 20 4e 6f 6e 65 20 29 0d |Trail !=| None ).|
|000021d0| 0a 09 09 09 54 6f 73 73 | 54 72 61 69 6c 2e 44 65 |....Toss|Trail.De|
|000021e0| 73 74 72 6f 79 28 29 3b | 0d 0a 09 09 53 6b 69 6e |stroy();|....Skin|
|000021f0| 73 5b 32 5d 20 3d 20 44 | 65 66 61 75 6c 74 2e 53 |s[2] = D|efault.S|
|00002200| 6b 69 6e 73 5b 32 5d 3b | 0d 0a 20 20 20 20 20 20 |kins[2];|.. |
|00002210| 20 20 53 65 63 6f 6e 64 | 52 65 70 53 6b 69 6e 20 | Second|RepSkin |
|00002220| 3d 20 53 6b 69 6e 73 5b | 32 5d 3b 0d 0a 20 20 20 |= Skins[|2];.. |
|00002230| 20 20 20 20 20 53 65 74 | 44 69 73 61 62 6c 65 28 | Set|Disable(|
|00002240| 74 72 75 65 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |true);..| |
|00002250| 4c 65 76 65 6c 2e 47 61 | 6d 65 2e 47 61 6d 65 52 |Level.Ga|me.GameR|
|00002260| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 46 |eplicati|onInfo.F|
|00002270| 6c 61 67 53 74 61 74 65 | 5b 30 5d 20 3d 20 45 46 |lagState|[0] = EF|
|00002280| 6c 61 67 53 74 61 74 65 | 2e 46 4c 41 47 5f 48 6f |lagState|.FLAG_Ho|
|00002290| 6d 65 3b 0d 0a 20 20 20 | 20 20 20 20 20 4c 65 76 |me;.. | Lev|
|000022a0| 65 6c 2e 47 61 6d 65 2e | 47 61 6d 65 52 65 70 6c |el.Game.|GameRepl|
|000022b0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 46 6c 61 67 |icationI|nfo.Flag|
|000022c0| 53 74 61 74 65 5b 31 5d | 20 3d 20 45 46 6c 61 67 |State[1]| = EFlag|
|000022d0| 53 74 61 74 65 2e 46 4c | 41 47 5f 48 6f 6d 65 3b |State.FL|AG_Home;|
|000022e0| 0d 0a 20 20 20 20 20 20 | 20 20 62 48 6f 6d 65 20 |.. | bHome |
|000022f0| 3d 20 74 72 75 65 3b 0d | 0a 20 20 20 20 20 20 20 |= true;.|. |
|00002300| 20 53 65 74 4c 6f 63 61 | 74 69 6f 6e 28 48 6f 6d | SetLoca|tion(Hom|
|00002310| 65 42 61 73 65 2e 4c 6f | 63 61 74 69 6f 6e 29 3b |eBase.Lo|cation);|
|00002320| 0d 0a 20 20 20 20 20 20 | 20 20 53 65 74 52 6f 74 |.. | SetRot|
|00002330| 61 74 69 6f 6e 28 48 6f | 6d 65 42 61 73 65 2e 52 |ation(Ho|meBase.R|
|00002340| 6f 74 61 74 69 6f 6e 29 | 3b 0d 0a 20 20 20 20 20 |otation)|;.. |
|00002350| 20 20 20 53 65 74 43 6f | 6c 6c 69 73 69 6f 6e 28 | SetCo|llision(|
|00002360| 66 61 6c 73 65 2c 20 66 | 61 6c 73 65 2c 20 66 61 |false, f|alse, fa|
|00002370| 6c 73 65 29 3b 0d 0a 20 | 20 20 20 20 20 20 20 62 |lse);.. | b|
|00002380| 48 69 64 64 65 6e 20 3d | 20 74 72 75 65 3b 0d 0a |Hidden =| true;..|
|00002390| 20 20 20 20 7d 0d 0a 0d | 0a 20 20 20 20 66 75 6e | }...|. fun|
|000023a0| 63 74 69 6f 6e 20 45 6e | 64 53 74 61 74 65 28 29 |ction En|dState()|
|000023b0| 0d 0a 20 20 20 20 7b 0d | 0a 20 20 20 20 20 20 20 |.. {.|. |
|000023c0| 20 53 65 74 44 69 73 61 | 62 6c 65 28 66 61 6c 73 | SetDisa|ble(fals|
|000023d0| 65 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 62 48 6f |e);.. | bHo|
|000023e0| 6d 65 20 3d 20 66 61 6c | 73 65 3b 0d 0a 20 20 20 |me = fal|se;.. |
|000023f0| 20 20 20 20 20 53 65 74 | 43 6f 6c 6c 69 73 69 6f | Set|Collisio|
|00002400| 6e 28 74 72 75 65 2c 20 | 66 61 6c 73 65 2c 20 66 |n(true, |false, f|
|00002410| 61 6c 73 65 29 3b 0d 0a | 20 20 20 20 20 20 20 20 |alse);..| |
|00002420| 62 48 69 64 64 65 6e 20 | 3d 20 66 61 6c 73 65 3b |bHidden |= false;|
|00002430| 0d 0a 20 20 20 20 7d 0d | 0a 7d 0d 0a 0d 0a 73 74 |.. }.|.}....st|
|00002440| 61 74 65 20 48 65 6c 64 | 0d 0a 7b 0d 0a 20 20 20 |ate Held|..{.. |
|00002450| 20 69 67 6e 6f 72 65 73 | 20 53 65 74 48 6f 6c 64 | ignores| SetHold|
|00002460| 65 72 2c 20 53 65 6e 64 | 48 6f 6d 65 3b 0d 0a 0d |er, Send|Home;...|
|00002470| 0a 09 66 75 6e 63 74 69 | 6f 6e 20 42 65 67 69 6e |..functi|on Begin|
|00002480| 53 74 61 74 65 28 29 0d | 0a 20 20 20 20 7b 0d 0a |State().|. {..|
|00002490| 09 09 69 66 20 28 20 54 | 6f 73 73 54 72 61 69 6c |..if ( T|ossTrail|
|000024a0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 54 | != None| ).....T|
|000024b0| 6f 73 73 54 72 61 69 6c | 2e 44 65 73 74 72 6f 79 |ossTrail|.Destroy|
|000024c0| 28 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 4c 65 76 |();.. | Lev|
|000024d0| 65 6c 2e 47 61 6d 65 2e | 47 61 6d 65 52 65 70 6c |el.Game.|GameRepl|
|000024e0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 46 6c 61 67 |icationI|nfo.Flag|
|000024f0| 53 74 61 74 65 5b 48 6f | 6c 64 65 72 2e 50 6c 61 |State[Ho|lder.Pla|
|00002500| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00002510| 66 6f 2e 54 65 61 6d 2e | 54 65 61 6d 49 6e 64 65 |fo.Team.|TeamInde|
|00002520| 78 5d 20 3d 20 45 46 6c | 61 67 53 74 61 74 65 2e |x] = EFl|agState.|
|00002530| 46 4c 41 47 5f 48 65 6c | 64 46 72 69 65 6e 64 6c |FLAG_Hel|dFriendl|
|00002540| 79 3b 0d 0a 20 20 20 20 | 20 20 20 20 69 66 20 28 |y;.. | if (|
|00002550| 20 48 6f 6c 64 65 72 2e | 50 6c 61 79 65 72 52 65 | Holder.|PlayerRe|
|00002560| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|00002570| 61 6d 2e 54 65 61 6d 49 | 6e 64 65 78 20 3d 3d 20 |am.TeamI|ndex == |
|00002580| 30 20 29 0d 0a 09 20 20 | 20 20 20 20 20 20 4c 65 |0 )... | Le|
|00002590| 76 65 6c 2e 47 61 6d 65 | 2e 47 61 6d 65 52 65 70 |vel.Game|.GameRep|
|000025a0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 46 6c 61 |lication|Info.Fla|
|000025b0| 67 53 74 61 74 65 5b 31 | 5d 20 3d 20 45 46 6c 61 |gState[1|] = EFla|
|000025c0| 67 53 74 61 74 65 2e 46 | 4c 41 47 5f 48 65 6c 64 |gState.F|LAG_Held|
|000025d0| 45 6e 65 6d 79 3b 0d 0a | 20 20 20 20 20 20 20 20 |Enemy;..| |
|000025e0| 65 6c 73 65 0d 0a 09 20 | 20 20 20 20 20 20 20 4c |else... | L|
|000025f0| 65 76 65 6c 2e 47 61 6d | 65 2e 47 61 6d 65 52 65 |evel.Gam|e.GameRe|
|00002600| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 46 6c |plicatio|nInfo.Fl|
|00002610| 61 67 53 74 61 74 65 5b | 30 5d 20 3d 20 45 46 6c |agState[|0] = EFl|
|00002620| 61 67 53 74 61 74 65 2e | 46 4c 41 47 5f 48 65 6c |agState.|FLAG_Hel|
|00002630| 64 45 6e 65 6d 79 3b 0d | 0a 20 20 20 20 20 20 20 |dEnemy;.|. |
|00002640| 20 53 75 70 65 72 2e 42 | 65 67 69 6e 53 74 61 74 | Super.B|eginStat|
|00002650| 65 28 29 3b 0d 0a 09 09 | 62 44 79 6e 61 6d 69 63 |e();....|bDynamic|
|00002660| 4c 69 67 68 74 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Light = |false;..|
|00002670| 09 09 4c 69 67 68 74 54 | 79 70 65 20 3d 20 4c 54 |..LightT|ype = LT|
|00002680| 5f 4e 6f 6e 65 3b 0d 0a | 20 20 20 20 20 20 20 20 |_None;..| |
|00002690| 53 6b 69 6e 73 5b 30 5d | 20 3d 20 54 65 61 6d 53 |Skins[0]| = TeamS|
|000026a0| 68 61 64 65 72 5b 48 6f | 6c 64 65 72 2e 50 6c 61 |hader[Ho|lder.Pla|
|000026b0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000026c0| 66 6f 2e 54 65 61 6d 2e | 54 65 61 6d 49 6e 64 65 |fo.Team.|TeamInde|
|000026d0| 78 5d 3b 0d 0a 20 20 20 | 20 20 20 20 20 52 65 70 |x];.. | Rep|
|000026e0| 53 6b 69 6e 20 3d 20 53 | 6b 69 6e 73 5b 30 5d 3b |Skin = S|kins[0];|
|000026f0| 0d 0a 09 09 53 6b 69 6e | 73 5b 32 5d 20 3d 20 52 |....Skin|s[2] = R|
|00002700| 65 70 53 6b 69 6e 3b 0d | 0a 09 09 53 65 63 6f 6e |epSkin;.|...Secon|
|00002710| 64 52 65 70 53 6b 69 6e | 20 3d 20 53 6b 69 6e 73 |dRepSkin| = Skins|
|00002720| 5b 32 5d 3b 0d 0a 20 20 | 20 20 20 20 20 20 53 65 |[2];.. | Se|
|00002730| 74 53 74 61 74 69 63 4d | 65 73 68 28 53 74 61 74 |tStaticM|esh(Stat|
|00002740| 69 63 4d 65 73 68 27 58 | 47 61 6d 65 5f 52 43 2e |icMesh'X|Game_RC.|
|00002750| 42 6f 6d 62 45 66 66 65 | 63 74 4d 65 73 68 27 29 |BombEffe|ctMesh')|
|00002760| 3b 0d 0a 20 20 20 20 20 | 20 20 20 53 65 74 44 72 |;.. | SetDr|
|00002770| 61 77 53 63 61 6c 65 28 | 31 2e 30 29 3b 0d 0a 20 |awScale(|1.0);.. |
|00002780| 20 20 20 7d 0d 0a 0d 0a | 20 20 20 20 66 75 6e 63 | }....| func|
|00002790| 74 69 6f 6e 20 45 6e 64 | 53 74 61 74 65 28 29 0d |tion End|State().|
|000027a0| 0a 20 20 20 20 7b 0d 0a | 20 20 20 20 20 20 20 20 |. {..| |
|000027b0| 53 75 70 65 72 2e 45 6e | 64 53 74 61 74 65 28 29 |Super.En|dState()|
|000027c0| 3b 0d 0a 09 09 62 44 79 | 6e 61 6d 69 63 4c 69 67 |;....bDy|namicLig|
|000027d0| 68 74 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 4c 69 |ht = tru|e;....Li|
|000027e0| 67 68 74 54 79 70 65 20 | 3d 20 4c 54 5f 53 74 65 |ghtType |= LT_Ste|
|000027f0| 61 64 79 3b 0d 0a 20 20 | 20 20 20 20 20 20 53 6b |ady;.. | Sk|
|00002800| 69 6e 73 5b 30 5d 20 3d | 20 44 65 66 61 75 6c 74 |ins[0] =| Default|
|00002810| 2e 53 6b 69 6e 73 5b 30 | 5d 3b 0d 0a 20 20 20 20 |.Skins[0|];.. |
|00002820| 20 20 20 20 52 65 70 53 | 6b 69 6e 20 3d 20 53 6b | RepS|kin = Sk|
|00002830| 69 6e 73 5b 30 5d 3b 0d | 0a 20 20 20 20 20 20 20 |ins[0];.|. |
|00002840| 20 53 65 74 53 74 61 74 | 69 63 4d 65 73 68 28 44 | SetStat|icMesh(D|
|00002850| 65 66 61 75 6c 74 2e 53 | 74 61 74 69 63 4d 65 73 |efault.S|taticMes|
|00002860| 68 29 3b 0d 0a 20 20 20 | 20 20 20 20 20 53 65 74 |h);.. | Set|
|00002870| 44 72 61 77 53 63 61 6c | 65 28 44 65 66 61 75 6c |DrawScal|e(Defaul|
|00002880| 74 2e 44 72 61 77 53 63 | 61 6c 65 29 3b 0d 0a 20 |t.DrawSc|ale);.. |
|00002890| 20 20 20 7d 0d 0a 7d 0d | 0a 0d 0a 73 74 61 74 65 | }..}.|...state|
|000028a0| 20 44 72 6f 70 70 65 64 | 0d 0a 7b 0d 0a 20 20 20 | Dropped|..{.. |
|000028b0| 20 69 67 6e 6f 72 65 73 | 20 44 72 6f 70 3b 0d 0a | ignores| Drop;..|
|000028c0| 0d 0a 09 66 75 6e 63 74 | 69 6f 6e 20 48 69 74 57 |...funct|ion HitW|
|000028d0| 61 6c 6c 28 20 76 65 63 | 74 6f 72 20 48 69 74 4e |all( vec|tor HitN|
|000028e0| 6f 72 6d 61 6c 2c 20 61 | 63 74 6f 72 20 57 61 6c |ormal, a|ctor Wal|
|000028f0| 6c 20 29 0d 0a 09 7b 0d | 0a 09 09 69 66 20 28 20 |l )...{.|...if ( |
|00002900| 28 50 61 73 73 54 61 72 | 67 65 74 20 21 3d 20 4e |(PassTar|get != N|
|00002910| 6f 6e 65 29 20 0d 0a 09 | 09 09 26 26 20 28 28 28 |one) ...|..&& (((|
|00002920| 41 63 63 65 6c 65 72 61 | 74 69 6f 6e 20 44 6f 74 |Accelera|tion Dot|
|00002930| 20 48 69 74 4e 6f 72 6d | 61 6c 29 20 3c 20 30 29 | HitNorm|al) < 0)|
|00002940| 20 7c 7c 20 28 28 56 65 | 6c 6f 63 69 74 79 20 44 | || ((Ve|locity D|
|00002950| 6f 74 20 28 50 61 73 73 | 54 61 72 67 65 74 2e 4c |ot (Pass|Target.L|
|00002960| 6f 63 61 74 69 6f 6e 20 | 2d 20 4c 6f 63 61 74 69 |ocation |- Locati|
|00002970| 6f 6e 29 29 20 3c 20 30 | 29 29 20 29 0d 0a 09 09 |on)) < 0|)) )....|
|00002980| 7b 0d 0a 09 09 09 44 69 | 73 61 62 6c 65 28 27 54 |{.....Di|sable('T|
|00002990| 69 63 6b 27 29 3b 0d 0a | 09 09 09 69 66 20 28 20 |ick');..|...if ( |
|000029a0| 50 68 79 73 69 63 73 20 | 3d 3d 20 50 48 59 53 5f |Physics |== PHYS_|
|000029b0| 50 72 6f 6a 65 63 74 69 | 6c 65 20 29 0d 0a 09 09 |Projecti|le )....|
|000029c0| 09 09 53 65 74 50 68 79 | 73 69 63 73 28 50 48 59 |..SetPhy|sics(PHY|
|000029d0| 53 5f 46 61 6c 6c 69 6e | 67 29 3b 0d 0a 09 09 7d |S_Fallin|g);....}|
|000029e0| 0d 0a 09 09 47 6c 6f 62 | 61 6c 2e 48 69 74 57 61 |....Glob|al.HitWa|
|000029f0| 6c 6c 28 48 69 74 4e 6f | 72 6d 61 6c 2c 20 57 61 |ll(HitNo|rmal, Wa|
|00002a00| 6c 6c 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 2f 2f 20 |ll);...}|.....// |
|00002a10| 70 61 73 73 20 73 65 65 | 6b 69 6e 67 0d 0a 09 66 |pass see|king...f|
|00002a20| 75 6e 63 74 69 6f 6e 20 | 54 69 63 6b 28 66 6c 6f |unction |Tick(flo|
|00002a30| 61 74 20 64 65 6c 74 61 | 29 0d 0a 09 7b 0d 0a 09 |at delta|)...{...|
|00002a40| 09 6c 6f 63 61 6c 20 76 | 65 63 74 6f 72 20 44 69 |.local v|ector Di|
|00002a50| 72 3b 0d 0a 09 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |r;....lo|cal floa|
|00002a60| 74 20 5a 3b 0d 0a 0d 0a | 09 09 53 65 65 6b 41 63 |t Z;....|..SeekAc|
|00002a70| 63 75 6d 20 2b 3d 20 64 | 65 6c 74 61 3b 0d 0a 0d |cum += d|elta;...|
|00002a80| 0a 09 09 69 66 28 20 53 | 65 65 6b 41 63 63 75 6d |...if( S|eekAccum|
|00002a90| 20 3e 3d 20 53 65 65 6b | 49 6e 74 65 72 76 61 6c | >= Seek|Interval|
|00002aa0| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 53 65 65 6b | )....{.|....Seek|
|00002ab0| 41 63 63 75 6d 20 2d 3d | 20 53 65 65 6b 49 6e 74 |Accum -=| SeekInt|
|00002ac0| 65 72 76 61 6c 3b 0d 0a | 0d 0a 09 09 09 69 66 20 |erval;..|.....if |
|00002ad0| 28 20 28 50 61 73 73 54 | 61 72 67 65 74 20 21 3d |( (PassT|arget !=|
|00002ae0| 20 4e 6f 6e 65 29 20 26 | 26 20 28 50 61 73 73 54 | None) &|& (PassT|
|00002af0| 61 72 67 65 74 20 21 3d | 20 49 6e 73 74 69 67 61 |arget !=| Instiga|
|00002b00| 74 6f 72 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |tor) )..|...{....|
|00002b10| 09 09 44 69 72 20 3d 20 | 4e 6f 72 6d 61 6c 28 28 |..Dir = |Normal((|
|00002b20| 50 61 73 73 54 61 72 67 | 65 74 2e 4c 6f 63 61 74 |PassTarg|et.Locat|
|00002b30| 69 6f 6e 20 2b 20 28 76 | 65 63 74 28 30 2c 30 2c |ion + (v|ect(0,0,|
|00002b40| 31 29 2a 50 61 73 73 54 | 61 72 67 65 74 2e 43 6f |1)*PassT|arget.Co|
|00002b50| 6c 6c 69 73 69 6f 6e 48 | 65 69 67 68 74 2a 30 2e |llisionH|eight*0.|
|00002b60| 35 29 29 20 2d 20 4c 6f | 63 61 74 69 6f 6e 29 3b |5)) - Lo|cation);|
|00002b70| 0d 0a 09 09 09 09 41 63 | 63 65 6c 65 72 61 74 69 |......Ac|celerati|
|00002b80| 6f 6e 20 3d 20 31 2e 32 | 35 20 2a 20 54 68 72 6f |on = 1.2|5 * Thro|
|00002b90| 77 53 70 65 65 64 20 2a | 20 44 69 72 3b 0d 0a 09 |wSpeed *| Dir;...|
|00002ba0| 09 09 09 69 66 20 28 20 | 56 53 69 7a 65 28 4c 6f |...if ( |VSize(Lo|
|00002bb0| 63 61 74 69 6f 6e 20 2d | 20 50 61 73 73 54 61 72 |cation -| PassTar|
|00002bc0| 67 65 74 2e 4c 6f 63 61 | 74 69 6f 6e 29 20 3c 20 |get.Loca|tion) < |
|00002bd0| 32 35 30 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |250 )...|...{....|
|00002be0| 09 09 09 56 65 6c 6f 63 | 69 74 79 20 3d 20 56 65 |...Veloc|ity = Ve|
|00002bf0| 6c 6f 63 69 74 79 20 2b | 20 31 30 20 2a 20 41 63 |locity +| 10 * Ac|
|00002c00| 63 65 6c 65 72 61 74 69 | 6f 6e 20 2a 20 64 65 6c |celerati|on * del|
|00002c10| 74 61 3b 0d 0a 09 09 09 | 09 09 69 66 20 28 20 28 |ta;.....|..if ( (|
|00002c20| 44 69 72 20 44 6f 74 20 | 4e 6f 72 6d 61 6c 28 56 |Dir Dot |Normal(V|
|00002c30| 65 6c 6f 63 69 74 79 29 | 29 20 3c 20 30 2e 39 20 |elocity)|) < 0.9 |
|00002c40| 29 0d 0a 09 09 09 09 09 | 09 41 63 63 65 6c 65 72 |).......|.Acceler|
|00002c50| 61 74 69 6f 6e 20 2a 3d | 20 30 2e 34 3b 0d 0a 09 |ation *=| 0.4;...|
|00002c60| 09 09 09 7d 0d 0a 09 09 | 09 09 53 65 74 52 6f 74 |...}....|..SetRot|
|00002c70| 61 74 69 6f 6e 28 72 6f | 74 61 74 6f 72 28 41 63 |ation(ro|tator(Ac|
|00002c80| 63 65 6c 65 72 61 74 69 | 6f 6e 29 29 3b 0d 0a 09 |celerati|on));...|
|00002c90| 09 09 09 69 66 20 28 20 | 4c 65 76 65 6c 2e 54 69 |...if ( |Level.Ti|
|00002ca0| 6d 65 53 65 63 6f 6e 64 | 73 20 2d 20 54 68 72 6f |meSecond|s - Thro|
|00002cb0| 77 65 72 54 69 6d 65 20 | 3e 20 34 20 29 0d 0a 09 |werTime |> 4 )...|
|00002cc0| 09 09 09 7b 0d 0a 09 09 | 09 09 09 44 69 73 61 62 |...{....|...Disab|
|00002cd0| 6c 65 28 27 54 69 63 6b | 27 29 3b 0d 0a 09 09 09 |le('Tick|');.....|
|00002ce0| 09 09 69 66 20 28 20 50 | 68 79 73 69 63 73 20 3d |..if ( P|hysics =|
|00002cf0| 3d 20 50 48 59 53 5f 50 | 72 6f 6a 65 63 74 69 6c |= PHYS_P|rojectil|
|00002d00| 65 20 29 0d 0a 09 09 09 | 09 09 09 53 65 74 50 68 |e ).....|...SetPh|
|00002d10| 79 73 69 63 73 28 50 48 | 59 53 5f 46 61 6c 6c 69 |ysics(PH|YS_Falli|
|00002d20| 6e 67 29 3b 0d 0a 09 09 | 09 09 7d 0d 0a 09 09 09 |ng);....|..}.....|
|00002d30| 7d 0d 0a 09 09 09 65 6c | 73 65 0d 0a 09 09 09 7b |}.....el|se.....{|
|00002d40| 0d 0a 09 09 09 09 44 69 | 73 61 62 6c 65 28 27 54 |......Di|sable('T|
|00002d50| 69 63 6b 27 29 3b 0d 0a | 09 09 09 09 69 66 20 28 |ick');..|....if (|
|00002d60| 20 50 68 79 73 69 63 73 | 20 3d 3d 20 50 48 59 53 | Physics| == PHYS|
|00002d70| 5f 50 72 6f 6a 65 63 74 | 69 6c 65 20 29 0d 0a 09 |_Project|ile )...|
|00002d80| 09 09 09 09 53 65 74 50 | 68 79 73 69 63 73 28 50 |....SetP|hysics(P|
|00002d90| 48 59 53 5f 46 61 6c 6c | 69 6e 67 29 3b 0d 0a 09 |HYS_Fall|ing);...|
|00002da0| 09 09 7d 0d 0a 09 09 7d | 0d 0a 09 09 69 66 20 28 |..}....}|....if (|
|00002db0| 20 50 68 79 73 69 63 73 | 20 3d 3d 20 50 48 59 53 | Physics| == PHYS|
|00002dc0| 5f 50 72 6f 6a 65 63 74 | 69 6c 65 20 29 0d 0a 09 |_Project|ile )...|
|00002dd0| 09 09 56 65 6c 6f 63 69 | 74 79 20 3d 20 56 65 6c |..Veloci|ty = Vel|
|00002de0| 6f 63 69 74 79 20 2b 20 | 31 30 20 2a 20 41 63 63 |ocity + |10 * Acc|
|00002df0| 65 6c 65 72 61 74 69 6f | 6e 20 2a 20 64 65 6c 74 |eleratio|n * delt|
|00002e00| 61 3b 0d 0a 09 09 65 6c | 73 65 0d 0a 09 09 7b 0d |a;....el|se....{.|
|00002e10| 0a 09 09 09 44 69 73 61 | 62 6c 65 28 27 54 69 63 |....Disa|ble('Tic|
|00002e20| 6b 27 29 3b 0d 0a 09 09 | 09 41 63 63 65 6c 65 72 |k');....|.Acceler|
|00002e30| 61 74 69 6f 6e 20 3d 20 | 76 65 63 74 28 30 2c 30 |ation = |vect(0,0|
|00002e40| 2c 30 29 3b 0d 0a 09 09 | 09 5a 20 3d 20 56 65 6c |,0);....|.Z = Vel|
|00002e50| 6f 63 69 74 79 2e 5a 3b | 0d 0a 09 09 09 56 65 6c |ocity.Z;|.....Vel|
|00002e60| 6f 63 69 74 79 2e 5a 20 | 3d 20 30 3b 0d 0a 09 09 |ocity.Z |= 0;....|
|00002e70| 09 69 66 20 28 20 56 53 | 69 7a 65 28 56 65 6c 6f |.if ( VS|ize(Velo|
|00002e80| 63 69 74 79 29 20 3e 20 | 38 30 30 20 29 0d 0a 09 |city) > |800 )...|
|00002e90| 09 09 7b 0d 0a 09 09 09 | 09 56 65 6c 6f 63 69 74 |..{.....|.Velocit|
|00002ea0| 79 20 3d 20 38 30 30 20 | 2a 20 4e 6f 72 6d 61 6c |y = 800 |* Normal|
|00002eb0| 28 56 65 6c 6f 63 69 74 | 79 29 3b 0d 0a 09 09 09 |(Velocit|y);.....|
|00002ec0| 09 56 65 6c 6f 63 69 74 | 79 2e 5a 20 3d 20 46 4d |.Velocit|y.Z = FM|
|00002ed0| 69 6e 28 31 30 30 2c 5a | 29 3b 0d 0a 09 09 09 7d |in(100,Z|);.....}|
|00002ee0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 66 75 |....}...|}.....fu|
|00002ef0| 6e 63 74 69 6f 6e 20 4c | 61 6e 64 65 64 28 76 65 |nction L|anded(ve|
|00002f00| 63 74 6f 72 20 68 69 74 | 4e 6f 72 6d 61 6c 29 0d |ctor hit|Normal).|
|00002f10| 0a 09 7b 0d 0a 09 09 69 | 66 20 28 20 53 6b 69 6e |..{....i|f ( Skin|
|00002f20| 73 5b 32 5d 20 21 3d 20 | 44 65 66 61 75 6c 74 2e |s[2] != |Default.|
|00002f30| 53 6b 69 6e 73 5b 32 5d | 20 29 0d 0a 09 09 7b 0d |Skins[2]| )....{.|
|00002f40| 0a 09 09 09 53 6b 69 6e | 73 5b 32 5d 20 3d 20 44 |....Skin|s[2] = D|
|00002f50| 65 66 61 75 6c 74 2e 53 | 6b 69 6e 73 5b 32 5d 3b |efault.S|kins[2];|
|00002f60| 0d 0a 09 09 09 53 65 63 | 6f 6e 64 52 65 70 53 6b |.....Sec|ondRepSk|
|00002f70| 69 6e 20 3d 20 53 6b 69 | 6e 73 5b 32 5d 3b 0d 0a |in = Ski|ns[2];..|
|00002f80| 09 09 7d 0d 0a 09 09 56 | 65 6c 6f 63 69 74 79 20 |..}....V|elocity |
|00002f90| 3d 20 76 65 63 74 28 30 | 2c 30 2c 30 29 3b 0d 0a |= vect(0|,0,0);..|
|00002fa0| 09 09 41 63 63 65 6c 65 | 72 61 74 69 6f 6e 20 3d |..Accele|ration =|
|00002fb0| 20 76 65 63 74 28 30 2c | 30 2c 30 29 3b 0d 0a 09 | vect(0,|0,0);...|
|00002fc0| 09 53 65 74 50 68 79 73 | 69 63 73 28 50 48 59 53 |.SetPhys|ics(PHYS|
|00002fd0| 5f 52 6f 74 61 74 69 6e | 67 29 3b 0d 0a 09 09 69 |_Rotatin|g);....i|
|00002fe0| 66 20 28 20 28 4c 6f 63 | 61 74 69 6f 6e 2e 5a 20 |f ( (Loc|ation.Z |
|00002ff0| 3c 20 52 65 67 69 6f 6e | 2e 5a 6f 6e 65 2e 4b 69 |< Region|.Zone.Ki|
|00003000| 6c 6c 5a 29 20 7c 7c 20 | 49 73 49 6e 50 61 69 6e |llZ) || |IsInPain|
|00003010| 28 29 20 29 0d 0a 09 09 | 09 54 69 6d 65 72 28 29 |() )....|.Timer()|
|00003020| 3b 0d 0a 09 7d 0d 0a 0d | 0a 20 20 20 20 66 75 6e |;...}...|. fun|
|00003030| 63 74 69 6f 6e 20 4c 6f | 67 54 61 6b 65 6e 28 43 |ction Lo|gTaken(C|
|00003040| 6f 6e 74 72 6f 6c 6c 65 | 72 20 63 29 0d 0a 20 20 |ontrolle|r c).. |
|00003050| 20 20 7b 0d 0a 09 09 69 | 66 20 28 20 43 2e 50 6c | {....i|f ( C.Pl|
|00003060| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00003070| 6e 66 6f 2e 54 65 61 6d | 20 21 3d 20 4f 6c 64 54 |nfo.Team| != OldT|
|00003080| 65 61 6d 20 29 0d 0a 09 | 09 09 42 72 6f 61 64 63 |eam )...|..Broadc|
|00003090| 61 73 74 4c 6f 63 61 6c | 69 7a 65 64 4d 65 73 73 |astLocal|izedMess|
|000030a0| 61 67 65 28 20 4d 65 73 | 73 61 67 65 43 6c 61 73 |age( Mes|sageClas|
|000030b0| 73 2c 20 34 2c 20 43 2e | 50 6c 61 79 65 72 52 65 |s, 4, C.|PlayerRe|
|000030c0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2c 20 4e |plicatio|nInfo, N|
|000030d0| 6f 6e 65 2c 20 43 2e 50 | 6c 61 79 65 72 52 65 70 |one, C.P|layerRep|
|000030e0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|000030f0| 6d 20 29 3b 0d 0a 09 09 | 4f 6c 64 54 65 61 6d 20 |m );....|OldTeam |
|00003100| 3d 20 43 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |= C.Play|erReplic|
|00003110| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 3b 0d |ationInf|o.Team;.|
|00003120| 0a 20 20 20 20 20 20 20 | 20 55 6e 72 65 61 6c 4d |. | UnrealM|
|00003130| 50 47 61 6d 65 49 6e 66 | 6f 28 4c 65 76 65 6c 2e |PGameInf|o(Level.|
|00003140| 47 61 6d 65 29 2e 47 61 | 6d 65 45 76 65 6e 74 28 |Game).Ga|meEvent(|
|00003150| 22 62 6f 6d 62 5f 70 69 | 63 6b 75 70 22 2c 22 32 |"bomb_pi|ckup","2|
|00003160| 35 35 22 2c 43 2e 50 6c | 61 79 65 72 52 65 70 6c |55",C.Pl|ayerRepl|
|00003170| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 29 3b 0d 0a 20 |icationI|nfo);.. |
|00003180| 20 20 20 7d 0d 0a 0d 0a | 09 66 75 6e 63 74 69 6f | }....|.functio|
|00003190| 6e 20 54 69 6d 65 72 28 | 29 0d 0a 09 7b 0d 0a 20 |n Timer(|)...{.. |
|000031a0| 20 20 20 20 20 20 20 55 | 6e 72 65 61 6c 4d 50 47 | U|nrealMPG|
|000031b0| 61 6d 65 49 6e 66 6f 28 | 4c 65 76 65 6c 2e 47 61 |ameInfo(|Level.Ga|
|000031c0| 6d 65 29 2e 47 61 6d 65 | 45 76 65 6e 74 28 22 62 |me).Game|Event("b|
|000031d0| 6f 6d 62 5f 72 65 74 75 | 72 6e 65 64 5f 74 69 6d |omb_retu|rned_tim|
|000031e0| 65 6f 75 74 22 2c 22 32 | 35 35 22 2c 4e 6f 6e 65 |eout","2|55",None|
|000031f0| 29 3b 0d 0a 09 09 53 75 | 70 65 72 2e 54 69 6d 65 |);....Su|per.Time|
|00003200| 72 28 29 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 66 75 6e |r();...}|.....fun|
|00003210| 63 74 69 6f 6e 20 42 65 | 67 69 6e 53 74 61 74 65 |ction Be|ginState|
|00003220| 28 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 28 |()...{..|..if ( (|
|00003230| 28 50 61 73 73 54 61 72 | 67 65 74 20 3d 3d 20 4e |(PassTar|get == N|
|00003240| 6f 6e 65 29 20 7c 7c 20 | 28 50 61 73 73 54 61 72 |one) || |(PassTar|
|00003250| 67 65 74 20 3d 3d 20 49 | 6e 73 74 69 67 61 74 6f |get == I|nstigato|
|00003260| 72 29 29 20 26 26 20 28 | 53 6b 69 6e 73 5b 32 5d |r)) && (|Skins[2]|
|00003270| 20 21 3d 20 44 65 66 61 | 75 6c 74 2e 53 6b 69 6e | != Defa|ult.Skin|
|00003280| 73 5b 32 5d 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |s[2]) ).|...{....|
|00003290| 09 53 6b 69 6e 73 5b 32 | 5d 20 3d 20 44 65 66 61 |.Skins[2|] = Defa|
|000032a0| 75 6c 74 2e 53 6b 69 6e | 73 5b 32 5d 3b 0d 0a 09 |ult.Skin|s[2];...|
|000032b0| 09 09 53 65 63 6f 6e 64 | 52 65 70 53 6b 69 6e 20 |..Second|RepSkin |
|000032c0| 3d 20 53 6b 69 6e 73 5b | 32 5d 3b 0d 0a 20 09 20 |= Skins[|2];.. . |
|000032d0| 20 20 20 20 20 20 53 65 | 74 50 68 79 73 69 63 73 | Se|tPhysics|
|000032e0| 28 50 48 59 53 5f 46 61 | 6c 6c 69 6e 67 29 3b 0d |(PHYS_Fa|lling);.|
|000032f0| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 20 69 66 20 |...}....|else if |
|00003300| 28 20 50 68 79 73 69 63 | 73 20 21 3d 20 50 48 59 |( Physic|s != PHY|
|00003310| 53 5f 50 72 6f 6a 65 63 | 74 69 6c 65 20 29 0d 0a |S_Projec|tile )..|
|00003320| 09 09 09 53 65 74 50 68 | 79 73 69 63 73 28 50 48 |...SetPh|ysics(PH|
|00003330| 59 53 5f 46 61 6c 6c 69 | 6e 67 29 3b 0d 0a 09 09 |YS_Falli|ng);....|
|00003340| 53 65 74 54 69 6d 65 72 | 28 4d 61 78 44 72 6f 70 |SetTimer|(MaxDrop|
|00003350| 54 69 6d 65 2c 20 66 61 | 6c 73 65 29 3b 0d 0a 20 |Time, fa|lse);.. |
|00003360| 20 20 20 20 20 20 20 53 | 65 74 50 68 79 73 69 63 | S|etPhysic|
|00003370| 73 28 50 48 59 53 5f 46 | 61 6c 6c 69 6e 67 29 3b |s(PHYS_F|alling);|
|00003380| 0d 0a 09 09 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 47 |....Leve|l.Game.G|
|00003390| 61 6d 65 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |ameRepli|cationIn|
|000033a0| 66 6f 2e 46 6c 61 67 53 | 74 61 74 65 5b 30 5d 20 |fo.FlagS|tate[0] |
|000033b0| 3d 20 45 46 6c 61 67 53 | 74 61 74 65 2e 46 4c 41 |= EFlagS|tate.FLA|
|000033c0| 47 5f 44 6f 77 6e 3b 0d | 0a 20 20 20 20 20 20 20 |G_Down;.|. |
|000033d0| 20 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 47 61 6d 65 | Level.G|ame.Game|
|000033e0| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|000033f0| 46 6c 61 67 53 74 61 74 | 65 5b 31 5d 20 3d 20 45 |FlagStat|e[1] = E|
|00003400| 46 6c 61 67 53 74 61 74 | 65 2e 46 4c 41 47 5f 44 |FlagStat|e.FLAG_D|
|00003410| 6f 77 6e 3b 0d 0a 20 20 | 20 20 7d 0d 0a 0d 0a 20 |own;.. | }.... |
|00003420| 20 20 20 66 75 6e 63 74 | 69 6f 6e 20 45 6e 64 53 | funct|ion EndS|
|00003430| 74 61 74 65 28 29 0d 0a | 20 20 20 20 7b 0d 0a 09 |tate()..| {...|
|00003440| 09 50 61 73 73 54 61 72 | 67 65 74 20 3d 20 4e 6f |.PassTar|get = No|
|00003450| 6e 65 3b 0d 0a 09 09 69 | 66 20 28 20 53 6b 69 6e |ne;....i|f ( Skin|
|00003460| 73 5b 32 5d 20 21 3d 20 | 44 65 66 61 75 6c 74 2e |s[2] != |Default.|
|00003470| 53 6b 69 6e 73 5b 32 5d | 20 29 0d 0a 09 09 7b 0d |Skins[2]| )....{.|
|00003480| 0a 09 09 09 53 6b 69 6e | 73 5b 32 5d 20 3d 20 44 |....Skin|s[2] = D|
|00003490| 65 66 61 75 6c 74 2e 53 | 6b 69 6e 73 5b 32 5d 3b |efault.S|kins[2];|
|000034a0| 0d 0a 09 09 09 53 65 63 | 6f 6e 64 52 65 70 53 6b |.....Sec|ondRepSk|
|000034b0| 69 6e 20 3d 20 53 6b 69 | 6e 73 5b 32 5d 3b 0d 0a |in = Ski|ns[2];..|
|000034c0| 09 09 7d 0d 0a 09 09 53 | 75 70 65 72 2e 45 6e 64 |..}....S|uper.End|
|000034d0| 53 74 61 74 65 28 29 3b | 0d 0a 09 7d 0d 0a 7d 0d |State();|...}..}.|
|000034e0| 0a 0d 0a 0d 0a 00 | |...... | |
+--------+-------------------------+-------------------------+--------+--------+