Guest User

Untitled

a guest
Sep 11th, 2019
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool GetItemName(std::string name, std::string* itemName) {
  2.  
  3. std::string matches[120] = { "BP_WEP_Machete_Pickup_C", "BP_WEP_Sickle_Pickup_C", "BP_WEP_Pan_Pickup_C", "BP_WEP_Cowbar_Pickup_C", "BP_ShotGun_S1897_Wrapper_C", "BP_ShotGun_S686_Wrapper_C", "BP_ShotGun_SawedOff_Wrapper_C", "BP_ShotGun_S12K_Wrapper_C", "BP_Sniper_Kar98k_Wrapper_C", "BP_Sniper_M24_Wrapper_C", "BP_Sniper_Mini14_Wrapper_C", "BP_Sniper_MK14_Wrapper_C", "BP_Sniper_AWM_Wrapper_C", "BP_Sniper_Vss_Wrapper_C", "BP_Sniper_SKS_Wrapper_C", "BP_Sniper_Win94_Wrapper_C", "BP_Rifle_M416_Wrapper_C", "BP_Rifle_Groza_Wrapper_C", "BP_Rifle_AUG_Wrapper_C", "BP_Rifle_SCAR_Wrapper_C", "BP_Rifle_AKM_Wrapper_C", "BP_Rifle_M16A4_Wrapper_C", "BP_Other_CrossBow_Wrapper_C", "BP_Other_DP28_Wrapper_C", "BP_Pistol_R1895_Wrapper_C", "BP_Pistol_P92_Wrapper_C", "BP_Pistol_R45_Wrapper_C", "BP_Pistol_P1911_Wrapper_C", "BP_Pistol_P18C_Wrapper_C", "BP_MachineGun_UMP9_Wrapper_C", "BP_MachineGun_Uzi_Wrapper_C", "BP_MachineGun_Vector_Wrapper_C", "BP_MachineGun_TommyGun_Wrapper_C", "BP_QK_Mid_Compensator_Pickup_C", "BP_QK_Large__Compensator_Pickup_C", "BP_QK_Sniper_Compensator_Pickup_C", "BP_MZJ_QX_Pickup_C", "BP_MZJ_HD_Pickup_C", "BP_MZJ_2X_Pickup_C", "BP_MZJ_4X_Pickup_C", "BP_MZJ_8X_Pickup_C", "BP_DJ_Small_Q_Pickup_C", "BP_DJ_Small_E_Pickup_C", "BP_DJ_Small_EQ_Pickup_C", "BP_DJ_Mid_EQ_Pickup_C", "BP_DJ_Mid_Q_Pickup_C", "BP_DJ_Mid_E_Pickup_C", "BP_DJ_Large_EQ_Pickup_C", "BP_DJ_Large_E_Pickup_C", "BP_DJ_Large_Q_Pickup_C", "BP_DJ_Sniper_EQ_Pickup_C", "BP_DJ_Sniper_E_Pickup_C", "BP_DJ_Sniper_Q_Pickup_C", "BP_WB_Vertical_Pickup_C", "BP_WB_Angled_Pickup_C", "BP_QT_A_Pickup_C", "BP_QT_Sniper_Pickup_C", "BP_QK_Small_FlashHider_Pickup_C", "PlayerDeadInventoryBox_C", "BP_QK_Mid_FlashHider_Pickup_C", "BP_QK_Large_FlashHider_Pickup_C", "BP_QK_Sniper_FlashHider_Pickup_C", "BP_QK_Small_Suppressor_Pickup_C", "BP_QK_Mid_Suppressor_Pickup_C", "BP_QK_Large_Suppressor_Pickup_C", "BP_QK_Sniper_Suppressor_Pickup_C", "BP_ZDD_Shotgun_Pickup_C", "BP_QK_Choke_Pickup_C", "BP_QT_UZI_Pickup_C", "BP_Grenade_Stun_Weapon_Wrapper_C", "BP_Grenade_Shoulei_Weapon_Wrapper_C", "BP_Grenade_Smoke_Weapon_Wrapper_C", "BP_Ammo_Bolt_Pickup_C", "BP_Ammo_300Magnum_Wrapper_C", "BP_Ammo_762mm_Pickup_C", "BP_Ammo_556mm_Pickup_C", "BP_Ammo_12Guage_Pickup_C", "BP_Ammo_45ACP_Pickup_C", "BP_Ammo_9mm_Pickup_C", "BP_PlaneCharacter_C", "BP_AirDropPlane_C", "BP_AirDropBox_C", "PickUp_BP_Armor_Lv1_C", "PickUp_BP_Armor_Lv2_C", "PickUp_BP_Armor_Lv3_C", "PickUp_BP_Bag_Lv1_C", "PickUp_BP_Bag_Lv2_C", "PickUp_BP_Bag_Lv3_C", "PickUp_BP_Helmet_Lv1_C", "PickUp_BP_Helmet_Lv2_C", "PickUp_BP_Helmet_Lv3_C", "Injection_Pickup_C", "Firstaid_Pickup_C", "FirstAidbox_Pickup_C", "Pills_Pickup_C", "Drink_Pickup_C", "Bandage_Pickup_C" };
  4. std::string ret[120] = { "Machete", "Sickle", "Pan", "Cowbar", "1897", "S868", "SawedOff", "S12K", "Kar98K", "M24", "Mini14", "Mk14", "AWM", "Vss", "SKS", "Win94", "M416", "Groza", "AUG", "SCAR", "AKM", "M16A4", "CrossBow", "DP28", "R1895 Pistol", "P92 Pistol", "R45 Pistol", "P1911 Pistol", "P18C Pistol", "UMP9", "UZI", "Vector", "TommyGun", "BP QK Mid", "BP QK Large", "BP_QK_Sniper Compensator", "BP_MZJ_QX", "BP_MZJ_HD", "2x Scope", "4x Scope", "8x Scope", "Pistol QD", "Pistol EX", "Pistol EX-QD", "SMG EX-QD", "SMG QD", "SMG EX", "Rifle EX-QD", "Rifle EX", "Rifle QD", "Sniper EX-QD", "Sniper EX", "Sniper QD", "Vertical Grip", "Triangle Grip", "Rifle ", "Sniper ", "istol Flash Hider", "Player Loot", "SMG Flash Hider", "Rifle Flash Hider", "Sniper Flash Hider", "Pistol Suppressor", "SMG Suppressor", "Rifle Supressor", "Sniper Suppressor", "Bullet loop", "SG Choke", "UZI Rear Bracket", "FlashBang", "Grenade", "Smoke Grenade", "Arrow", "AWM Ammo", "7.62 Ammo", "5.56 Ammo", "SG Ammo", "45 Ammo", "9MM Ammo", "Freight airplane", "AirDrop", "Supply", "Armor 1", "Armor 2", "Armor 3", "Bag 1", "Bag 2", "Bag 3", "Helmet 1", "Helmet 2", "Helmet 3", "Adrenaline", "First Aid", "Med Kit", "Pills", "Soda", "Bandage" };
  5. for (int i = 0; i < 120; i++) {
  6. if (name == matches[i]) {
  7. *itemName = ret[i];
  8. return true;
  9. }
  10. }
  11. return false;
  12. }
RAW Paste Data