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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] On-Screen Information Movement. GSC Code

[Support] On-Screen Information Movement. GSC Code

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
6 Posts 4 Posters 466 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined Offline
    undefined Offline
    MrMcyeet
    wrote on Jan 26, 2021, 8:45 AM last edited by Xerxes Jan 26, 2021, 11:01 AM
    #1

    alt text

    Ive got this simple zombies counter that i found on here, and it works great, my only question, is it possible to move it to where i drew the pink box at in the attached picture?

    // Zombies Counter
    drawZombiesCounter(){
        level.zombiesCountDisplay = createServerFontString("hudsmall" , 1.5);
        level.zombiesCountDisplay setPoint("CENTER", "CENTER", "CENTER", 200);
        thread updateZombiesCounter();
    }
    

    This is what I have, I just dont know which of those four are the x and y axis.

    undefined 1 Reply Last reply Jan 26, 2021, 9:13 AM
    0
    • undefined Offline
      undefined Offline
      Xerxes Plutonium Staff
      wrote on Jan 26, 2021, 9:01 AM last edited by
      #2

      The first two parameters for setPoint are anchors, the next one are x and y coordinates to change the position.

      1 Reply Last reply
      0
      • undefined Offline
        undefined Offline
        JezuzLizard Plutonium Staff
        replied to MrMcyeet on Jan 26, 2021, 9:13 AM last edited by
        #3

        MrMcyeet If you want a good idea on the possible inputs of the function look at it here: https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer/blob/master/patch_mp/maps/mp/gametypes/_hud_util.gsc. To add on to what xerxes said negative x is to the left, and positive x is to the right of the point you set, while negative y is up, and positive y is down.

        I recommend trying setPoint("BOTTOM_RIGHT", "BOTTOM_RIGHT", "CENTER", 175);.

        1 Reply Last reply
        0
        • undefined Offline
          undefined Offline
          MrMcyeet
          wrote on Jan 26, 2021, 1:35 PM last edited by
          #4

          Thank you two so much!
          I read over that github link that was linked, and it helped me get a better idea of my left from my right xD
          Anyway, what i ended up using is ("CENTER", "CENTER", 320, 165) and it works for what i wanted it for.
          The only thing is that whenever someone switches their weapon, the weapons name is in the same place as the z counter, so its hard to read, but all in all, i like it!
          Thx again you two ❤

          undefined 1 Reply Last reply Jan 26, 2021, 1:43 PM
          0
          • undefined Offline
            undefined Offline
            Xerxes Plutonium Staff
            replied to MrMcyeet on Jan 26, 2021, 1:43 PM last edited by
            #5

            MrMcyeet said in [Support] On-Screen Information Movement. GSC Code:

            The only thing is that whenever someone switches their weapon, the weapons name is in the same place as the z counter, so its hard to read, but all in all, i like it!

            You could wait for the weapon switch event and then change the alpha value to hide it for a few seconds.

            1 Reply Last reply
            0
            • undefined Offline
              undefined Offline
              Don Mishi
              wrote on Apr 12, 2021, 7:23 PM last edited by
              #6

              Hello, an apology for the inconvenience. Do you think you can upload your already compiled zombie counter?

              1 Reply Last reply
              0

              • Login

              • Don't have an account? Register

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