UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Tutorial] "Custom" iPrintLnBold using HUD elements + randomized print function

broken avatar :(
Created 8 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
3,633 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Got bored, decided to release this, as some people might find it useful. Yes, I know its easy to do yourself. Yes, I know there are better ways.
Just something better to use rather than using non-fading iPrintLnBold, that a lot of people use

Text itself in use in 8 seconds:


Code Snippet
Plaintext
/*
level.iprint_1 = false; // Need these 3 in init
level.iprint_2 = false;
level.iprint_3 = false;
self thread randomizing_partprint(); // Calling it on player
*/

At the bottom of your script:

Code Snippet
Plaintext
randomizing_partprint()
{
text_1 = "Picked up One Thing"; // Change to whatever you like
text_2 = "Picked up Anything";
text_3 = "Picked up Something";

defined_text = undefined;
rand = randomInt(3);
if(rand == 0)
{
if(level.iprint_1 == false)
{
defined_text = text_1;
level.iprint_1 = true;
self thread new_text_function(defined_text);
}
else
{
self thread randomizing_partprint();
}
}
else if(rand == 1)
{
if(level.iprint_2 == false)
{
defined_text = text_2;
level.iprint_2 = true;
self thread new_text_function(defined_text);
}
else
{
self thread randomizing_partprint();
}
}
else if(rand == 2)
{
if(level.iprint_3 == false)
{
defined_text = text_3;
level.iprint_3 = true;
self thread new_text_function(defined_text);
}
else
{
self thread randomizing_partprint();
}
}
}

new_text_function(defined_text)
{
screen_text = newClientHudElem(self);
screen_text.foreground = true;
screen_text.sort = 1;
screen_text.hidewheninmenu = false;
screen_text.alignX = "center";
screen_text.alignY = "bottom";
screen_text.horzAlign = "center";
screen_text.vertAlign = "bottom";
screen_text.fontscale = 8;
screen_text.color = (1, 1, 1);
screen_text.x = 0;
screen_text.y = -265;
screen_text.alpha = 0;
screen_text SetText(defined_text);

screen_text FadeOverTime(1);
screen_text.alpha = 1;
wait 2;

screen_text FadeOverTime(2);
screen_text ScaleOverTime(2, 0, 0);
screen_text.alpha = 0;

wait 2;

screen_text destroy_hud();
}
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
Nice, +1.
broken avatar :(
×
broken avatar :(
Location: peLima
Date Registered: 12 October 2013
Last active: 2 months ago
Posts
21
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
pmr4's Groups
pmr4's Contact & Social Linkspmr360pmr360
What are the benefits of this?
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
What are the benefits of this?

Looks better than iPrintLnBold + if you have same model for buildable parts and just want different names each time you pick one part up, then my function adds up on that. Its like in Ghosts, except in Ghosts you had to scavenge from toolboxes and then saw the model for the part while mine is like simpler version of it

 
Loading ...