New functions to manipulate an actor's roll.

- DECORATE functions: A_SetRoll code pointer.
- DECORATE expressions: "roll" variable.
- ACS functions: SetActorRoll, GetActorRoll.
This commit is contained in:
nashmuhandes 2015-01-05 17:51:32 +08:00
commit 2b12db153b
7 changed files with 77 additions and 1 deletions

View file

@ -3077,6 +3077,18 @@ void AActor::SetAngle(angle_t ang, bool interpolate)
}
}
void AActor::SetRoll(angle_t r, bool interpolate)
{
if (r != roll)
{
roll = r;
if (player != NULL && interpolate)
{
player->cheats |= CF_INTERPVIEW;
}
}
}
//
// P_MobjThinker
//