Skip to content

Commit

Permalink
derp
Browse files Browse the repository at this point in the history
  • Loading branch information
sayterdarkwynd committed Feb 14, 2020
1 parent 2539931 commit e73476c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions items/active/weapons/ranged/gunfirefixed.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ function GunFireFixed:fireProjectile(projectileType, projectileParams, inaccurac
params
)
end

return projectileId
--Recoil here
self:applyRecoil()
self:applyRecoil()
return projectileId

end

function GunFireFixed:firePosition()
Expand Down Expand Up @@ -544,7 +544,7 @@ function GunFireFixed:checkMagazine()
end
end

function GunFire:applyRecoil()
function GunFireFixed:applyRecoil()
--Recoil here
if (self.hasRecoil == 1) then --does the weapon have recoil?
if (self.fireMode == "primary") then --is it primary fire?
Expand All @@ -559,7 +559,7 @@ function GunFire:applyRecoil()
end
end

function GunFire:adjustRecoil() -- if we are not grounded, we halve the force of the recoil
function GunFireFixed:adjustRecoil() -- if we are not grounded, we halve the force of the recoil
if not mcontroller.onGround() then
self.recoilForce = self.recoilForce * 0.5
end
Expand Down

0 comments on commit e73476c

Please sign in to comment.