ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.68k stars 624 forks source link

[goldsource engine] sv_mincmdrate sv_maxcmdrate [Feature request] #1987

Open ConnorMcLeod opened 11 years ago

ConnorMcLeod commented 11 years ago

As there is no way to force a minimum and maximum values of cl_cmdrate on client, it may be nice to have such a cvar on the engine (as on source games). I'm not familiar at all with netcode, so if this is non sense, just close.

AnAkkk commented 11 years ago

EDIT: Oops, I was pretty sure sv_mincmdrate exists, but I was wrong.

The problem is that there is no such thing as "replicated" cvars on the HL1 engine, so the client can't know what's the value of sv_mincmdrate/sv_maxcmdrate.

Is this really needed though? Maybe you could just clamp cl_cmdrate on the client between [40-100] for example, that should work with most connections. There is already a min value of 10 IIRC, but that's too low imo.

ConnorMcLeod commented 11 years ago

Oh, and have forgotten sv_maxcmdrate as well, editing...