]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud/hud_config.qc
Add a hook to save custom HUD cvars from a mutator
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud / hud_config.qc
index f2b23e39256217b9f33019b51c2e94bdd1e8b59a..c358cf6438a1f734fde5729995d2cf0e0682d47f 100644 (file)
@@ -226,6 +226,8 @@ void HUD_Panel_ExportCfg(string cfgname)
                        }
                        HUD_Write("\n");
                }
+               MUTATOR_CALLHOOK(HUD_WriteCvars);
+
                HUD_Write("menu_sync\n"); // force the menu to reread the cvars, so that the dialogs are updated
 
                LOG_INFOF(_("^2Successfully exported to %s! (Note: It's saved in data/data/)\n"), filename);