mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45:41 +03:00
parent
bf8bda0583
commit
328a1d26fb
@ -676,7 +676,12 @@ void CBreakable::Die()
|
||||
|
||||
// The more negative pev->health, the louder
|
||||
// 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);
|
||||
#endif
|
||||
|
||||
if (fvol > 1.0f)
|
||||
fvol = 1.0f;
|
||||
|
Loading…
Reference in New Issue
Block a user