Skip to content

Commit

Permalink
added lag compensation to increase reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
mexikoedi committed Feb 13, 2025
1 parent 0239769 commit 29fa58c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ if SERVER then
if not self:CanPrimaryAttack() then return end
local owner = self:GetOwner()
if not IsValid(owner) then return end
owner:LagCompensation(true)
local eyetrace = owner:GetEyeTrace()
local hitPos = eyetrace.HitPos
self:ShootEffects()
Expand Down Expand Up @@ -120,6 +121,7 @@ if SERVER then
end

self:TakePrimaryAmmo(1)
owner:LagCompensation(false)
end
end

Expand Down

0 comments on commit 29fa58c

Please sign in to comment.