Skip to content

Commit

Permalink
fix(client): arm body status
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Sep 5, 2021
1 parent 2e1c671 commit 5b14b20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renzu_hud/client/function.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2577,6 +2577,8 @@ function Hud:BodyLoop()
self.armbone2 = self.bonecategory["left_hand"]
end
else
self.armbone = 0
self.armbone2 = 0
self.arm = false
end
if self.bonecategory and self.bonecategory["left_leg"] and self.bonecategory["right_leg"] and (self.bonecategory["left_leg"] >= 2 or self.bonecategory["right_leg"] >= 2) then
Expand Down Expand Up @@ -2890,7 +2892,7 @@ function Hud:WeaponStatus()
lastent = ent
self.shooting = true
if config.bodystatus then
if self.armbone > self.armbone2 then
if self.arm and self.armbone > self.armbone2 then
self:recoil(self.armbone / 5.0)
else
self:recoil(self.armbone2 / 5.0)
Expand Down

0 comments on commit 5b14b20

Please sign in to comment.