Skip to content

Automatic sendcvar

terencehill requested to merge terencehill/automatic_sendcvar into master

Client watches over cvars that need to be sent to the server and automatically sends them to the server whenever they are changed.

Benefits:

  • no need to explicitly call sendcvar after every cvar change
  • server no longer requests initial cvar values
  • upon connection client sends only cvar values different from 0 / empty string
  • menu no longer needs special code and buttons to apply cvar changes (not removed for backwards compatibility)
  • it fixes some menu settings not taking effect immediately when changed because the relative cvars weren't wired up to the Apply button or set to trigger CheckSendCvars on change

This patch implements #2270 (closed)

Edited by terencehill

Merge request reports