mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- added an option to disable the pickup screen flash.
This commit is contained in:
parent
15cbf4bae6
commit
2d320a2e86
3 changed files with 5 additions and 1 deletions
|
@ -23,6 +23,8 @@
|
|||
#include "serializer.h"
|
||||
|
||||
static FRandom pr_restore ("RestorePos");
|
||||
CVAR(Bool, r_pickupflash, true, CVAR_ARCHIVE);
|
||||
|
||||
|
||||
IMPLEMENT_CLASS(PClassInventory)
|
||||
|
||||
|
@ -1089,7 +1091,7 @@ void AInventory::Touch (AActor *toucher)
|
|||
if (player != NULL)
|
||||
{
|
||||
PlayPickupSound (player->mo);
|
||||
if (!(ItemFlags & IF_NOSCREENFLASH))
|
||||
if (!(ItemFlags & IF_NOSCREENFLASH) && r_pickupflash)
|
||||
{
|
||||
player->bonuscount = BONUSADD;
|
||||
}
|
||||
|
|
|
@ -1803,6 +1803,7 @@ DSPLYMNU_DIMCOLOR = "Dim color";
|
|||
DSPLYMNU_MOVEBOB = "View bob amount while moving";
|
||||
DSPLYMNU_STILLBOB = "View bob amount while not moving";
|
||||
DSPLYMNU_BOBSPEED = "Weapon bob speed";
|
||||
DSPLYMNU_PIFLASH = "Show pickup screen flash";
|
||||
|
||||
// HUD Options
|
||||
HUDMNU_TITLE = "HUD Options";
|
||||
|
|
|
@ -675,6 +675,7 @@ OptionMenu "VideoOptions"
|
|||
Option "$DSPLYMNU_STRETCHSKY", "r_stretchsky", "OnOff"
|
||||
Option "$DSPLYMNU_DRAWFUZZ", "r_drawfuzz", "Fuzziness"
|
||||
Slider "$DSPLYMNU_TRANSSOUL", "transsouls", 0.25, 1.0, 0.05, 2
|
||||
Option "$DSPLYMNU_PIFLASH", "r_pickupflash", "OnOff"
|
||||
Option "$DSPLYMNU_FAKECONTRAST", "r_fakecontrast", "Contrast"
|
||||
Option "$DSPLYMNU_ROCKETTRAILS", "cl_rockettrails", "RocketTrailTypes"
|
||||
Option "$DSPLYMNU_BLOODTYPE", "cl_bloodtype", "BloodTypes"
|
||||
|
|
Loading…
Reference in a new issue