mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-20 04:21:52 +00:00
Obj_RingShooterInput: Fix several issues with the to-spot teleport
- Fix undesired fastfall bounce - Fix reverse gravity
This commit is contained in:
parent
5b348ee195
commit
e7896a7118
1 changed files with 14 additions and 1 deletions
|
|
@ -695,11 +695,24 @@ void Obj_RingShooterInput(player_t *player)
|
|||
{
|
||||
player->mo->momx = player->mo->momy = 0;
|
||||
P_SetPlayerAngle(player, base->angle);
|
||||
fixed_t setz;
|
||||
|
||||
if (base->eflags & MFE_VERTICALFLIP)
|
||||
{
|
||||
setz = base->z + base->height - player->mo->height;
|
||||
setz = max(setz, player->mo->z);
|
||||
}
|
||||
else
|
||||
{
|
||||
setz = min(player->mo->z, base->z);
|
||||
}
|
||||
|
||||
P_MoveOrigin(
|
||||
player->mo,
|
||||
base->x, base->y,
|
||||
base->z // TODO: reverse gravity
|
||||
setz
|
||||
);
|
||||
player->fastfall = 0;
|
||||
|
||||
if (base->fuse < RS_FUSE_TIME)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue