mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'spb-hitlag' into 'master'
Make SPB match its target's hitlag See merge request KartKrew/Kart!614
This commit is contained in:
commit
b3cddc1d1c
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue