Is there any way to "autoexec" console commands on startup?
-
Example: To disable depth of field I type "r_dof_enable 0" in the console every time I launch the game. I want a way to just automate this process as in literally every other game in existence which has (or supports) a config file.
-
Manux323 bind a button to to set again the dvar. Usaly teh dvar get saved automaticaly
-
Care to elaborate how to do that? Thanks in advance
-
Manux323 bind a button to to set again the dvar. Usaly teh dvar get saved automaticaly
Sorex How would I go about doing what you described?
-
Manux323 Nothing, because is not a big problem. Create a command to set every dvar you need and then copy and paste in the console bar.
or do bind p "dvar1 1;dvar2 1,dvar3 0" and press p to set back your custom dvar -
Manux323 Nothing, because is not a big problem. Create a command to set every dvar you need and then copy and paste in the console bar.
or do bind p "dvar1 1;dvar2 1,dvar3 0" and press p to set back your custom dvarSorex there is some kinda of automated method ?
-
Breakbot
I don't get it.
The bind to a button a command is semi-autmatic you just bind it and the press the button. You could also just copy and pase the commands or use a gsc script if you need to set just dvars and you are on a private match or on your own server. -
Breakbot
I don't get it.
The bind to a button a command is semi-autmatic you just bind it and the press the button. You could also just copy and pase the commands or use a gsc script if you need to set just dvars and you are on a private match or on your own server.Sorex the thing is, the command that i want to use is cheat protected (r_lodBiasSkinned -1000)
-
i use that command in zombies to increase the render distance
-
You are unfortunately unable to do that because the dvar is cheat protected.
The process is more mechanical.
You need to first setsv_cheatsto1, then you will be able to editr_lodBiasSkinned -
If the dvar is not cheat-protected, you can set it via the command line arguments. But you can't do it easily from a client. You can do it from a dedicated server startup script file (bat).
-
You can create a GSC script to set this dvar automatically when the match starts.
-
Breakbot
I don't get it.
The bind to a button a command is semi-autmatic you just bind it and the press the button. You could also just copy and pase the commands or use a gsc script if you need to set just dvars and you are on a private match or on your own server.Sorex i would like to bind player_sprintunlimited 1 and dsr h to 2 seperate buttons what exactly i need to put in the console for these 2?
-
Sorex i would like to bind player_sprintunlimited 1 and dsr h to 2 seperate buttons what exactly i need to put in the console for these 2?
HustlerOG you could most likely just have a GSC script to set dvars, given that you play in your own custom game
Init() { SetDvar("player_sprintunlimited", "1"); } -
Sorex the thing is, the command that i want to use is cheat protected (r_lodBiasSkinned -1000)
Breakbot I was wondering if you ever setup a script to do this.
-
Breakbot I was wondering if you ever setup a script to do this.
DarylMcgee123 You can edit the pre-existing "Plutonium-zm.cfg" (Despite it telling you not to) with the commands you want. Only issue is that you have to make a bat file that edits the .cfg every time you want to open the game:
-
Make a text file then open it.
-
Type this in the file:
(
"insert commands you want to run here"
) >> plutonium_zm.cfg
start C:\Users*user signed into**\AppData\Local\Plutonium\bin\plutonium-launcher-win32.exe
3 save and exit the file, then replace the .txt with a .bat (it will give you a warning just click ok)
-
Put this bat file in the folder as the plutonium_zm.cfg file
-
Make a shortcut to the bat file then place that where ever you want
This will append your commands to the file and take you to the launcher to click Bo2, this will load your commands in each time as long as you use the bat file you created.
-
-
DarylMcgee123 You can edit the pre-existing "Plutonium-zm.cfg" (Despite it telling you not to) with the commands you want. Only issue is that you have to make a bat file that edits the .cfg every time you want to open the game:
-
Make a text file then open it.
-
Type this in the file:
(
"insert commands you want to run here"
) >> plutonium_zm.cfg
start C:\Users*user signed into**\AppData\Local\Plutonium\bin\plutonium-launcher-win32.exe
3 save and exit the file, then replace the .txt with a .bat (it will give you a warning just click ok)
-
Put this bat file in the folder as the plutonium_zm.cfg file
-
Make a shortcut to the bat file then place that where ever you want
This will append your commands to the file and take you to the launcher to click Bo2, this will load your commands in each time as long as you use the bat file you created.
said in Is there any way to "autoexec" console commands on startup?:
DarylMcgee123 You can edit the pre-existing "Plutonium-zm.cfg" (Despite it telling you not to) with the commands you want. Only issue is that you have to make a bat file that edits the .cfg every time you want to open the game:
-
Make a text file then open it.
-
Type this in the file:
(
"insert commands you want to run here"
) >> plutonium_zm.cfg
start C:\Users*user signed into**\AppData\Local\Plutonium\bin\plutonium-launcher-win32.exe
3 save and exit the file, then replace the .txt with a .bat (it will give you a warning just click ok)
-
Put this bat file in the folder as the plutonium_zm.cfg file
-
Make a shortcut to the bat file then place that where ever you want
This will append your commands to the file and take you to the launcher to click Bo2, this will load your commands in each time as long as you use the bat file you created.
note I would not run that bat file when going to play multiplayer since I am not sure if this can cause issues
-