Example #1
0
File: p_client.c Project: ZwS/qudos
edict_t *SelectDeathmatchSpawnPoint (void)
{
	if ( (int)(dmflags->value) & DF_SPAWN_FARTHEST)
		return SelectFarthestDeathmatchSpawnPoint ();
	else
		return SelectRandomDeathmatchSpawnPoint ();
}
Example #2
0
//=================
//=================
void Tag_Respawn (edict_t *ent)
{
	edict_t	*spot;

	spot = SelectFarthestDeathmatchSpawnPoint();
	if(spot == NULL)
	{
//		gi.dprintf("No open spawn point, waiting...\n");
		ent->nextthink = level.time + 1;
		return;
	}

//	gi.dprintf("Relocating\n");

	VectorCopy(spot->s.origin, ent->s.origin);
	gi.linkentity(ent);
}