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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue