CopsNRobbers/gamemodes/copsnrobbers/entities/weapons/cnr/sh_reload.lua

18 lines
489 B
Lua
Raw Normal View History

2023-12-21 13:58:05 -05:00
function SWEP:Reload()
if self:GetDelay() > CurTime() then
return false
end
2023-12-21 16:15:25 -05:00
if self:GetDelayReload() > CurTime() then
return false
end
2023-12-21 13:58:05 -05:00
if self:Clip1() >= self.Primary.ClipSize then
return false
end
self:SendWeaponAnim( ACT_VM_RELOAD )
self:GetOwner():GetViewModel():SetPlaybackRate( 2.5 )
2023-12-21 16:15:25 -05:00
self:SetDelayReload( CurTime() + self:SequenceDuration()/2.5 )
self:SetRefillTime( CurTime() + self:SequenceDuration()/2.5 )
--self:SetClip1( self.Primary.ClipSize )
2023-12-21 13:58:05 -05:00
return true
end