| 159 | }); |
| 160 | |
| 161 | void mapmodelslotusage(int *n) // returns all entity indices that contain a mapmodel of slot n |
| 162 | { |
| 163 | string res = ""; |
| 164 | loopv(ents) if(ents[i].type == MAPMODEL && ents[i].attr2 == *n) concatformatstring(res, "%s%d", i ? " " : "", i); |
| 165 | result(*res ? res : (mapmodels.inrange(*n) && (mapmodels[*n].flags & MMF_REQUIRED) ? " " : res)); |
| 166 | } |
| 167 | COMMAND(mapmodelslotusage, "i"); |
| 168 | |
| 169 | void deletemapmodelslot(int *n, char *opt) // delete mapmodel slot - only if unused or "purge" is specified |
nothing calls this directly
no test coverage detected