mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-17 00:58:15 +03:00
parent
bf8bda0583
commit
328a1d26fb
@ -676,7 +676,12 @@ void CBreakable::Die()
|
|||||||
|
|
||||||
// The more negative pev->health, the louder
|
// The more negative pev->health, the louder
|
||||||
// the sound should be.
|
// the sound should be.
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
fvol = RANDOM_FLOAT(0.85f, 1.0f) + (Q_abs(pev->health) / 100.0f);
|
||||||
|
#else
|
||||||
fvol = RANDOM_FLOAT(0.85f, 1.0f) + (Q_abs(int(pev->health)) / 100.0f);
|
fvol = RANDOM_FLOAT(0.85f, 1.0f) + (Q_abs(int(pev->health)) / 100.0f);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (fvol > 1.0f)
|
if (fvol > 1.0f)
|
||||||
fvol = 1.0f;
|
fvol = 1.0f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user