SERVER: Use fixed spawn points for sys_testmode

This commit is contained in:
MotoLegacy 2025-03-01 21:40:24 -08:00
parent 8e0a7d6dbc
commit a5b70d7480

View file

@ -840,6 +840,16 @@ void() Player_PickSpawnPoint =
entity spawn_point = world;
float found_viable_spawn = false;
#ifndef FTE
// Eliminate random spawn points during automated testing.
if (cvar("sys_testmode") != 0) {
spawn_point = find(world, classname, SPAWN_1_CLASS);
found_viable_spawn = true;
}
#endif // FTE
// Assign a location
while(!found_viable_spawn) {
float index = random();