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:
parent
f03e05d69f
commit
2b12db153b
7 changed files with 77 additions and 1 deletions
|
|
@ -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
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue