Post: [NEW] - All Rank Shaders Precached
10-28-2012, 10:38 AM #1
Correy
I'm the Original
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU,

So there's a lot of long scripts to precache rank shaders, that being shaders for rank 1 - 55.
But not many know they already precached into the game in the .csv tables, So I was looking about and i made a little function which gets the shader and even better it doesn't need precaching either.

Here's the function:
    
rshad( rank )
{
return tableLookup( "mp/rankIconTable.csv", 0, rank-1, 1 );
}


Example of use:
    
createShader( [B]rshad(55)[/B], 100, 100, undefined );


it's not the best release in the world, but a lot of people will use it and it WILL save space
10-28-2012, 02:01 PM #2
Taylor
Former Black Knight.
Originally posted by Correy View Post
Hello NGU,

So there's a lot of long scripts to precache rank shaders, that being shaders for rank 1 - 55.
But not many know they already precached into the game in the .csv tables, So I was looking about and i made a little function which gets the shader and even better it doesn't need precaching either.

Here's the function:
    
rshad( rank )
{
return tableLookup( "mp/rankIconTable.csv", 0, rank-1, 1 );
}


Example of use:
    
createShader( [B]rshad(55)[/B], 100, 100, undefined );


it's not the best release in the world, but a lot of people will use it and it WILL save space


Good work, but space isn't a big worry about because of custom fast files
10-28-2012, 02:07 PM #3
Correy
I'm the Original
Originally posted by xYARDSALEx View Post
Good work, but space isn't a big worry about because of custom fast files


yeah i know, but it's better than those strTok's :derp:
10-28-2012, 02:08 PM #4
Taylor
Former Black Knight.
Originally posted by Correy View Post
yeah i know, but it's better than those strTok's :derp:


Well yea, but still
10-28-2012, 03:28 PM #5
Jacob-And-Britt
I’m too L33T
Originally posted by Correy View Post


Example of use:
    
createShader( [B]rshad(55)[/B], 100, 100, undefined );


it's not the best release in the world, but a lot of people will use it and it WILL save space
without the createshader function it will unknown function!

The following 2 users groaned at Jacob-And-Britt for this awful post:

Correy, INSAN3LY_D34TH
10-28-2012, 04:34 PM #6
TheFallen
Former Dark Night
Originally posted by Britt View Post
without the createshader function it will unknown function!

It was an example, you aren't meant to copy and paste it into your patch :dumb:

The following 3 users say thank you to TheFallen for this useful post:

Correy, INSAN3LY_D34TH, Taylor
10-29-2012, 12:46 AM #7
Jacob-And-Britt
I’m too L33T
Originally posted by TheFallen View Post
It was an example, you aren't meant to copy and paste it into your patch :dumb:
I know i was messing around lol i forgot to add the :carling: face lol

The following user groaned Jacob-And-Britt for this awful post:

INSAN3LY_D34TH

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo