Scavs
Originally part of our extraction mod (which has since been broken up into modular systems), the intent was to have AI that could spawn with random loot.
Our system is not hard-coded. In fact, the loadout given to Scavs is based on the lootmap!
We introduced the TW_RandomInventoryComponent
which can be attached to a character of your choosing. Once attached, there's nothing further needed!

In the future, we'll look at spawn random loot without requiring the component.
spawnWithBackpackChance | Chance the AI will be given a backpack | 0.1 (10% chance) |
---|---|---|
spawnWithTwoWeaponsChance | Chance the AI will be given two weapons | 0.1 (10% chance) |
spawnWithHealChance | Chance the AI will be given healing items (whichever items are in the Heal category) | 0.25 (25% chance) |
spawnWithVestChance | Chance the AI will be given a vest | 0.3 (30% chance) |