Difference between revisions of "Creating a Danger Zone Map"

From Valve Developer Community
Jump to: navigation, search
(Basic requirements for a DZ map)
(Otherlang2 -> Lang. Added icon. Used colorful game links. Map prefix is a Map Requirement. Removed duplicate text about point_dz_weaponspawn entities. Compressed overview sections.)
Line 1: Line 1:
{{otherlang2|title=Creating a Danger Zone Map|ru=Creating a Danger Zone Map:ru}}
+
{{lang|Creating a Danger Zone Map}}
 
{{back|Counter-Strike: Global Offensive Level Creation}}
 
{{back|Counter-Strike: Global Offensive Level Creation}}
 +
[[File:Csgo icon dangerzone.png|left]]
  
'''Danger Zone''' is a fast-paced battle royale game mode built on {{csgo}} <i>Counter-Strike: Global Offensive</i>'s tactical gameplay where players use their wits, skill, and resources to fight to the finish. Featuring solo or team play.
+
'''Danger Zone''' (internally: <code>'''survival'''</code>) is a fast-paced battle royale [[game mode]] built on {{game name|csgo|name=Counter-Strike: Global Offensive}}'s tactical gameplay where players use their wits, skill, and resources to fight to the finish. Featuring solo or team play.
  
{{Warning| For a map to function correctly, it needs to have a '''dz_''' prefix, with '''game_mode''' set to '''0''' and '''game_type''' set to '''6'''.}}
+
To launch a map in the Danger Zone game mode, invoke the commands <code>game_type 6; game_mode 0; [[map (ConCommand)|map]] <mapname></code> or shorter: <code>map <mapname> survival</code>. See [[CS:GO Game Mode Commands]].
 +
{{note|Maps must be designed for this game mode (see below). If they are not, one should reckon with game crashes.}}
  
 
{{note|Valve has released no documentation about this game mode and everything is researched by players.}}
 
{{note|Valve has released no documentation about this game mode and everything is researched by players.}}
  
== Basic requirements for a DZ map ==
+
== Map Requirements ==
* '''[[trigger_survival_playarea]]'''  
+
* The [[bsp]] needs the '''dz_''' [[Map_prefixes#Counter-Strike.2C_Counter-Strike:_Condition_Zero.2C_Counter-Strike:_Source_and_Counter-Strike:_Global_Offensive|map prefix]].
 +
 
 +
* '''[[trigger_survival_playarea]]'''
 
:See dedicated page of this entity for more information.
 
:See dedicated page of this entity for more information.
 
:{{Warning|This brush needs to be at least 13440x13440 units big, if not the game will crash upon deploying. Recommended size is 16384x16384.}}
 
:{{Warning|This brush needs to be at least 13440x13440 units big, if not the game will crash upon deploying. Recommended size is 16384x16384.}}
:{{Warning|The recommended footprint of a dz map is 20480x20480 units, combined with a trigger_survival_playarea sized 16384x16384.2
+
:{{Warning|The recommended footprint{{clarify}} of a Danger Zone map is 20480x20480 units, combined with a trigger_survival_playarea sized 16384x16384.}}
 
:The footprint of the map must be made of a solid texture (nodraw or skybox will not work).
 
:The footprint of the map must be made of a solid texture (nodraw or skybox will not work).
 
:Using other sizes for the map footprint or the trigger_survival_playarea may cause the deployment menu and the tablet radar to become misaligned.}}  
 
:Using other sizes for the map footprint or the trigger_survival_playarea may cause the deployment menu and the tablet radar to become misaligned.}}  
Line 21: Line 25:
 
:A single point_dz_weaponspawn is enough to prevent the game from crashing upon deployment. It is however common that no item will spawn from this point_dz_weaponspawn. This method may be useful for playtesting the map early on in development, before loot locations are decided upon.
 
:A single point_dz_weaponspawn is enough to prevent the game from crashing upon deployment. It is however common that no item will spawn from this point_dz_weaponspawn. This method may be useful for playtesting the map early on in development, before loot locations are decided upon.
  
== Fundamental Entities ==
+
=== Fundamental Entities ===
  
 
* '''[[info_gascanister_launchpoint]]'''
 
* '''[[info_gascanister_launchpoint]]'''
Line 45: Line 49:
 
* '''[[point_dz_weaponspawn]]'''
 
* '''[[point_dz_weaponspawn]]'''
 
: Point entity that acts as spawn point for various survival entities.
 
: Point entity that acts as spawn point for various survival entities.
:{{note|What kind of entities this creates is specified below.}}
+
:{{note|What kind of entities this creates is specified on its page.}}
 
 
== Entities spawned by [[point_dz_weaponspawn]] ==
 
{{Warning|Placing these manually in Hammer can lead to undesirable effects!}}
 
* '''[[func_survival_c4_target]]'''
 
: Safe with money.
 
* '''[[prop_weapon_upgrade_chute]]'''
 
: Parachute backpack.
 
* '''[[prop_weapon_upgrade_tablet_zoneintel]]'''
 
: Tablet upgrade that shows next safe zone.
 
* '''[[prop_weapon_upgrade_tablet_droneintel]]'''
 
: Tablet upgrade that shows drones and their trace.
 
* '''[[prop_weapon_upgrade_tablet_highres]]'''
 
: Tablet upgrade that improves zone precision.
 
* '''[[prop_weapon_upgrade_contractkill]]'''
 
: Contract to kill a player that will reward $500.
 
* '''[[prop_weapon_upgrade_armor_helmet]]'''
 
: Armor and Helmet.
 
* '''[[prop_money_crate]]'''
 
: Bag with money.
 
* '''[[prop_metal_crate]]'''
 
: Metal crate with SMG weapons.
 
* '''[[prop_loot_crate]]'''
 
: Can be various crates, utility, explosives, pistols, melees.
 
* '''[[prop_ammo_box_generic]]'''
 
: Ammo box.
 
* '''[[item_cash]]'''
 
: Stack of banknotes.
 
* '''[[dronegun]]'''
 
: Drone turret.
 
* '''[[hostage_entity]]'''
 
: A hostage.
 
 
 
== Limiting area where players can deploy ==
 
[[File:dz_blacksite_spawnmask.png|thumb|Spawnmask texture used for Blacksite]]
 
This is controlled by a '''png''' that needs to be located in '''csgo/maps/''' with name format '''dz_''mapname''_spawnmask'''. It should represent an overview of the map, where black filled areas block deploy points. The surface area covered by this image corresponds to the play area trigger.
 
  
== Adding overview image for tablet ==
+
== Map Overviews ==
[[File:tablet_radar_dz_blacksite.jpg|thumb|Tablet overview image of Blacksite]]
+
{|
This is controlled by a '''[[vtf]]''' texture that needs to be located in '''csgo/materials/models/weapons/v_models/tablet/''' with name format '''tablet_radar_dz_''mapname'''''
+
|- style="vertical-align:top;"
 +
|style="width:33%;"|
 +
=== Limiting area where players can deploy ===
 +
This is controlled by a [[w:png|PNG]] file that needs to be located in <code>csgo/maps/</code> with name format <code>dz_<mapname>_spawnmask</code>. It should represent an overview of the map, where black filled areas block deploy points. The surface area covered by this image corresponds to the play area trigger.
 +
[[File:dz_blacksite_spawnmask.png|thumb|left|Spawnmask texture used for Blacksite]]
 +
|style="width:33%;"|
 +
=== Adding overview image for tablet ===
 +
This is controlled by a '''[[VTF]]''' file that needs to be located in <code>csgo/materials/models/weapons/v_models/tablet/</code> with name format <code>tablet_radar_dz_<mapname></code>.
 
{{note| A [[vmt]] is '''not''' needed.}}
 
{{note| A [[vmt]] is '''not''' needed.}}
{{note| The tablet overview image is not same as map overview image, it needs to line up with the entire world (1 pixel on a 1024x1024 image corresponds to 20 units on a 20480x20480 map).}}
+
{{note| The tablet overview image is not same as map overview image, it needs to line up with the entire world. One pixel on a 1024x1024 image corresponds to 20 units on a 20480x20480 map.}}
 
+
[[File:tablet_radar_dz_blacksite.jpg|thumb|left|Tablet overview image of Blacksite]]
== Adding overview image for deployment selection ==
+
|style="width:33%;"|
[[File:map_dz_blacksite.png|thumb|Deployment overview image of Blacksite]]
+
=== Adding overview image for deployment selection ===
This is controlled by a '''png''' that needs to be located in '''csgo/materials/panorama/images/survival/spawnselect/''' with name format '''map_dz_''mapname'''''.
+
This is controlled by a '''[[w:png|PNG]]''' that needs to be located in <code>csgo/materials/panorama/images/survival/spawnselect/</code> with name format <code>map_dz_<mapname></code>.
 
+
[[File:map_dz_blacksite.png|thumb|left|Deployment overview image of Blacksite]]
 
+
|}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
== Prefabs ==
 
== Prefabs ==
 
*[https://cdn.discordapp.com/attachments/484503967842304002/520680162124234753/dz_template.zip Working dz_ map template by Zool.]
 
*[https://cdn.discordapp.com/attachments/484503967842304002/520680162124234753/dz_template.zip Working dz_ map template by Zool.]
  
[[Category: Counter-Strike: Global Offensive]][[Category: Level Design]][[Category: Tutorials]]
+
== See Also ==
 +
* [[Creating custom terrain with Worldmachine]]
  
== See Also ==
+
[[Category: Counter-Strike: Global Offensive]]
[[Creating custom terrain with Worldmachine]]
+
[[Category: Level Design]]
 +
[[Category: Tutorials]]

Revision as of 12:10, 21 September 2021

English Русский
Counter-Strike: Global Offensive Level Creation
Csgo icon dangerzone.png

Danger Zone (internally: survival) is a fast-paced battle royale game mode built on Counter-Strike: Global Offensive Counter-Strike: Global Offensive 's tactical gameplay where players use their wits, skill, and resources to fight to the finish. Featuring solo or team play.

To launch a map in the Danger Zone game mode, invoke the commands game_type 6; game_mode 0; map <mapname> or shorter: map <mapname> survival. See CS:GO Game Mode Commands.

Note.png Note: Maps must be designed for this game mode (see below). If they are not, one should reckon with game crashes.
Note.png Note: Valve has released no documentation about this game mode and everything is researched by players.

Map Requirements

See dedicated page of this entity for more information.
Warning.png Warning: This brush needs to be at least 13440x13440 units big, if not the game will crash upon deploying. Recommended size is 16384x16384.
Warning.png Warning: The recommended footprint[Clarify] of a Danger Zone map is 20480x20480 units, combined with a trigger_survival_playarea sized 16384x16384.
The footprint of the map must be made of a solid texture (nodraw or skybox will not work).
Using other sizes for the map footprint or the trigger_survival_playarea may cause the deployment menu and the tablet radar to become misaligned.}}
These should be scattered around the map, there needs to be some distance between these otherwise they might fail to spawn.
Warning.png Warning: Not having enough of these can result in game crash upon deploying. Numbers that are verified to work are 41 and 321.
A single point_dz_weaponspawn is enough to prevent the game from crashing upon deployment. It is however common that no item will spawn from this point_dz_weaponspawn. This method may be useful for playtesting the map early on in development, before loot locations are decided upon.

Fundamental Entities

Point entity to specify location where gas canisters should launch from.
Point entity for setting the name of a map region to display.
Point entity for spawning drone guns.
Point entity for spawning a parachute upgrade.
A trigger volume for hostage rescue zone.
A trigger volume that disables Tablets when players are inside of it.
An entity that will fire outputs when events happen during Survival Mode. For example playing ambient_generic after missiles launch.
Note.png Note: This entity is not required for the map to work.
A trigger volume that defines the bounds of the survival play area.
Point entity that acts samely to prop_door_rotating, but can be locked and set up with prop_counter and point_dz_weaponspawn to create a door that requires money to unlock.
Note.png Note: How to set up this entity correctly is documented on page dedicated to this entity. Quick Link
Point entity that acts as spawn point for various survival entities.
Note.png Note: What kind of entities this creates is specified on its page.

Map Overviews

Limiting area where players can deploy

This is controlled by a PNG file that needs to be located in csgo/maps/ with name format dz_<mapname>_spawnmask. It should represent an overview of the map, where black filled areas block deploy points. The surface area covered by this image corresponds to the play area trigger.

Spawnmask texture used for Blacksite

Adding overview image for tablet

This is controlled by a VTF file that needs to be located in csgo/materials/models/weapons/v_models/tablet/ with name format tablet_radar_dz_<mapname>.

Note.png Note:  A vmt is not needed.
Note.png Note:  The tablet overview image is not same as map overview image, it needs to line up with the entire world. One pixel on a 1024x1024 image corresponds to 20 units on a 20480x20480 map.
Tablet overview image of Blacksite

Adding overview image for deployment selection

This is controlled by a PNG that needs to be located in csgo/materials/panorama/images/survival/spawnselect/ with name format map_dz_<mapname>.

Deployment overview image of Blacksite

Prefabs

See Also