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

[TUTORIAL] How to add a Colored Zombie Counter

HOT
broken avatar :(
Created 8 years ago
by WhiteDevil
0 Members and 1 Guest are viewing this topic.
20,097 views
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
Signature
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
He means rounds, where there is both zombies and dogs, which use spawn_zombie thing, same thing as here:

ah alright, I only have zombies i my map so i haven´t tested it for dogs or other spawned creatures. I will make fix for it.
broken avatar :(
×
broken avatar :(
Location: scotland
Date Registered: 2 September 2013
Last active: 1 day ago
Posts
379
Respect
Forum Rank
Perk Hacker
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Ping998
Signature
"My maps might not be the best looking, or the most hyped, but I still release them in hopes that they can make others somewhat happy"

- Ping
×
Ping998's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Ping998's Contact & Social LinksPing998Ping998ZPing998CreepersAreAwesome
He means rounds, where there is both zombies and dogs, which use spawn_zombie thing, same thing as here:

That ^

I dont know if you could update it where if the value is -1 or less the percentage is automatically sent to 0, it wont fix the counter but it will fix the progress bar so it is less noticeable
Last Edit: November 21, 2015, 07:30:29 pm by CreepersAreEpic
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
Uploaded a fix for the dogs, and the progress bar can't exceed it's maximum limit of 100%.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Code Snippet
Plaintext
level.zombie_total = max;

your defining this twice in two different places

_zombiemode.gsc

&

_zombiemode_dogs.gsc
Last Edit: November 24, 2015, 01:41:07 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
Code Snippet
Plaintext
level.zombie_total = max;

your defining this twice in two different places

_zombiemode.gsc

&

_zombiemode_dogs.gsc

Yes. This is because when it's a zombie round this will get the maximum amount of zombies that spawn in that round and when it's a dog round it will get the maximum amount of dogs that spawn in that round. Because call of duty uses 2 different spawning function for dog rounds / zombie round i have added it twice. These two functions will never be called together in 1 round. So therefore there shouldn't be a problem.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Yes. This is because when it's a zombie round this will get the maximum amount of zombies that spawn in that round and when it's a dog round it will get the maximum amount of dogs that spawn in that round. Because call of duty uses 2 different spawning function for dog rounds / zombie round i have added it twice. These two functions will never be called together in 1 round. So therefore there shouldn't be a problem.
ok fair enough, but what about mixed rounds? Will it actually count the dogs? They are spawned "alongside" a zombie if i recall the code correctly like :

Spawning logic()
{
  can i spawn a zombie?
  yes - can i spawn a dog, if so spawn dog + zombie
  if no - just spawn zombie
}
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
Yes because before a dog or zombie is spawned in a mixed round there is already a maximum enemies(Zombies/Dogs) defined. So for example the maximum enemies is 72. When a zombie spawns, 71 enemies still have to spawn(These enemies can be dogs or zombies). When a dog spawns, 70 enemies still have to spawn(These enemies can also be dogs or zombies). This will go on and on. Until it reaches 0 and no enemies will be spawned, then it will wait until all the enemies are dead and the next round will start.

My counter only grabs the maximum enemies that can spawn in that round.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Yes because before a dog or zombie is spawned in a mixed round there is already a maximum enemies(Zombies/Dogs) defined. So for example the maximum enemies is 72. When a zombie spawns, 71 enemies still have to spawn(These enemies can be dogs or zombies). When a dog spawns, 70 enemies still have to spawn(These enemies can also be dogs or zombies). This will go on and on. Until it reaches 0 and no enemies will be spawned, then it will wait until all the enemies are dead and the next round will start.

My counter only grabs the maximum enemies that can spawn in that round.
hmm... well if you say so but the way i read it was

can i spawn 1 zombie? If yes, then also try to spawn a dog, regardless of the remaining count. which would leave you on -1

But i dont remember and cant check atm. If your sure its ok, it prob is
Last Edit: November 24, 2015, 02:24:54 am by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
i'm sure because when a zombie is spawned the maxium is lowerd with -1, and when a mixed dog is spawned it's again lowered with -1. Before either one of those spawns it first check if it can spawn(It check if the maxium is higher than 0). Doesn't matter if it spawn first the zombie and then checks if it can spawn a dog and then spawns a dog.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
i'm sure because when a zombie is spawned the maxium is lowerd with -1, and when a mixed dog is spawned it's again lowered with -1. Before either one of those spawns it first check if it can spawn(It check if the maxium is higher than 0). Doesn't matter if it spawn first the zombie and then checks if it can spawn a dog and then spawns a dog.
alrighty then  :)
broken avatar :(
×
broken avatar :(
Location: cn
Date Registered: 20 September 2013
Last active: 3 weeks ago
Posts
35
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Personal Quote
FirstBlood
Signature
×
cqgzxcvbnm's Groups
cqgzxcvbnm's Contact & Social Links
it's nice setting, but shades is limited  :(
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 17 November 2015
Last active: 3 years ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
TheLapper96's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
TheLapper96's Contact & Social Links
I really don't know what I'm doing wrong, I've followed this tutorial about 10 times, but every time I go in game, the counter stays at 0, doesn't matter how many zombies spawn...
Anyone know what I did wrong?
broken avatar :(
×
broken avatar :(
Location: ptLisboa
Date Registered: 21 June 2014
Last active: 3 years ago
Posts
311
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Keep Scrolling...
Signature
I Am New Into Mapping And All Of That Kind Of Stuff.I Appreciate Every Help Provided!
×
LegendHugo's Groups
LegendHugo's Contact & Social LinksHdinis09Hdinis09@hdinis09DonHugo
I really don't know what I'm doing wrong, I've followed this tutorial about 10 times, but every time I go in game, the counter stays at 0, doesn't matter how many zombies spawn...
Anyone know what I did wrong?
Im a noob in scripting and i managed to do it easily. Make sure you edit the script correctly. Also try to rebuild the mod
Last Edit: November 27, 2015, 07:28:34 pm by LegendHugo
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 17 November 2015
Last active: 3 years ago
Posts
30
Respect
Forum Rank
Legless Crawler
Primary Group
Donator ♥
My Groups
More
×
TheLapper96's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
TheLapper96's Contact & Social Links
Im a noob in scripting and i managed to do it easily. Make sure you edit the script correctly. Also try to rebuild the mod

I have rebuilt the mod, several times even.
But it didn't make a difference, sadly.
broken avatar :(
×
broken avatar :(
Location: nlNederland
Date Registered: 14 August 2013
Last active: 7 years ago
Posts
50
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Personal Quote
Wassaaap
×
WhiteDevil's Groups
WhiteDevil's Contact & Social Links
I have rebuilt the mod, several times even.
But it didn't make a difference, sadly.

It's very important you copy your _zombiemode.gsc / _zombiemode_dogs.gsc to your wawroot/mods/MODNAME/maps and include them in your launcher! This means checking them in the iwd file list
Last Edit: November 27, 2015, 09:23:43 pm by WhiteDevil

 
Loading ...