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:
parent
1bb2bb31d4
commit
d2d684a35a
5 changed files with 13 additions and 4 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue