Closed ghost closed 8 years ago
I think that the FOV fix should be added back just in-case, to fix possible issues.
All FOV change are now outside from LR_NoScope.
Is it okay to use FindSendPropOffs in a PreThink hook? It will get called often. Will this method work on CS:S as well?
I see no problems with css (but not tested). And yes, not the best solutions with OnPreThink, but avoid noscope glitch.
Does this make it so that they can't zoom for 9999 ticks? Would that last 78 seconds on a 128 tick server? I'm not sure the math works that way but if so then we can save a lot of efficiency by setting this in InitializeLR and resetting it every time they shoot. If someone really waits 78 seconds without shooting and somehow survives then they deserve 1 scoped shot.
After zoom or shooting, is this timer closed then you can scope again. That's a reason why PreThink.
https://github.com/dataviruset/sm-hosties/commit/e608d2033848b0960beb334b11293ea1e9ea3d8d proposes the method discussed in the comments earlier to avoid the PreThink method while retaining current checks.
Removed old code and replaced with a new code (that prevent quick scope)