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

@ -1297,6 +1297,17 @@ DEFINE_PROPERTY(gravity, F, Actor)
defaults->gravity = i;
}
//==========================================================================
//
//==========================================================================
DEFINE_PROPERTY(friction, F, Actor)
{
PROP_FIXED_PARM(i, 0);
if (i < 0) I_Error ("Friction must not be negative.");
defaults->Friction = i;
}
//==========================================================================
//
//==========================================================================