Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Client Support
  3. Is there any way to "autoexec" console commands on startup?

Is there any way to "autoexec" console commands on startup?

Scheduled Pinned Locked Moved BO2 Client Support
17 Posts 9 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sorexundefined Sorex

    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.

    Breakbotundefined Offline
    Breakbotundefined Offline
    Breakbot
    wrote on last edited by
    #8

    Sorex the thing is, the command that i want to use is cheat protected (r_lodBiasSkinned -1000)

    DarylMcgee123undefined 1 Reply Last reply
    0
    • Breakbotundefined Offline
      Breakbotundefined Offline
      Breakbot
      wrote on last edited by
      #9

      i use that command in zombies to increase the render distance

      1 Reply Last reply
      0
      • FutureRaveundefined Offline
        FutureRaveundefined Offline
        FutureRave
        VIP
        wrote on last edited by
        #10

        You are unfortunately unable to do that because the dvar is cheat protected.
        The process is more mechanical.
        You need to first set sv_cheats to 1, then you will be able to edit r_lodBiasSkinned

        1 Reply Last reply
        0
        • FutureRaveundefined Offline
          FutureRaveundefined Offline
          FutureRave
          VIP
          wrote on last edited by
          #11

          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).

          1 Reply Last reply
          0
          • JezuzLizardundefined Offline
            JezuzLizardundefined Offline
            JezuzLizard
            Plutonium Staff
            wrote on last edited by
            #12

            You can create a GSC script to set this dvar automatically when the match starts.

            1 Reply Last reply
            0
            • Sorexundefined Sorex

              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.

              HustlerOGundefined Offline
              HustlerOGundefined Offline
              HustlerOG
              wrote on last edited by
              #13

              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?

              Resxtundefined 1 Reply Last reply
              0
              • HustlerOGundefined HustlerOG

                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?

                Resxtundefined Offline
                Resxtundefined Offline
                Resxt
                Plutonium Staff
                wrote on last edited by
                #14

                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");
                }
                
                1 Reply Last reply
                0
                • Breakbotundefined Breakbot

                  Sorex the thing is, the command that i want to use is cheat protected (r_lodBiasSkinned -1000)

                  DarylMcgee123undefined Offline
                  DarylMcgee123undefined Offline
                  DarylMcgee123
                  wrote on last edited by
                  #15

                  Breakbot I was wondering if you ever setup a script to do this.

                  TsunamiXcursionundefined 1 Reply Last reply
                  0
                  • DarylMcgee123undefined DarylMcgee123

                    Breakbot I was wondering if you ever setup a script to do this.

                    TsunamiXcursionundefined Offline
                    TsunamiXcursionundefined Offline
                    TsunamiXcursion
                    wrote last edited by
                    #16

                    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:

                    1. Make a text file then open it.

                    2. 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)

                    1. Put this bat file in the folder as the plutonium_zm.cfg file

                    2. 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.

                    TsunamiXcursionundefined 1 Reply Last reply
                    0
                    • TsunamiXcursionundefined TsunamiXcursion

                      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:

                      1. Make a text file then open it.

                      2. 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)

                      1. Put this bat file in the folder as the plutonium_zm.cfg file

                      2. 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.

                      TsunamiXcursionundefined Offline
                      TsunamiXcursionundefined Offline
                      TsunamiXcursion
                      wrote last edited by
                      #17

                      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:

                      1. Make a text file then open it.

                      2. 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)

                      1. Put this bat file in the folder as the plutonium_zm.cfg file

                      2. 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

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Donate