public void FixedUpdate() { if (Input.GetKeyDown(Settings.ItemCategory)) { if ((int)LootItemLabelState == Enum.GetNames(typeof(LootItemLabelState)).Length - 1) { LootItemLabelState = LootItemLabelState.Disabled; } else { LootItemLabelState++; } } if (Input.GetKeyDown(KeyCode.DownArrow) && LootItemLabelState != LootItemLabelState.Disabled) { LootItemLabelState--; } if ((Settings.DrawLootItems || Settings.DrawBodyLoot || Settings.DrawCorpse) && GameScene.IsLoaded() && GameScene.InMatch() && Main.LocalPlayer != null && !MonoBehaviourSingleton <EFT.UI.PreloaderUI> .Instance.IsBackgroundBlackActive) { if (Time.time >= _nextLootItemCacheTime && Main.GameWorld != null && Main.GameWorld.LootItems != null && Main.MainCamera != null) { _gameLootItems.Clear(); for (int i = 0; i < Main.GameWorld.LootItems.Count; i++) { LootItem byIndex = Main.GameWorld.LootItems.GetByIndex(i); if (GameUtils.IsLootItemValid(byIndex) && Vector3.Distance(Main.MainCamera.transform.position, byIndex.transform.position) <= Settings.DrawLootItemsDistance) { _gameLootItems.Add(new GameLootItem(byIndex)); } } _nextLootItemCacheTime = Time.time + CacheLootItemsInterval; } foreach (GameLootItem gameLootItem in _gameLootItems) { gameLootItem.RecalculateDynamics(); } } }
public void Start() { LootItemLabelState = LootItemLabelState.Special; SpecialLootItems = new List <string> { "LEDX", "Red", "Paracord", "Keycard", "Virtex", "Defibrillator", "0.2BTC", "Prokill", "Flash drive", "Violet", "Blue", "RB - PSP2", "RB - MP22", "RB - GN", "RR", "T - 7", "Green", "San.301", "Tetriz", "Dfuel", "Blue KC", "Black KC", "Violet keycard", "Blue keycard", "San.220", "KIBA", "Lion", "Clock", "Teapot", "Vase", "REAP-IR", "WCase", "SG-C10", "Fcond", "Checkpoint", "Reagent", "Lk.MO", "Intelligence", "Beardoil", "Book", "#FireKlean", "Rotex 2", "Gyroscope", "Gen4 HMK", "Ophthalmoscope", "AmmoCase", "MCase", "Keytool", "Roler", "M995", "Factory key", "BS", "Graphics card", "KEK", "Grenades", "Cordura", "Ripstop", "Aramid", "T H I C C", "OPZ", "LED X", "AESA" }; }