All pastes #495927 Raw Edit

Mine

public cpp v1 · immutable
·published 2007-05-18 23:17 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";	const char *pExtraSpawnPoints[] = { "info_player_deathmatch", "info_player_counterterrorist", "info_player_axis", "info_player_allies", "info_player_terrorist" };	int iExtraIndex = 0;		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;		}		Msg ( "Count: %i\n", countof( pExtraSpawnPoints ) );				if ( gEntList.FindEntityByClassname( NULL, pSpawnpointName ) == NULL )		{			pSpawnpointName = "info_player_deathmatch";					pLastSpawnPoint = g_pLastSpawn;		}	}}