UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Mapping => Topic started by: MelonDragon on October 05, 2016, 01:26:02 pm

Title: Zones and doors
Post by: MelonDragon on October 05, 2016, 01:26:02 pm
Ok so first off i looked everywhere for this but i cant find an answer so this is what i have i got a door with
script_flag "enter_zone2"

i also have the start_zone and zone2 set up like every video i have looked at and when i access the gsc file to configure i put this down in the right location
function usermap_test_zone_init()
{
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );

}   

what am i missing i run the game and can open the door but i keep dying while walking in!?? any solutions also this first time making map so give me a little slack :D
Title: Re: Zones and doors
Post by: TheCanadianNooB on October 05, 2016, 04:06:00 pm
you have to //To Zone 2 from start_zone

like this:

function usermap_test_zone_init()
{
   To Zone 2 from start_zone
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );
Title: Re: Zones and doors
Post by: reckfullies on October 06, 2016, 12:22:31 am
Make sure you did the right kvp on the zone.

Do add kvp and do
Key: script_noteworthy
Value: player_volume

If nothing else works try going into the main function and add init_zones[1] = "zonename";
Title: Re: Zones and doors
Post by: All0utWar on October 06, 2016, 05:22:20 pm
you have to //To Zone 2 from start_zone

like this:

function usermap_test_zone_init()
{
   To Zone 2 from start_zone
   zm_zonemgr::add_adjacent_zone( "start_zone",      "zone2",      "enter_zone2" );

What? All you did was add a comment. Comments aren't seen by the game.

But yeah what reckfullies said, make sure that KVP is on the zone2 volume. As well as the KVP of "target / ZONENAME_spawners"
Title: Re: Zones and doors
Post by: kaizokuroof on October 10, 2016, 01:25:25 pm
Hello! I'm new here, but as I was developing a map I'm working on, I found that the tutorials available, even though I followed them perfectly, didn't give me the result I needed. I continued to die when entering the zone and I was pulling my hair out.

Under function main()

There is an aray - you need to manually add your zones in there, giving them a unique number too. Once you've added them to this array, you also need to do the adjacent tiles (so zombies spawn where you need them spawn).

Code Snippet
Plaintext

function main()
{
zm_usermap::main();

level._zombie_custom_add_weapons =&custom_add_weapons;

//Setup the levels Zombie Zone Volumes
level.zones = [];
level.zone_manager_init_func =&usermap_test_zone_init;
init_zones[0] = "start_zone";
init_zones[1] = "YOUR ZONE HERE";
init_zones[2] = "AND HERE";

level thread zm_zonemgr::manage_zones( init_zones );

level.pathdist_type = PATHDIST_ORIGINAL;
}
Title: Re: Zones and doors
Post by: All0utWar on October 16, 2016, 06:20:02 pm
Hello! I'm new here, but as I was developing a map I'm working on, I found that the tutorials available, even though I followed them perfectly, didn't give me the result I needed. I continued to die when entering the zone and I was pulling my hair out.

Under function main()

There is an aray - you need to manually add your zones in there, giving them a unique number too. Once you've added them to this array, you also need to do the adjacent tiles (so zombies spawn where you need them spawn).

Code Snippet
Plaintext

function main()
{
zm_usermap::main();

level._zombie_custom_add_weapons =&custom_add_weapons;

//Setup the levels Zombie Zone Volumes
level.zones = [];
level.zone_manager_init_func =&usermap_test_zone_init;
init_zones[0] = "start_zone";
init_zones[1] = "YOUR ZONE HERE";
init_zones[2] = "AND HERE";

level thread zm_zonemgr::manage_zones( init_zones );

level.pathdist_type = PATHDIST_ORIGINAL;
}

Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.
Title: Re: Zones and doors
Post by: reckfullies on October 16, 2016, 06:24:19 pm
Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.

Adding zones like this doesn't seem to be required unless the zones are not touching.

I have only needed to add this when I was using a teleporter that went to a zone that wasn't touching the one i was in.
Title: Re: Zones and doors
Post by: kaizokuroof on October 17, 2016, 07:57:21 am
Just so you're aware, if you do this, all of these zones will become active at the start of the game, allowing zombies to spawn in unopened areas.

Really? I haven't had this problem. I had a problem where by even if the zones were touching, none but the start_zone (which is included in the array) was working and I would die instantly when entering the additional zone.

When I added them, it was fine - The zombies spawned where I wanted them to spawn and each zone became active when I bought/activated the zone I was trying to.

The exception to this, was that Risers targeting flesh would spawn in zones that I didn't want active and I ended up changing my map to accommodate this, as I couldn't figure out why. Perhaps this is why? But it still doesn't explain the zombies targeting windows working.