NPC_KEY_OFFSET
input->layer_mdata.key = FIELD_GET(NPC_KEY_OFFSET, cfg);
key = FIELD_GET(NPC_KEY_OFFSET, cfg);