mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Let objects receive damage while in hitlag
This commit is contained in:
parent
07f965d4eb
commit
5498f9d02d
1 changed files with 3 additions and 1 deletions
|
|
@ -1838,8 +1838,10 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
if (!(target->flags & MF_SHOOTABLE))
|
||||
return false; // shouldn't happen...
|
||||
|
||||
#if 0
|
||||
if (!(damagetype & DMG_DEATHMASK) && target->hitlag > 0)
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (target->flags2 & MF2_SKULLFLY)
|
||||
|
|
@ -1922,7 +1924,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
|
|||
|
||||
if (combo == false)
|
||||
{
|
||||
if (player->flashing > 0)
|
||||
if (player->mo->hitlag == 0 && player->flashing > 0)
|
||||
{
|
||||
// Post-hit invincibility
|
||||
K_DoInstashield(player);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue