- optimized reverb settings.

Fixes #124
This commit is contained in:
Christoph Oelckers 2020-08-09 13:26:12 +02:00
parent a3a7a8f6be
commit 0492c5f4d3
2 changed files with 16 additions and 4 deletions

View file

@ -183,20 +183,31 @@ static ReverbContainer Underwater =
false
};
static ReverbContainer SewerPipe4 =
static ReverbContainer SewerPipe3 =
{
&Underwater,
"Sewer Pipe 2",
"Sewer Pipe 3",
0x1503,
true,
false,
{0,21, 1.7f, 0.80f, -1000, -1000, 0, 1.54f, 0.14f, 1.0f, 200, 0.014f, 0.0f,0.0f,0.0f, 1023, 0.021f, 0.0f,0.0f,0.0f, 0.250f, 0.00f, 0.25f, 0.000f, -5.0f, 5000.0f, 250.0f, 0.0f, 80.0f, 60.0f, 0x3f },
false
};
static ReverbContainer SewerPipe2 =
{
&SewerPipe3,
"Sewer Pipe 2",
0x1502,
true,
false,
{0,21, 1.7f, 0.80f, -1000, -1000, 0, 1.81f, 0.14f, 1.0f, 229, 0.014f, 0.0f,0.0f,0.0f, 1023, 0.021f, 0.0f,0.0f,0.0f, 0.250f, 0.00f, 0.25f, 0.000f, -5.0f, 5000.0f, 250.0f, 0.0f, 80.0f, 60.0f, 0x3f },
false
};
static ReverbContainer SewerPipe =
{
&SewerPipe4,
&SewerPipe2,
"Sewer Pipe",
0x1500,
true,

View file

@ -71,7 +71,8 @@ void FX_SetReverb(int strength)
{
// todo: optimize environments. The original "reverb" was garbage and not usable as reference.
if (strength < 64) strength = 0x1400;
else if (strength < 192) strength = 0x1503;
else if (strength < 180) strength = 0x1503;
else if (strength < 220) strength = 0x1502;
else strength = 0x1900;
LastReverb = strength;
ForcedEnvironment = S_FindEnvironment(strength);