mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Insta-Whip: respect flashing tics unless player is in damage state
- Matches new flashing tics behavior
This commit is contained in:
parent
9af09ec507
commit
ce1fe0028a
1 changed files with 1 additions and 2 deletions
|
|
@ -822,8 +822,7 @@ boolean K_InstaWhipCollide(mobj_t *shield, mobj_t *victim)
|
|||
{
|
||||
player_t *victimPlayer = victim->player;
|
||||
|
||||
//if (victim != attacker && !P_PlayerInPain(victimPlayer) && victimPlayer->flashing == 0)
|
||||
if (victim != attacker && victim->hitlag == 0)
|
||||
if (victim != attacker && (P_PlayerInPain(victimPlayer) ? victim->hitlag == 0 : victimPlayer->flashing == 0))
|
||||
{
|
||||
// If both players have a whip, hits are order-of-execution dependent and that sucks.
|
||||
// Player expectation is a clash here.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue