Killing Floor:Known Issues & Bugs

From Tripwire Interactive Wiki
Revision as of 13:23, 2 October 2012 by Benjamin (talk | contribs) (Created page with "==ZombieVolume ''bTryAllSpawns'' bug== ZombieVolume, line 149: <blockquote><pre>if( bTryAllSpawns ) { // Try spawning in all the points NumTries = SpawnPos.Length; } else ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ZombieVolume bTryAllSpawns bug

ZombieVolume, line 149:

if( bTryAllSpawns )
{
	// Try spawning in all the points
	NumTries = SpawnPos.Length;
}
else
{
	// Try spawning 3 times in 3 dif points.
	NumTries = 3;
}


for( j=0; j<NumTries; j++ )
{
	TrySpawnPoint = SpawnPos[Rand(SpawnPos.Length)];


This code picks from a random spawn point each time, but doesn't exclude already-tried ones. It means it may waste attempts, and the 'bTryAllSpawns' flag will not work.