Post: NBK 3.55 Shader code
06-22-2012, 07:35 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This is NBK3.55 shader code for all that want it NOTE this is harder then you think to get you have to decompile the patch this is just for everyone to lazy to do so


exitMenu(){
self.MenuIsOpen = false;
self setBlurForPlayer(0,0.5);
self setClientDvar("g_hardcore", "0");
if(self.godmode == 0){
self.maxhealth = 100;
self.health = self.maxhealth;
}
self freezeControls(false);
}
_openMenu(){
self.MenuIsOpen = true;
self freezeControls(true);
self PlayLocalSound( "mp_war_objective_taken" );
self setBlurForPlayer(4,0.5);
self setClientDvar("g_hardcore", "1");
self.menubg[0] = createShader("right_adjustable", "top_adjustable", "left", "top", -265, 40, 265, 20, "black", (0,0,0), 0.9, 3); //menu_button_selection_bar 1
self.menubg[1] = createShader("right_adjustable", "FULLSCREEN", "left", "top", -265, 0, 300, 480, "black", (0,0,0), 0.5, 1); //gradient_fadein_fadebottom .6
self.menubg[2] = createShader("right_adjustable", "FULLSCREEN", "left", "top", -266, 0, 1, 480, "hudsoftline", (1,1,1), .8, 2);
self.menubg[3] = createShader("right_adjustable", "bottom_adjustable", "left", "right", -280, -130, 200, 75, "logo_iw", "", 1, 4);
for(i=0;i<self.menubg.size;i++){
self.menubg.hideWhenInMenu = true;
self.menubg.archived = false;}
self.menui = self createFontString( "default", 1.3 );
self.menui.hideWhenInMenu = true;
self.menui.archived = false;
self.menui setPointn( "right_adjustable", "bottom_adjustable", "left", "right", -260, -65);
self.menui setText("[{+actionslot 1}]/[{+actionslot 2}]: Scroll\n[{+actionslot 3}]/[{+actionslot 4}]: Cycle\n[{+gostand}]: Select\n[{+stance}]: Exit");
menu = [[self.getMenu]]();
self.numMenus = menu.size;
self.menuSize = [];
for(i = 0; i < self.numMenus; i++)
self.menuSize = menu.name.size;
}

Pre Cache a few things
precacheShader("bottom_adjustable");
precacheShader("right_adjustable");
precacheShader("top_adjustable");
precacheShader("iw_logo");

Might cause unknown function so make a back up of your patch Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Yolo_-MoDz for this useful post:

FourzerotwoFAILS

The following 3 users groaned at Yolo_-MoDz for this awful post:

J, KingcreekS, Taylor
06-26-2012, 04:24 PM #11
Taylor
Former Black Knight.
Originally posted by MoDz View Post
This is NBK3.55 shader code for all that want it NOTE this is harder then you think to get you have to decompile the patch this is just for everyone to lazy to do so


exitMenu(){
self.MenuIsOpen = false;
self setBlurForPlayer(0,0.5);
self setClientDvar("g_hardcore", "0");
if(self.godmode == 0){
self.maxhealth = 100;
self.health = self.maxhealth;
}
self freezeControls(false);
}
_openMenu(){
self.MenuIsOpen = true;
self freezeControls(true);
self PlayLocalSound( "mp_war_objective_taken" );
self setBlurForPlayer(4,0.5);
self setClientDvar("g_hardcore", "1");
self.menubg[0] = createShader("right_adjustable", "top_adjustable", "left", "top", -265, 40, 265, 20, "black", (0,0,0), 0.9, 3); //menu_button_selection_bar 1
self.menubg[1] = createShader("right_adjustable", "FULLSCREEN", "left", "top", -265, 0, 300, 480, "black", (0,0,0), 0.5, 1); //gradient_fadein_fadebottom .6
self.menubg[2] = createShader("right_adjustable", "FULLSCREEN", "left", "top", -266, 0, 1, 480, "hudsoftline", (1,1,1), .8, 2);
self.menubg[3] = createShader("right_adjustable", "bottom_adjustable", "left", "right", -280, -130, 200, 75, "logo_iw", "", 1, 4);
for(i=0;i<self.menubg.size;i++){
self.menubg.hideWhenInMenu = true;
self.menubg.archived = false;}
self.menui = self createFontString( "default", 1.3 );
self.menui.hideWhenInMenu = true;
self.menui.archived = false;
self.menui setPointn( "right_adjustable", "bottom_adjustable", "left", "right", -260, -65);
self.menui setText("[{+actionslot 1}]/[{+actionslot 2}]: Scroll\n[{+actionslot 3}]/[{+actionslot 4}]: Cycle\n[{+gostand}]: Select\n[{+stance}]: Exit");
menu = [[self.getMenu]]();
self.numMenus = menu.size;
self.menuSize = [];
for(i = 0; i < self.numMenus; i++)
self.menuSize = menu.name.size;
}

Pre Cache a few things
precacheShader("bottom_adjustable");
precacheShader("right_adjustable");
precacheShader("top_adjustable");
precacheShader("iw_logo");

Might cause unknown function so make a back up of your patch Smile


:dumb: thats not just the shader stuff thats the open menu function and all :dumb:
06-27-2012, 11:18 AM #12
spudeeelad
I defeated!
Originally posted by LightModz View Post
or you could just use a tool to decompile or even better download his pc upload of this patch :derp:


Or, you could just take a look at this thread...
You must login or register to view this content.
06-29-2012, 01:14 PM #13
Nice Post Bro
06-29-2012, 08:35 PM #14
J
Who’s Jim Erased?
Originally posted by MoDz View Post
lol post whore much?


your talking about post whore? when you just took this code out his patch and made a stupid post about it?
07-02-2012, 02:10 AM #15
SCR34M
Banned
haha does any1 still code or what, whats the point?
07-04-2012, 05:43 AM #16
Originally posted by pip. View Post
your talking about post whore? when you just took this code out his patch and made a stupid post about it?[/QUOTEP]
Problem?
07-16-2012, 09:07 AM #17
Good Post Yolo
07-20-2012, 11:53 PM #18
HackersForHire
Climbing up the ladder
Thanks for this Yolo

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo