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

@ -3973,6 +3973,22 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetPitch)
self->SetPitch(pitch, !!(flags & SPF_INTERPOLATE));
}
//===========================================================================
//
// [Nash] A_SetRoll
//
// Set actor's roll (in degrees).
//
//===========================================================================
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetRoll)
{
ACTION_PARAM_START(2);
ACTION_PARAM_ANGLE(roll, 0);
ACTION_PARAM_INT(flags, 1);
self->SetRoll(roll, !!(flags & SPF_INTERPOLATE));
}
//===========================================================================
//
// A_ScaleVelocity