Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
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 1.5k 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.
  • MrMcyeetundefined Offline
    MrMcyeetundefined Offline
    MrMcyeet
    wrote on last edited by Xerxes
    #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.

    JezuzLizardundefined 1 Reply Last reply
    0
    • Xerxesundefined Offline
      Xerxesundefined Offline
      Xerxes
      Plutonium Staff
      wrote on 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
      • MrMcyeetundefined MrMcyeet

        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.

        JezuzLizardundefined Offline
        JezuzLizardundefined Offline
        JezuzLizard
        Plutonium Staff
        wrote on 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
        • MrMcyeetundefined Offline
          MrMcyeetundefined Offline
          MrMcyeet
          wrote on 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 ❤

          Xerxesundefined 1 Reply Last reply
          0
          • MrMcyeetundefined MrMcyeet

            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 ❤

            Xerxesundefined Offline
            Xerxesundefined Offline
            Xerxes
            Plutonium Staff
            wrote on 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
            • Don Mishiundefined Offline
              Don Mishiundefined Offline
              Don Mishi
              wrote on 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

              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