new const MAXENTS = get_global_int(GL_maxEntities) for(new ent = 1; ent < MAXENTS; ent++) { if (!is_valid_ent(ent)) continue // check model here }