Fixed shotgun reloading being too slow

This commit is contained in:
Haodong Mo 2020-06-26 17:51:25 +10:00
parent 971444c7e8
commit bba200caed
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ function EFFECT:Init(data)
particle:SetDieTime( 1.5 )
particle:SetStartAlpha( 255 )
particle:SetEndAlpha( 255 )
particle:SetStartSize( 250 )
particle:SetStartSize( 250 )
particle:SetEndSize( 0 )
particle:SetRoll( math.Rand(180,480) )
particle:SetRollDelta( math.Rand(-5,5) )

View File

@ -241,11 +241,11 @@ function SWEP:GetAnimKeyTime(key)
if !self:GetOwner() then return 1 end
local vm = self:GetOwner():GetViewModel()
if vm or !IsValid(vm) then return 1 end
if !vm or !IsValid(vm) then return 1 end
local anim = self.Animations[key]
if !anim then anim.Time = 1 return 1 end
if !anim then return 1 end
if !anim.Time then
local tseq = anim.Source