Doors: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Nesciuse moved page Doors/en to Doors without leaving a redirect: Move en subpage to basepage)
 
(27 intermediate revisions by 23 users not shown)
Line 1: Line 1:
trocracc
{{LanguageBar}}
{{abstract mapping}}__NOTOC__


==Entities==
{{Abstract Mapping}}
*[[func_door]]
*[[func_door_rotating]]
*[[prop_door_rotating]]
*Doors can also be made with several other moving entities.


==NPC Behaviour==
A hub of door-related assets and articles.
===Navigation===
NPCs are able to open unlocked <code>prop_door_rotating</code> entities, if their programming permits it. The process is automated and requires only that a valid [[nodegraph]] link travel through the doorframe.


===Combat===
== Entities ==
Valve's AI does not yet contain any door-specific combat code. NPCs will stand in doorways when others from their squad attempt to pass through, and do not understand the principle of clearing a room from a door entry. For these reasons, combat in or around doorways should be either avoided, or semi-scriped with [[assaults]].
*{{ent|func_door}}
 
*{{ent|func_door_rotating}}
It is quite possible to have NPCs enter a combat area through a door, but without custom AI code the door itself should not be a point of interaction.
*{{ent|prop_door_rotating}}
 
*{{ent|prop_testchamber_door}} {{portal2|only}}
===Optimal node pattern===
*{{ent|dz_door}} {{csgo|only}}
 
*{{ent|asw_door}} {{as|only|addtext={{asrd}}}}
[[Image:Door nodepattern.png|center|Optimal node pattern for a doorway]]
*Doors can also be made with several other moving entities.
 
;Main movement targets
:Guarantee a nodegraph link by presenting a straight line through the doorframe.
:Placed slightly ahead to decrease the likelihood of NPCs stopping too close to the door and causing congestion.
;Flank nodes
:Create alternate exit points, and are a solid choice for FIND_COVER routines.
;Entrance / Exit Pinch
:<code>[[info_node_hint]]</code> of type <code>Entrance / Exit Pinch</code>.
:Ensures that NPCs travelling through the doorway do so one at a time.
:'''Limitation:''' NPCs that are not using the node (i.e. are not travelling through the door) may still choose to stand on it! This is a bug that should be fixed.
 
==See also==
*[[Blowout Doors]]


==Tutorials==
== See also ==
* [http://www.sdknuts.com/akgsrch.asp?search=door&mode=allwords Door Tutorials]
* [[Door creation]]
* [[WiseDoor]]
* [[Blowout Doors]]
[[Category: Level Design]]
[[Category:Hubs]]

Latest revision as of 06:15, 12 July 2024