home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / Chip_06_2000.iso / games / WheelofTime / WoTDemo.exe / System / Legend.u / ScriptText12.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  5.4 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5f 55 2f 2f 3d 3d 3d 3d |........|_U//====|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 0d 0a 2f 2f 20 52 65 |========|=..// Re|
|00000060| 74 72 65 61 74 49 6e 73 | 74 69 67 61 74 6f 72 49 |treatIns|tigatorI|
|00000070| 6e 76 65 6e 74 6f 72 79 | 49 74 65 6d 2e 75 63 0d |nventory|Item.uc.|
|00000080| 0a 2f 2f 20 24 41 75 74 | 68 6f 72 3a 20 4d 66 6f |.// $Aut|hor: Mfo|
|00000090| 78 20 24 0d 0a 2f 2f 20 | 24 44 61 74 65 3a 20 31 |x $..// |$Date: 1|
|000000a0| 30 2f 32 36 2f 39 39 20 | 35 3a 33 38 70 20 24 0d |0/26/99 |5:38p $.|
|000000b0| 0a 2f 2f 20 24 52 65 76 | 69 73 69 6f 6e 3a 20 31 |.// $Rev|ision: 1|
|000000c0| 20 24 0d 0a 2f 2f 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | $..//==|========|
|000000d0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000100| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000110| 3d 3d 3d 0d 0a 0d 0a 63 | 6c 61 73 73 20 52 65 74 |===....c|lass Ret|
|00000120| 72 65 61 74 49 6e 73 74 | 69 67 61 74 6f 72 49 6e |reatInst|igatorIn|
|00000130| 76 65 6e 74 6f 72 79 49 | 74 65 6d 20 65 78 70 61 |ventoryI|tem expa|
|00000140| 6e 64 73 20 52 65 74 72 | 65 61 74 49 6e 73 74 69 |nds Retr|eatInsti|
|00000150| 67 61 74 6f 72 3b 0d 0a | 0d 0a 76 61 72 20 28 29 |gator;..|..var ()|
|00000160| 20 63 6c 61 73 73 3c 49 | 6e 76 65 6e 74 6f 72 79 | class<I|nventory|
|00000170| 3e 20 43 75 72 72 65 6e | 74 4f 66 66 65 6e 64 69 |> Curren|tOffendi|
|00000180| 6e 67 49 6e 76 65 6e 74 | 6f 72 79 49 74 65 6d 54 |ngInvent|oryItemT|
|00000190| 79 70 65 3b 0d 0a 0d 0a | 63 6f 6e 73 74 20 54 68 |ype;....|const Th|
|000001a0| 72 65 61 74 49 6e 66 6c | 75 65 6e 63 65 50 65 65 |reatInfl|uencePee|
|000001b0| 72 52 61 64 69 75 73 43 | 6f 75 6e 74 20 3d 20 31 |rRadiusC|ount = 1|
|000001c0| 32 3b 0d 0a 63 6f 6e 73 | 74 20 46 75 6c 6c 43 6f |2;..cons|t FullCo|
|000001d0| 6e 66 69 64 65 6e 63 65 | 50 65 65 72 43 6f 75 6e |nfidence|PeerCoun|
|000001e0| 74 20 3d 20 33 3b 0d 0a | 0d 0a 0d 0a 0d 0a 66 75 |t = 3;..|......fu|
|000001f0| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 47 65 74 52 |nction b|ool GetR|
|00000200| 65 74 72 65 61 74 49 6e | 73 74 69 67 61 74 6f 72 |etreatIn|stigator|
|00000210| 50 61 72 61 6d 73 28 20 | 4f 62 6a 65 63 74 20 49 |Params( |Object I|
|00000220| 6e 76 6f 6b 69 6e 67 4f | 62 6a 65 63 74 2c 0d 0a |nvokingO|bject,..|
|00000230| 09 09 6f 75 74 20 56 65 | 63 74 6f 72 20 49 6e 73 |..out Ve|ctor Ins|
|00000240| 74 69 67 61 74 6f 72 4c | 6f 63 61 74 69 6f 6e 2c |tigatorL|ocation,|
|00000250| 0d 0a 09 09 6f 75 74 20 | 56 65 63 74 6f 72 20 49 |....out |Vector I|
|00000260| 6e 73 74 69 67 61 74 6f | 72 45 78 74 65 6e 74 73 |nstigato|rExtents|
|00000270| 20 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 62 6f | )..{...|local bo|
|00000280| 6f 6c 20 62 50 61 72 61 | 6d 73 44 65 74 65 72 6d |ol bPara|msDeterm|
|00000290| 69 6e 65 64 3b 0d 0a 09 | 6c 6f 63 61 6c 20 41 63 |ined;...|local Ac|
|000002a0| 74 6f 72 20 49 6e 73 74 | 69 67 61 74 69 6e 67 41 |tor Inst|igatingA|
|000002b0| 63 74 6f 72 3b 0d 0a 09 | 6c 6f 63 61 6c 20 56 65 |ctor;...|local Ve|
|000002c0| 63 74 6f 72 20 49 6e 76 | 65 6e 74 6f 72 79 49 74 |ctor Inv|entoryIt|
|000002d0| 65 6d 4c 6f 63 61 74 69 | 6f 6e 2c 20 49 6e 76 65 |emLocati|on, Inve|
|000002e0| 6e 74 6f 72 79 49 74 65 | 6d 45 78 74 65 6e 74 73 |ntoryIte|mExtents|
|000002f0| 3b 0d 0a 09 0d 0a 09 2f | 2f 4c 6f 67 28 20 53 65 |;....../|/Log( Se|
|00000300| 6c 66 20 24 20 22 3a 3a | 52 65 74 72 65 61 74 49 |lf $ "::|RetreatI|
|00000310| 6e 73 74 69 67 61 74 6f | 72 49 6e 76 65 6e 74 6f |nstigato|rInvento|
|00000320| 72 79 49 74 65 6d 3a 3a | 47 65 74 52 65 74 72 65 |ryItem::|GetRetre|
|00000330| 61 74 49 6e 73 74 69 67 | 61 74 6f 72 50 61 72 61 |atInstig|atorPara|
|00000340| 6d 73 22 20 29 3b 0d 0a | 09 69 66 28 20 53 75 70 |ms" );..|.if( Sup|
|00000350| 65 72 2e 47 65 74 52 65 | 74 72 65 61 74 49 6e 73 |er.GetRe|treatIns|
|00000360| 74 69 67 61 74 6f 72 50 | 61 72 61 6d 73 28 20 49 |tigatorP|arams( I|
|00000370| 6e 76 6f 6b 69 6e 67 4f | 62 6a 65 63 74 2c 20 49 |nvokingO|bject, I|
|00000380| 6e 73 74 69 67 61 74 6f | 72 4c 6f 63 61 74 69 6f |nstigato|rLocatio|
|00000390| 6e 2c 20 49 6e 73 74 69 | 67 61 74 6f 72 45 78 74 |n, Insti|gatorExt|
|000003a0| 65 6e 74 73 20 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |ents ) )|...{....|
|000003b0| 69 66 28 20 47 65 74 4f | 66 66 65 6e 64 69 6e 67 |if( GetO|ffending|
|000003c0| 49 6e 76 65 6e 74 6f 72 | 79 49 74 65 6d 50 61 72 |Inventor|yItemPar|
|000003d0| 61 6d 73 28 20 49 6e 76 | 6f 6b 69 6e 67 4f 62 6a |ams( Inv|okingObj|
|000003e0| 65 63 74 2c 0d 0a 09 09 | 09 09 49 6e 76 65 6e 74 |ect,....|..Invent|
|000003f0| 6f 72 79 49 74 65 6d 4c | 6f 63 61 74 69 6f 6e 2c |oryItemL|ocation,|
|00000400| 20 49 6e 76 65 6e 74 6f | 72 79 49 74 65 6d 45 78 | Invento|ryItemEx|
|00000410| 74 65 6e 74 73 2c 0d 0a | 09 09 09 09 47 65 74 4f |tents,..|....GetO|
|00000420| 66 66 65 6e 64 69 6e 67 | 49 6e 76 65 6e 74 6f 72 |ffending|Inventor|
|00000430| 79 49 74 65 6d 54 79 70 | 65 28 29 20 29 20 29 0d |yItemTyp|e() ) ).|
|00000440| 0a 09 09 7b 0d 0a 09 09 | 09 49 6e 73 74 69 67 61 |...{....|.Instiga|
|00000450| 74 6f 72 45 78 74 65 6e | 74 73 20 2b 3d 20 49 6e |torExten|ts += In|
|00000460| 76 65 6e 74 6f 72 79 49 | 74 65 6d 45 78 74 65 6e |ventoryI|temExten|
|00000470| 74 73 3b 0d 0a 09 09 09 | 62 50 61 72 61 6d 73 44 |ts;.....|bParamsD|
|00000480| 65 74 65 72 6d 69 6e 65 | 64 20 3d 20 74 72 75 65 |etermine|d = true|
|00000490| 3b 0d 0a 09 09 7d 09 09 | 0d 0a 09 7d 0d 0a 09 0d |;....}..|...}....|
|000004a0| 0a 09 72 65 74 75 72 6e | 20 62 50 61 72 61 6d 73 |..return| bParams|
|000004b0| 44 65 74 65 72 6d 69 6e | 65 64 3b 0d 0a 7d 0d 0a |Determin|ed;..}..|
|000004c0| 0d 0a 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |......fu|nction b|
|000004d0| 6f 6f 6c 20 47 65 74 4f | 66 66 65 6e 64 69 6e 67 |ool GetO|ffending|
|000004e0| 49 6e 76 65 6e 74 6f 72 | 79 49 74 65 6d 50 61 72 |Inventor|yItemPar|
|000004f0| 61 6d 73 28 20 4f 62 6a | 65 63 74 20 49 6e 76 6f |ams( Obj|ect Invo|
|00000500| 6b 69 6e 67 4f 62 6a 65 | 63 74 2c 0d 0a 09 09 6f |kingObje|ct,....o|
|00000510| 75 74 20 56 65 63 74 6f | 72 20 49 6e 76 65 6e 74 |ut Vecto|r Invent|
|00000520| 6f 72 79 49 74 65 6d 4c | 6f 63 61 74 69 6f 6e 2c |oryItemL|ocation,|
|00000530| 0d 0a 09 09 6f 75 74 20 | 56 65 63 74 6f 72 20 49 |....out |Vector I|
|00000540| 6e 76 65 6e 74 6f 72 79 | 49 74 65 6d 45 78 74 65 |nventory|ItemExte|
|00000550| 6e 74 73 2c 0d 0a 09 09 | 63 6c 61 73 73 20 49 6e |nts,....|class In|
|00000560| 76 65 6e 74 6f 72 79 49 | 74 65 6d 54 79 70 65 20 |ventoryI|temType |
|00000570| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 62 6f 6f |)..{...l|ocal boo|
|00000580| 6c 20 62 50 61 72 61 6d | 73 44 65 74 65 72 6d 69 |l bParam|sDetermi|
|00000590| 6e 65 64 3b 0d 0a 09 6c | 6f 63 61 6c 20 41 63 74 |ned;...l|ocal Act|
|000005a0| 6f 72 20 4f 66 66 65 6e | 64 69 6e 67 49 6e 76 65 |or Offen|dingInve|
|000005b0| 6e 74 6f 72 79 49 74 65 | 6d 3b 0d 0a 0d 0a 09 69 |ntoryIte|m;.....i|
|000005c0| 66 28 20 47 65 74 4f 66 | 66 65 6e 64 69 6e 67 49 |f( GetOf|fendingI|
|000005d0| 6e 76 65 6e 74 6f 72 79 | 49 74 65 6d 28 20 49 6e |nventory|Item( In|
|000005e0| 76 6f 6b 69 6e 67 4f 62 | 6a 65 63 74 2c 20 4f 66 |vokingOb|ject, Of|
|000005f0| 66 65 6e 64 69 6e 67 49 | 6e 76 65 6e 74 6f 72 79 |fendingI|nventory|
|00000600| 49 74 65 6d 2c 20 49 6e | 76 65 6e 74 6f 72 79 49 |Item, In|ventoryI|
|00000610| 74 65 6d 54 79 70 65 20 | 29 20 29 0d 0a 09 7b 0d |temType |) )...{.|
|00000620| 0a 09 09 49 6e 76 65 6e | 74 6f 72 79 49 74 65 6d |...Inven|toryItem|
|00000630| 4c 6f 63 61 74 69 6f 6e | 20 3d 20 4f 66 66 65 6e |Location| = Offen|
|00000640| 64 69 6e 67 49 6e 76 65 | 6e 74 6f 72 79 49 74 65 |dingInve|ntoryIte|
|00000650| 6d 2e 4c 6f 63 61 74 69 | 6f 6e 3b 0d 0a 09 09 49 |m.Locati|on;....I|
|00000660| 6e 76 65 6e 74 6f 72 79 | 49 74 65 6d 45 78 74 65 |nventory|ItemExte|
|00000670| 6e 74 73 2e 78 20 3d 20 | 4f 66 66 65 6e 64 69 6e |nts.x = |Offendin|
|00000680| 67 49 6e 76 65 6e 74 6f | 72 79 49 74 65 6d 2e 43 |gInvento|ryItem.C|
|00000690| 6f 6c 6c 69 73 69 6f 6e | 52 61 64 69 75 73 3b 0d |ollision|Radius;.|
|000006a0| 0a 09 09 49 6e 76 65 6e | 74 6f 72 79 49 74 65 6d |...Inven|toryItem|
|000006b0| 45 78 74 65 6e 74 73 2e | 79 20 3d 20 4f 66 66 65 |Extents.|y = Offe|
|000006c0| 6e 64 69 6e 67 49 6e 76 | 65 6e 74 6f 72 79 49 74 |ndingInv|entoryIt|
|000006d0| 65 6d 2e 43 6f 6c 6c 69 | 73 69 6f 6e 52 61 64 69 |em.Colli|sionRadi|
|000006e0| 75 73 3b 0d 0a 09 09 49 | 6e 76 65 6e 74 6f 72 79 |us;....I|nventory|
|000006f0| 49 74 65 6d 45 78 74 65 | 6e 74 73 2e 7a 20 3d 20 |ItemExte|nts.z = |
|00000700| 4f 66 66 65 6e 64 69 6e | 67 49 6e 76 65 6e 74 6f |Offendin|gInvento|
|00000710| 72 79 49 74 65 6d 2e 43 | 6f 6c 6c 69 73 69 6f 6e |ryItem.C|ollision|
|00000720| 48 65 69 67 68 74 3b 0d | 0a 09 09 62 50 61 72 61 |Height;.|...bPara|
|00000730| 6d 73 44 65 74 65 72 6d | 69 6e 65 64 20 3d 20 74 |msDeterm|ined = t|
|00000740| 72 75 65 3b 0d 0a 09 7d | 0d 0a 0d 0a 09 72 65 74 |rue;...}|.....ret|
|00000750| 75 72 6e 20 62 50 61 72 | 61 6d 73 44 65 74 65 72 |urn bPar|amsDeter|
|00000760| 6d 69 6e 65 64 3b 0d 0a | 7d 0d 0a 0d 0a 0d 0a 0d |mined;..|}.......|
|00000770| 0a 66 75 6e 63 74 69 6f | 6e 20 62 6f 6f 6c 20 47 |.functio|n bool G|
|00000780| 65 74 4f 66 66 65 6e 64 | 69 6e 67 49 6e 76 65 6e |etOffend|ingInven|
|00000790| 74 6f 72 79 49 74 65 6d | 28 20 4f 62 6a 65 63 74 |toryItem|( Object|
|000007a0| 20 49 6e 76 6f 6b 69 6e | 67 4f 62 6a 65 63 74 2c | Invokin|gObject,|
|000007b0| 20 6f 75 74 20 41 63 74 | 6f 72 20 4f 66 66 65 6e | out Act|or Offen|
|000007c0| 64 69 6e 67 49 6e 76 65 | 6e 74 6f 72 79 49 74 65 |dingInve|ntoryIte|
|000007d0| 6d 2c 20 63 6c 61 73 73 | 20 49 6e 76 65 6e 74 6f |m, class| Invento|
|000007e0| 72 79 49 74 65 6d 54 79 | 70 65 20 29 0d 0a 7b 0d |ryItemTy|pe )..{.|
|000007f0| 0a 09 6c 6f 63 61 6c 20 | 41 63 74 6f 72 20 49 6e |..local |Actor In|
|00000800| 73 74 69 67 61 74 6f 72 | 55 73 65 64 3b 0d 0a 09 |stigator|Used;...|
|00000810| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 52 65 74 75 |local bo|ol bRetu|
|00000820| 72 6e 3b 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |rn;...lo|cal Pawn|
|00000830| 20 49 6e 76 65 6e 74 6f | 72 79 48 6f 6c 64 65 72 | Invento|ryHolder|
|00000840| 3b 0d 0a 09 0d 0a 09 2f | 2f 4c 6f 67 28 20 53 65 |;....../|/Log( Se|
|00000850| 6c 66 20 24 20 22 3a 3a | 52 65 74 72 65 61 74 49 |lf $ "::|RetreatI|
|00000860| 6e 73 74 69 67 61 74 6f | 72 49 6e 76 65 6e 74 6f |nstigato|rInvento|
|00000870| 72 79 49 74 65 6d 3a 3a | 47 65 74 4f 66 66 65 6e |ryItem::|GetOffen|
|00000880| 64 69 6e 67 49 6e 76 65 | 6e 74 6f 72 79 49 74 65 |dingInve|ntoryIte|
|00000890| 6d 22 20 29 3b 0d 0a 09 | 69 66 28 20 53 75 70 65 |m" );...|if( Supe|
|000008a0| 72 2e 47 65 74 52 65 74 | 72 65 61 74 49 6e 73 74 |r.GetRet|reatInst|
|000008b0| 69 67 61 74 6f 72 28 20 | 49 6e 76 6f 6b 69 6e 67 |igator( |Invoking|
|000008c0| 4f 62 6a 65 63 74 2c 20 | 49 6e 73 74 69 67 61 74 |Object, |Instigat|
|000008d0| 6f 72 55 73 65 64 20 29 | 20 29 0d 0a 09 7b 0d 0a |orUsed )| )...{..|
|000008e0| 09 09 49 6e 76 65 6e 74 | 6f 72 79 48 6f 6c 64 65 |..Invent|oryHolde|
|000008f0| 72 20 3d 20 50 61 77 6e | 28 20 49 6e 73 74 69 67 |r = Pawn|( Instig|
|00000900| 61 74 6f 72 55 73 65 64 | 20 29 3b 0d 0a 09 09 69 |atorUsed| );....i|
|00000910| 66 28 20 49 6e 76 65 6e | 74 6f 72 79 48 6f 6c 64 |f( Inven|toryHold|
|00000920| 65 72 20 21 3d 20 6e 6f | 6e 65 20 29 0d 0a 09 09 |er != no|ne )....|
|00000930| 7b 0d 0a 09 09 09 4f 66 | 66 65 6e 64 69 6e 67 49 |{.....Of|fendingI|
|00000940| 6e 76 65 6e 74 6f 72 79 | 49 74 65 6d 20 3d 20 49 |nventory|Item = I|
|00000950| 6e 76 65 6e 74 6f 72 79 | 48 6f 6c 64 65 72 2e 46 |nventory|Holder.F|
|00000960| 69 6e 64 49 6e 76 65 6e | 74 6f 72 79 54 79 70 65 |indInven|toryType|
|00000970| 28 20 49 6e 76 65 6e 74 | 6f 72 79 49 74 65 6d 54 |( Invent|oryItemT|
|00000980| 79 70 65 20 29 3b 0d 0a | 09 09 09 0d 0a 09 09 09 |ype );..|........|
|00000990| 69 66 28 20 4f 66 66 65 | 6e 64 69 6e 67 49 6e 76 |if( Offe|ndingInv|
|000009a0| 65 6e 74 6f 72 79 49 74 | 65 6d 20 21 3d 20 6e 6f |entoryIt|em != no|
|000009b0| 6e 65 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |ne )....|.{......|
|000009c0| 2f 2f 4c 6f 67 28 20 53 | 65 6c 66 20 24 20 22 3a |//Log( S|elf $ ":|
|000009d0| 3a 52 65 74 72 65 61 74 | 49 6e 73 74 69 67 61 74 |:Retreat|Instigat|
|000009e0| 6f 72 49 6e 76 65 6e 74 | 6f 72 79 49 74 65 6d 3a |orInvent|oryItem:|
|000009f0| 3a 47 65 74 4f 66 66 65 | 6e 64 69 6e 67 49 6e 76 |:GetOffe|ndingInv|
|00000a00| 65 6e 74 6f 72 79 49 74 | 65 6d 22 20 29 3b 0d 0a |entoryIt|em" );..|
|00000a10| 09 09 09 09 2f 2f 4c 6f | 67 28 20 22 09 09 4f 66 |....//Lo|g( "..Of|
|00000a20| 66 65 6e 64 69 6e 67 49 | 6e 76 65 6e 74 6f 72 79 |fendingI|nventory|
|00000a30| 49 74 65 6d 3a 20 22 20 | 24 20 4f 66 66 65 6e 64 |Item: " |$ Offend|
|00000a40| 69 6e 67 49 6e 76 65 6e | 74 6f 72 79 49 74 65 6d |ingInven|toryItem|
|00000a50| 20 29 3b 0d 0a 09 09 09 | 09 62 52 65 74 75 72 6e | );.....|.bReturn|
|00000a60| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a | = true;|.....}..|
|00000a70| 09 09 09 65 6c 73 65 0d | 0a 09 09 09 7b 0d 0a 09 |...else.|....{...|
|00000a80| 09 09 09 2f 2f 4c 6f 67 | 28 20 53 65 6c 66 20 24 |...//Log|( Self $|
|00000a90| 20 22 3a 3a 52 65 74 72 | 65 61 74 49 6e 73 74 69 | "::Retr|eatInsti|
|00000aa0| 67 61 74 6f 72 49 6e 76 | 65 6e 74 6f 72 79 49 74 |gatorInv|entoryIt|
|00000ab0| 65 6d 3a 3a 47 65 74 4f | 66 66 65 6e 64 69 6e 67 |em::GetO|ffending|
|00000ac0| 49 6e 76 65 6e 74 6f 72 | 79 49 74 65 6d 22 20 29 |Inventor|yItem" )|
|00000ad0| 3b 0d 0a 09 09 09 09 2f | 2f 4c 6f 67 28 20 22 09 |;....../|/Log( ".|
|00000ae0| 09 69 74 65 6d 20 6f 66 | 20 63 6c 61 73 73 20 2d |.item of| class -|
|00000af0| 22 20 24 20 49 6e 76 65 | 6e 74 6f 72 79 49 74 65 |" $ Inve|ntoryIte|
|00000b00| 6d 54 79 70 65 20 24 20 | 22 2d 20 6e 6f 74 20 66 |mType $ |"- not f|
|00000b10| 6f 75 6e 64 22 20 29 3b | 0d 0a 09 09 09 7d 0d 0a |ound" );|.....}..|
|00000b20| 09 09 7d 0d 0a 09 7d 0d | 0a 09 0d 0a 09 72 65 74 |..}...}.|.....ret|
|00000b30| 75 72 6e 20 62 52 65 74 | 75 72 6e 3b 0d 0a 7d 0d |urn bRet|urn;..}.|
|00000b40| 0a 0d 0a 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |.......f|unction |
|00000b50| 63 6c 61 73 73 20 47 65 | 74 4f 66 66 65 6e 64 69 |class Ge|tOffendi|
|00000b60| 6e 67 49 6e 76 65 6e 74 | 6f 72 79 49 74 65 6d 54 |ngInvent|oryItemT|
|00000b70| 79 70 65 28 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |ype()..{|...retur|
|00000b80| 6e 20 43 75 72 72 65 6e | 74 4f 66 66 65 6e 64 69 |n Curren|tOffendi|
|00000b90| 6e 67 49 6e 76 65 6e 74 | 6f 72 79 49 74 65 6d 54 |ngInvent|oryItemT|
|00000ba0| 79 70 65 3b 0d 0a 7d 0d | 0a 0d 0a 0d 0a 0d 0a 66 |ype;..}.|.......f|
|00000bb0| 75 6e 63 74 69 6f 6e 20 | 42 69 6e 64 4f 66 66 65 |unction |BindOffe|
|00000bc0| 6e 64 69 6e 67 49 6e 76 | 65 6e 74 6f 72 79 49 74 |ndingInv|entoryIt|
|00000bd0| 65 6d 54 79 70 65 28 20 | 63 6c 61 73 73 3c 49 6e |emType( |class<In|
|00000be0| 76 65 6e 74 6f 72 79 3e | 20 4e 65 77 4f 66 66 65 |ventory>| NewOffe|
|00000bf0| 6e 64 69 6e 67 49 6e 76 | 65 6e 74 6f 72 79 49 74 |ndingInv|entoryIt|
|00000c00| 65 6d 54 79 70 65 20 29 | 0d 0a 7b 0d 0a 09 43 75 |emType )|..{...Cu|
|00000c10| 72 72 65 6e 74 4f 66 66 | 65 6e 64 69 6e 67 49 6e |rrentOff|endingIn|
|00000c20| 76 65 6e 74 6f 72 79 49 | 74 65 6d 54 79 70 65 20 |ventoryI|temType |
|00000c30| 3d 20 4e 65 77 4f 66 66 | 65 6e 64 69 6e 67 49 6e |= NewOff|endingIn|
|00000c40| 76 65 6e 74 6f 72 79 49 | 74 65 6d 54 79 70 65 3b |ventoryI|temType;|
|00000c50| 0d 0a 7d 0d 0a 0d 0a 0d | 0a 0d 0a 66 75 6e 63 74 |..}.....|...funct|
|00000c60| 69 6f 6e 20 66 6c 6f 61 | 74 20 47 65 74 54 68 72 |ion floa|t GetThr|
|00000c70| 65 61 74 49 6e 66 6c 75 | 65 6e 63 65 28 20 4f 62 |eatInflu|ence( Ob|
|00000c80| 6a 65 63 74 20 49 6e 76 | 6f 6b 69 6e 67 4f 62 6a |ject Inv|okingObj|
|00000c90| 65 63 74 20 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |ect )..{|...local|
|00000ca0| 20 66 6c 6f 61 74 20 54 | 68 72 65 61 74 49 6e 66 | float T|hreatInf|
|00000cb0| 6c 75 65 6e 63 65 2c 20 | 43 6f 6c 6c 65 63 74 69 |luence, |Collecti|
|00000cc0| 76 65 4d 61 73 73 3b 0d | 0a 09 6c 6f 63 61 6c 20 |veMass;.|..local |
|00000cd0| 66 6c 6f 61 74 20 52 65 | 74 72 65 61 74 52 61 64 |float Re|treatRad|
|00000ce0| 69 75 73 3b 0d 0a 09 6c | 6f 63 61 6c 20 56 65 63 |ius;...l|ocal Vec|
|00000cf0| 74 6f 72 20 52 65 74 72 | 65 61 74 4f 72 69 67 69 |tor Retr|eatOrigi|
|00000d00| 6e 2c 20 52 65 74 72 65 | 61 74 45 78 74 65 6e 74 |n, Retre|atExtent|
|00000d10| 73 3b 0d 0a 09 6c 6f 63 | 61 6c 20 41 63 74 6f 72 |s;...loc|al Actor|
|00000d20| 20 49 6e 76 6f 6b 69 6e | 67 41 63 74 6f 72 3b 0d | Invokin|gActor;.|
|00000d30| 0a 09 0d 0a 09 2f 2f 4c | 6f 67 28 20 53 65 6c 66 |.....//L|og( Self|
|00000d40| 20 24 20 22 3a 3a 52 65 | 74 72 65 61 74 49 6e 73 | $ "::Re|treatIns|
|00000d50| 74 69 67 61 74 6f 72 49 | 6e 76 65 6e 74 6f 72 79 |tigatorI|nventory|
|00000d60| 49 74 65 6d 3a 3a 47 65 | 74 54 68 72 65 61 74 49 |Item::Ge|tThreatI|
|00000d70| 6e 66 6c 75 65 6e 63 65 | 22 20 29 3b 0d 0a 09 49 |nfluence|" );...I|
|00000d80| 6e 76 6f 6b 69 6e 67 41 | 63 74 6f 72 20 3d 20 41 |nvokingA|ctor = A|
|00000d90| 63 74 6f 72 28 20 49 6e | 76 6f 6b 69 6e 67 4f 62 |ctor( In|vokingOb|
|00000da0| 6a 65 63 74 20 29 3b 0d | 0a 09 69 66 28 20 28 20 |ject );.|..if( ( |
|00000db0| 49 6e 76 6f 6b 69 6e 67 | 41 63 74 6f 72 20 21 3d |Invoking|Actor !=|
|00000dc0| 20 4e 6f 6e 65 20 29 20 | 26 26 20 47 65 74 52 65 | None ) |&& GetRe|
|00000dd0| 74 72 65 61 74 49 6e 73 | 74 69 67 61 74 6f 72 50 |treatIns|tigatorP|
|00000de0| 61 72 61 6d 73 28 20 49 | 6e 76 6f 6b 69 6e 67 4f |arams( I|nvokingO|
|00000df0| 62 6a 65 63 74 2c 20 52 | 65 74 72 65 61 74 4f 72 |bject, R|etreatOr|
|00000e00| 69 67 69 6e 2c 20 52 65 | 74 72 65 61 74 45 78 74 |igin, Re|treatExt|
|00000e10| 65 6e 74 73 20 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 |ents ) )|...{....|
|00000e20| 52 65 74 72 65 61 74 52 | 61 64 69 75 73 20 3d 20 |RetreatR|adius = |
|00000e30| 49 6e 76 6f 6b 69 6e 67 | 41 63 74 6f 72 2e 44 65 |Invoking|Actor.De|
|00000e40| 66 61 75 6c 74 2e 43 6f | 6c 6c 69 73 69 6f 6e 52 |fault.Co|llisionR|
|00000e50| 61 64 69 75 73 20 2a 20 | 54 68 72 65 61 74 49 6e |adius * |ThreatIn|
|00000e60| 66 6c 75 65 6e 63 65 50 | 65 65 72 52 61 64 69 75 |fluenceP|eerRadiu|
|00000e70| 73 43 6f 75 6e 74 3b 0d | 0a 09 09 2f 2f 67 65 74 |sCount;.|...//get|
|00000e80| 20 74 68 65 20 63 6f 6c | 6c 65 63 74 69 76 65 20 | the col|lective |
|00000e90| 6d 61 73 73 20 6f 66 20 | 61 6c 6c 20 6c 69 6b 65 |mass of |all like|
|00000ea0| 2d 61 63 74 6f 72 73 20 | 74 68 61 74 20 61 72 65 |-actors |that are|
|00000eb0| 20 74 68 72 65 61 74 65 | 6e 65 64 0d 0a 09 09 43 | threate|ned....C|
|00000ec0| 6f 6c 6c 65 63 74 69 76 | 65 4d 61 73 73 20 3d 20 |ollectiv|eMass = |
|00000ed0| 47 65 74 57 65 69 67 68 | 74 65 64 43 6f 6c 6c 65 |GetWeigh|tedColle|
|00000ee0| 63 74 69 76 65 50 65 65 | 72 4d 61 73 73 28 20 49 |ctivePee|rMass( I|
|00000ef0| 6e 76 6f 6b 69 6e 67 41 | 63 74 6f 72 2c 20 52 65 |nvokingA|ctor, Re|
|00000f00| 74 72 65 61 74 4f 72 69 | 67 69 6e 2c 20 52 65 74 |treatOri|gin, Ret|
|00000f10| 72 65 61 74 52 61 64 69 | 75 73 20 29 3b 0d 0a 09 |reatRadi|us );...|
|00000f20| 09 2f 2f 61 64 64 20 74 | 68 65 20 6d 61 73 73 20 |.//add t|he mass |
|00000f30| 66 6f 72 20 74 68 69 73 | 20 61 63 74 6f 72 0d 0a |for this| actor..|
|00000f40| 09 09 43 6f 6c 6c 65 63 | 74 69 76 65 4d 61 73 73 |..Collec|tiveMass|
|00000f50| 20 2b 3d 20 49 6e 76 6f | 6b 69 6e 67 41 63 74 6f | += Invo|kingActo|
|00000f60| 72 2e 4d 61 73 73 3b 0d | 0a 09 09 09 09 0d 0a 09 |r.Mass;.|........|
|00000f70| 09 2f 2f 4c 6f 67 28 20 | 22 3a 3a 52 65 74 72 65 |.//Log( |"::Retre|
|00000f80| 61 74 49 6e 73 74 69 67 | 61 74 6f 72 49 6e 76 65 |atInstig|atorInve|
|00000f90| 6e 74 6f 72 79 49 74 65 | 6d 3a 3a 47 65 74 54 68 |ntoryIte|m::GetTh|
|00000fa0| 72 65 61 74 49 6e 66 6c | 75 65 6e 63 65 22 20 29 |reatInfl|uence" )|
|00000fb0| 3b 0d 0a 09 09 2f 2f 4c | 6f 67 28 20 22 09 09 66 |;....//L|og( "..f|
|00000fc0| 69 6e 61 6c 20 43 6f 6c | 6c 65 63 74 69 76 65 4d |inal Col|lectiveM|
|00000fd0| 61 73 73 20 22 20 24 20 | 43 6f 6c 6c 65 63 74 69 |ass " $ |Collecti|
|00000fe0| 76 65 4d 61 73 73 20 29 | 3b 0d 0a 09 09 2f 2f 4c |veMass )|;....//L|
|00000ff0| 6f 67 28 20 22 09 09 66 | 69 6e 61 6c 20 64 69 76 |og( "..f|inal div|
|00001000| 69 73 6f 72 20 22 20 24 | 20 28 20 46 75 6c 6c 43 |isor " $| ( FullC|
|00001010| 6f 6e 66 69 64 65 6e 63 | 65 50 65 65 72 43 6f 75 |onfidenc|ePeerCou|
|00001020| 6e 74 20 2a 20 52 65 74 | 72 65 61 74 69 6e 67 41 |nt * Ret|reatingA|
|00001030| 63 74 6f 72 2e 44 65 66 | 61 75 6c 74 2e 4d 61 73 |ctor.Def|ault.Mas|
|00001040| 73 20 29 20 29 3b 0d 0a | 0d 0a 09 09 54 68 72 65 |s ) );..|....Thre|
|00001050| 61 74 49 6e 66 6c 75 65 | 6e 63 65 20 3d 20 31 20 |atInflue|nce = 1 |
|00001060| 2d 20 46 43 6c 61 6d 70 | 28 20 43 6f 6c 6c 65 63 |- FClamp|( Collec|
|00001070| 74 69 76 65 4d 61 73 73 | 20 2f 20 28 20 46 75 6c |tiveMass| / ( Ful|
|00001080| 6c 43 6f 6e 66 69 64 65 | 6e 63 65 50 65 65 72 43 |lConfide|ncePeerC|
|00001090| 6f 75 6e 74 20 2a 0d 0a | 09 09 09 09 49 6e 76 6f |ount *..|....Invo|
|000010a0| 6b 69 6e 67 41 63 74 6f | 72 2e 44 65 66 61 75 6c |kingActo|r.Defaul|
|000010b0| 74 2e 4d 61 73 73 20 29 | 2c 20 30 2e 30 2c 20 31 |t.Mass )|, 0.0, 1|
|000010c0| 2e 30 20 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |.0 );...|}...else|
|000010d0| 0d 0a 09 7b 0d 0a 09 09 | 2f 2f 69 66 20 74 68 65 |...{....|//if the|
|000010e0| 72 65 20 69 73 20 6e 6f | 20 6f 66 66 65 6e 64 69 |re is no| offendi|
|000010f0| 6e 67 20 69 6e 76 65 6e | 74 6f 72 79 20 69 74 65 |ng inven|tory ite|
|00001100| 6d 20 74 68 65 6e 20 74 | 68 65 20 74 68 72 65 61 |m then t|he threa|
|00001110| 74 20 68 61 73 20 6e 6f | 20 69 6e 66 6c 75 65 6e |t has no| influen|
|00001120| 63 65 0d 0a 09 09 54 68 | 72 65 61 74 49 6e 66 6c |ce....Th|reatInfl|
|00001130| 75 65 6e 63 65 20 3d 20 | 30 3b 0d 0a 09 7d 0d 0a |uence = |0;...}..|
|00001140| 09 0d 0a 09 2f 2f 4c 6f | 67 28 20 53 65 6c 66 20 |....//Lo|g( Self |
|00001150| 24 20 22 3a 3a 52 65 74 | 72 65 61 74 49 6e 73 74 |$ "::Ret|reatInst|
|00001160| 69 67 61 74 6f 72 49 6e | 76 65 6e 74 6f 72 79 49 |igatorIn|ventoryI|
|00001170| 74 65 6d 3a 3a 47 65 74 | 54 68 72 65 61 74 49 6e |tem::Get|ThreatIn|
|00001180| 66 6c 75 65 6e 63 65 22 | 20 29 3b 0d 0a 09 2f 2f |fluence"| );...//|
|00001190| 4c 6f 67 28 20 22 09 09 | 54 68 72 65 61 74 49 6e |Log( "..|ThreatIn|
|000011a0| 66 6c 75 65 6e 63 65 20 | 22 20 24 20 54 68 72 65 |fluence |" $ Thre|
|000011b0| 61 74 49 6e 66 6c 75 65 | 6e 63 65 20 29 3b 0d 0a |atInflue|nce );..|
|000011c0| 09 72 65 74 75 72 6e 20 | 54 68 72 65 61 74 49 6e |.return |ThreatIn|
|000011d0| 66 6c 75 65 6e 63 65 3b | 0d 0a 7d 0d 0a 0d 0a 0d |fluence;|..}.....|
|000011e0| 0a 0d 0a 73 74 61 74 69 | 63 20 66 75 6e 63 74 69 |...stati|c functi|
|000011f0| 6f 6e 20 66 6c 6f 61 74 | 20 47 65 74 57 65 69 67 |on float| GetWeig|
|00001200| 68 74 65 64 43 6f 6c 6c | 65 63 74 69 76 65 50 65 |htedColl|ectivePe|
|00001210| 65 72 4d 61 73 73 28 20 | 41 63 74 6f 72 20 47 69 |erMass( |Actor Gi|
|00001220| 76 65 6e 41 63 74 6f 72 | 2c 0d 0a 09 09 56 65 63 |venActor|,....Vec|
|00001230| 74 6f 72 20 50 65 65 72 | 52 61 64 69 75 73 4c 6f |tor Peer|RadiusLo|
|00001240| 63 61 74 69 6f 6e 2c 0d | 0a 09 09 66 6c 6f 61 74 |cation,.|...float|
|00001250| 20 50 65 65 72 52 61 64 | 69 75 73 20 29 0d 0a 7b | PeerRad|ius )..{|
|00001260| 0d 0a 09 6c 6f 63 61 6c | 20 41 63 74 6f 72 20 43 |...local| Actor C|
|00001270| 75 72 72 65 6e 74 41 63 | 74 6f 72 3b 0d 0a 09 6c |urrentAc|tor;...l|
|00001280| 6f 63 61 6c 20 66 6c 6f | 61 74 20 43 6f 6c 6c 65 |ocal flo|at Colle|
|00001290| 63 74 69 76 65 4d 61 73 | 73 2c 20 50 65 6e 69 74 |ctiveMas|s, Penit|
|000012a0| 72 61 74 69 6f 6e 52 61 | 74 69 6f 2c 20 43 75 72 |rationRa|tio, Cur|
|000012b0| 72 65 6e 74 53 70 69 64 | 65 72 44 69 73 74 61 6e |rentSpid|erDistan|
|000012c0| 63 65 3b 0d 0a 09 6c 6f | 63 61 6c 20 56 65 63 74 |ce;...lo|cal Vect|
|000012d0| 6f 72 20 44 69 66 66 65 | 72 65 6e 63 65 3b 0d 0a |or Diffe|rence;..|
|000012e0| 09 0d 0a 09 2f 2f 4c 6f | 67 28 20 22 3a 3a 52 65 |....//Lo|g( "::Re|
|000012f0| 74 72 65 61 74 49 6e 73 | 74 69 67 61 74 6f 72 3a |treatIns|tigator:|
|00001300| 3a 47 65 74 57 65 69 67 | 68 74 65 64 43 6f 6c 6c |:GetWeig|htedColl|
|00001310| 65 63 74 69 76 65 50 65 | 65 72 4d 61 73 73 22 20 |ectivePe|erMass" |
|00001320| 29 3b 0d 0a 09 66 6f 72 | 65 61 63 68 20 47 69 76 |);...for|each Giv|
|00001330| 65 6e 41 63 74 6f 72 2e | 52 61 64 69 75 73 41 63 |enActor.|RadiusAc|
|00001340| 74 6f 72 73 28 20 47 69 | 76 65 6e 41 63 74 6f 72 |tors( Gi|venActor|
|00001350| 2e 43 6c 61 73 73 2c 20 | 43 75 72 72 65 6e 74 41 |.Class, |CurrentA|
|00001360| 63 74 6f 72 2c 20 50 65 | 65 72 52 61 64 69 75 73 |ctor, Pe|erRadius|
|00001370| 2c 20 50 65 65 72 52 61 | 64 69 75 73 4c 6f 63 61 |, PeerRa|diusLoca|
|00001380| 74 69 6f 6e 20 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |tion )..|.{....if|
|00001390| 28 20 43 75 72 72 65 6e | 74 41 63 74 6f 72 20 21 |( Curren|tActor !|
|000013a0| 3d 20 47 69 76 65 6e 41 | 63 74 6f 72 20 29 0d 0a |= GivenA|ctor )..|
|000013b0| 09 09 7b 0d 0a 09 09 09 | 44 69 66 66 65 72 65 6e |..{.....|Differen|
|000013c0| 63 65 20 3d 20 43 75 72 | 72 65 6e 74 41 63 74 6f |ce = Cur|rentActo|
|000013d0| 72 2e 4c 6f 63 61 74 69 | 6f 6e 20 2d 20 50 65 65 |r.Locati|on - Pee|
|000013e0| 72 52 61 64 69 75 73 4c | 6f 63 61 74 69 6f 6e 3b |rRadiusL|ocation;|
|000013f0| 0d 0a 09 09 09 44 69 66 | 66 65 72 65 6e 63 65 2e |.....Dif|ference.|
|00001400| 7a 20 3d 20 30 3b 0d 0a | 09 09 09 43 75 72 72 65 |z = 0;..|...Curre|
|00001410| 6e 74 53 70 69 64 65 72 | 44 69 73 74 61 6e 63 65 |ntSpider|Distance|
|00001420| 20 3d 20 56 53 69 7a 65 | 28 20 44 69 66 66 65 72 | = VSize|( Differ|
|00001430| 65 6e 63 65 20 29 20 2d | 20 43 75 72 72 65 6e 74 |ence ) -| Current|
|00001440| 41 63 74 6f 72 2e 43 6f | 6c 6c 69 73 69 6f 6e 52 |Actor.Co|llisionR|
|00001450| 61 64 69 75 73 3b 0d 0a | 09 09 09 50 65 6e 69 74 |adius;..|...Penit|
|00001460| 72 61 74 69 6f 6e 52 61 | 74 69 6f 20 3d 20 31 20 |rationRa|tio = 1 |
|00001470| 2d 20 28 20 43 75 72 72 | 65 6e 74 53 70 69 64 65 |- ( Curr|entSpide|
|00001480| 72 44 69 73 74 61 6e 63 | 65 20 2f 20 50 65 65 72 |rDistanc|e / Peer|
|00001490| 52 61 64 69 75 73 20 29 | 3b 0d 0a 09 09 09 69 66 |Radius )|;.....if|
|000014a0| 28 20 50 65 6e 69 74 72 | 61 74 69 6f 6e 52 61 74 |( Penitr|ationRat|
|000014b0| 69 6f 20 3e 20 30 29 0d | 0a 09 09 09 7b 0d 0a 09 |io > 0).|....{...|
|000014c0| 09 09 09 43 6f 6c 6c 65 | 63 74 69 76 65 4d 61 73 |...Colle|ctiveMas|
|000014d0| 73 20 2b 3d 20 43 75 72 | 72 65 6e 74 41 63 74 6f |s += Cur|rentActo|
|000014e0| 72 2e 4d 61 73 73 20 2a | 20 50 65 6e 69 74 72 61 |r.Mass *| Penitra|
|000014f0| 74 69 6f 6e 52 61 74 69 | 6f 3b 0d 0a 09 09 09 09 |tionRati|o;......|
|00001500| 2f 2f 4c 6f 67 28 20 22 | 09 09 63 75 72 72 65 6e |//Log( "|..curren|
|00001510| 74 20 43 6f 6c 6c 65 63 | 74 69 76 65 4d 61 73 73 |t Collec|tiveMass|
|00001520| 20 22 20 24 20 43 6f 6c | 6c 65 63 74 69 76 65 4d | " $ Col|lectiveM|
|00001530| 61 73 73 20 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |ass );..|...}....|
|00001540| 7d 0d 0a 09 7d 0d 0a 09 | 0d 0a 09 72 65 74 75 72 |}...}...|...retur|
|00001550| 6e 20 43 6f 6c 6c 65 63 | 74 69 76 65 4d 61 73 73 |n Collec|tiveMass|
|00001560| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+