UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: Fire Level One on June 29, 2016, 12:59:47 am

Title: how to make zombie only spawn in the current zone
Post by: Fire Level One on June 29, 2016, 12:59:47 am
Does anybody know how to make it where the zombies will only spawn in the zone your currently in?
Title: Re: how to make zombie only spawn in the current zone
Post by: Linoxet on June 29, 2016, 02:06:16 am
Have you tried something like not having zones adjacent to each other?
Title: Re: how to make zombie only spawn in the current zone
Post by: Dust on June 29, 2016, 02:07:16 am
There is actually a fourth parameter that you can add in the adjacent zone function in your mapname.gsc that does that.

Code Snippet
Plaintext
add_adjacent_zone( "zone9", "end_zone", "enter_end_zone", true );

You have the first parameter which is your first zone, the second which is your adjacent zone, the third which is the flag to enter the zone, but you also have a 4th one that is set to false by default.

If you put it to true, that sets it so the zombies will only spawn in that zone if a player is currently in that zone.
You can just set all the zones to true, and then the zombies will only spawn in the zone you are currently in.


BTW congrats on 20 posts. You are now a "regular" ;)
Title: Re: how to make zombie only spawn in the current zone
Post by: Fire Level One on June 29, 2016, 02:31:56 am
There is actually a fourth parameter that you can add in the adjacent zone function in your mapname.gsc that does that.

Code Snippet
Plaintext
add_adjacent_zone( "zone9", "end_zone", "enter_end_zone", true );

You have the first parameter which is your first zone, the second which is your adjacent zone, the third which is the flag to enter the zone, but you also have a 4th one that is set to false by default.

If you put it to true, that sets it so the zombies will only spawn in that zone if a player is currently in that zone.
You can just set all the zones to true, and then the zombies will only spawn in the zone you are currently in.


BTW congrats on 20 posts. You are now a "regular" ;)
Wow I didn't know about that fourth parameter, thank you!
BTW congrats on 20 posts. You are now a "regular" ;)
Thanks  ;D
Title: Re: how to make zombie only spawn in the current zone
Post by: josemassacre on June 29, 2016, 03:32:23 am
There is actually a fourth parameter that you can add in the adjacent zone function in your mapname.gsc that does that.

Code Snippet
Plaintext
add_adjacent_zone( "zone9", "end_zone", "enter_end_zone", true );

You have the first parameter which is your first zone, the second which is your adjacent zone, the third which is the flag to enter the zone, but you also have a 4th one that is set to false by default.

If you put it to true, that sets it so the zombies will only spawn in that zone if a player is currently in that zone.
You can just set all the zones to true, and then the zombies will only spawn in the zone you are currently in.


BTW congrats on 20 posts. You are now a "regular" ;)
I was wondering the same thing about how to make zombies spawn in the current zone so thank you very much for the answer!
Title: Re: how to make zombie only spawn in the current zone
Post by: Dust on June 29, 2016, 03:37:27 am
Wow I didn't know about that fourth parameter, thank you!

I was wondering the same thing about how to make zombies spawn in the current zone so thank you very much for the answer!

No problem! Happy to help. I only found out about the 4th parameter a few months ago, and it doesn't seem like many people know about it.

Tutorial time? ;)
Title: Re: how to make zombie only spawn in the current zone
Post by: josemassacre on June 29, 2016, 04:16:43 pm
No problem! Happy to help. I only found out about the 4th parameter a few months ago, and it doesn't seem like many people know about it.

Tutorial time? ;)
I honestly think it'd be a good idea to do a short one so more people can see it. It would help a lot of people who use bigger zones and for people just looking for a little more of a hectic experience :)
Title: Re: how to make zombie only spawn in the current zone
Post by: Fire Level One on July 04, 2016, 08:07:43 pm
well it took me a while, but I noticed setting fourth parameter to true wasn't working.
I tried this
Have you tried something like not having zones adjacent to each other?
by setting up "dummy_zones" which don't exist but separate them,
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "zone1", "enter_zone1"  );
and it made it where the zombies only spawn in zone1. So I decided to separate "start_zone" and "zone1" by another dummy zone
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "dummy_zone2", "enter_zone1"  );
add_adjacent_zone( "dummy_zone2", "zone1", "enter_zone1" );
But then the zombies only spawned in start_zone.
I think I'm gonna need some more professional help  :poker:
Title: Re: how to make zombie only spawn in the current zone
Post by: josemassacre on July 04, 2016, 08:27:29 pm
well it took me a while, but I noticed setting fourth parameter to true wasn't working.
I tried thisby setting up "dummy_zones" which don't exist but separate them,
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "zone1", "enter_zone1"  );
and it made it where the zombies only spawn in zone1. So I decided to separate "start_zone" and "zone1" by another dummy zone
Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "dummy_zone", "enter_zone1" );
add_adjacent_zone( "dummy_zone", "dummy_zone2", "enter_zone1"  );
add_adjacent_zone( "dummy_zone2", "zone1", "enter_zone1" );
But then the zombies only spawned in start_zone.
I think I'm gonna need some more professional help  :poker:
I noticed setting up the true parameter doesn't work for your start zone(because it's not set up the same) I'm sure there is a way for it but It works for every other zone for me
Title: Re: how to make zombie only spawn in the current zone
Post by: Fire Level One on July 04, 2016, 10:30:10 pm
I noticed setting up the true parameter doesn't work for your start zone(because it's not set up the same) I'm sure there is a way for it but It works for every other zone for me
Yeah when I had the true parameter set they would only spawn in zone1 if I was there but when I was in start zone they'd spawn in zone1 as well.  :(
Title: Re: how to make zombie only spawn in the current zone
Post by: Dust on July 04, 2016, 10:46:25 pm
Yeah when I had the true parameter set they would only spawn in zone1 if I was there but when I was in start zone they'd spawn in zone1 as well.  :(

I didnt realize that it does not work for start_zone, since the only time I have used it was for one of the end zones. I am not sure how you could get it set up for your start_zone, maybe someone else could help with that?
Title: Re: how to make zombie only spawn in the current zone
Post by: Fire Level One on July 04, 2016, 11:30:34 pm
I didnt realize that it does not work for start_zone, since the only time I have used it was for one of the end zones. I am not sure how you could get it set up for your start_zone, maybe someone else could help with that?
Hopefully