Author Topic: [Tutorial] Making Zones - The right way  (Read 1290 times)

0 Members and 1 Guest are viewing this topic.

Offline reckfullies

  • - Original Poster (OP) -
  • Mr. Elemental
  • Posts: 294
  • Country: us
  • Respect: 64
    • Reckfullies's YouTube Channel
    • View Profile
  • WaW: Reckfullies

[Tutorial] Making Zones - The right way

« on: October 01, 2016, 02:13:08 pm »
This tutorial will show how to add zones in radiant black edition since i've seen many people having the instant death problem.

Step 1 - In radiant, open the "Entity Browser" window and select "Info" then select "volume" and drag it into your map.

Step 2 - Resize the volume to fit your entire playable area inside of it.

Step 3 - Select the volume and press N on your keyboard to open the "Entity Info" window.

Step 4 - Find the property "targetname" and change the value to "start_zone".

Step 5 - Click the "Add KVP" button in the bottom right of the "Entity Info" window.

Step 6 - Put "target" in the Property/Key box and put "start_zone_spawners" in the Value box and press "Add".

Step 7 - Click the "Add KVP" button again.

Step 8 - Put "script_noteworthy" in the Property/Key box and put "player_volume" in the Value box and press "Add".

There you go, now you won't instantly die and get a game over when starting the map.

You can also add windows, zombie spawners and risers to this zone by following the tutorial Here.

UPDATE:
If you are interested in adding adjacent zones like you could in world at war follow these steps.

Step 1 - Naviagte to "Black Ops 3/usermaps/zm_mapname/scripts/zm/zm_mapname.gsc" inside "steamapps/common".

Step 2 - Find
Code: [Select]
function usermap_test_zone_init()
{
level flag::init( "always_on" );
level flag::set( "always_on" );
}

Step 3 - Replace
Code: [Select]
level flag::init( "always_on" );
level flag::set( "always_on" );
with
Code: [Select]
zm_zonemgr::add_adjacent_zone("start_zone", "zone1", "enter_zone1" );

Step 4 - For every new adjacent zone you add make sure to change the "start_zone", "zone_1" and "enter_zone1" to your zone names.

EDIT:
- Note: If you are using zones that are not linked(For my case I have a teleporter that goes to non touching zones) I found that it will still kill you for not being in a zone if you do not do this step!

If you are stuff having trouble with dying when entering new zones add this code to your main function in usermaps/zm_mapname/scripts/zm/zm_mapname.gsc:
Code: [Select]
init_zones[1] = "yourzonename";

then just up the number by 1 every time you add a new zone, I have been told this is not required however for some people it does not work without this.
« Last Edit: October 13, 2016, 09:56:59 am by reckfullies »
If anyone needs scripts made for their map contact me.

Offline BluntStuffy

  • *
  • The Decider
  • Posts: 944
  • Country: nl
  • Respect: 987
  • It aint much, if it aint Dutch
    • @BluntZombie' Twitter Feed
    • StuffyZombie's YouTube Channel
    • View Profile
  • Skype: Bluntstuffy
  • WaW: BluntStuffy

Re: [Tutorial] Making Zones - The right way

« Reply #1 on: October 01, 2016, 09:14:49 pm »
uhm, all zones you place here:

You must have an account to view the spoiler contents. Please log in or create an account.

are going to be active from when the map starts, you only put your start-zone there and:


And you want to delete this:

Code: [Select]
	level flag::init( "always_on" );
level flag::set( "always_on" );


and replace them with these lines for your zones:
Code: [Select]
zm_zonemgr::add_adjacent_zone("start_zone", "zone1", "enter_zone1" );


["BETA" RELEASE] Relinquished: https://ugx-mods.com/forum/index.php/topic,13170
[RELEASED] Panzersoldat: http://ugx-mods.com/forum/index.php/topic,12208

Realism MOD 3.0 under construction...
Support my work here:  [You are not allowed to view external links. Register or Login to see them]

Offline reckfullies

  • - Original Poster (OP) -
  • Mr. Elemental
  • Posts: 294
  • Country: us
  • Respect: 64
    • Reckfullies's YouTube Channel
    • View Profile
  • WaW: Reckfullies

Re: [Tutorial] Making Zones - The right way

« Reply #2 on: October 01, 2016, 09:17:10 pm »
uhm, all zones you place here:

You must have an account to view the spoiler contents. Please log in or create an account.

are going to be active from when the map starts, you only put your start-zone there and:


And you want to delete this:

Code: [Select]
	level flag::init( "always_on" );
level flag::set( "always_on" );


and replace them with these lines for your zones:
Code: [Select]
zm_zonemgr::add_adjacent_zone("start_zone", "zone1", "enter_zone1" );


The only reason I put the initial_zones there was because it wasn't working for someone then when they added that it worked so I wasn't sure if it was needed, thanks for letting me know.

As for everything else, ill update the post to include correct information.

Offline Themotogamer

  • Fresh Corpse
  • Posts: 4
  • Country: england
  • Respect: 0
    • View Profile

Re: [Tutorial] Making Zones - The right way

« Reply #3 on: January 08, 2017, 01:04:55 pm »
someone help me ive put in 4 zones and have them working fine apart from I cant get zombie to spawn in zones 2,3and 4 they only spawn in my start zone any ideas?

http://ugx-mods.com/forum/index.php/topic,14542.0.html
« Last Edit: January 09, 2017, 01:42:17 am by Sidzzz »