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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] help with script ..

[Support] help with script ..

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 2 Posters 225 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.
  • Ghost420_undefined Offline
    Ghost420_undefined Offline
    Ghost420_
    wrote on last edited by Ghost420_
    #1
    This post is deleted!
    RedxSkullundefined 1 Reply Last reply
    0
    • Ghost420_undefined Ghost420_

      This post is deleted!

      RedxSkullundefined Offline
      RedxSkullundefined Offline
      RedxSkull
      wrote on last edited by
      #2

      @Snoopy__ Bad syntax is what's going on with your script. Use Visual Studio Code with COD sense plugin to fix your script. Notepad or notepad++ is not recommended.

      Ghost420_undefined 2 Replies Last reply
      0
      • RedxSkullundefined RedxSkull

        @Snoopy__ Bad syntax is what's going on with your script. Use Visual Studio Code with COD sense plugin to fix your script. Notepad or notepad++ is not recommended.

        Ghost420_undefined Offline
        Ghost420_undefined Offline
        Ghost420_
        wrote on last edited by
        #3

        RedxSkull

        Thank you very much for your answer.. but since I don't have knowledge in gsc.. (a friend of discord created it) ...your answer is not useful to me).. thanks in the same way.. 😃 ... what I need It is that someone does not correct for me.

        1 Reply Last reply
        0
        • RedxSkullundefined RedxSkull

          @Snoopy__ Bad syntax is what's going on with your script. Use Visual Studio Code with COD sense plugin to fix your script. Notepad or notepad++ is not recommended.

          Ghost420_undefined Offline
          Ghost420_undefined Offline
          Ghost420_
          wrote on last edited by
          #4

          RedxSkull
          Nope . Apparently you are confused.. There is no syntax error..because the script works for other codes..I don't know where I get that there is a syntax error..but no. .what happens is that in bo2 the dvar fx_enable does not exist ..

          RedxSkullundefined 1 Reply Last reply
          0
          • Ghost420_undefined Ghost420_

            RedxSkull
            Nope . Apparently you are confused.. There is no syntax error..because the script works for other codes..I don't know where I get that there is a syntax error..but no. .what happens is that in bo2 the dvar fx_enable does not exist ..

            RedxSkullundefined Offline
            RedxSkullundefined Offline
            RedxSkull
            wrote on last edited by RedxSkull
            #5

            @Snoopy__ Your script looked messy when I first looked at it and fx_enable does work and I added more dvars that work for an fps boost.

            #include maps\mp\_utility;
            #include common_scripts\utility;
            #include maps\mp\gametypes\_hud_util;
            
            init()
            {
                level thread onPlayerConnect();
            
                setDvar( "r_fog", 0 );
                setDvar( "fx_enable", 0 );
            }
            
            onPlayerConnect()
            {
                level endon( "end_game" );
                self endon( "disconnect" );
                for (;;)
                {
            	level waittill( "connected", player );
            
                    player setClientDvar( "r_forceLod", 3 );
                    player setClientDvar( "r_dlightlimit", 0 );
                    player setClientDvar( "r_drawWater", 0 );
                    player setClientDvar( "r_ssao", 0 );
                    player setClientDvar( "sm_enable", 0 );                           
                }	 
            }
            

            Also your #include was wrong

            Ghost420_undefined 2 Replies Last reply
            1
            • RedxSkullundefined RedxSkull

              @Snoopy__ Your script looked messy when I first looked at it and fx_enable does work and I added more dvars that work for an fps boost.

              #include maps\mp\_utility;
              #include common_scripts\utility;
              #include maps\mp\gametypes\_hud_util;
              
              init()
              {
                  level thread onPlayerConnect();
              
                  setDvar( "r_fog", 0 );
                  setDvar( "fx_enable", 0 );
              }
              
              onPlayerConnect()
              {
                  level endon( "end_game" );
                  self endon( "disconnect" );
                  for (;;)
                  {
              	level waittill( "connected", player );
              
                      player setClientDvar( "r_forceLod", 3 );
                      player setClientDvar( "r_dlightlimit", 0 );
                      player setClientDvar( "r_drawWater", 0 );
                      player setClientDvar( "r_ssao", 0 );
                      player setClientDvar( "sm_enable", 0 );                           
                  }	 
              }
              

              Also your #include was wrong

              Ghost420_undefined Offline
              Ghost420_undefined Offline
              Ghost420_
              wrote on last edited by
              #6

              RedxSkull
              Thanks a lot ..! 😃

              1 Reply Last reply
              0
              • RedxSkullundefined RedxSkull

                @Snoopy__ Your script looked messy when I first looked at it and fx_enable does work and I added more dvars that work for an fps boost.

                #include maps\mp\_utility;
                #include common_scripts\utility;
                #include maps\mp\gametypes\_hud_util;
                
                init()
                {
                    level thread onPlayerConnect();
                
                    setDvar( "r_fog", 0 );
                    setDvar( "fx_enable", 0 );
                }
                
                onPlayerConnect()
                {
                    level endon( "end_game" );
                    self endon( "disconnect" );
                    for (;;)
                    {
                	level waittill( "connected", player );
                
                        player setClientDvar( "r_forceLod", 3 );
                        player setClientDvar( "r_dlightlimit", 0 );
                        player setClientDvar( "r_drawWater", 0 );
                        player setClientDvar( "r_ssao", 0 );
                        player setClientDvar( "sm_enable", 0 );                           
                    }	 
                }
                

                Also your #include was wrong

                Ghost420_undefined Offline
                Ghost420_undefined Offline
                Ghost420_
                wrote on last edited by
                #7

                RedxSkull
                for some reason they don't deactivate "fx" ..

                plutonium-bootstrapper-win32_2022_12_10_06_39_54_051.jpg plutonium-bootstrapper-win32_2022_12_10_06_39_48_916.jpg

                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