Gm_Snapgrid

Don’t know if anyone has noticed yet but there is an exploit with gm_snapgrid, Removed to prevent more abuse. Is there a way to block gm_snapgrid on a server? Don’t know if modules such as cvar3 still work, thanks.

Thanks for positing this in detail so everyone now can and will go and use this even more.

I think an official patch that clamps the gm_snapgrid value would be much more preferred. Also, as Robotboy655 implied, it would have been much better to inform _Kilburn or Robotboy655 himself about it instead of making it public.

In the meantime, you can do something like



LocalPlayer():ConCommand( "gm_snapgrid 0" ) -- reset their current value

cvars.AddChangeCallback( "gm_snapgrid", function( str, old, new ) 
    LocalPlayer():ConCommand( "gm_snapgrid " .. ( tonumber( new ) and math.Clamp( tonumber( new ), 0, 1000 ) or 0 ) ) 
end )


to clamp it or just



LocalPlayer():ConCommand( "gm_snapgrid 0" ) -- reset their current value

cvars.AddChangeCallback( "gm_snapgrid", function( str, old, new ) -- prevent them from changing it
    LocalPlayer():ConCommand( "gm_snapgrid 0" )
end )


Yeah well it’s better than having it sit there for ages with no action being taken, and thank you Mista Tea.