Skip to content

Commit

Permalink
Damaging give combo time
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-budd committed Sep 9, 2024
1 parent 63aad59 commit ae0ea53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Lua/Hooks/PlayerTweaks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,15 @@ addHook("MobjDeath", function(target, inflictor, source)
source.player.ptsr.current_score = source.player.score
end
end
end)

addHook("MobjDamage",function(mo,inf,sor)
if PTSR.IsPTSR() and sor and sor.valid and sor.player and sor.player.valid then
if (mo.flags & MF_ENEMY)
and mo.health
if PTSR.PlayerHasCombo(sor.player)
PTSR:AddComboTime(sor.player, TICRATE)
end
end
end
end)

0 comments on commit ae0ea53

Please sign in to comment.