From 538e3a84d748ce8619493eece871403f10ea3fbe Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:45:01 +0500 Subject: [PATCH] Improve spawn spot randomization in multiplayer. --- dlls/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/player.cpp b/dlls/player.cpp index 76f0ed7c..f08ac269 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -2718,7 +2718,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer ) { pSpot = g_pLastSpawn; // Randomize the start spot - for( int i = RANDOM_LONG( 1, 5 ); i > 0; i-- ) + for( int i = RANDOM_LONG( 1, 9 ); i > 0; i-- ) pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_deathmatch" ); if( FNullEnt( pSpot ) ) // skip over the null point pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_deathmatch" );