Post: [RELEASE] Weapons Menu Thing | Just Something Nice To Use
07-26-2012, 03:50 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); Not anything very special to release, but it's something new-ish that i haven't really seen in many other patches, it's something different from an editor and still looks pretty neat. Got the idea from Yamato although he told me to do something different, i tried his idea it didn't work so i changed it around abit but hey here we go.

Video:


Step 1:

Find your SubMenu, NewMenu etc function that allows you to enter new menus etc and add this.
    
if(getSub("Weapons"))
self.WeaponShaders = CreateShader("TOPRIGHT","RIGHT",-11,-200,205,132,(1,1,1),getAction(5)[0],200,.7);



Step 2:

Find the function with all your scrolling components like self AttackButtonPressed() etc, and add this.
    
if(getSub("Weapons"))
self.WeaponShaders setShader(getAction(5)[self.Menu["Scroll"]],205,132);



Step 3:

Go to the init function in rank.gsc or weapons.gsc and put these 2 things in there.
    
level.Action[5] = strTok("weapon_remington700;weapon_m40a3;weapon_m14_scoped;weapon_dragunovsvd;weapon_barrett50cal;weapon_winchester1200;weapon_benelli_m4;weapon_m249saw;weapon_rpd;weapon_m60e4;weapon_mp5;weapon_skorpion;weapon_mini_uzi;weapon_aks74u;weapon_p90;weapon_m16a4;weapon_ak47;weapon_g3;weapon_g36c;weapon_m4carbine;weapon_m14;weapon_mp44", ";");

PS("weapon_remington700;weapon_m40a3;weapon_m14_scoped;weapon_dragunovsvd;weapon_barrett50cal;weapon_winchester1200;weapon_benelli_m4;weapon_m249saw;weapon_rpd;weapon_m60e4;weapon_mp5;weapon_skorpion;weapon_mini_uzi;weapon_aks74u;weapon_p90;weapon_m16a4;weapon_ak47;weapon_g3;weapon_g36c;weapon_m4carbine;weapon_m14;weapon_mp44");



Some Extra Things You Will Need:
    
CreateShader(Align,Relative,X,Y,Width,Height,Colour,Shader,Sort,Alpha)
{
CShader=newClientHudElem(self);
CShader.children=[];
CShader.elemType="bar";
CShader.sort=Sort;
CShader.color=Colour;
CShader.alpha=Alpha;
CShader setParent(level.uiParent);
CShader setShader(Shader,Width,Height);
CShader setPoint(Align,Relative,X,Y);
return CShader;
}
getAction(Input)
{
return level.Action[Input];
}
getSub(Menu)
{
if(isSubStr(self.Parent, Menu))return true;
return false;
}
PS(s)
{
k=strTok(s,";");
for(i=0;i<k.size;i++)precacheShader(k[i]);
}


NOTE: self.Parent, "Weapons" and self.Menu["Scroll"] will differ in your patches.

Credits:
Yamato - For The Idea :love:.
IVI40A3Fusionz - For Making It I Guess :\.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to IVI40A3Fusionz for this useful post:

247Yamato, Harry, INSAN3LY_D34TH, iPROFamily, LightModz, Newelly,
07-26-2012, 04:12 PM #2
LightModz
League Champion
Originally posted by IVI40A3Fusionz View Post
Not anything very special to release, but it's something new-ish that i haven't really seen in many other patches, it's something different from an editor and still looks pretty neat. Got the idea from Yamato although he told me to do something different, i tried his idea it didn't work so i changed it around abit but hey here we go.

Video:


Step 1:

Find your SubMenu, NewMenu etc function that allows you to enter new menus etc and add this.
    
if(getSub("Weapons"))
self.WeaponShaders = CreateShader("TOPRIGHT","RIGHT",-11,-200,205,132,(1,1,1),getAction(5)[0],200,.7);



Step 2:

Find the function with all your scrolling components like self AttackButtonPressed() etc, and add this.
    
if(getSub("Weapons"))
self.WeaponShaders setShader(getAction(5)[self.Menu["Scroll"]],205,132);



Step 3:

Go to the init function in rank.gsc or weapons.gsc and put these 2 things in there.
    
level.Action[5] = strTok("weapon_remington700;weapon_m40a3;weapon_m14_scoped;weapon_dragunovsvd;weapon_barrett50cal;weapon_winchester1200;weapon_benelli_m4;weapon_m249saw;weapon_rpd;weapon_m60e4;weapon_mp5;weapon_skorpion;weapon_mini_uzi;weapon_aks74u;weapon_p90;weapon_m16a4;weapon_ak47;weapon_g3;weapon_g36c;weapon_m4carbine;weapon_m14;weapon_mp44", ";");

PS("weapon_remington700;weapon_m40a3;weapon_m14_scoped;weapon_dragunovsvd;weapon_barrett50cal;weapon_winchester1200;weapon_benelli_m4;weapon_m249saw;weapon_rpd;weapon_m60e4;weapon_mp5;weapon_skorpion;weapon_mini_uzi;weapon_aks74u;weapon_p90;weapon_m16a4;weapon_ak47;weapon_g3;weapon_g36c;weapon_m4carbine;weapon_m14;weapon_mp44");



Some Extra Things You Will Need:
    
CreateShader(Align,Relative,X,Y,Width,Height,Colour,Shader,Sort,Alpha)
{
CShader=newClientHudElem(self);
CShader.children=[];
CShader.elemType="bar";
CShader.sort=Sort;
CShader.color=Colour;
CShader.alpha=Alpha;
CShader setParent(level.uiParent);
CShader setShader(Shader,Width,Height);
CShader setPoint(Align,Relative,X,Y);
return CShader;
}
getAction(Input)
{
return level.Action[Input];
}
getSub(Menu)
{
if(isSubStr(self.Parent, Menu))return true;
return false;
}
PS(s)
{
k=strTok(s,";");
for(i=0;i<k.size;i++)precacheShader(k[i]);
}


NOTE: self.Parent, "Weapons" and self.Menu["Scroll"] will differ in your patches.

Credits:
Yamato - For The Idea :love:.
IVI40A3Fusionz - For Making It I Guess :\.


this is acually pretty neat, maybe we could use these as a infomation bar aswel or something or maybe some scroll bar shaders etc
07-26-2012, 06:32 PM #3
Originally posted by IVI40A3Fusionz View Post
Not anything very special , I Guess :\.



Sorry, I don't get it, what's the point of this? :dumb:
07-26-2012, 06:35 PM #4
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Sorry, I don't get it, what's the point of this? :dumb:


No point, just an idea suggested by Yamato Happy.
07-26-2012, 06:40 PM #5
Originally posted by IVI40A3Fusionz View Post
No point, just an idea suggested by Yamato Happy.


What was his original idea that didn't work?
07-26-2012, 06:40 PM #6
Newelly
Can’t trickshot me!
Originally posted by x. View Post
Sorry, I don't get it, what's the point of this? :dumb:


yo bitch, stop your bitch ass winging and fuck up :carling:
07-26-2012, 06:42 PM #7
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
What was his original idea that didn't work?


Get the map loadscreen of each map and have it show that loadscreen depending on which map name you're hovered over of have it like a rank editor but with map loadscreens something like that.

Was thinking about taking out the Rank and Prestige editors out completely and put something like this in but using rank icons.
07-26-2012, 06:49 PM #8
Originally posted by Newelly
yo bitch, stop your bitch ass winging and fuck up :carling:


Sorry, I don't talk to stupid people who paid for Elite. Go. Now. :carling:

---------- Post added at 07:49 PM ---------- Previous post was at 07:45 PM ----------

Originally posted by IVI40A3Fusionz View Post
Get the map loadscreen of each map and have it show that loadscreen depending on which map name you're hovered over of have it like a rank editor but with map loadscreens something like that.

Was thinking about taking out the Rank and Prestige editors out completely and put something like this in but using rank icons.

You could easily show the map loadscreen shaders but you can't change maps without crashing on cod4 can you (?) , so ...

And, yeah, I don't see why anyone needs rank and prestige editors on such an old game. I mean, why would you want to be prestige 3, rank 44 or something :confused:

And don't even start with f***ing clan tag editors :dumb:
07-26-2012, 06:49 PM #9
Newelly
Can’t trickshot me!
Originally posted by x. View Post
Sorry, I don't talk to stupid people who paid for Elite. Go. Now. :carling:


I didn't pay for it, and i don't like it hence why i wanted my premium colour back! :p
07-26-2012, 06:52 PM #10
Originally posted by Newelly
I didn't pay for it, and i don't like it hence why i wanted my premium colour back! :p

Hahahaa, someone else paid it for you ? stare :dumb:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo