danielkrupinski / Osiris

Cross-platform game hack for Counter-Strike 2 with Panorama-based GUI.
MIT License
3.35k stars 960 forks source link

How can i make skinchanger use ct knife on t side? #2919

Closed cmd51 closed 3 years ago

cmd51 commented 3 years ago

help

SquidmarcHD commented 3 years ago

force the equip on t

SquidmarcHD commented 3 years ago

or just add it to the gameitems in initialize kits

SquidmarcHD commented 3 years ago

change this

        if (itemTypeName == "#CSGO_Type_Knife" && item->getRarity() == 6) {
            if (const auto image = item->getInventoryImage()) {
                skins.emplace_back(0, item->getWeaponId());
                gameItems.emplace_back(Type::Skin, 6, skins.size() - 1, interfaces->localize->findSafe(item->getItemBaseName()), image);
            }
        }

to this

        if (itemTypeName == "#CSGO_Type_Knife") {
            if (const auto image = item->getInventoryImage()) {
                skins.emplace_back(0, item->getWeaponId());
                gameItems.emplace_back(Type::Skin, 6, skins.size() - 1, interfaces->localize->findSafe(item->getItemBaseName()), image);
            }
        }

this will allow you to give yourself ct t and spectral shiv knife i think

SquidmarcHD commented 3 years ago

Unbenannt

SquidmarcHD commented 3 years ago

also remove the check for the equip

cmd51 commented 3 years ago

Thanks ❤️