- added menu entries for HUD flash options.

SVN r3614 (trunk)
This commit is contained in:
Christoph Oelckers 2012-05-01 18:20:04 +00:00
parent 75dc6cb0b2
commit 5dbf486806
4 changed files with 26 additions and 7 deletions

View file

@ -89,7 +89,8 @@ float BaseBlendA;
CVAR (Int, paletteflash, 0, CVAR_ARCHIVE) CVAR (Int, paletteflash, 0, CVAR_ARCHIVE)
CVAR (Flag, pf_hexenweaps, paletteflash, PF_HEXENWEAPONS) CVAR (Flag, pf_hexenweaps, paletteflash, PF_HEXENWEAPONS)
CVAR (Flag, pf_specialdamage, paletteflash, PF_SPECIALDAMAGE) CVAR (Flag, pf_poison, paletteflash, PF_POISON)
CVAR (Flag, pf_ice, paletteflash, PF_ICE)
CVAR (Flag, pf_hazard, paletteflash, PF_HAZARD) CVAR (Flag, pf_hazard, paletteflash, PF_HAZARD)
// Stretch status bar to full screen width? // Stretch status bar to full screen width?

View file

@ -153,7 +153,7 @@ void V_AddPlayerBlend (player_t *CPlayer, float blend[4], float maxinvalpha, int
if (CPlayer->poisoncount) if (CPlayer->poisoncount)
{ {
cnt = MIN (CPlayer->poisoncount, 64); cnt = MIN (CPlayer->poisoncount, 64);
if (paletteflash & PF_SPECIALDAMAGE) if (paletteflash & PF_POISON)
{ {
V_AddBlend(44/255.f, 92/255.f, 36/255.f, ((cnt + 7) >> 3) * 0.1f, blend); V_AddBlend(44/255.f, 92/255.f, 36/255.f, ((cnt + 7) >> 3) * 0.1f, blend);
} }
@ -182,7 +182,7 @@ void V_AddPlayerBlend (player_t *CPlayer, float blend[4], float maxinvalpha, int
if (CPlayer->mo->DamageType == NAME_Ice) if (CPlayer->mo->DamageType == NAME_Ice)
{ {
if (paletteflash & PF_SPECIALDAMAGE) if (paletteflash & PF_ICE)
{ {
V_AddBlend(0.f, 0.f, 224/255.f, 0.5f, blend); V_AddBlend(0.f, 0.f, 224/255.f, 0.5f, blend);
} }

View file

@ -96,8 +96,9 @@ EXTERN_CVAR (Int, paletteflash)
enum PaletteFlashFlags enum PaletteFlashFlags
{ {
PF_HEXENWEAPONS = 1, PF_HEXENWEAPONS = 1,
PF_SPECIALDAMAGE = 2, PF_POISON = 2,
PF_HAZARD = 4, PF_ICE = 4,
PF_HAZARD = 8,
}; };
class player_t; class player_t;

View file

@ -726,6 +726,18 @@ OptionValue Crosshairs
// will be filled in from the XHAIRS lump // will be filled in from the XHAIRS lump
} }
OptionValue ZDoomHexen
{
0.0, "ZDoom"
1.0, "Hexen"
}
OptionValue ZDoomStrife
{
0.0, "ZDoom"
1.0, "Strife"
}
OptionMenu "HUDOptions" OptionMenu "HUDOptions"
{ {
Title "HUD Options" Title "HUD Options"
@ -743,6 +755,11 @@ OptionMenu "HUDOptions"
Option "Nametag color", "nametagcolor", "TextColors", "displaynametags" Option "Nametag color", "nametagcolor", "TextColors", "displaynametags"
Option "Stretch status bar", "st_scale", "OnOff" Option "Stretch status bar", "st_scale", "OnOff"
Option "Use old ouch mug shot formula", "st_oldouch", "OnOff" Option "Use old ouch mug shot formula", "st_oldouch", "OnOff"
StaticText " "
Option "Hexen weapon flashes", "pf_hexenweaps", "ZDoomHexen"
Option "Poison damage flashes", "pf_poison", "ZDoomHexen"
Option "Ice death flashes", "pf_ice", "ZDoomHexen"
Option "Poison Buildup flashes", "pf_hazard", "ZDoomStrife"
} }
//------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------