Let args3 on dash rings force player angle
This commit is contained in:
parent
8ebac27f83
commit
47089d2c23
1 changed files with 7 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ void Obj_DashRingSetup(mobj_t *mobj, mapthing_t *mthing)
|
|||
|
||||
mobj->extravalue1 = mthing->args[0];
|
||||
mobj->cusval = baseThrust + additionalThrust;
|
||||
mobj->extravalue2 = mthing->args[3];
|
||||
|
||||
switch (mobj->extravalue1)
|
||||
{
|
||||
|
|
@ -164,6 +165,12 @@ void Obj_DashRingTouch(mobj_t *ring, player_t *player)
|
|||
player->dashRingPullTics = DASHRING_PULL_TICS;
|
||||
player->dashRingPushTics = 0;
|
||||
|
||||
if (ring->extravalue2)
|
||||
{
|
||||
P_SetPlayerAngle(player, ring->angle);
|
||||
player->mo->angle = ring->angle;
|
||||
}
|
||||
|
||||
player->pflags |= PF_NOSCALEGRAVITY;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue