wgetJane / ttt-weapon-rework

trouble in terrorist town weapon rework (tttwr)
https://steamcommunity.com/sharedfiles/filedetails/?id=2795122660
GNU General Public License v3.0
7 stars 3 forks source link

Bug with m3 and reload #6

Open Flapchik opened 1 year ago

Flapchik commented 1 year ago

When I press LMB and periodically press R, a quick reboot occurs

https://github.com/wgetJane/ttt-weapon-rework/assets/58729268/2f4f439d-3771-4c61-ba7c-47c50f4ab527

wgetJane commented 1 year ago

i knew about this but i left it in since i thought it was funny

if you want to fix it, replace this line: https://github.com/wgetJane/ttt-weapon-rework/blob/d2516cbdc2edce9e420cf0ded55280124ea3f535/lua/tttwr/sh_mkshotgun.lua#L116

with this:

self:SetNextPrimaryFire(math.max(nextfire, self:GetNextPrimaryFire()))