thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
thread ShowMw3RankUp( notifyData );
rankShaders = strTok("rank_pvt1;rank_pvt2;rank_pvt3;rank_pfc1;rank_pfc2; rank_pfc3;rank_lcpl1;rank_lcpl2;rank_lcpl3;rank_cp l1;rank_cpl2;rank_cpl3;rank_sgt1;rank_sgt2;rank_sg t3;rank_ssgt1;rank_ssgt2;rank_ssgt3;rank_gysgt1;ra nk_gysgt2;rank_gysgt3;rank_msgt1;rank_msgt2;rank_m sgt3;rank_mgysgt1;rank_mgysgt2;rank_mgysgt3;rank_2 ndlt1;rank_2ndlt2;rank_2ndlt3;rank_1stlt1;rank_1st lt2;rank_1stlt3;rank_capt1;rank_capt2;rank_capt3;r ank_maj1;rank_maj2;rank_maj3;rank_ltcol1;rank_ltco l2;rank_ltcol3;rank_col1;rank_col2;rank_col3;rank_ bgen1;rank_bgen2;rank_bgen3;rank_majgen1;rank_majg en2;rank_majgen3;rank_ltgen1;rank_ltgen2;rank_ltge n3;rank_gen1;rank_gen2;rank_gen3;rank_comm1", ";" );
for( r = 0; r < rankShaders.size; r++ )
precacheShader(rankShaders[r]);
for(i=0;i<12;i++)precacheShader("rank_prestige"+i);
ShowMw3RankUp( notifyData )
{
wait 0.1;
if(!isDefined(self.AlreadyRanking))
{
self.AlreadyRanking=true;
self playLocalSound(notifyData.sound);
self.Mw3Text=CreateFontString( "objective", 1.5 );
self.Mw3Text setPoint( "TOPRIGHT", "TOPRIGHT", 250, 5 );
self.Mw3Text setText( "You've Been Promoted!" );
self.Mw3Text.glowAlpha=1;
self.Mw3Text.glowColor=(0.3, 0.6, 0.3);
self.Mw3Text setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3Text MoveOverTime(0.2);
self.Mw3Text.x=-15;
self.Mw3Icon=createIcon( notifyData.iconName, 60, 60 );
self.Mw3Icon setShader( notifyData.iconName, 50, 50 );
self.Mw3Icon setPoint( "TOPRIGHT", "TOPRIGHT", -15, 45 );
self.Mw3Icon MoveOverTime(0.2);
self.Mw3Icon.x=-15;
self.Mw3=CreateFontString( "default", 1.6 );
self.Mw3 setPoint( "TOPRIGHT", "TOPRIGHT", 250, 25 );
if(isDefined(notifyData.textLabel))
self.Mw3.label = notifyData.textLabel;
else
self.Mw3.label = &"";
self.Mw3 setText( notifyData.notifyText );
self.Mw3.glowAlpha=1;
self.Mw3.glowColor=(0.3, 0.6, 0.3);
self.Mw3 setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3 MoveOverTime(0.2);
self.Mw3.x=-15;
wait notifyData.duration;
self.AlreadyRanking=undefined;
thread DestroyElems(self.Mw3Icon,self.Mw3,self.Mw3Text);
}
else
{
wait 4.5;
thread ShowMw3RankUp( notifyData );
}
}
DestroyElems(elem1, elem2, elem3)
{
elem1 MoveOverTime(0.1);
elem1.x=250;
elem2 MoveOverTime(0.1);
elem2.x=250;
elem3 MoveOverTime(0.1);
elem3.x=250;
wait 1;
elem1 destroy();
elem2 destroy();
elem3 destroy();
}
thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
thread ShowMw3RankUp( notifyData );
ShowMw3RankUp( notifyData )
{
self playLocalSound("mp_level_up");
self.Mw3=CreateFontString( "default", 1.6 );
self.Mw3 setPoint( "TOPRIGHT", "TOPRIGHT", 250, 25 );
self.Mw3 setText( notifyData.notifyText );
self.Mw3.glowAlpha=1;
self.Mw3.glowColor=(0.3, 0.6, 0.3);
self.Mw3 setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3 MoveOverTime(0.2);
self.Mw3.x=-15;
self.Mw3Text=CreateFontString( "objective", 1.5 );
self.Mw3Text setPoint( "TOPRIGHT", "TOPRIGHT", 250, 5 );
self.Mw3Text setText( "You've Been Promoted!" );
self.Mw3Text.glowAlpha=1;
self.Mw3Text.glowColor=(0.3, 0.6, 0.3);
self.Mw3Text setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3Text MoveOverTime(0.2);
self.Mw3Text.x=-15;
self.Mw3Icon=createIcon( "white", 60, 60 );
self.Mw3Icon setShader( notifyData.iconName, 50, 50 );
self.Mw3Icon setPoint( "TOPRIGHT", "TOPRIGHT", -15, 45 );
self.Mw3Icon MoveOverTime(0.2);
self.Mw3Icon.x=-15;
wait 3.5;
thread DestroyElems(self.Mw3Icon,self.Mw3,self.Mw3Text);
}
DestroyElems(elem1, elem2, elem3)
{
elem1 MoveOverTime(0.1);
elem1.x=250;
elem2 MoveOverTime(0.1);
elem2.x=250;
elem3 MoveOverTime(0.1);
elem3.x=250;
wait 1;
elem1 destroy();
elem2 destroy();
elem3 destroy();
}
if ( subRank == 2 )
{
notifyData.textLabel = newRankName;
notifyData.notifyText = &"RANK_ROMANI";
notifyData.textIsString = true;
}
else if ( subRank == 3 )
{
notifyData.textLabel = newRankName;
notifyData.notifyText = &"RANK_ROMANII";
notifyData.textIsString = true;
}
else
{
notifyData.notifyText = newRankName;
}
if ( subRank == 2 )
{
notifyData.textLabel = newRankName;
notifyData.notifyTextFirst = &"RANK_ROMANI";
notifyData.notifyText = ""+notifyData.notifyTextFirst+" "+notifyData.notifyTextFirst;
notifyData.textIsString = true;
}
else if ( subRank == 3 )
{
notifyData.textLabel = newRankName;
notifyData.notifyTextFirst = &"RANK_ROMANII";
notifyData.notifyText = ""+notifyData.notifyTextFirst+" "+notifyData.notifyTextFirst;
notifyData.textIsString = true;
}
else
{
notifyData.notifyText = newRankName;
}
thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
thread ShowMw3RankUp( notifyData );
ShowMw3RankUp( notifyData )
{
self playLocalSound("mp_level_up");
self.Mw3=CreateFontString( "default", 1.6 );
self.Mw3 setPoint( "TOPRIGHT", "TOPRIGHT", 250, 25 );
self.Mw3 setText( notifyData.notifyText );
self.Mw3.glowAlpha=1;
self.Mw3.glowColor=(0.3, 0.6, 0.3);
self.Mw3 setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3 MoveOverTime(0.2);
self.Mw3.x=-15;
self.Mw3Text=CreateFontString( "objective", 1.5 );
self.Mw3Text setPoint( "TOPRIGHT", "TOPRIGHT", 250, 5 );
self.Mw3Text setText( "You've Been Promoted!" );
self.Mw3Text.glowAlpha=1;
self.Mw3Text.glowColor=(0.3, 0.6, 0.3);
self.Mw3Text setPulseFX( 100, int(60000*1000), 1000 );
self.Mw3Text MoveOverTime(0.2);
self.Mw3Text.x=-15;
self.Mw3Icon=createIcon( "white", 60, 60 );
self.Mw3Icon setShader( notifyData.iconName, 50, 50 );
self.Mw3Icon setPoint( "TOPRIGHT", "TOPRIGHT", -15, 45 );
self.Mw3Icon MoveOverTime(0.2);
self.Mw3Icon.x=-15;
wait 3.5;
thread DestroyElems(self.Mw3Icon,self.Mw3,self.Mw3Text);
}
DestroyElems(elem1, elem2, elem3)
{
elem1 MoveOverTime(0.1);
elem1.x=250;
elem2 MoveOverTime(0.1);
elem2.x=250;
elem3 MoveOverTime(0.1);
elem3.x=250;
wait 1;
elem1 destroy();
elem2 destroy();
elem3 destroy();
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.