Swarm Placing Doors: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '== Doors == Doors in AS:I are special entities using fixed meshes depending on the door type. We're using fixed meshes as the doors have animations of them being dented and smas…')
 
m (Fixed category of page)
Line 41: Line 41:
For consistency and background reasons, all but VERY high tech Auto Open doors should be left at the default ("Marines and Aliens").  
For consistency and background reasons, all but VERY high tech Auto Open doors should be left at the default ("Marines and Aliens").  


[[Category:Alien_Swarm:_Infested]]
[[Category:Alien Swarm]]

Revision as of 09:39, 20 July 2010

Doors

Doors in AS:I are special entities using fixed meshes depending on the door type. We're using fixed meshes as the doors have animations of them being dented and smashed open by the Swarm.

The door entity to use is Asw door.

Set the door's world model to:

  • models/props/doors/heavy_doors/doorleft.mdl

A working door consists of two components: the Asw door itself and a door area. The door area is the space in which marines can stand to make the door open if it's an auto-opening door and it's the area in which a marine can seal/cut the door with the welding tool.

Swarm MappingDoor.jpg

Building a door

1) Place down an Asw door entity.

2) Bring up the properties of the Asw door you just placed and set the Name property to something unique to this door, like Door_1.

3) Using the block tool, make a brush for the door area, covering both sides of the door. This brush must have the texture tools/toolstrigger. Once the brush is placed, select Tools -> Tie to Entity (shortcut Ctrl + T) and select the class trigger_asw_door_area.

4) Bring up the properties of the trigger_asw_door_area brush you placed and set the UseTarget property to the name of your asw_door, e.g. Door_1.

That's the basics of a door. In-game your door will now open when a marine approaches, sliding to the side. It can also be cut and sealed with the welding tool.

Door Frame

The door frame must be constructed correctly so players can see whether the door is open or shut from the overhead view. This means building a frame for each side of the door, leaving a gap in the middle through which the player can see the top of the door itself. For example:

Swarm MappingDoorframe.jpg

Door Properties

See the Asw door page for a list of door properties and their uses.

Door Area Flags

If you bring up the properties of your Trigger asw door area and go to the Flags tab, you can set which type of entity can trigger the Auto Open of the door. The two most relevant choices for AS:I are either "Marines and Aliens" or "Only Marines".

For consistency and background reasons, all but VERY high tech Auto Open doors should be left at the default ("Marines and Aliens").