Skip to content

Commit

Permalink
correcting a derp
Browse files Browse the repository at this point in the history
duplicated data removed
  • Loading branch information
sayterdarkwynd committed Feb 14, 2020
1 parent 72bd67f commit 5132a6c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
11 changes: 0 additions & 11 deletions items/active/weapons/ranged/gunfire.lua
Expand Up @@ -90,17 +90,6 @@ function GunFire:update(dt, fireMode, shiftHeld)
self:setState(self.burst)
end
end

--Recoil here
if (self.hasRecoil == 1) then
if self.fireMode ~= "alt" then
self.recoilForce = self.recoilForce * self.fireTime
else
self.recoilForce = self.recoilForce * 0.15
end
local recoilDirection = mcontroller.facingDirection() == 1 and self.weapon.aimAngle + math.pi or -self.weapon.aimAngle
mcontroller.controlApproachVelocityAlongAngle(recoilDirection, self.recoilSpeed, self.recoilForce, true)
end
end

function GunFire:auto()
Expand Down
10 changes: 0 additions & 10 deletions items/active/weapons/ranged/gunfirefixed.lua
Expand Up @@ -132,16 +132,6 @@ function GunFireFixed:update(dt, fireMode, shiftHeld)
end
end
end
--Recoil here
if (self.hasRecoil == 1) then
if self.fireMode ~= "alt" then
self.recoilForce = self.recoilForce * self.fireTime
else
self.recoilForce * 0.15
end
local recoilDirection = mcontroller.facingDirection() == 1 and self.weapon.aimAngle + math.pi or -self.weapon.aimAngle
mcontroller.controlApproachVelocityAlongAngle(recoilDirection, self.recoilSpeed, self.recoilForce, true)
end
end

function GunFireFixed:chargeup()
Expand Down

0 comments on commit 5132a6c

Please sign in to comment.