mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Let ridden rollout rocks collide with other players
This commit is contained in:
parent
2d33950590
commit
7850d43725
1 changed files with 6 additions and 3 deletions
|
@ -985,7 +985,7 @@ static boolean PIT_CheckThing(mobj_t *thing)
|
|||
tmthing->player->powers[pw_carry] = CR_ROLLOUT;
|
||||
P_SetTarget(&tmthing->tracer, thing);
|
||||
P_SetObjectMomZ(thing, tmthing->momz, true);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (tmthing->type == thing->type)
|
||||
|
@ -1004,6 +1004,9 @@ static boolean PIT_CheckThing(mobj_t *thing)
|
|||
{
|
||||
if (tmthing->z > thing->z + thing->height || thing->z > tmthing->z + tmthing->height || !thing->health)
|
||||
return true;
|
||||
|
||||
if (thing == tmthing->target)
|
||||
return true;
|
||||
|
||||
if (thing->flags & MF_SPRING)
|
||||
{
|
||||
|
@ -1660,8 +1663,8 @@ static boolean PIT_CheckThing(mobj_t *thing)
|
|||
}
|
||||
}
|
||||
|
||||
if ((!tmthing->player) && (thing->player))
|
||||
; // no solid thing should ever be able to step up onto a player
|
||||
if ((tmthing->flags & MF_SPRING || tmthing->type == MT_STEAM) && (thing->player))
|
||||
; // springs and gas jets should never be able to step up onto a player
|
||||
// z checking at last
|
||||
// Treat noclip things as non-solid!
|
||||
else if ((thing->flags & (MF_SOLID|MF_NOCLIP)) == MF_SOLID
|
||||
|
|
Loading…
Reference in a new issue