This will add custom assets to your level using BeardLib. No Hooks required.
(Asset like the ones you see in the loadout screen, like Grenade Case or Expert Driver.)
Your custom asset goes into the <assets> tag inside your <level> tag. Like this:
The tag itself is the ID for your new asset. For example, if your asset is named "extra_medic_bag", you write it like this:
The string ID for the name of your asset. Needs to be localized.
Overkill usually uses "menu_asset_asset id".
The string ID for the description in the "Are You Sure?" pop-up when buying the asset. Needs to be localized.
Overkill usually uses "menu_asset_asset id_desc".
Not needed if your asset is unlocked by default.
The path to your texture file. Needs to be added via AddFiles first.
List with all the level IDs that should have your asset available. There isn't really a point to add any levels other than your own custom level.
<value_node value="your level id"/>
any / all
Set to "any" if you want your asset to be unlockable with any of the unlock methods. Defaults to having all the requirements be necessary.
Set to "true" if you want your asset to be visible even if you can't unlock it.
When testing, putting a dlc_lock while not having visible_if_locked will hide the asset completely if the dlc is not owned.
This is required to be set to "true". Without it your asset will show up as a unusable Mystery Asset, which seems to be a cut feature as it's missing a localized string.
Can be any value.
Locks your asset so that players have to pay spending cash to unlock it.
The cost ingame is calculated as follows:
your value + (your value * pc_multiplier) + (your value * risk_multiplier) More details
Locks your asset so that only players who have the specified skill can buy it.
upgrade="" ID of the skill
Needs more testing.
Locks your asset so that only players who own the specified DLC can buy it.
Theoretically every DLC found in the dlctweakdata could be used, however almost all of them need custom localization.
The 2 DLC used for this by Overkill are "gage_pack" for Grenade Cases and "gage_pack_snp" for vantage points.
There are more parameters listed in the assetstweakdata.lua, but most of them are not really important.