mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Pterabyte: Don't drop off player in the first ten tics after grabbing
This commit is contained in:
parent
b169ff93d4
commit
4c6a4b76cc
1 changed files with 3 additions and 3 deletions
|
|
@ -11930,7 +11930,7 @@ void P_PlayerAfterThink(player_t *player)
|
|||
if (ptera->health <= 0)
|
||||
goto dropoff;
|
||||
|
||||
if (P_MobjAboveLava(ptera))
|
||||
if (P_MobjAboveLava(ptera) && ptera->movefactor <= 3*TICRATE - 10)
|
||||
goto dropoff;
|
||||
|
||||
if (player->mo->eflags & MFE_VERTICALFLIP)
|
||||
|
|
@ -11939,7 +11939,7 @@ void P_PlayerAfterThink(player_t *player)
|
|||
&& (ptera->eflags & MFE_VERTICALFLIP)) // Reverse gravity check for the carrier - Flame
|
||||
player->mo->z = ptera->z + ptera->height + FixedMul(FRACUNIT, player->mo->scale);
|
||||
|
||||
if (ptera->ceilingz - ptera->z > spawnpoint->ceilingz - spawnpoint->z + 512*FRACUNIT)
|
||||
if (ptera->ceilingz - ptera->z > spawnpoint->ceilingz - spawnpoint->z + 512*FRACUNIT && ptera->movefactor <= 3 * TICRATE - 10)
|
||||
goto dropoff;
|
||||
}
|
||||
else
|
||||
|
|
@ -11948,7 +11948,7 @@ void P_PlayerAfterThink(player_t *player)
|
|||
&& !(ptera->eflags & MFE_VERTICALFLIP)) // Correct gravity check for the carrier - Flame
|
||||
player->mo->z = ptera->z - player->mo->height - FixedMul(FRACUNIT, player->mo->scale);
|
||||
|
||||
if (ptera->z - ptera->floorz > spawnpoint->z - spawnpoint->floorz + 512 * FRACUNIT)
|
||||
if (ptera->z - ptera->floorz > spawnpoint->z - spawnpoint->floorz + 512 * FRACUNIT && ptera->movefactor <= 3 * TICRATE - 10)
|
||||
goto dropoff;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue