Skip to content

Commit

Permalink
remove camera momentum when parrying
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiskster committed Aug 9, 2024
1 parent 6e1505e commit 88b849e
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 @@ -131,6 +131,12 @@ addHook("PlayerThink", function(player)
player.mo.state = data.state
player.mo.frame = data.frame
player.drawangle = data.a

if player == displayplayer then
camera.momx = 0
camera.momy = 0
camera.momz = 0
end
end
end

Expand Down

0 comments on commit 88b849e

Please sign in to comment.