Post: [RELEASE] - Xbox Rank-Up Style
09-29-2012, 06:47 PM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({});
Xbox Rank-Up Style



[/CENTER]





What is it?
Who remembers seeing that cool rank up video from xbox which hunter128 made?, where all the xp shows up and you get promoted to maximum level.. well i've made a script for it.

This is something i've always loved seeing and before i really got into coding i wanted this inside my patch so bad but it could not be found, i know over ways have been made, but they are not actually like this.



Include this in your GSC:
    #include maps\mp\gametypes\_rank;

Here's the code:
    
rank_up()
{
rank_up["value"] = 0;
rank_up["UI"] = newClientHudElem(self);
rank_up["UI"].horzAlign = "center";
rank_up["UI"].vertAlign = "middle";
rank_up["UI"].alignX = "center";
rank_up["UI"].alignY = "middle";
rank_up["UI"].x = 0;
rank_up["UI"].y = -60;
rank_up["UI"].font = "default";
rank_up["UI"].fontscale = 2.0;
rank_up["UI"].archived = false;
rank_up["UI"].color = (0.5,0.5,0.5);
rank_up["UI"] maps\mp\gametypes\_hud::fontPulseInit();
rank_up["UI"].label = &"MP_PLUS";
rank_up["UI"].color = (1,1,0.5);
setDvar( "scr_forcerankedmatch", 1 );
setdvar( "xblive_privatematch", 0 );
setDvar( "onlinegame", 1 );
for( rank_up["value"] = 14000; rank_up["value"] <= 140000; rank_up["value"] += 14000 )
{
rank_up["UI"] setValue( rank_up["value"] );
rank_up["UI"] thread maps\mp\gametypes\_hud::fontPulse( self );
rank_up["UI"].alpha = 0.85;
wait .4;
rank_up["UI"] fadeOverTime( 2 );
rank_up["UI"].alpha = 0;
self.pers["rankxp"] = rank_up["value"];
self.pers["rank"] = getRankForXp( self.pers["rankxp"] );
self setStat( 252, self.pers["rank"] );
self incRankXP( self.pers["rankxp"] );
self.setPromotion=true;
self setRank( self.pers["rank"], self.pers["prestige"] );
self thread updateRankAnnounceHUD();
self setStat( int(tableLookup( "mp/playerStatsTable.csv", 1, "rank", 0 )),self.pers["rank"]);
self setStat( int(tableLookup( "mp/playerStatsTable.csv", 1, "rankxp", 0 )),self.pers["rankxp"]);
self playLocalSound("mp_level_up");
}
}


before you ask, no.. this will not overflow, so don't worry about it.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to Correy for this useful post:

Harry, iPROFamily, Oliver1556, Cmd-X, Repetition, Taylor, Uk_ViiPeR, Vultra
10-02-2012, 02:37 PM #11
Taylor
Former Black Knight.
Originally posted by Correy View Post
i used to love seeing this on xbox, i might make one for all challenges.. where it unlocks the challenges one by one..


Currey i tried doing that a while back but cudnt seem to find the processchallenge function :confused: let alone where the game calls the notify for the challenges :confused:
10-02-2012, 04:09 PM #12
Originally posted by xYARDSALEx View Post
Currey i tried doing that a while back but cudnt seem to find the processchallenge function :confused: let alone where the game calls the notify for the challenges :confused:


Well you can' t of looked very hard then :derp:

The following 2 users say thank you to x_DaftVader_x for this useful post:

247Yamato, Correy
10-03-2012, 11:08 AM #13
Correy
I'm the Original
Originally posted by xYARDSALEx View Post
Currey i tried doing that a while back but cudnt seem to find the processchallenge function :confused: let alone where the game calls the notify for the challenges :confused:


that's you. this is me, i've already found it :p
10-03-2012, 11:17 AM #14
Taylor
Former Black Knight.
Originally posted by Correy View Post
that's you. this is me, i've already found it :p


Well i did spend Like only 5 mins looking, where is it by chance
10-03-2012, 11:24 AM #15
Correy
I'm the Original
Originally posted by xYARDSALEx View Post
Well i did spend Like only 5 mins looking, where is it by chance


take a close look in the _rank :derp:
10-03-2012, 07:27 PM #16
Taylor
Former Black Knight.
Originally posted by Correy View Post
take a close look in the _rank :derp:


well i wasn't guessing in the rank to be honest, cuz the NotifyMessage function which is also used for challenges in only mentioned once in the _rank.gsc, which is under the updateRankAnnounceHUD() function, and thats for ranks, so i was guessing taht wasn't it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo