Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Гайд How to add keychain/medals/stickers in inventory

I need help to fix the hud icon in my inventory changer . Its berserk base. Please help me iq like bread
code for update all hud icon:
Expand Collapse Copy
void pCEconItemDescription() { *reinterpret_cast<uintptr_t*>(reinterpret_cast<uintptr_t>(this) + 0x200) = 0; }

void update_hud(C_EconItemView* pWeaponItemView) {
    HudWeaponSelection* pCCSGO_HudWeaponSelection =
        reinterpret_cast<HudWeaponSelection*>(CCSGOHudElement::Get().Find("HudWeaponSelection"));
    if (pCCSGO_HudWeaponSelection) {
        int hud_icon_count = *(int*)(pCCSGO_HudWeaponSelection - 0x98 + 0x50);
        pWeaponItemView->pCEconItemDescription();  // C_EconItemView + 0x200 = 0
        for (int i = 0; i < hud_icon_count; i++) pCCSGO_HudWeaponSelection->Clear(0, i);
    }
}
 
code for update all hud icon:
Expand Collapse Copy
void pCEconItemDescription() { *reinterpret_cast<uintptr_t*>(reinterpret_cast<uintptr_t>(this) + 0x200) = 0; }

void update_hud(C_EconItemView* pWeaponItemView) {
    HudWeaponSelection* pCCSGO_HudWeaponSelection =
        reinterpret_cast<HudWeaponSelection*>(CCSGOHudElement::Get().Find("HudWeaponSelection"));
    if (pCCSGO_HudWeaponSelection) {
        int hud_icon_count = *(int*)(pCCSGO_HudWeaponSelection - 0x98 + 0x50);
        pWeaponItemView->pCEconItemDescription();  // C_EconItemView + 0x200 = 0
        for (int i = 0; i < hud_icon_count; i++) pCCSGO_HudWeaponSelection->Clear(0, i);
    }
}
gj naming c_utl_vector<c_cs_hud_element>::at just like CCSGOHudElement::Get().Find..
c_cs_hud_element_weapon_selection - 0x48 is c_cs_hud_weapon_selection::m_estimated_hud_count (which is c_cs_hud_element_weapon_selection - 0x48 in ur case)
c_econ_item_view + 0x200 is c_econ_item_view::m_should_full_update_next_frame
one thing that u r not wrong - c_cs_hud_weapon_selection::clear
enjoy ur time :)
 
gj naming c_utl_vector<c_cs_hud_element>::at just like CCSGOHudElement::Get().Find..
c_cs_hud_element_weapon_selection - 0x48 is c_cs_hud_weapon_selection::m_estimated_hud_count (which is c_cs_hud_element_weapon_selection - 0x48 in ur case)
c_econ_item_view + 0x200 is c_econ_item_view::m_should_full_update_next_frame
one thing that u r not wrong - c_cs_hud_weapon_selection::clear
enjoy ur time :)
so bored after any msg about naming my functions....
 
Назад
Сверху Снизу