Skip to content

Commit

Permalink
make doparry and dolap work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Feb 26, 2024
1 parent 553d0e4 commit d5a5811
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Lua/PlayerScripts/player_parry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ addHook("PlayerThink", function(player)
end
end

if PTSR_DoHook("doparry", pmo) == true then
return true
end

PTSR.DoParry(player.mo, foundmobj)
player.lastparryframe = leveltime

Expand Down
4 changes: 4 additions & 0 deletions src/Lua/PlayerScripts/pmo_startnewlap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ PTSR.StartNewLap = function(mobj)
local player = mobj.player

if not player.pizzaface and not player.spectator and player.playerstate ~= PST_DEAD then
if PTSR_DoHook("dolap", mobj) == true then
return
end

PTSR.LapTP(player, true)

S_StartSound(nil, sfx_lap2, player)
Expand Down

0 comments on commit d5a5811

Please sign in to comment.