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({});

The following 8 users say thank you to Cmd-X for this useful post:

.BrainzModding, BlurzGoHard, YouAppreciateMe, ForgivenxModz, KCxFTW, notoriousCFW, Valid♥, xRobertDavisx

The following 2 users groaned at Cmd-X for this awful post:

247Yamato, Vampytwistッ
09-17-2012, 04:05 AM #20
Originally posted by X View Post
Because that's how I got the glow effect.

Because I don't optimize my shit, I like it dirty.

Nigga fuck that built in function, I use those ghetto ass codes.


------------------------------------------------------------------

Wait a second... I could've just done this..

    
for( ;; )
{
sewperkewl2 fadeOverTime( 2 );
sewperkewl2.glowAlpha=1;
wait 2;
sewperkewl2 fadeOverTime( 2 );
sewperkewl2.glowAlpha=0;
wait 2;
}



lol no but seriously, all jokes aside. Learn to optimize your shit, and use built in functions. It really takes a lot of the work out, and it's easier to find shit through your coding. You may think nothing of it now, but if you want to progress you'll learn.
09-17-2012, 04:28 AM #21
Cmd-X
It's been awhile.
Originally posted by GAMER View Post
lol no but seriously, all jokes aside. Learn to optimize your shit, and use built in functions. It really takes a lot of the work out, and it's easier to find shit through your coding. You may think nothing of it now, but if you want to progress you'll learn.


The way I think of it is like this: If it works out, then what does it matter if it's optimized, it's all the same just written differently.. And yeah I know, I'm not gonna learn, but I just do what I know.
09-17-2012, 04:42 AM #22
Blackstorm
Veni. Vidi. Vici.
Originally posted by x View Post
now before premier-gamer revises, 247yamato groans, xyardsalex criticizes, or lightmodz hates... Let me just say this:


lmao lmao lmao lmao lmao

The following 2 users say thank you to Blackstorm for this useful post:

Cmd-X
09-17-2012, 04:53 AM #23
Originally posted by X View Post
The way I think of it is like this: If it works out, then what does it matter if it's optimized, it's all the same just written differently.. And yeah I know, I'm not gonna learn, but I just do what I know.


The way I know of it is this:

  • If it's not optimized it's more likely to have bugs
  • You are more likely to get lost
  • hard to search for things.
  • If it's optimized you have more room for script usage in your fastfile.


---------- Post added at 11:53 PM ---------- Previous post was at 11:48 PM ----------

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.


:carling:

    
lrn2opt()
{
level endon("stop_hud");
txt=self createServerFontString("hudbig",1.4);
txt setPoint("CENTER","CENTER",0,100);
txt setText("^0"+level.hostis);
txt.glowAlpha=1;
txt.glowColor=(0,0,1);
for(;Winky Winky
{
txt fadeOverTime(1);
txt.alpha=2;
wait 1;
txt fadeOverTime(1);
txt.alpha=0;
wait 1;
}
}

The following user thanked Jakes625 for this useful post:

Vampytwistッ
09-17-2012, 08:02 AM #24
247Yamato
< ^ > < ^ >
    sewperkewl setText( "^0" + level.players[0].name );

The following user thanked 247Yamato for this useful post:

Cmd-X
09-17-2012, 03:59 PM #25
LightModz
League Champion
Originally posted by GAMER View Post
:yuno:

are you kidding? why do you have 2 elements for 1 settext?

why is it not optomized?

why is this even necassary? theres already a built in function. :FU:

---------- Post added at 10:25 PM ---------- Previous post was at 10:24 PM ----------



who did you learn that from? :carling:


you teehe ^.^

---------- Post added at 10:59 AM ---------- Previous post was at 10:56 AM ----------

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.

why are u getting 300 +rep everyday on? :think:
09-17-2012, 06:11 PM #26
Cmd-X
It's been awhile.
Originally posted by GAMER View Post
The way I know of it is this:

  • If it's not optimized it's more likely to have bugs
  • You are more likely to get lost
  • hard to search for things.
  • If it's optimized you have more room for script usage in your fastfile.


---------- Post added at 11:53 PM ---------- Previous post was at 11:48 PM ----------



:carling:

    
lrn2opt()
{
level endon("stop_hud");
txt=self createServerFontString("hudbig",1.4);
txt setPoint("CENTER","CENTER",0,100);
txt setText("^0"+level.hostis);
txt.glowAlpha=1;
txt.glowColor=(0,0,1);
for(;Winky Winky
{
txt fadeOverTime(1);
txt.alpha=2;
wait 1;
txt fadeOverTime(1);
txt.alpha=0;
wait 1;
}
}


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 ----------

Originally posted by 247Yamato View Post
    sewperkewl setText( "^0" + level.players[0].name );


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:

The following 2 users groaned at Cmd-X for this awful post:

247Yamato,
09-17-2012, 07:07 PM #27
primetime43
Knowledge is power Tiphat
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, but you should use different colors like yellow and green. Brighten it up a little. Smile Nice work
09-17-2012, 07:19 PM #28
Cmd-X
It's been awhile.
Originally posted by primetime43 View Post
Cool, but you should use different colors like yellow and green. Brighten it up a little. Smile Nice work


You can do that No

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo