Only do particles on real landing and make exiting pit hits not instashield
This commit is contained in:
parent
64e99e8c26
commit
44ce0fd448
2 changed files with 3 additions and 2 deletions
|
|
@ -2158,7 +2158,8 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
|
||||
if (player->exiting)
|
||||
{
|
||||
K_DoInstashield(player);
|
||||
if (inflictor)
|
||||
K_DoInstashield(player);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1364,7 +1364,7 @@ boolean P_PlayerHitFloor(player_t *player, boolean fromAir)
|
|||
|
||||
clipmomz = !(P_CheckDeathPitCollide(player->mo));
|
||||
|
||||
if (player->prevonground == false && fromAir == true && clipmomz == true)
|
||||
if (player->airtime > 10 && player->prevonground == false && fromAir == true && clipmomz == true)
|
||||
{
|
||||
K_SpawnSplashForMobj(player->mo, abs(player->mo->momz));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue