halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[TFC] Spawn bug

Open tehORiON opened this issue 13 years ago • 0 comments

In maps such as dustbowl where team spawn points transition as you progress in the map the following may happen.

If players have just transitioned from point A to point B, then all the spawn points at point A would have been disabled and the spawn points at point B would have been enabled. Now if all the spawn points at spawn B are 'occupied' when a player attempts to spawn, the game will for some reason select a disabled spawn point and reenable it making the player spawn backwards in the map. In reality it should just telefrag one of the players 'blocking' one of the spawn points. The game does a spherical check around the origin of the spawn entity point with a radius of 96.0 to check for players in this vicinity. Thus if spawn points are placed too close together a single player might block several spawns at the same time. And all spawn points might quickly get occupied.

I've mostly seen this on custom maps, as mappers usually don't know this and they might cluster many spawn points too close together. It does happen on crowded servers playing dustbowl though.

To save you a bit of time, the function "CBaseEntity::FindTeamSpawnPoint()" will select a valid spawn point and return it when a player is spawning. So the 'error' should be around there.

tehORiON avatar Apr 10 '13 18:04 tehORiON