All pastes #495811 Raw Edit

as

public cpp v1 · immutable
·published 2007-05-18 22:39 UTC
rendered paste body
CBaseEntity* CHL2MP_Player::EntSelectSpawnPoint( void ){	CBaseEntity *pSpot = NULL;	CBaseEntity *pLastSpawnPoint = g_pLastSpawn;	edict_t		*player = edict();	const char *pSpawnpointName = "info_player_deathmatch";	if ( HL2MPRules()->IsTeamplay() == true )	{		if ( GetTeamNumber() == TEAM_COMBINE )		{			pSpawnpointName = "info_player_combine";			pLastSpawnPoint = g_pLastCombineSpawn;		}		else if ( GetTeamNumber() == TEAM_REBELS )		{			pSpawnpointName = "info_player_rebel";			pLastSpawnPoint = g_pLastRebelSpawn;		}		if ( gEntList.FindEntityByClassname( NULL, pSpawnpointName ) == NULL )		{			pSpawnpointName = "info_player_deathmatch";			pLastSpawnPoint = g_pLastSpawn;		}	}