diff --git a/base/liblist.gam b/base/liblist.gam index 3bb28712..80b22983 100644 --- a/base/liblist.gam +++ b/base/liblist.gam @@ -45,6 +45,8 @@ pkgfile "" chatroom "lobby" // which file is to view when clicking the readme menu button readme "readme.txt" +// which map to use as a level background +menumap "test_dlights" // what movie to play when starting the game introvideo "" // whether to use a steam styled resource background cut into multiple parts diff --git a/src/menu-fn/defs.h b/src/menu-fn/defs.h index 851c3bd7..58c8067a 100644 --- a/src/menu-fn/defs.h +++ b/src/menu-fn/defs.h @@ -102,6 +102,7 @@ typedef struct string trainingmap; string fallback_dir; string chatroom; + string menumap; string introvideo; int steambg; gi_type info_type; diff --git a/src/menu-fn/entry.qc b/src/menu-fn/entry.qc index cf43ad37..ff49092e 100644 --- a/src/menu-fn/entry.qc +++ b/src/menu-fn/entry.qc @@ -160,6 +160,11 @@ m_init(void) localcmd(strcat("playvideo ", videofile, "\n")); } } + + if (games[gameinfo_current].menumap != "") { + string mapname = games[gameinfo_current].menumap; + localcmd(strcat("map_background ", mapname, "\n")); + } } /* called upon vid_reload, vid_restart, but not menu init/restart */ diff --git a/src/menu-fn/m_customgame.qc b/src/menu-fn/m_customgame.qc index c2c6dd1f..c46a3796 100644 --- a/src/menu-fn/m_customgame.qc +++ b/src/menu-fn/m_customgame.qc @@ -235,6 +235,9 @@ customgame_liblist_parse(int id, string strKey, string strValue) case "readme": games[id].readme = strValue; break; + case "menumap": + games[id].menumap = strValue; + break; case "introvideo": games[id].introvideo = strValue; break;