Post: [Script] Mw3 Level Up
09-29-2012, 03:40 PM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({});
Well, I Was Playing Xp Lobby On Mw3, And I Thought It Was Pretty Sick, So I Made In It On Cod4........

Video:


How To Use/Install It:

1.) Find The Function: updateRankAnnounceHUD() In The _rank.gsc
2.) Find This Part Of The Function:
    
thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

3.) Remove It, Or Comment It Out, I Did The Following:
    
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

4.) Put This The Following Function, Either In It's Place, Or Under Where You Commented It Out:
    
thread ShowMw3RankUp( notifyData );

5.) Get The Function(s) That Is In The Other Half Of The Thread And Put It Anywhere In The _rank.gsc
6.) Put This Under Init()
    
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]);


And This:

    
for(i=0;i<12;i++)precacheShader("rank_prestige"+i);



The Function(s):
    
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();
}



I Hope You All Enjoy It Winky Winky
Last edited by Taylor ; 10-06-2012 at 06:14 PM.

The following 17 users say thank you to Taylor for this useful post:

Day, Amanda, BlackShadow, Choco, CoDyMoDz1000XD, forflah123, Harry, IELIITEMODZX, iPROFamily, Kush Friendly, LightModz, Lovol, Oliver1556, Pseudo_Soldier, silentcobra22, Uk_ViiPeR, Vanz
09-29-2012, 03:42 PM #2
Newelly
Can’t trickshot me!
The point of this is? :lol: Doesn't actually some worthy of a release but it's not my call...

guess i could say nice work :fa:

The following user thanked Newelly for this useful post:

Harry

The following 2 users groaned at Newelly for this awful post:

KM-_1337, Taylor
09-29-2012, 03:42 PM #3
Taylor
Former Black Knight.
Originally posted by Newelly
The point of this is? :lol: Doesn't actually some worthy of a release but it's not my call...

guess i could say nice work :fa:


Why are you always negative?

The following user thanked Taylor for this useful post:

ZerOtObey+RM
09-29-2012, 03:44 PM #4
Day
Brute
Great post Yard Needa

The following user thanked Day for this useful post:

Taylor
09-29-2012, 03:48 PM #5
Finally some hacks for CoD4! IW thought it was soooo secure. Take that IW! Dancing
But seriously it's more than I could release hahaha.:blank: Good Job! Claps
09-29-2012, 03:52 PM #6
LightModz
League Champion
Originally posted by xYARDSALEx View Post
Well, I Was Playing Xp Lobby On Mw3, And I Thought It Was Pretty Sick, So I Made In It On Cod4........

How To Use/Install It:

1.) Find The Function: updateRankAnnounceHUD() In The _rank.gsc
2.) Find This Part Of The Function:
    
thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

3.) Remove It, Or Comment It Out, I Did The Following:
    
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

4.) Put This The Following Function, Either In It's Place, Or Under Where You Commented It Out:
    
thread ShowMw3RankUp( notifyData );

5.) Get The Function(s) That Is In The Other Half Of The Thread And Put It Anywhere In The _rank.gsc


The Function(s):
    
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();
}



I Hope You All Enjoy It Winky Winky


NICE thanks for release! things like this are really pointless but the usually the more pointless the more fun :happygrin:
09-29-2012, 03:56 PM #7
Newelly
Can’t trickshot me!
Originally posted by xYARDSALEx View Post
Why are you always negative?


Wasn't been negative after all i said i could say nice work...
mean while it's actually pointless IME.
09-29-2012, 03:58 PM #8
Taylor
Former Black Knight.
Originally posted by Newelly
Wasn't been negative after all i said i could say nice work...
mean while it's actually pointless IME.


Well, its pointless, but its cool/fun to have in ur patch, and something different Winky Winky
09-29-2012, 04:05 PM #9
Newelly
Can’t trickshot me!
Originally posted by xYARDSALEx View Post
Well, its pointless, but its cool/fun to have in ur patch, and something different Winky Winky


Hence why i said "guess i could say nice work"
09-29-2012, 06:43 PM #10
silentcobra22
Bounty hunter
Originally posted by xYARDSALEx View Post
Well, I Was Playing Xp Lobby On Mw3, And I Thought It Was Pretty Sick, So I Made In It On Cod4........

How To Use/Install It:

1.) Find The Function: updateRankAnnounceHUD() In The _rank.gsc
2.) Find This Part Of The Function:
    
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;
}

And Replace It With:
    
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;
}

3.) Find This Part Of The Function:
    
thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

4.) Remove It, Or Comment It Out, I Did The Following:
    
//thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

5.) Put This The Following Function, Either In It's Place, Or Under Where You Commented It Out:
    
thread ShowMw3RankUp( notifyData );

6.) Get The Function(s) That Is In The Other Half Of The Thread And Put It Anywhere In The _rank.gsc


The Function(s):
    
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();
}



I Hope You All Enjoy It Winky Winky


Thanks for getting it to Work For MW2 Needa

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo