ItsMods

Full Version: 3D Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello, OMA

This is a tutorial of something that is old, but I havent seen it in the site, :/ Is a tutorial about hud elements in 3D. It has the same effect as the death icons.

Code:
text = newHudElem();
text.x = x;
text.y = y;
text.z = z;
text.alpha = alpha;
text.archived = true;
text setShader("shader name",width,height);
text setwaypoint(true,false);

This is the way of making it for one certain team: OMA

Code:
text = newTeamHudElem(team);
text.x = x;
text.y = y;
text.z = z;
text.alpha = alpha;
text.archived = true;
text setShader("shader name",width,height);
text setwaypoint(true,false);

OMA Lets make a function that makes it quicker to use:

Code:
MakeWorldText(x,y,z,alpha,shader,width,height)
{
    text = newHudElem();
    text.x = x;
    text.y = y;
    text.z = z;
    text.alpha = alpha;
    text.archived = true;
    text setShader(shader,width,height);
    text setwaypoint(true,false);
    return text;
}

Example:

Code:
oma = self MakeWorldText(956,321,567,1,"weapon_onemanarmy",15,15);

You can do this same thing with other hud elems.

Thats it, OMA
OMA icon for OMA games
Do you got a screenshot from it? sounds ceewl
(10-27-2011, 13:58)jariz Wrote: [ -> ]Do you got a screenshot from it? sounds ceewl

No, I dont have a screenshot but it looks same as when you see those white skulls on allies dead bodies, Cool The code is taken from there.
ah, okay, cool
@Chronalis taught us this, didn't he, @Yamato ? Tongue
I made a black ops script snipped about this awhile ago.
(10-27-2011, 15:30)Pozzuh Wrote: [ -> ]I made a black ops script snipped about this awhile ago.

SO WHAT, LET OTHER PEOPLE RELEASE STUFF ASWELL FUCKING REPWHORE
I haven't rep-whored in a while
(10-27-2011, 15:57)iAegle Wrote: [ -> ]
(10-27-2011, 15:30)Pozzuh Wrote: [ -> ]I made a black ops script snipped about this awhile ago.

SO WHAT, LET OTHER PEOPLE RELEASE STUFF ASWELL FUCKING REPWHORE

Ok calm down, give me +rep and take a big breath...
Then everything will be okay!
Pages: 1 2