Fix for shotgun getting stuck alt-firing

This commit is contained in:
rakiru 2015-02-21 20:36:20 +00:00
parent 735ca9ff60
commit 19eaf3c93b

View File

@ -60,8 +60,13 @@ return function (plr)
function this.click(button, state, ...) function this.click(button, state, ...)
if button == 3 then if button == 3 then
-- RMB -- RMB
this.firing_double = state if this.ammo_clip > 0 then
this.firing = this.firing or state this.firing_double = state
this.firing = this.firing or state
else
this.firing = false
this.firing_double = false
end
else else
return s_click(button, state, ...) return s_click(button, state, ...)
end end