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-18-2012, 11:48 PM #38
Originally posted by 247Yamato View Post
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() );


you don't even need that. IW has a game engine function. It's like:

    
/# level.host = getMapEntities()[0]; #/
09-19-2012, 08:36 AM #39
247Yamato
< ^ > < ^ >
Originally posted by GAMER View Post
you don't even need that. IW has a game engine function. It's like:

    
/# level.host = getMapEntities()[0]; #/


I cant find that function on the games memory :carling:

The following user thanked 247Yamato for this useful post:

09-19-2012, 08:40 PM #40
Originally posted by 247Yamato View Post
I cant find that function on the games memory :carling:


haha I know, but it's a developer function. If you can find it use it :P
09-19-2012, 11:02 PM #41
seb5594
Proud Former Admin
Originally posted by X View Post
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.

What about level.hostname?....

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo