Fix for shotgun getting stuck alt-firing
This commit is contained in:
parent
735ca9ff60
commit
19eaf3c93b
@ -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
|
||||||
|
if this.ammo_clip > 0 then
|
||||||
this.firing_double = state
|
this.firing_double = state
|
||||||
this.firing = this.firing or 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user