MCPcopy Create free account
hub / github.com/assaultcube/AC / getmminfo

Function getmminfo

source/src/rendermodel.cpp:151–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149COMMAND(mapmodelreset, "");
150
151mapmodelinfo *getmminfo(int i) { return mapmodels.inrange(i) ? &mapmodels[i] : NULL; }
152
153COMMANDF(mapmodelslotname, "i", (int *idx) { result(mapmodels.inrange(*idx) ? mmshortname(mapmodels[*idx].name) : ""); }); // returns the model name that is configured in a certain slot
154COMMANDF(mapmodelslotbyname, "s", (char *name) // returns the slot(s) that a certain mapmodel is configured in

Callers 8

mmcollideFunction · 0.85
intersectFunction · 0.85
loopvFunction · 0.85
getcurrentmapconfigFunction · 0.85
save_worldFunction · 0.85
loopvFunction · 0.85
editinfoFunction · 0.85
loopvFunction · 0.85

Calls 1

inrangeMethod · 0.80

Tested by

no test coverage detected