MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aMatcenGroupASetEnableState

Function aMatcenGroupASetEnableState

scripts/orbital.cpp:217–228  ·  view source on GitHub ↗

$$ACTION Custom [e:Enable/Disable] level matcen group A aMatcenGroupASetEnableState Enable/disable matcen Enable or disable a matcen group, so it's capable of producing Parameters: Enable/Disable: whether the matcen is cabable of producing $$END */

Source from the content-addressed store, hash-verified

215$$END
216*/
217void aMatcenGroupASetEnableState(int state) {
218 int j;
219
220 if (!MatcenInfoInitialized) {
221 for (j = 0; j < NUM_MATCENS; j++)
222 matcen_info[j].matcen_id = Scrpt_FindMatcenName(matcen_info[j].matcen_name);
223 MatcenInfoInitialized = true;
224 }
225
226 for (j = 0; j < 4; j++)
227 aMatcenSetEnableState(state, matcen_info[j].matcen_id);
228}
229
230/*
231$$ACTION

Callers

nothing calls this directly

Calls 1

aMatcenSetEnableStateFunction · 0.85

Tested by

no test coverage detected