Add per-actor friction

- This is multiplied by the sector's friction.
- This is intentionally not serialized yet, while awaiting feedback.
This commit is contained in:
Randy Heit 2014-07-28 23:15:50 -05:00
commit ea7ba9dba3
7 changed files with 47 additions and 18 deletions

View file

@ -554,7 +554,13 @@ int P_GetFriction (const AActor *mo, int *frictionfactor)
}
}
}
if (mo->Friction != FRACUNIT)
{
friction = clamp(FixedMul(friction, mo->Friction), 0, FRACUNIT);
movefactor = FrictionToMoveFactor(friction);
}
if (frictionfactor)
*frictionfactor = movefactor;