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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Snippet] Correct way to do welcome messages

[Snippet] Correct way to do welcome messages

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
gsc
1 Posts 1 Posters 103 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.
  • ScullyHQundefined Offline
    ScullyHQundefined Offline
    ScullyHQ
    wrote last edited by
    #1

    I've seen plenty of examples of those trying to do animated welcome messages by attempting to mimic the games' default effect rather than just using an existing function which already does the effect they're trying to mimic. These bad attempts usually consist of spamming setText without an overflow fix. Here is a function below which you can add to your projects:

    displayWelcomeMessage()
    {
        welcome_message_data = spawnstruct();
        welcome_message_data.titleText = "Welcome ^3" + self.name + "^7!";
        welcome_message_data.glowColor = (0, 0, 0);
        welcome_message_data.duration = 7;
        welcome_message_data.font = "hudbig";
        welcome_message_data.foreground = 1;
        welcome_message_data.hideWhenInMenu = 1;
        welcome_message_data.archived = 0;
    
        maps\mp\gametypes\_hud_message::notifyMessage(welcome_message_data);
    }
    
    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