• Forcing rates
    2 replies, posted
  • So I was on our new gmod server typed net_graph 3 in console and I noticed my lerp was 100, along with everyone else. I got it to drop to a steady 30 with a few commands. Instead of telling everyone to go make an autoexec with these commands I was wondering if we could force the clients to run these commands each time they connect or the map changes. these are the commands id like to force: cl_updaterate 66 cl_cmdrate 66 cl_interp .01 any help on this would be awesome! [highlight](User was banned for this post ("wrong section" - postal))[/highlight]
  • Avatar of Assault_Trooper
  • [lua] hook.Add( "PlayerInitialSpawn", "ForceRates", function( ply ) timer.Simple( 3, function() if ValidEntity( ply ) then ply:ConCommand( "cl_updaterate 66" ) ply:ConCommand( "cl_cmdrate 66" ) ply:ConCommand( "cl_interp .01" ) end end ) end ) [/lua] The convars could be blocked, don't know, haven't tested.
  • [QUOTE=Assault_Trooper;37093859][lua] hook.Add( "PlayerInitialSpawn", "ForceRates", function( ply ) timer.Simple( 3, function() if ValidEntity( ply ) then ply:ConCommand( "cl_updaterate 66" ) ply:ConCommand( "cl_cmdrate 66" ) ply:ConCommand( "cl_interp .01" ) end end ) end ) [/lua] The convars could be blocked, don't know, haven't tested.[/QUOTE] awesome THANK YOU SO MUCH!!! gonna test in a few!