Skip to content

Commit

Permalink
Prevent players from parrying pf before release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Aug 22, 2024
1 parent e0a0705 commit a22e53c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Lua/PlayerScripts/player_parry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ addHook("PlayerThink", function(player)
end

if _isPF(foundmobj) then
-- Prevents players from parrying pizza face before he is released.
-- And prevents him from being parried multiple times at once (RIP), TODO: Re-implement parry combos.
if (foundmobj.pfstuntime and not foundmobj.pfstunmomentum) then
return
end

PTSR:AddComboTime(player, player.ptsr.combo_maxtime/4)

foundmobj.pfhitlag = PTSR.ParryHitLagFrames
Expand Down

0 comments on commit a22e53c

Please sign in to comment.