associate cac item_id with cg_unlockall_cac_slots
This commit is contained in:
parent
b6bc9e6fa4
commit
d069df0c86
@ -50,13 +50,19 @@ namespace loot
|
||||
|
||||
int liveinventory_getitemquantity_stub(const game::ControllerIndex_t controller_index, const int item_id)
|
||||
{
|
||||
// Item id's for extra CaC slots, CWL camo's and paid specialist outfits
|
||||
// Item id's for CWL camo's and paid specialist outfits
|
||||
if (dvar_cg_unlockall_loot->current.value.enabled && (item_id == 99003 || item_id >= 99018 && item_id <= 99021 || item_id == 99025 ||
|
||||
item_id >= 90047 && item_id <= 90064))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Item id for extra CaC slots
|
||||
if (dvar_cg_unlockall_cac_slots->current.value.enabled && (item_id == 99003))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
return liveinventory_getitemquantity_hook.invoke<int>(controller_index, item_id);
|
||||
}
|
||||
|
||||
@ -205,7 +211,7 @@ namespace loot
|
||||
{
|
||||
game::Dvar_SetFromStringByName("ui_enableAllHeroes", "1", true);
|
||||
}
|
||||
}, scheduler::pipeline::dvars_loaded);
|
||||
}, scheduler::pipeline::dvars_loaded);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user