• Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

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

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
11 Posts 6 Posters 261 Views
    • 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.
  • Kalitosundefined Offline
    Kalitosundefined 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

    Ducxyundefined TheHiddenHourundefined 2 Replies Last reply
    0
  • Ducxyundefined Offline
    Ducxyundefined Offline
    Ducxy
    replied to Kalitos on last edited by
    #2

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

    1 Reply Last reply
    0
  • TheHiddenHourundefined Offline
    TheHiddenHourundefined Offline
    TheHiddenHour Contributor
    replied to Kalitos 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 🤥 ).

    Kalitosundefined 2 Replies Last reply
    0
  • Kalitosundefined Offline
    Kalitosundefined Offline
    Kalitos
    replied to TheHiddenHour on last edited by
    #4

    TheHiddenHour Thank you very much, I will try it.

    1 Reply Last reply
    0
  • Kalitosundefined Offline
    Kalitosundefined Offline
    Kalitos
    replied to TheHiddenHour 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.

    TheHiddenHourundefined RuinasYm0_0undefined 2 Replies Last reply
    0
  • TheHiddenHourundefined Offline
    TheHiddenHourundefined Offline
    TheHiddenHour Contributor
    replied to Kalitos 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
  • H3X1Cundefined Offline
    H3X1Cundefined 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
  • RuinasYm0_0undefined Offline
    RuinasYm0_0undefined Offline
    RuinasYm0_0
    replied to Kalitos on last edited by
    #8
    This post is deleted!
    Kalitosundefined 1 Reply Last reply
    0
  • Kalitosundefined Offline
    Kalitosundefined Offline
    Kalitos
    replied to RuinasYm0_0 on last edited by
    #9

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

    RuinasYm0_0undefined afacoolundefined 2 Replies Last reply
    1
  • RuinasYm0_0undefined Offline
    RuinasYm0_0undefined Offline
    RuinasYm0_0
    replied to Kalitos on last edited by
    #10
    This post is deleted!
    1 Reply Last reply
    0
  • afacoolundefined Offline
    afacoolundefined Offline
    afacool
    replied to Kalitos 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

  • Login

  • Don't have an account? Register

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

  • Don't have an account? Register

  • Login or register to search.