You are viewing our Forum Archives. To view or take place in current topics click here.
How to add scrolling text like Quarantine Chaos Zombie Mod!
Posted:

How to add scrolling text like Quarantine Chaos Zombie Mod!Posted:

iainbruX
  • TTG Senior
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Very easy to do.

go to your _missions.gsc (yes this works on PS3 and Xbox)

Then go to;

onPlayerConnect();

and underneath the "for(;;)" copy and paste this code.

level thread controlHUD();
level thread scrollHUD();
level thread HUDtext();


If there is a "player thread", put it underneath that too.

Okay now go to "onPlayerSpawned()" and at the end where the closing bracket is, copy and paste this.

HUDtext()
{
        level.infotext setText("Enter Text Here");
}


And underneath that, copy and paste this.

controlHUD()
{
        level.infotext = NewHudElem();
        level.infotext.alignX = "center";
        level.infotext.alignY = "bottom";
        level.infotext.horzAlign = "center";
        level.infotext.vertAlign = "bottom";
        level.infotext.y = 25;
        level.infotext.foreground = true;
        level.infotext.fontScale = 1.35;
        level.infotext.font = "objective";
        level.infotext.alpha = 1;
        level.infotext.glow = 0;
        level.infotext.glowColor = ( 0, 0, 0 );
        level.infotext.glowAlpha = 1;
        level.infotext.color = ( 1.0, 1.0, 1.0 );
        level.bar = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
        level.bar.alignX = "center";
        level.bar.alignY = "bottom";
        level.bar.horzAlign = "center";
        level.bar.vertAlign = "bottom";
        level.bar.y = 30;
        level.bar.foreground = true;
        level thread scrollHUD();
}


And finally underneath that, copy and paste this.

scrollHUD()
{
        self endon("disconnect");
        for(i = 1400; i >= -1400; i -= 4)
        {
                level.infotext.x = i;
                if(i == -1400){
                i = 1400;
        }
        wait .005;
        }
}


Great! Now you're all done!

Save it, and try it out, see if it works for yourself ;)
#2. Posted:
iainbruX
  • TTG Senior
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Seriously, no-one?!

I'm surprised, it took me ages to figure it out-.-
#3. Posted:
123rambo123
  • New Member
Status: Offline
Joined: Jan 02, 201113Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: Jan 02, 201113Year Member
Posts: 12
Reputation Power: 0
what dose it do ??????
#4. Posted:
TTG-TRYHARD
  • TTG Master
Status: Offline
Joined: Mar 28, 201014Year Member
Posts: 865
Reputation Power: 53
Status: Offline
Joined: Mar 28, 201014Year Member
Posts: 865
Reputation Power: 53
nice post man keep it up
#5. Posted:
iainbruX
  • TTG Senior
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
123rambo123 wrote what dose it do ??????


I'm not sure if you've ever seen the Quaratine Chaos Zombie Mod, but at the bottom it has scrolling text, like the Black Ops MoTD, but it's ingame.
#6. Posted:
Juk00
  • Challenger
Status: Offline
Joined: Feb 12, 201113Year Member
Posts: 131
Reputation Power: 5
Status: Offline
Joined: Feb 12, 201113Year Member
Posts: 131
Reputation Power: 5
Niceeeeeeeee man!
#7. Posted:
iainbruX
  • TTG Senior
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Status: Offline
Joined: Jan 31, 201113Year Member
Posts: 1,053
Reputation Power: 49
Juk00 wrote Niceeeeeeeee man!


I'll make a video;)
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.