mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't Guard Break if other player is in pain state
This commit is contained in:
parent
609b0c0ae0
commit
d4b0ee21ab
1 changed files with 3 additions and 0 deletions
|
|
@ -3769,6 +3769,9 @@ void K_DoGuardBreak(mobj_t *t1, mobj_t *t2) {
|
||||||
if (!(t1->player && t2->player))
|
if (!(t1->player && t2->player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (P_PlayerInPain(t2->player))
|
||||||
|
return;
|
||||||
|
|
||||||
// short-circuit instashield for vfx visibility
|
// short-circuit instashield for vfx visibility
|
||||||
t1->player->instaShieldCooldown = GUARDBREAK_COOLDOWN;
|
t1->player->instaShieldCooldown = GUARDBREAK_COOLDOWN;
|
||||||
t1->player->guardCooldown = GUARDBREAK_COOLDOWN;
|
t1->player->guardCooldown = GUARDBREAK_COOLDOWN;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue