[HL25] Backport geiger counter changes

This commit is contained in:
Joël Troch 2024-08-28 10:00:33 +02:00
parent 952831ccd3
commit 87ad6dedd1

View file

@ -68,10 +68,14 @@ bool CHudGeiger::Draw(float flTime)
int rg[3];
int i;
if (m_iGeigerRange <= 800 && m_iGeigerRange > 0)
if (m_iGeigerRange < 1000 && m_iGeigerRange > 0)
{
// peicewise linear is better than continuous formula for this
if (m_iGeigerRange > 600)
if (m_iGeigerRange > 800)
{
pct = 0; // Con_Printf ( "range > 800\n");
}
else if (m_iGeigerRange > 600)
{
pct = 2;
flvol = 0.4; //Con_Printf ( "range > 600\n");