Dynamic spawn system

Dynamic Spawn System is a game mechanic in Estranged series. It allows for intelligent spawning of ammunition, health packs and batteries to the player.

Overview
The basic role of the system is to provide player with supplies when needed. This prevents a player from running into low ammunition situations in most cases.

Preparing the map
In order for the system to work, a special entity has to be placed on the map. The entity can be further set up to spawn for example only certain kinds of supplies, giving the developers and modders opportunity to tweak difficulty and balance.

How the entity works
When a player approaches it within certain range, it checks 3 different inventory states: ammunition, health and batteries. When either one of those states drops below certain value, a respective item is spawned. Each spawner can spawn only one item and is activated only once.