no collision and spawns

Im working on a gamemode and I have 2 questions. First I wanted to ask if there is a way to setup a team to only spawn on terrorist spawns and the other team only on counter terrorist spawns? And second of all how do you turn on collision with props? For some reason I can go trough those. Here is a screenshot showing this:

Nevermind then, I fixed both issues. I think I didn’t have CSS mounted and I solved the team spawns with this code:

function GM:PlayerSelectSpawn( ply )
    local spawns = ents.FindByClass( "info_player_counterterrorist" )
	local spawn = ents.FindByClass( "info_player_terrorist" )
    local random_entry = math.random(#spawn)
    local random_entry2 = math.random(#spawns)
	if ply:Team() == 1 then
		return spawn[random_entry]
	elseif ply:Team() == 2 then
		return spawns[random_entry2]

For people who are having the same issue, use this code!

A simpler way:

Somewhere that both the server and client will run it,

GM.TeamBased = true
team.SetSpawnPoint( 1, { "info_player_counterterrorist" } )
team.SetSpawnPoint( 2, { "info_player_terrorist" } )

The base gamemode handles selecting these spawns automatically so you wouldn’t need to override the hook.