Skip to content

Commit 1a394bb

Browse files
committed
fix lock toss for players
1 parent 6cc7953 commit 1a394bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/pac3/extra/shared/net_combat.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,8 @@ if SERVER then
24312431
phys_ent = ent
24322432
end
24332433
if ent:IsPlayer() then
2434-
phys_ent:SetVelocity(-phys_ent:GetVelocity())
2434+
ent:SetVelocity(-ent:GetVelocity() + vec)
2435+
return
24352436
end
24362437
phys_ent:SetVelocity(vec)
24372438
end)

0 commit comments

Comments
 (0)