Merge pull request #3 from jeffthekillerz/master

This commit is contained in:
Nikita 2023-06-03 14:38:21 +05:00 committed by GitHub
commit d847dd5622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,8 @@ local function MeleeThink(ply, mv, cmd)
if ply:GetMelee() >= 5 then
local vel = mv:GetVelocity()
vel:Add(ply:GetWallrunDir() * 0.5 * vel:Length())
// why is getwallrundir in the thousands?
vel:Add(ply:GetWallrunDir():GetNormalized() * 0.5 * vel:Length())
mv:SetVelocity(vel)
end