hey i got a little question:
i want to go through all clients and check a few things and if they pass the check then get their position
for (k = 0; k < level.numConnectedClients;k++) {
gclient_t *ftleader = &level.clients[level.sortedClients[k]];
if ( ( ftleader != client) && (ftleader->sess.sessionTeam == client->sess.sessionTeam) &&
(ftleader->ps.stats[STAT_PLAYER_CLASS] == PC_COVERTOPS) ) {
VectorCopy(ftleader->ps.origin,ftleader_pos); //vec3_t
}
}
could this work?