mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-26 03:39:13 +01:00
Improve spawn spot randomization in multiplayer.
This commit is contained in:
parent
d77a7e4753
commit
538e3a84d7
@ -2718,7 +2718,7 @@ edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer )
|
|||||||
{
|
{
|
||||||
pSpot = g_pLastSpawn;
|
pSpot = g_pLastSpawn;
|
||||||
// Randomize the start spot
|
// 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" );
|
pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_deathmatch" );
|
||||||
if( FNullEnt( pSpot ) ) // skip over the null point
|
if( FNullEnt( pSpot ) ) // skip over the null point
|
||||||
pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_deathmatch" );
|
pSpot = UTIL_FindEntityByClassname( pSpot, "info_player_deathmatch" );
|
||||||
|
Loading…
Reference in New Issue
Block a user