Jump to content
  • 0

Loot container spawn chance


BetterDeadThanZed

Question

10 answers to this question

Recommended Posts

  • 0

The largest factor that controls if a building spawns loot when randomly selected is the:

"lootBias" found in "CfgBuildingLootPos" https://github.com/EpochModTeam/Epoch/blob/master/Sources/epoch_config/Configs/CfgBuildingLootPos.hpp the random chance is set to 30% for most buildings and can be set on a per building basis.

"limit" variable controls the max number of random loot objects per building that can spawn and can be set on a per building basis.

After that the mechanism that controls what loot objects spawn is based on the total loot positions a building has. For example, if you have a building that has 5 separate object positions each would have a 20% chance to spawn.

Link to comment
Share on other sites

  • 0

For my opinion, the old loot script was better.

Now the loot spawn random around the player, not in his walking direction.

If you walk over the map, you have nearly no chance to find a Building with loot, because it spawns with a chance of 3:4 beside or behind you.

Or am I wrong with this?

Link to comment
Share on other sites

  • 0

class Default
    {
        fridgePos[] = {};
        shelfPos[] = {};
        pelicanPos[] = {};
        wardrobePos[] = {};
        bedPos[] = {};
        couchPos[] = {};
        cookerPos[] = {};
        tablePos[] = {};
        lockerPos[] = {};
        toolRackPos[] = {};
        shoeboxPos[] = {};
        lootBias = 85;

        limit = 3;<<<<<< now awol what does limit 3 mean , is that the max amount of diff chairs stuff etc that will spawn in a house or can we say change this to like 6 or 7

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...