csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

cl_autobuy uses default value after changing and writing it to a cfg file

Open Xinayder opened this issue 1 year ago • 1 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/Xinayder/9d064f9843d4e1d9e39143983fcde0b2
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

Ever since the October 4th update that brought a change to the buy <item> command, the default cl_autobuy command doesn't buy M4A1, because the command to buy it was renamed from m4a1 to m4a1_silencer.

To fix the issue, you can replace m4a1 with m4a1_silencer on your cl_autobuy:

cl_autobuy = vesthelm vest m4a1_silencer ak47 famas galilar mp7 nova defuser

The problem is that even after executing a host_writeconfig command, the autobuy cvar won't be saved. On the next startup, the autobuy cvar will be reset to the default value of cl_autobuy = vesthelm vest m4a1 ak47 famas galilar mp7 nova defuser.

Steps for reproducing this issue:

  1. Start a match as CT and make sure you have enough money to buy vest + helm and a M4A1
  2. Press F3
  3. You'll buy a FAMAS instead because the autobuy command has an invalid entry for the M4A1

Xinayder avatar Dec 04 '23 12:12 Xinayder