How to add a Zombie Counter

broken avatar :(
Created 2495 days ago
by Dust
0 Members and 1 Guest are viewing this topic.
16,209 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 390 days ago
Posts
2,152
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. [You are not allowed to view external links. Register or Login to see them]
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
For some reason, UGX does not have a tutorial for a Zombie Counter so after seeing the topic that was made today asking how to add a Zombie Counter I decided to make a tutorial for it.

Credit to MakeCents for this updated zombie counter.

1.Open up zombiemode_spawner found in mods/maps, if you dont have it in there then it should be in raw/maps. Copy it and paste it to mods/maps.

2. At the top you should see
init
{
Under the breacket put
thread ZombieCounter();

3. Now look for
zombie_death_event( zombie )
{
zombie waittill( "death" );

and replace the entire function with this

RoundStart(){
level.zombieCounterText = "Zombies Left: ";
level.ZombiesLeft SetText(level.zombieCounterText + "None Yet!");
UpdateZombieCount( "intro_hud_done", 3);
while(1){
UpdateZombieCount("between_round_over", 1);
wait(.1);
}
}
UpdateZombieCount(notification, waiting){
level waittill(notification);
wait(waiting);
numberOfZombies = level.zombie_total + get_enemy_count();
level.ZombiesLeft SetText(level.zombieCounterText + numberOfZombies);
}
ZombieCounter(){
level.ZombiesLeft = create_simple_hud();
    level.ZombiesLeft.horzAlign = "center";
    level.ZombiesLeft.vertAlign = "middle";
    level.ZombiesLeft.alignX = "center";
    level.ZombiesLeft.alignY = "middle";
    level.ZombiesLeft.y = 230;
    level.ZombiesLeft.x = -1;
    level.ZombiesLeft.foreground = 1;
    level.ZombiesLeft.fontscale = 8.0;
    level.ZombiesLeft.alpha = 1;
    level.ZombiesLeft.color = ( 0.423, 0.004, 0 );
    thread RoundStart();
}
zombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));

4. Build mod, and your done
Last Edit: October 04, 2014, 08:54:36 pm by thezombiekilla6
broken avatar :(
×
broken avatar :(
Location: scotlandScotland
Date Registered: 19 March 2014
Last active: 424 days ago
Posts
254
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
ALM] Developer
Signature
Bloodsport :- RELEASED -:
-WIP- Cabin Unique :- 75% -:

×
TheScotchGuy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
TheScotchGuy's Contact & Social LinksTheScotchGuyy
It worked dude, thanks! +1
broken avatar :(
×
broken avatar :(
Constants and Variables
Location: us
Date Registered: 18 August 2013
Last active: 18 days ago
Posts
889
Respect
Forum Rank
The Decider
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
The Worst Secret Agent Ever
Signature
×
MAK911's Groups
Box Mappers Elite
Box Mappers Elite
Banned Elite
Banned Elite
MAK911's Contact & Social Linksmkramrtmkramrt
I'm just going to leave this here.
[You are not allowed to view external links. Register or Login to see them]
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 19 days ago
Posts
3,998
Respect
1,003Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I'm just going to leave this here.
[You are not allowed to view external links. Register or Login to see them]

People ask many times, if theres tut for counter here, so thats why its good, that zombie added it here
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 363 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Does anyone know how this counts towards your hud elements? Is it two per player?
broken avatar :(
×
broken avatar :(
Location: gbComing up in the world
Date Registered: 26 November 2013
Last active: 2160 days ago
Posts
325
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
I own the hat!
×
DuaLVII's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
DuaLVII's Contact & Social Linksthomas.gascoigne.7DuaLVIIDuaLVIITheProlonger
Seperate hud for the words `Zombies remaining` another for the count, very old script.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 363 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Seperate hud for the words `Zombies remaining` another for the count, very old script.

I thought so.

Thanks. I'll PM OP with alternative solution, with one hud element, I've made, if they are interested.
Last Edit: October 14, 2014, 06:18:05 pm by MakeCents
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 390 days ago
Posts
2,152
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Thanks. I'll PM OP with alternative solution, with one hud element, I've made, if they are interested.

Sure I would be interested in that, this is just the script ive used for ages now, and yes it is very old. Would be nice to have a updated version

Updated the tutorial with the one MakeCents gave me
Last Edit: October 04, 2014, 07:04:13 pm by thezombiekilla6
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 363 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Sure I would be interested in that, this is just the script ive used for ages now, and yes it is very old. Would be nice to have a updated version

Updated the tutorial with the one MakeCents gave me

Cool. Everything looks good.


Last Edit: October 04, 2014, 10:26:26 pm by MakeCents
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 48 days ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
Signature
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
zombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));

you missed a } at end of bottom line
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 363 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
zombie_death_event( zombie )
{
zombie waittill( "death" );
level.ZombiesLeft SetText(level.zombieCounterText + (level.zombie_total + get_enemy_count()));

you missed a } at end of bottom line

If you mean to close the zombie_death_even function then it is that way on purpose. You are not to replace anymore in that function, and especially not the last }, other than this:
zombie_death_event( zombie )
{
zombie waittill( "death" );

Last Edit: October 24, 2014, 03:17:57 pm by MakeCents
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 48 days ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
well in ugx chat someone said it gave them bad sytax and when they put } on last line it fixed it
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 363 days ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
well in ugx chat someone said it gave them bad sytax and when they put } on last line it fixed it

They must have done something wrong then. Either they didn't replace the section off code above and just pasted it in, or they deleted too much of the function. If they are still having issues, please tell then to pm me. They can send me their _zombiemode_spawner.gsc and I will make it work for them.
Last Edit: October 25, 2014, 02:06:59 pm by MakeCents

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch
Loading ...