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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] Permanent information message in the player screen !Help

[Support] Permanent information message in the player screen !Help

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
11 Posts 6 Posters 1.6k 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.
  • Kalitos Offline
    Kalitos Offline
    Kalitos
    wrote on last edited by Mr. Android
    #1

    Is there a way to put a permanent message on each player's screen like in mw3 in the upper right or left corner?
    For example show information about discord or TS3

    Ducxy TheHiddenHour 2 Replies Last reply
    0
    • Kalitos Kalitos

      Is there a way to put a permanent message on each player's screen like in mw3 in the upper right or left corner?
      For example show information about discord or TS3

      Ducxy Offline
      Ducxy Offline
      Ducxy
      wrote on last edited by
      #2

      Kalitos yes. Just draw text at a certain position on the screen with GSC

      1 Reply Last reply
      0
      • Kalitos Kalitos

        Is there a way to put a permanent message on each player's screen like in mw3 in the upper right or left corner?
        For example show information about discord or TS3

        TheHiddenHour Offline
        TheHiddenHour Offline
        TheHiddenHour
        Contributor
        wrote on last edited by
        #3

        Kalitos

        createServerText(font, text, fontScale, point, relativePoint, x, y, color, glowColor, alpha, glowAlpha, sort, team) {
        	elem = createServerFontString(font, fontScale, team);
        	elem setPoint(point, relativePoint, x, y);
        	elem setText(text);
        	elem.color = color;
        	elem.glowColor = glowColor;
        	elem.alpha = alpha;
        	elem.glowAlpha = glowAlpha;
        	elem.sort = sort;
        	
        	return elem;
        }
        

        You can call this function like so level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined); in init() (iirc 🤥 ).

        Kalitos 2 Replies Last reply
        0
        • TheHiddenHour TheHiddenHour

          Kalitos

          createServerText(font, text, fontScale, point, relativePoint, x, y, color, glowColor, alpha, glowAlpha, sort, team) {
          	elem = createServerFontString(font, fontScale, team);
          	elem setPoint(point, relativePoint, x, y);
          	elem setText(text);
          	elem.color = color;
          	elem.glowColor = glowColor;
          	elem.alpha = alpha;
          	elem.glowAlpha = glowAlpha;
          	elem.sort = sort;
          	
          	return elem;
          }
          

          You can call this function like so level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined); in init() (iirc 🤥 ).

          Kalitos Offline
          Kalitos Offline
          Kalitos
          wrote on last edited by
          #4

          TheHiddenHour Thank you very much, I will try it.

          1 Reply Last reply
          0
          • TheHiddenHour TheHiddenHour

            Kalitos

            createServerText(font, text, fontScale, point, relativePoint, x, y, color, glowColor, alpha, glowAlpha, sort, team) {
            	elem = createServerFontString(font, fontScale, team);
            	elem setPoint(point, relativePoint, x, y);
            	elem setText(text);
            	elem.color = color;
            	elem.glowColor = glowColor;
            	elem.alpha = alpha;
            	elem.glowAlpha = glowAlpha;
            	elem.sort = sort;
            	
            	return elem;
            }
            

            You can call this function like so level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined); in init() (iirc 🤥 ).

            Kalitos Offline
            Kalitos Offline
            Kalitos
            wrote on last edited by
            #5

            TheHiddenHour said in Permanent information message in the player screen !Help:

            level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined);

            I tested your code, you have to replace the function name "createServerFontString" with "createServerText" and it works, another detail.

            https://gyazo.com/bf6abc707abe9b107b58934bcaaf993d

            As you look, this is the text, what I would like is to be able to locate it in the whole corner, not to stay in the middle corner floating.

            TheHiddenHour RuinasYm0_0 2 Replies Last reply
            0
            • Kalitos Kalitos

              TheHiddenHour said in Permanent information message in the player screen !Help:

              level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined);

              I tested your code, you have to replace the function name "createServerFontString" with "createServerText" and it works, another detail.

              https://gyazo.com/bf6abc707abe9b107b58934bcaaf993d

              As you look, this is the text, what I would like is to be able to locate it in the whole corner, not to stay in the middle corner floating.

              TheHiddenHour Offline
              TheHiddenHour Offline
              TheHiddenHour
              Contributor
              wrote on last edited by
              #6

              Kalitos Ahh, my bad about the function name. createServerFontString() is the games built in function for drawing server text and createServerText() is just my abstraction of it with additional parameters lmao.

              If you want to move the text, you need to change the x and y parameters of your function call. Try messing with those numbers and see if you can get it somewhere you like.

              1 Reply Last reply
              0
              • H3X1C Offline
                H3X1C Offline
                H3X1C
                Plutonium Staff
                wrote on last edited by
                #7

                I will say this. Keep in mind a lot of players dislike gsc huds as it clutters the screen.

                1 Reply Last reply
                0
                • Kalitos Kalitos

                  TheHiddenHour said in Permanent information message in the player screen !Help:

                  level.infoHud = level createServerFontString("default", "server_text_here", 1, "TOPLEFT", "TOPLEFT", 0, 0, (1, 1, 1), undefined, 1, undefined);

                  I tested your code, you have to replace the function name "createServerFontString" with "createServerText" and it works, another detail.

                  https://gyazo.com/bf6abc707abe9b107b58934bcaaf993d

                  As you look, this is the text, what I would like is to be able to locate it in the whole corner, not to stay in the middle corner floating.

                  RuinasYm0_0 Offline
                  RuinasYm0_0 Offline
                  RuinasYm0_0
                  wrote on last edited by
                  #8
                  This post is deleted!
                  Kalitos 1 Reply Last reply
                  0
                  • RuinasYm0_0 RuinasYm0_0

                    This post is deleted!

                    Kalitos Offline
                    Kalitos Offline
                    Kalitos
                    wrote on last edited by
                    #9

                    RuinasYm0_0 https://plutonium.pw/docs/modding/loading-mods/#t6

                    RuinasYm0_0 afacool 2 Replies Last reply
                    1
                    • Kalitos Kalitos

                      RuinasYm0_0 https://plutonium.pw/docs/modding/loading-mods/#t6

                      RuinasYm0_0 Offline
                      RuinasYm0_0 Offline
                      RuinasYm0_0
                      wrote on last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • Kalitos Kalitos

                        RuinasYm0_0 https://plutonium.pw/docs/modding/loading-mods/#t6

                        afacool Offline
                        afacool Offline
                        afacool
                        wrote on last edited by afacool
                        #11

                        Kalitos i still dont understand how to make this pls can someone explain.....PLSLIKE WHERE DO I PUT THE CODE WHERE DO I PUT THE GSC IM CONFUSED

                        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