This article relates to the game "Counter-Strike: Source". Click here for more information.

Counter-Strike: Source Level Creation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Nesciuse moved page Counter-Strike: Source Level Creation/en to Counter-Strike: Source Level Creation without leaving a redirect: Move en subpage to basepage)
 
(107 intermediate revisions by 35 users not shown)
Line 1: Line 1:
[[Category:Tutorials]]
{{LanguageBar}}
Making levels for Counter-Strike: Source
__NOTOC__
This article focuses on {{css|4}} level design. For general mapping tutorials, see [[:Category:Level Design]].


This document describes the basics entities needed to make levels for Counter-Strike: Source. It assumes you already have knowledge of basic Hammer functions and CS:S gameplay. See the Hammer User's Guide for information on basic Hammer functions such as geometry creation and entity placement.
{{category header|background-color=#E0E0E0|border-color=lightgray}}
{{category newcolumn|rowspan=1|width=50%|background-color=#F7F7F7|border-color=lightgray}}


=Basic CS:S entities=
==Getting Started==
{|
* [[How to Develop a Map That Works|Develop A Map That Works]]
| <code>info_player_terrorist</code> || Start points for the terrorist team. One of these needs to be placed for each team member. 20 start points is typical. Should be placed at least 128 units apart.
* [[CSS_Bugs|Game and SDK bugs]]
|-
| <code>info_player_counterterrorist</code> || Start points for the counter-terrorist team. One of these needs to be placed for each team member. 20 start points is typical. Should be placed at least 128 units apart.
|-
| <code>func_buyzone</code> || Brush entity that defines the area where the team can purchase equipment. Should have the <code>tools\toolstrigger</code> material applied to all sides, completely cover the spawn area, and be set for the correct team.
|-
| <code>prop_physics_multiplayer</code> || Models that have physics properties (i.e., barrels, debris, etc). Must not be intersecting any other geometry where it’s placed.
|-
| <code>func_ladder</code> || Climbable ladder brush. Not rendered, but allows players to climb up the brush surface. Should have the <code>tools\toolsinvisibleladder</code> material assigned to all sides of the brush.
|-
| <code>point_viewcontrol</code> || Point entity use for camera locations when players join the game. Should be set to look at another point entity, typically an <code>info_target</code>.
|-
| <code>info_no_dynamic_shadow</code> || Point entity to stop player shadows from being applied to a particular set of brush faces. Sometimes needed when player shadows get cast on ceilings when players walk above. Open the entity properties, click the Pick… button, and then click to add a face to prevent that surface from getting shadows. Hold down CTRL to for additional faces, then click the Pick… button again when you're done.
|}


=Bomb Defusion gameplay entities=
==General==
{|
* [[Counter-Strike Source Entity Overview|Entity Overview]]
| <code>func_bombtarget</code> || Brush entity that determines where the bomb can be planted. When the bomb is planted then explodes inside the area, the <code>BombExplode</code> outputs are fired. The game handles all of the bomb planting and scoring logic – the <code>BombExplode</code> outputs are purely to add visual and damage effects.
* [[CSS/Animated Clouds|Animated Clouds]]
|-
* [[Bullet Penetration in Counter-Strike: Source|Bullet Penetration]]
| <code>env_explosion</code> || Point entity for explosion effects when a bomb explodes. Creates a fireball sprite effect and will also effect physics models. Can also apply damage. A single <code>env_explosion</code> is typically placed at the center of the bomb site, triggered from the <code>BombExplode</code> outputs on the <code>func_bombtarget</code>.
* [[Level Overviews]]
|-
* [[Map Prefixes]]
| <code>env_fire</code> || Point entity for secondary fire effects when a bomb explodes. Can also apply damage. Several <code>env_fire</code> entities are typically scattered around the bomb site, triggered from the <code>BombExplode </code> outputs on the <code>func_bombtarget</code>.
* [[Both Teams are Full error]]
|-
| <code>ambient_generic</code> || Point entity that plays a .wav sound from the entity location. Can be used to play burning fire sound after the bomb explodes.
|}


=Hostage Rescue gameplay entities=
==Bots==
{|
* [[Nav Mesh|Navigation Meshes]]
| <code>hostage_entity</code> || Point entity that is placed for each hostage to be rescued in the map. A hostage NPC will spawn at this point. There are usually four hostages placed in each hostage rescue map.
* [[CSS/Editing Bot Navigation CFG File]]
|-
| <code>func_hostage_rescue</code> || Brush entity that defines the area where hostages are rescued. Hostages that get led into this area will be marked as rescued.
|-
| <code>info_node</code> || Point entity used for navigation of the hostage NPCs. <code>info_node</code> entities need to be placed in all areas where the hostages need to move. Paths are drawn between each node point. One node needs to be visible by the next node point to connect properly.  '''Note: This is now obsolete for hostage NPCs.  Hostages now rely on the [[Bot Navigation for Counter-Strike:Source|bot navigation mesh]]'''.
|}


=CS:S gameplay decals=
==Game Modes==
* [[Creating a Classic Counter-Strike Map]]
** [[Creating a Bomb Defusal Map]]
** [[Creating a Hostage Rescue Map]]


Here is a list of some of the special materials that are used to mark gameplay areas in CS:S maps. They can be used as Decals or Overlays.
{{category newcolumn|rowspan=6|width=50%|background-color=white|border-color=lightgray}}


{|
==References==
| Bomb target decals || decals/target
* [[List of CS:S_entities | List of Entities]]
|-
* [[List_of_CSS_Particles | List of Particles]]
| Directional decals || decals/sitea
* [[Counter-Strike Source Sky List | List of Skies]]
decals/siteb
* [[List of CS:S Soundscapes | List of Soundscapes]]
* [[List of CSS Fog Settings | List of Fog Settings]]
* [[Radio console commands (Counter Strike: Source) | List of Radio Commands]]
* [[List_of_Counter-Strike:_Source_console_commands_and_variables | List of Console Variables]]


decals/arrowlf
==External links==
* [https://www.moddb.com/games/counter-strike-source Moddb] - Community Modding Website.
* [https://gamebanana.com/games/2 Gamebanana] - Game Modding Community.
* [https://www.mobygames.com/game/windows/counter-strike-source MobyGames] - Videogame Database
* {{wiki|Counter-Strike: Source}} (Wikipedia article)
* [https://www.youtube.com/watch?v=bvI62FUDpKA Game Trailer]
* [https://store.steampowered.com/app/240 Buy the game]


decals/arrowrt
==See also==
* {{css|4}}
* {{csgo|4}}
* {{cs2|4}}
* {{cs|4}}
* {{cscz|4}}
* {{czds|4}}


decals/arrowuplf
{{category end}}{{css topicon}}
 
[[Category:Level Design]]
decals/arrowuprt
[[Category:Counter-Strike: Source]]
 
cstrike/{sitea
 
cstrike/{siteb
|-
| Hostage rescue point decal || decals/hrpoint
|}
 
Counter-Strike Round Restarts
 
At the end of each Counter-Strike: Source gameplay round, when end-of-round game conditions are met, the game resets itself for the next round. When this happens, most of the entities in the map reset to their original state, just as if the map was just loaded. However, the following list of entities are not reset, and continue in the same state in the all consecutive rounds:
 
<pre>
    * env_soundscape
    * env_soundscape_proxy
    * env_soundscape_triggerable
    * env_sprite
    * env_sun
    * env_wind
    * env_fog_controller
    * func_brush
    * func_wall
    * func_buyzone
    * func_illusionary
    * func_hostage_rescue
    * func_bomb_target
    * infodecal
    * info_projecteddecal
    * info_node
    * info_target
    * info_node_hint
    * info_player_counterterrorist
    * info_player_terrorist
    * keyframe_rope
    * move_rope
    * info_ladder
    * point_viewcontrol
    * shadow_control
    * sky_camera
    * trigger_soundscape
    * worldspawn
</pre>
 
All other entities are reset to their original state at the beginning of the next round, and all pending outputs are cancelled.
 
You can use a <code>logic_auto</code> point entity to trigger additional events to occur at the start of the round. The <code>OnMapSpawn</code> output of the <code>logic_auto</code> will be fired when the map is first loaded, and at the beginning of the each round thereafter, after the reset. For example, in the map cs_havana, at the start of each round, a <code>logic_auto</code> has an <code>OnMapSpawn</code> output to a <code>logic_case</code> entity that randomly sets the routes open to the players each round. The <code>logic_case</code> enables and disables a series of <code>func_wall</code> brush entities that determines which routes are open and closed. For more information on how to use outputs, see Entity I/O.
 
=Other important components=
 
There are other entities and materials that are commonly used in Counter-Strike: Source maps. Here is a list of some of the most prominent ones.
 
{|
| <code>trigger_multiple</code><br><code>trigger_once</code> || Brush entities used to activate events, set soundscapes, etc. See the <code>Entity Guide</code> in the Hammer User's Guide for further details on specific entities.
|-
| <code>filter_activator_name</code><br><code>filter_activator_team</code>|| Point entities that are used to determine what entities or players can activate a trigger. See the Entity Guide in the Hammer User's Guide for further details on specific entities.
|-
| Clip brushes – brushes with the <code>tools\toolsclip</code> material applied to all sides. || Used to block off areas from players. Also blocks grenades.
|-
| Player clip brushes – brushes with the <code>tools\toolsplayerclip</code> material applied to all sides. || Used to block off areas from players. Blocks players only – not NPCs or grenades.
|-
| Nodraw brushes – brushes with the <code>tools\toolsnodraw</code> material applied to all sides. || Nodraw faces do not render, but the brushes still seal areas and cast shadows. Useful to put behind non-sealing geometry, such as models or displacements, to seal the map without rendering extra faces.
|-
| Water brushes – brushes with a water material applied to to the top surface. || Water is created by making a brush volume and applying one of the water materials to the top surface and <code>tools\toolsnodraw</code> to all the other sides. See [[Adding Water]] for further details on how to create water volumes.
|-
| <code>env_cubemap</code> || Need to be placed around the level for proper rendering of reflection/specular materials. See [[Cubemaps]] for further details on how to use env_cubemap.
|-
| <code>env_soundscape</code> || Placed within a level to trigger different DSP (echo) effects and sound settings. See [[Soundscapes]] for further details on how to use env_soundscape.
|}
 
 
[[Category:Level_Design]]

Latest revision as of 05:51, 12 July 2024