Fixed class not selectable when dlc weapon is included
This commit is contained in:
parent
87ba0f58af
commit
dd07fbddf7
@ -11,11 +11,16 @@ namespace loot
|
|||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
utils::hook::detour loot_getitemquantity_hook;
|
||||||
|
|
||||||
|
int loot_getitemquantity_stub(const game::ControllerIndex_t controllerIndex, const game::eModes mode, const int itemId)
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
void set_dvars_on_startup()
|
void set_dvars_on_startup()
|
||||||
{
|
{
|
||||||
game::Dvar_SetFromStringByName("ui_enableAllHeroes", "1", true);
|
game::Dvar_SetFromStringByName("ui_enableAllHeroes", "1", true);
|
||||||
game::Dvar_SetFromStringByName("allItemsUnlocked", "1", true);
|
|
||||||
game::Dvar_SetFromStringByName("allItemsPurchased", "1", true);
|
|
||||||
game::Dvar_SetFromStringByName("ui_allLootUnlocked", "1", true);
|
game::Dvar_SetFromStringByName("ui_allLootUnlocked", "1", true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -26,6 +31,7 @@ namespace loot
|
|||||||
void post_unpack() override
|
void post_unpack() override
|
||||||
{
|
{
|
||||||
scheduler::once(set_dvars_on_startup, scheduler::pipeline::main);
|
scheduler::once(set_dvars_on_startup, scheduler::pipeline::main);
|
||||||
|
loot_getitemquantity_hook.create(0x141E82C90_g, loot_getitemquantity_stub);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user