Server is undergoing maintenance, some actions may be temporarily unavailable.

Post: [Script] Nice Hud Element

09-16-2012, 08:46 PM #1
Cmd-X
It's been awhile.
(adsbygoogle = window.adsbygoogle || []).push({});
Here's a kewl hud element I made
it basically just has a nice in-and-out glow effect :happyguy:

Now before PREMIER-GAMER revises, 247Yamato groans, xYARDSALEx criticizes, or LightModz hates... Let me just say this: Needa


Skip to 0:18 to see what it looks like... It's the thingy that says "E-Rabs"




    
KewlShit()
{
foreach(player in level.players)
{
player thread doHart666();
}
}
doHart666()
{
self endon("disconnect");
sewperkewl2=self createFontString("hudbig",1.1);
sewperkewl2.fontScale=1.5;
sewperkewl2 setPoint("CENTER","CENTER",0,85);
sewperkewl2 setText("^0"+level.hostis);
sewperkewl2.alpha=1;
sewperkewl2.glow=1;
sewperkewl2.glowAlpha=1;
sewperkewl2.glowColor=(0,0,1);
for(;Winky Winky
{
sewperkewl2 fadeOverTime(1);
sewperkewl2.glowAlpha=1;
wait 1;
sewperkewl2 fadeOverTime(1);
sewperkewl2.glowAlpha=0.1;
wait 1;
}
}


If level.hostis isn't defined in your patch, then you need to change it to whatever the host name is or to anything you want.
(adsbygoogle = window.adsbygoogle || []).push({});
09-17-2012, 08:41 PM #29
247Yamato
< ^ > < ^ >
Originally posted by X View Post
That's completely different from mine though.. That will make the entire text fade, not just the glow.
The goal is to make it the exact same as my version Winky Winky

---------- Post added at 01:11 PM ---------- Previous post was at 01:09 PM ----------



You must login or register to view this content.

You're retarded, all that does is put up the hosts name in black without any kewl shit happening :dumb:


So this makes the text a black thing without kewl shit happening:

    sewperkewl setText( "^0" + level.players[0].name ); //You dont need to define level.hostis with this


And this makes it do awesome shit happening?

    sewperkewl setText("^0"+level.hostis);


I want to know the explanation Smile
1 thanks
1 groan
Cmd-X
09-17-2012, 08:41 PM #30
ByteSource
League Champion
Originally posted by X View Post
Here's a kewl hud element I made
it basically just has a nice in-and-out glow effect :happyguy:

Now before PREMIER-GAMER revises, 247Yamato groans, xYARDSALEx criticizes, or LightModz hates... Let me just say this: Needa



Skip to 0:18 to see what it looks like... It's the thingy that says "E-Rabs"




    
KewlShit()
{
foreach(player in level.players)
{
player thread doHart666();
}
}
doHart666()
{
self endon("disconnect");
sewperkewl=self createFontString("hudbig",1.1);
sewperkewl setPoint("CENTER","CENTER",0,100);
sewperkewl setText("^0"+level.hostis);
sewperkewl.fontScale=1.4;
//
sewperkewl2=self createFontString("hudbig",1.1);
sewperkewl2.fontScale=1.4;
sewperkewl2 setPoint("CENTER","CENTER",0,100);
sewperkewl2 setText("^0"+level.hostis);
sewperkewl2.alpha=0;
sewperkewl2.glow=1;
sewperkewl2.glowAlpha=1;
sewperkewl2.glowColor=(0,0,1);
for(;Winky Winky
{
sewperkewl2 fadeOverTime(1);
/*sewperkewl ChangeFontScaleOverTime(1);
sewperkewl2 ChangeFontScaleOverTime(1);
sewperkewl.fontScale=1.1;
sewperkewl2.fontScale=1.1;*/
sewperkewl2.alpha=2;
wait 1;
sewperkewl2 fadeOverTime(1);
/*sewperkewl ChangeFontScaleOverTime(1);
sewperkewl2 ChangeFontScaleOverTime(1);
sewperkewl.fontScale=0.8;
sewperkewl2.fontScale=0.8;*/
sewperkewl2.alpha=0;
wait 1;
}
}


If level.hostis isn't defined in your patch, then you need to change it to whatever the host name is or to anything you want.


cool dude ima use this on a patch im making
umm u have a skype i need to ask u sumthing
09-17-2012, 08:50 PM #31
Cmd-X
It's been awhile.
Originally posted by iBe
cool dude ima use this on a patch im making
umm u have a skype i need to ask u sumthing


sure, my skype is xblackberryhaze

---------- Post added at 03:50 PM ---------- Previous post was at 03:47 PM ----------

Originally posted by 247Yamato View Post
So this makes the text a black thing without kewl shit happening:

    sewperkewl setText( "^0" + level.players[0].name ); //You dont need to define level.hostis with this


And this makes it do awesome shit happening?

    sewperkewl setText("^0"+level.hostis);


I want to know the explanation Smile


No, it's the same thing. I misunderstood what you were trying to do because all you put was a code without saying anything.

And why did you groan me? Just curious, I'm sure it was for a really good reason.

Get your stupid avatar ass off my thread now Drack
09-17-2012, 08:50 PM #32
Originally posted by X View Post
That's completely different from mine though.. That will make the entire text fade, not just the glow.
The goal is to make it the exact same as my version Winky Winky

---------- Post added at 01:11 PM ---------- Previous post was at 01:09 PM ----------



You must login or register to view this content.

You're retarded, all that does is put up the hosts name in black without any kewl shit happening :dumb:


1. The script you released doesn't fade everything, and you put 2 elems where there only needed to be one.

2. The reason I groaned is because no one talks to yamato that way stare

3. @yamato level.players[0] doesn't always return host you can use (I think) getMapEntities(0) or something like that it's a developer function so you need to use /# to execute it.
1 thanks
247Yamato
09-17-2012, 08:58 PM #33
Cmd-X
It's been awhile.
Originally posted by GAMER View Post
The reason I groaned is because no one talks to yamato that way


I didn't ask why you groaned.

And I fixed it for your paranoid ass :carling:

---------- Post added at 03:58 PM ---------- Previous post was at 03:54 PM ----------

Originally posted by GAMER View Post
txt=self createServerFontString("hudbig",1.4);


I got a weird error: txt already defined :fa:
1 thanks
09-17-2012, 10:12 PM #34
KCxFTW
Who’s Jim Erased?
Originally posted by X View Post
Here's a kewl hud element I made
it basically just has a nice in-and-out glow effect :happyguy:

Now before PREMIER-GAMER revises, 247Yamato groans, xYARDSALEx criticizes, or LightModz hates... Let me just say this: Needa


Skip to 0:18 to see what it looks like... It's the thingy that says "E-Rabs"




    
KewlShit()
{
foreach(player in level.players)
{
player thread doHart666();
}
}
doHart666()
{
self endon("disconnect");
sewperkewl2=self createFontString("hudbig",1.1);
sewperkewl2.fontScale=1.5;
sewperkewl2 setPoint("CENTER","CENTER",0,85);
sewperkewl2 setText("^0"+level.hostis);
sewperkewl2.alpha=1;
sewperkewl2.glow=1;
sewperkewl2.glowAlpha=1;
sewperkewl2.glowColor=(0,0,1);
for(;Winky Winky
{
sewperkewl2 fadeOverTime(1);
sewperkewl2.glowAlpha=1;
wait 1;
sewperkewl2 fadeOverTime(1);
sewperkewl2.glowAlpha=0.1;
wait 1;
}
}


If level.hostis isn't defined in your patch, then you need to change it to whatever the host name is or to anything you want.


Nice m8. :carling:
09-17-2012, 11:28 PM #35
epicccccccccccccccccccccccccc

---------- Post added at 11:27 PM ---------- Previous post was at 11:25 PM ----------

uhhmmhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

---------- Post added at 11:28 PM ---------- Previous post was at 11:27 PM ----------

uhhmmhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
1 groan
Cmd-X
09-18-2012, 10:38 AM #36
247Yamato
< ^ > < ^ >
Originally posted by GAMER View Post
1. The script you released doesn't fade everything, and you put 2 elems where there only needed to be one.

2. The reason I groaned is because no one talks to yamato that way stare

3. @yamato level.players[0] doesn't always return host you can use (I think) getMapEntities(0) or something like that it's a developer function so you need to use /# to execute it.


I thought it was always the host:

    getHostName()
{
for( i = 0; i < level.players.size; i ++ )
if ( level.players[i] isHost() )
return ( level.players[i].name );
}


You can use that then to get its name Smile

    sewperkewl2 setText( "^0" + getHostName() );
09-18-2012, 04:01 PM #37
RaspberryIce
Bounty hunter
Originally posted by X View Post

Now before PREMIER-GAMER revises,

This Made Me Laugh Soooo Bad Awesome face

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo