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

Zombies per round

broken avatar :(
Created 11 years ago
by pcmodder
0 Members and 1 Guest are viewing this topic.
2,141 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Hi all is there anyway to change the amount of zombies that spawn in the wave. Something like between 1 and 10 i want to make more  zombies spawn in the earlier waves and adjust the gameplay accordingly. I looked in spawner on the round spawn but i would not know where to start setting zombies per wave.

If this is possible i would like to also have this specific to player amount in game as it currently is.

Thanks
Marked as best answer by pcmodder 11 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
if you want to increase the amount of zombies spawned the entire game the you can change the variables located in _zombiemode.gsc

Code Snippet
Plaintext
set_zombie_var( "zombie_max_ai", 	24 ); //this is how many are in the map at one time. be careful changing this
set_zombie_var( "zombie_ai_per_player", 6 ); //this is how many zombies per player at round 1 and is multiplied for each round
but if you want to only modify the amount of zombies spawned during the early rounds you can change the multiplier in these if statements
Code Snippet
Plaintext
else if ( level.first_round )
{
max = int( max * 0.2 ); //change the .2 to a higher decimal for larger amount on round 1
}
else if (level.round_number < 3)
{
max = int( max * 0.4 ); //change the .4 to a higher decimal for larger amount on round 2
}
else if (level.round_number < 4)
{
max = int( max * 0.6 ); //change the .6 to a higher decimal for larger amount on round 3
}
else if (level.round_number < 5)
{
max = int( max * 0.8 ); // change the .8 to a higher decimal for larger amount on round 4
}
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Hey thanks i have set that and it changes the amount of zombies spawned , is there anyway o can set a specific round to reset the zombies amount to make it back to normal . Just so the early waves have more spawning but not to make wave 20 + have milions of zombies :D

broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
Hey thanks i have set that and it changes the amount of zombies spawned , is there anyway o can set a specific round to reset the zombies amount to make it back to normal . Just so the early waves have more spawning but not to make wave 20 + have milions of zombies :D
if you did the second one where you change the if else statement for the different rounds? that would go back to normal after round 5
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 22 September 2014
Last active: 6 years ago
Posts
360
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Here to make epic maps
×
pcmodder's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
pcmodder's Contact & Social Linksken5hir0pcmodderugx
Thanks :)

 
Loading ...