Created
February 25, 2020 16:09
-
-
Save ahmetabdi/2ac4053790bf7887391739295fdbd0ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void WeaponsESP() | |
{ | |
foreach (LootItem lootItem in this._lootItems) | |
{ | |
bool flag = lootItem == null; | |
if (flag) | |
{ | |
break; | |
} | |
bool flag2 = lootItem.name == null; | |
if (flag2) | |
{ | |
break; | |
} | |
bool flag3 = lootItem.name == string.Empty; | |
if (flag3) | |
{ | |
break; | |
} | |
bool flag4 = lootItem.name.Contains("weapon_hk_416a5_556x45_container") || lootItem.name.Contains("weapon_remington_model_700_762x51_container") || lootItem.name.Contains("weapon_hk_mp5_navy3_9x19_container") || lootItem.name.Contains("weapon_colt_m4a1_556x45_container") || lootItem.name.Contains("weapon_tochmash_vss_9x39_container") || lootItem.name.Contains("weapon_dsa_sa58_762x51_container") || lootItem.name.Contains("weapon_tochmass_val_9x39_container") || lootItem.name.Contains("weapon_hk_mp7a1_46x30_container") || lootItem.name.Contains("weapon_hk_mp7a2_46x30_container") || lootItem.name.Contains("weapon_springfield_m1a_762x51_container") || lootItem.name.Contains("weapon_izhmash_rpk16_545x39_container") || lootItem.name.Contains("weapon_izhmash_ak105_545x39_container") || lootItem.name.Contains("weapon_izhmash_ak74_545x39_container") || lootItem.name.Contains("weapon_izhmash_ak74m_545x39_container") || lootItem.name.Contains("weapon_izhmash_ak74n_545x39_container") || lootItem.name.Contains("weapon_izhmash_aks74u_545x39_container") || lootItem.name.Contains("weapon_izhmash_aks74_545x39_container") || lootItem.name.Contains("weapon_izhmash_aks74n_545x39_container") || lootItem.name.Contains("weapon_izhmash_aks74ub_545x39_container") || lootItem.name.Contains("weapon_izhmash_aks74un_545x39_container") || lootItem.name.Contains("weapon_izhmash_ak101_556x45_container") || lootItem.name.Contains("weapon_izhmash_ak102_556x45_container") || lootItem.name.Contains("weapon_izhmash_ak103_762x39_container") || lootItem.name.Contains("weapon_izhmash_ak104_762x39_container") || lootItem.name.Contains("weapon_izhmash_sv-98_762x54r_container") || lootItem.name.Contains("weapon_lobaev_dvl-10_308_container") || lootItem.name.Contains("weapon_adar_2-15_556x45_container") || lootItem.name.Contains("weapon_remington_r11_rsass_762x51_container"); | |
if (flag4) | |
{ | |
float num = Vector3.Distance(Camera.main.transform.position, lootItem.transform.position); | |
Vector3 vector; | |
vector..ctor(Camera.main.WorldToScreenPoint(lootItem.transform.position).x, Camera.main.WorldToScreenPoint(lootItem.transform.position).y, Camera.main.WorldToScreenPoint(lootItem.transform.position).z); | |
Vector3 vector2; | |
vector2..ctor(Camera.main.WorldToScreenPoint(lootItem.transform.position).x, Camera.main.WorldToScreenPoint(lootItem.transform.position).y, Camera.main.WorldToScreenPoint(lootItem.transform.position).z); | |
bool flag5 = num <= this._maxLootDrawingDistance && (double)vector2.z > 0.01; | |
if (flag5) | |
{ | |
GUI.color = Color.cyan; | |
int num2 = (int)num; | |
string name = lootItem.name; | |
string text = string.Format("{0}", name); | |
GUI.Label(new Rect(vector2.x - 50f, (float)Screen.height - vector2.y, 100f, 50f), text); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment