Post: [RELEASE] IVI40A3Fusionz Class Selector
06-19-2012, 06:16 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({});
Was off school today due to being ill, and i saw 247Yamato's MW2 Class Selector on his YouTube channel, had nothing to do so i thought i would code my own quickly and it turned out pretty good imo didn't take long to code and the coding is huge for what it does but oh well you don't have to use it.

Anyway so what i've done it recreated 247Yamato's MW2 Class Selector for COD4 but changed a few things.


Want to see what it looks like?
It looks kinda like this one except a few changes + it's not cursor controlled like 247Yamato's



Script:

    
ClassSelector()
{
self TakeAllWeapons();
self.Open = true;
self.Scroll = 0;
self.BG = CreateShader("","",0,0,230,360,(0,0,0),"gradient_center",0,1);
self.Scroller = CreateShader("","",0,-70,230,40,(0,0,0),"progress_bar_bg",1,1);
addClass(0, " Assault", ::getClass, "Assualt");
addClass(1, " Sub-Machine", ::getClass, "Sub-Machine");
addClass(2, "Light-Machine", ::getClass, "Light Machine");
addClass(3, " Shotgun", ::getClass, "Shotgun");
addClass(4, " Sniper", ::getClass, "Sniper");
String = "";
for(i=0;i<self.ClassSelector.size;i++) String += self.ClassSelector[i]+"\n\n";
self.Text = createFontString("default",1.Cool Man (aka Tustin);
self.Text setPoint("","",0,-70);
self.Text.sort = 2;
self.Text.alpha = 1;
self.Text setText(String);
self.Title = createFontString("default",1.6);
self.Title setPoint("","",0,-140);
self.Title.sort = 2;
self.Title.alpha = 1;
self.Title setText(" Class Selector\n By IVI40A3Fusionz\n\n\n\n\n\n\n\n\n\n\n\n\n\n[{+attack}] / [{+speed_throw}] - Navigate\n[{+activate}] - Select Class");
for(;Winky Winky
{
if(self AttackButtonPressed() || self AdsButtonPressed() && self.Open == true)
{
self.Scroll += self AttackButtonPressed();
self.Scroll -= self AdsButtonPressed();
if(self.Scroll > self.ClassSelector.size-1)self.Scroll=0;
else if(self.Scroll < 0)self.Scroll=self.ClassSelector.size-1;
self.Scroller.y = self.Scroll*43-70;
wait .2;
}
if(self UseButtonPressed() && self.Open == true)
{
self thread [[self.Function[self.Scroll]]](self.Input[self.Scroll]);
self.Open = false;
self.Title destroy();
self.Text destroy();
self.BG destroy();
self.Scroller destroy();
wait .2;
}
wait .001;
}
}
addClass(Scroll, Text, Function, Input)
{
self.ClassSelector[Scroll] = Text;
self.Function[Scroll] = Function;
self.Input[Scroll] = Input;
}
getClass(Class)
{
switch(Class)
{
case "Assault":
self doLoadouts("mp44_mp","deserteaglegold_mp","c4_mp","specialty_extraammo|specialty_rof|specialty_bullet accuracy");
break;
case "Sub-Machine":
self doLoadouts("ak74u_mp","deserteaglegold_mp","c4_mp","specialty_extraammo|specialty_rof|specialty_bullet accuracy");
break;
case "Light Machine":
self doLoadouts("rpd_mp","deserteaglegold_mp","rpg_mp","specialty_extraammo|specialty_rof|specialty_bullet accuracy");
break;
case "Shotgun":
self doLoadouts("m1014_mp","deserteaglegold_mp","rpg_mp","specialty_extraammo|specialty_fastreload|specialty _bulletaccuracy");
break;
case "Sniper":
self doLoadouts("m40a3_mp","deserteaglegold_mp","c4_mp","specialty_extraammo|specialty_fastreload|specialty _bulletaccuracy");
break;
}
}
doLoadouts(Weapon,Weapon2,Equipment,Perks)
{
self GiveWeapon(Weapon);
self GiveWeapon(Weapon2);
self GiveWeapon(Equipment);
wait .01;
self SwitchToWeapon(Weapon);
doPerks = strTok(Perks, "|");
for(i=0;i<doPerks.size;i++)
{
Perk = doPerks[i];
self setPerk(Perk[i]);
}
}
CreateShader(Align,Relative,X,Y,Width,Height,Colou r,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;
}


Credits:
- 247Yamato - For the original idea.
- IVI40A3Fusionz (Me) - For making it myself :p.
(adsbygoogle = window.adsbygoogle || []).push({});

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

247Yamato, Harry, KingcreekS, Cmd-X, Razorcut2015, zxz0O0
07-07-2012, 10:42 AM #20
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by Jango View Post
Its from skyrim...


What's from Skyrim?
07-07-2012, 06:28 PM #21
Jango
I love my kitteh
Originally posted by IVI40A3Fusionz View Post
What's from Skyrim?


Nevermind.
07-10-2012, 12:41 AM #22
nice patch dude

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo