function SWEP:PrimaryAttack() Msg("Clip1: "..self.Weapon:Clip1().."\n") self:throw_attack("models/props_junk/rock001a.mdl") self:TakePrimaryAmmo( 1 ) self.Weapon:SetNextPrimaryFire(CurTime() + 4) nextshoot = CurTime() + 4 self.Owner:ViewPunch( Angle( -1, 1, 0 ) ) isreloading = true if self.Weapon:Clip1() <= 0 then self.Owner:StripWeapon("ws_arrow") end end function Reloading() if isreloading then local width = nextshoot - CurTime() width = 4-width width = width * 50 local client = LocalPlayer() draw.RoundedBox(3, ScrH()-5, ScrW()/2-200, 200, 100, Color(0, 0, 0, 100)) draw.SimpleText("Reloading", "ScoreboardText", 0, 0, Color(0, 0, 0, 255), 0, 0) draw.RoundedBox(0, ScrH()-5, ScrW()/2-200,width , 100, Color(200, 200, 200, 255)) if width > 200 then isreloading = false end end end hook.Add("HUDPaint", "Reloading", Reloading)