- Total number of caches is a parameter (2 - 10, default is 6)
- Caches to be destroyed is a parameter (1 - 10, default is 3)
Code: Select all
_cacheDistMin = (parameter); // Min distance for generating new cache
_cacheDistMax = _cacheDistMin*4; // Max distance for generating new cache
_cacheDistRand = 150; //Random factor for cache placement
_spawnMinSideDistance = 2500; // Min distance sides spawn from one another
_spawnMaxSideDistance = 4000; // Max distance sides spawn from one another
_spawnDefenderMinCacheDistance = 250; // Min distance for defender to spawn from any cache
_spawnDefenderMaxCacheDistance = _cacheDistMax + _cacheDistRand; // Max distance for defender to spawn from any cache
_spawnAttackerMinCacheDistance = 800; // Min distance for attacker to spawn from any cache