/* =========== G_SelectLockSpawnPoint Try to find a spawn point for a team intermission otherwise use spectator intermission spawn. ============ */ gentity_t *G_SelectLockSpawnPoint( vec3_t origin, vec3_t angles , char const* intermission ) { gentity_t *spot; spot = G_PickRandomEntityOfClass( intermission ); if ( !spot ) { return G_SelectSpectatorSpawnPoint( origin, angles ); } VectorCopy( spot->s.origin, origin ); VectorCopy( spot->s.angles, angles ); return spot; }
/* =========== G_SelectHumanLockSpawnPoint Try to find a spawn point for human intermission otherwise use spectator intermission spawn. ============ */ gentity_t *G_SelectHumanLockSpawnPoint( vec3_t origin, vec3_t angles ) { gentity_t *spot; spot = G_PickRandomEntityOfClass( S_POS_HUMAN_INTERMISSION ); if ( !spot ) { return G_SelectSpectatorSpawnPoint( origin, angles ); } VectorCopy( spot->s.origin, origin ); VectorCopy( spot->s.angles, angles ); return spot; }