Post: Prestiges Icons for Welcome Text
05-31-2015, 10:42 AM #1
N3cTaR
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); Hi i want to put an Icon in my Welcome Text but I don't know the script:

notifyData = spawnstruct();
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);

What is the code to add the Prestige icon
And the code for Prestige 5 and Other?

Thanks Hi
(adsbygoogle = window.adsbygoogle || []).push({});
05-31-2015, 10:53 AM #2
mrtn
Little One
Originally posted by N3cTaR View Post
Hi i want to put an Icon in my Welcome Text but I don't know the script:

notifyData = spawnstruct();
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);

What is the code to add the Prestige icon
And the code for Prestige 5 and Other?

Thanks Hi

This might work I haven't tried it though
    
notifyData = spawnstruct();
notifyData.icon = "rank_prestige05";
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
05-31-2015, 11:07 AM #3
N3cTaR
Keeper
Originally posted by 0x0000000 View Post
This might work I haven't tried it though
    
notifyData = spawnstruct();
notifyData.icon = "rank_prestige05";
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);


The icon does not appear I only text on the screen :/
05-31-2015, 11:25 AM #4
ZnZx
Bounty hunter
Minds a bit scrambled atm but doesn't the prestige icons need to be precached?
05-31-2015, 12:21 PM #5
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by N3cTaR View Post
Hi i want to put an Icon in my Welcome Text but I don't know the script:

notifyData = spawnstruct();
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);

What is the code to add the Prestige icon
And the code for Prestige 5 and Other?

Thanks Hi


Here is my code for it -

    
WelcomeMessage(text, text1, icon, glow)
{
hmb=spawnstruct();

if( IsDefined( text ))
{
hmb.titleText = text;
}
else
{
hmb.titleText="^4WELCOME ^2 "+self.name+"! To";
}

if( IsDefined( text1 ))
{
hmb.notifyText = text1;
}
else
{
hmb.notifyText="^4SyGnUs's ^2Lobby!";
}

if( IsDefined( icon ))
{
hmb.iconName = icon;
}
else
{
hmb.iconName="rank_prestige11";
}

if( IsDefined( glow ))
{
hmb.glowColor = glow;
}
else
{
hmb.glowColor = (0, 0, 0);
}

hmb.hideWhenInMenu = true;
hmb.archived = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
}


Looks like this -

You must login or register to view this content.

Note: You have to precache so some icons, not all of them, but if you want the prestige ones I think the first ones are already done for you. If not then just put this in init() -

    
level.maxRank = int(tableLookup( "mp/rankTable.csv", 0, "maxrank", 1 ));

pId = 0;
rId = 0;
for ( pId = 0; pId <= 15; pId++ )
{
// the rank icons are different
for ( rId = 0; rId <= level.maxRank; rId++ )
precacheShader( tableLookup( "mp/rankIconTable.csv", 0, rId, pId+1 ) );
}


that should do all the rank icons for you, didn't test that but worth a shot. But I think the first 11 prestiges are precached for you already and you just need to precache the 12 - 15 for the BO1 icons.
05-31-2015, 04:08 PM #6
N3cTaR
Keeper
Originally posted by SyGnUs View Post
Here is my code for it -

    
WelcomeMessage(text, text1, icon, glow)
{
hmb=spawnstruct();

if( IsDefined( text ))
{
hmb.titleText = text;
}
else
{
hmb.titleText="^4WELCOME ^2 "+self.name+"! To";
}

if( IsDefined( text1 ))
{
hmb.notifyText = text1;
}
else
{
hmb.notifyText="^4SyGnUs's ^2Lobby!";
}

if( IsDefined( icon ))
{
hmb.iconName = icon;
}
else
{
hmb.iconName="rank_prestige11";
}

if( IsDefined( glow ))
{
hmb.glowColor = glow;
}
else
{
hmb.glowColor = (0, 0, 0);
}

hmb.hideWhenInMenu = true;
hmb.archived = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(hmb);
}


Looks like this -

You must login or register to view this content.

Note: You have to precache so some icons, not all of them, but if you want the prestige ones I think the first ones are already done for you. If not then just put this in init() -

    
level.maxRank = int(tableLookup( "mp/rankTable.csv", 0, "maxrank", 1 ));

pId = 0;
rId = 0;
for ( pId = 0; pId <= 15; pId++ )
{
// the rank icons are different
for ( rId = 0; rId <= level.maxRank; rId++ )
precacheShader( tableLookup( "mp/rankIconTable.csv", 0, rId, pId+1 ) );
}


that should do all the rank icons for you, didn't test that but worth a shot. But I think the first 11 prestiges are precached for you already and you just need to precache the 12 - 15 for the BO1 icons.


I do not really understand how to do but thank you
05-31-2015, 04:27 PM #7
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by N3cTaR View Post
I do not really understand how to do but thank you


Just call it where ever you want, like in a menu option do ::WelcomeMessage("Text 1", "Text 2", "rank_prestige11")

or else where - self thread WelcomeMessage("Text 1", "Text 2", "rank_prestige11");
05-31-2015, 04:29 PM #8
FRINZ
I’m too L33T
n3tar simple example watever menu you are using on the beggining of the menu you should see{ init() }
now you will type precacheShader("rank_prestige15""); example so the icon o image will show now go to your { Welcome Text }
now


notifyData = spawnstruct();
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(noti fyData);


now under notifyData.notifyText = "text2";
type in notifyData.icon = "rank_prestige15";


so it should look like this
notifyData = spawnstruct();
notifyData.titleText = "Easy to follow";
notifyData.notifyText = "Same Thing SyG Said";
notifyData.icon = "rank_prestige15";
notifyData.font = "objective";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
05-31-2015, 05:33 PM #9
N3cTaR
Keeper
Originally posted by FRlNZ View Post
n3tar simple example watever menu you are using on the beggining of the menu you should see{ init() }
now you will type precacheShader("rank_prestige15""); example so the icon o image will show now go to your { Welcome Text }
now


notifyData = spawnstruct();
notifyData.titleText = "text1";
notifyData.notifyText = "text2";
notifyData.font = "hudbig";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(noti fyData);


now under notifyData.notifyText = "text2";
type in notifyData.icon = "rank_prestige15";


so it should look like this
notifyData = spawnstruct();
notifyData.titleText = "Easy to follow";
notifyData.notifyText = "Same Thing SyG Said";
notifyData.icon = "rank_prestige15";
notifyData.font = "objective";
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);


Ummm it doesn't work :(

This is my Init and My Welcome:

Originally posted by another user
init()
{
level thread onplayerconnect();
precacheVehicle("heli_guard_mp");
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("projectile_hellfire_missile");
precacheModel("t6_wpn_supply_drop_ally");
precacheModel("mp_flag_green");
precacheModel("mp_flag_red");
precacheShader("emblem_bg_laid_to_rest");
precacheShader("line_horizontal");
precacheShader("rank_prestige15");
precacheShader("progress_bar_bg");
level.icontest = "progress_bar_bg";
level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
precacheModel("german_shepherd");
}


Originally posted by another user
welcomeMessage()
{
notifyData = spawnstruct();
notifyData.titleText = "Test";
notifyData.notifyText = "Test";
notifyData.icon = "rank_prestige15";
notifyData.font = "objective";
notifyData.duration = 15;
notifyData.hideWhenInMenu = false;
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}


And the result in game

You must login or register to view this content.
05-31-2015, 05:34 PM #10
N3cTaR
Keeper
Sorry for the size of the picture :embarrassed:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo