Merge branch 'spb-hitlag' into 'master'

Make SPB match its target's hitlag

See merge request KartKrew/Kart!614
This commit is contained in:
Sal 2022-06-07 20:34:55 +00:00
commit b3cddc1d1c

View file

@ -13607,6 +13607,12 @@ void A_SPBChase(mobj_t *actor)
actor->lastlook = actor->tracer->player-players; // Save the player num for death scumming...
actor->tracer->player->pflags |= PF_RINGLOCK; // set ring lock
if (actor->tracer->hitlag)
{
// If the player is frozen through no fault of their own, the SPB should be too.
actor->hitlag = actor->tracer->hitlag;
}
if (!P_IsObjectOnGround(actor->tracer))
{
// In the air you have no control; basically don't hit unless you make a near complete stop