Skip to content

Commit

Permalink
make hitlag longer, ring animation better
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Aug 9, 2024
1 parent 6919fac commit 69c7b46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Lua/PlayerScripts/player_parry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ PTSR.DoParryAnim = function(mobj, withsound, ringloss)

ring.throwspeed = P_RandomRange(-16, 16)*FU
ring.angle = fixangle(P_RandomRange(0, 360)*FU)
ring.momz = 8*FU
ring.momz = P_RandomRange(8, 16)*FU
end
end
end
Expand Down Expand Up @@ -113,13 +113,12 @@ addHook("PlayerThink", function(player)
local data = player.ptsr.parryhitlagdata
local ptime = leveltime-player.ptsr.parryhitlagtime

if ptime >= 2 then
if ptime >= 5 then
player.mo.momx = data.momx
player.mo.momy = data.momy
player.mo.momz = data.momz

player.ptsr.parryhitlag = false

else
P_SetOrigin(player.mo,
data.x,
Expand Down

0 comments on commit 69c7b46

Please sign in to comment.