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:
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.
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.
And underneath that, copy and paste this.
And finally underneath that, copy and paste this.
Great! Now you're all done!
Save it, and try it out, see if it works for yourself ;)
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:
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-.-
I'm surprised, it took me ages to figure it out-.-
- 0useful
- 0not useful
#3. Posted:
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 ??????
- 0useful
- 0not useful
#4. Posted:
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
- 0useful
- 0not useful
#5. Posted:
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.
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Feb 12, 201113Year Member
Posts: 131
Reputation Power: 5
Niceeeeeeeee man!
- 0useful
- 0not useful
#7. Posted:
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;)
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.