From d1f25d24e2ecdb81ce1390c4f54578d1cfb2bbda Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 23 Mar 2006 18:54:06 +0000 Subject: [PATCH] Hexen2 class selection. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2132 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_single.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/engine/client/m_single.c b/engine/client/m_single.c index ac62212f2..4e666fcb2 100644 --- a/engine/client/m_single.c +++ b/engine/client/m_single.c @@ -154,6 +154,23 @@ void M_Menu_SinglePlayer_f (void) } else if (mgt == MGT_HEXEN2) { //h2 + cvar_t *pc; + static char *classlist[] = { + "Random", + "Barbarian", + "Crusader", + "Paladin", + "Assasin", + NULL + }; + static char *classvalues[] = { + "", + "1", + "2", + "3", + "4", + NULL + }; menu = M_CreateMenu(0); MC_AddPicture(menu, 16, 0, "gfx/menu/hplaque.lmp"); MC_AddCenterPicture(menu, 0, "gfx/menu/title1.lmp"); @@ -166,6 +183,10 @@ void M_Menu_SinglePlayer_f (void) MC_AddConsoleCommand (menu, 64, 96, "Load Game", "menu_load\n"); MC_AddConsoleCommand (menu, 64, 104, "Save Game", "menu_save\n"); + pc = Cvar_Get("cl_playerclass", "1", CVAR_USERINFO|CVAR_ARCHIVE, "Hexen2"); + if (pc) + MC_AddCvarCombo (menu, 64, 104+16, "Player class", pc, classlist, classvalues); + return; } else if (QBigFontWorks())