예제 #1
0
 // Token: 0x060000EE RID: 238 RVA: 0x0000D55C File Offset: 0x0000B75C
 private void Update()
 {
     try
     {
         bool flag = Config.ESP.ItemEsp.container || Config.ESP.containercontents;
         if (flag)
         {
             bool flag2 = Time.time >= this._nextLootContainerCacheTime;
             if (flag2)
             {
                 bool flag3 = Misc.GameWorld != null && Misc.GameWorld.LootItems != null;
                 if (flag3)
                 {
                     this._gameLootContainers.Clear();
                     foreach (LootableContainer lootableContainer in Object.FindObjectsOfType <LootableContainer>())
                     {
                         Item item = \uE6E5.GetAllItems(lootableContainer.ItemOwner.RootItem, true).First <Item>();
                         this.LootItemRarity = LootItemRarity.Special;
                         foreach (Item lootItem in \uE6E5.GetAllItems(item, false))
                         {
                             bool flag4 = this.IsSpecialLootItem(lootItem);
                             bool flag5 = this.LootItemRarity != LootItemRarity.Special || flag4;
                             if (flag5)
                             {
                                 bool flag6 = !GameUtils.IsLootableContainerValid(lootableContainer) || Vector3.Distance(Misc.MainCamera.transform.position, lootableContainer.transform.position) > 500f;
                                 if (!flag6)
                                 {
                                     this._gameLootContainers.Add(new GameLootContainer(lootableContainer));
                                 }
                             }
                         }
                     }
                     this._nextLootContainerCacheTime = Time.time + ContainerEsp.CacheLootItemsInterval;
                 }
             }
             foreach (GameLootContainer gameLootContainer in this._gameLootContainers)
             {
                 bool flag7 = gameLootContainer != null;
                 if (flag7)
                 {
                     gameLootContainer.RecalculateDynamics();
                 }
             }
         }
     }
     catch
     {
     }
 }
예제 #2
0
 // Token: 0x06000101 RID: 257 RVA: 0x0000E388 File Offset: 0x0000C588
 public void Update()
 {
     try
     {
         bool superRare = Config.ESP.ItemEsp.SuperRare;
         if (superRare)
         {
             this.LootItemRarity = LootItemRarity.Special;
             bool flag = Time.time >= this._nextLootItemCacheTime && Misc.GameWorld != null && Misc.GameWorld.LootItems != null && Misc.LocalPlayer != null && !MonoBehaviourSingleton <PreloaderUI> .Instance.IsBackgroundBlackActive && Misc.MainCamera != null;
             if (flag)
             {
                 this._gameLootItems.Clear();
                 for (int i = 0; i < Misc.GameWorld.LootItems.Count; i++)
                 {
                     LootItem byIndex = Misc.GameWorld.LootItems.GetByIndex(i);
                     bool     flag2   = this.IsSpecialLootItem(byIndex);
                     bool     flag3   = this.LootItemRarity != LootItemRarity.Special || flag2;
                     if (flag3)
                     {
                         bool flag4 = GameUtils.IsLootItemValid(byIndex) && Vector3.Distance(Misc.MainCamera.transform.position, byIndex.transform.position) <= Misc.distance;
                         if (flag4)
                         {
                             this._gameLootItems.Add(new GameLootItem(byIndex));
                         }
                     }
                 }
                 this._nextLootItemCacheTime = Time.time + ItemEsp.CacheLootItemsInterval1;
             }
             foreach (GameLootItem gameLootItem in this._gameLootItems)
             {
                 gameLootItem.RecalculateDynamics();
             }
         }
     }
     catch
     {
     }
 }