09-27-2013, 04:45
(This post was last modified: 09-27-2013, 17:48 by DidUknowiPwn.)
Okay so I'm writing up a function to select a random perk (which will be given to everyone). But in Black Ops, the perk strings/icons are different unlike in MW2 where the perk name = string & icon material.
This is my function so far:
So I need to find level.infc_Perk1's string.
Realistically:
speciality_flakjacket to string & material
This is my function so far:
Code:
Specialist( text, glowColor, iconType )
{
self endon("disconnect");
self notify("StreakPopup");
self endon("StreakPopup");
self.DatText = createFontString( "extrabig", "2" );
self.DatText setPoint( "TOP", undefined, 0, 100 );
self.DatText.glowColor = glowColor;
self.DatText.glowAlpha = 0.2;
self.DatText.hideWhenInMenu = false;
self.DatText.archived = false;
self.DatText setText(text);
self.DatIcon setShader( iconType, 45, 45 );
self.DatText fadeOverTime(0.75);
self.DatIcon fadeOverTime(0.75);
self.DatIcon.alpha = 1;
self.DatText.alpha = 1;
self.DatText.fontscale = 1.4;
self.DatText setCOD7DecodeFX( 200, 60000, 600 );
wait 4;
self.DatText fadeOverTime(0.75);
self.DatIcon fadeOverTime(0.75);
self.DatText.alpha = 0;
self.DatIcon.alpha = 0;
}
Code:
level.infc_Perk1 = getRandomPerk_1();
Realistically:
speciality_flakjacket to string & material
Do not take life too seriously. You will never get out of it alive.