Skip to content
  • 0 Unread 0
  • 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 4.2k 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.
  • Sorex Offline
    Sorex Offline
    Sorex
    Contributor
    wrote on last edited by
    #5

    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

    Breakbot 1 Reply Last reply
    0
    • Sorex Sorex

      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

      Breakbot Offline
      Breakbot Offline
      Breakbot
      wrote on last edited by
      #6

      Sorex there is some kinda of automated method ?

      Sorex 1 Reply Last reply
      0
      • Breakbot Breakbot

        Sorex there is some kinda of automated method ?

        Sorex Offline
        Sorex Offline
        Sorex
        Contributor
        wrote on last edited by
        #7

        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 HustlerOG 2 Replies Last reply
        0
        • Sorex 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.

          Breakbot Offline
          Breakbot 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)

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

            i use that command in zombies to increase the render distance

            1 Reply Last reply
            0
            • FutureRave Offline
              FutureRave 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
              • FutureRave Offline
                FutureRave 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
                • JezuzLizard Offline
                  JezuzLizard 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
                  • Sorex 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.

                    HustlerOG Offline
                    HustlerOG 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?

                    Resxt 1 Reply Last reply
                    0
                    • HustlerOG 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?

                      Resxt Offline
                      Resxt 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
                      • Breakbot Breakbot

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

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

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

                        TsunamiXcursion 1 Reply Last reply
                        0
                        • DarylMcgee123 DarylMcgee123

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

                          TsunamiXcursion Offline
                          TsunamiXcursion Offline
                          TsunamiXcursion
                          wrote on 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.

                          TsunamiXcursion 1 Reply Last reply
                          0
                          • TsunamiXcursion 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.

                            TsunamiXcursion Offline
                            TsunamiXcursion Offline
                            TsunamiXcursion
                            wrote on 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

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            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
                            • Unread 0
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Donate