From 46d05bc2437a6daea845411245424c0d0bab1b21 Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 22 Dec 2012 06:19:30 +0000 Subject: [PATCH] added GAME_QUOTH to use the hipnotic hud and workarounds with the quoth folder instead of hipnotic git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11865 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_parse.c | 2 +- cmd.c | 2 +- common.c | 1 + common.h | 1 + host_cmd.c | 2 +- menu.c | 2 ++ sbar.c | 10 +++++----- sv_main.c | 2 +- 8 files changed, 13 insertions(+), 9 deletions(-) diff --git a/cl_parse.c b/cl_parse.c index 506e53f3..53bc140c 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -2210,7 +2210,7 @@ static void CL_ParseClientdata (void) cl.stats[STAT_NAILS] = MSG_ReadByte(&cl_message); cl.stats[STAT_ROCKETS] = MSG_ReadByte(&cl_message); cl.stats[STAT_CELLS] = MSG_ReadByte(&cl_message); - if (gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE || gamemode == GAME_NEXUIZ) + if (gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE || gamemode == GAME_QUOTH || gamemode == GAME_NEXUIZ) cl.stats[STAT_ACTIVEWEAPON] = (1<1)) + if (!(gamemode == GAME_HIPNOTIC || gamemode == GAME_QUOTH) || (i>1)) Sbar_DrawPic (192 + i*16, -16, sb_items[i]); } //MED 01/04/97 added hipnotic items // hipnotic items - if (gamemode == GAME_HIPNOTIC) + if (gamemode == GAME_HIPNOTIC || gamemode == GAME_QUOTH) { for (i=0 ; i<2 ; i++) if (cl.stats[STAT_ITEMS] & (1<<(24+i))) @@ -1636,7 +1636,7 @@ void Sbar_Draw (void) // keys (hipnotic only) //MED 01/04/97 moved keys here so they would not be overwritten - if (gamemode == GAME_HIPNOTIC) + if (gamemode == GAME_HIPNOTIC || gamemode == GAME_QUOTH) { if (cl.stats[STAT_ITEMS] & IT_KEY1) Sbar_DrawPic (209, 3, sb_items[0]); diff --git a/sv_main.c b/sv_main.c index 14ae253c..64a29138 100644 --- a/sv_main.c +++ b/sv_main.c @@ -2210,7 +2210,7 @@ void SV_WriteClientdataToMessage (client_t *client, prvm_edict_t *ent, sizebuf_t MSG_WriteByte (msg, stats[STAT_NAILS]); MSG_WriteByte (msg, stats[STAT_ROCKETS]); MSG_WriteByte (msg, stats[STAT_CELLS]); - if (gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE || gamemode == GAME_NEXUIZ) + if (gamemode == GAME_HIPNOTIC || gamemode == GAME_ROGUE || gamemode == GAME_QUOTH || gamemode == GAME_NEXUIZ) { for (i = 0;i < 32;i++) if (stats[STAT_ACTIVEWEAPON] & (1<