Add NOFRICTION and NOFRICTIONBOUNCE flags

NOFRICTION disables all friction effects on the thing it's set on
(including the speed cap from water/crouching), and NOFRICTIONBOUNCE
disables the "bounce off walls on an icy floor" effect on the thing
it's set on.
This commit is contained in:
Ijon 2018-11-17 17:34:27 -06:00 committed by Christoph Oelckers
commit d2d684a35a
5 changed files with 13 additions and 4 deletions

View file

@ -2812,6 +2812,7 @@ void FSlide::HitSlideLine(line_t* ld)
// killough 10/98: only bounce if hit hard (prevents wobbling)
icyfloor =
!(slidemo->flags8 & MF8_NOFRICTIONBOUNCE) &&
tmmove.LengthSquared() > 4*4 &&
var_friction && // killough 8/28/98: calc friction on demand
slidemo->Z() <= slidemo->floorz &&