Pit: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{otherlang2
[[File:pit.png|thump|right|250px|"Could you just jump to that pit?" <br>- '''Wheatley''']]
|ru=Pit:ru
 
}}
'''Death pits''' are used as obstacles in [[Portal 2]] and destroy objects and players that drop into them, just like [[Shredder|shredders]] and [[slime]]. They trigger a fade to black for players that fall into them.
'''Death pits''' are used as obstacles in [[Portal 2]] and destroy objects and players that drop into them, just like [[Shredder|shredders]] and [[slime]]. They trigger a fade to black for players that fall into them.


Line 12: Line 11:
== Making the deadly pit ==
== Making the deadly pit ==


Take your block tool and make a block, with the trigger texture, in the place where you want the player's death. After that press '''[Ctrl+T]''' and make it [[trigger_hurt]]. You can see many properties but we are only going to use the "damage", "damage cap" and the "damage type" properties.
Take your block tool and make a block, with the trigger texture, in the place where you want the player's death. After that press '''[Ctrl+T]''' and make it [[trigger_hurt]]. You can see many properties but we are only going to use the "damage", "damage cap" (only if have choosen the Dowbling w/Forgiveness) and the "damage type" properties.


== Final things you need to do ==
== Final things you need to do ==


Change the number of the "'''damage'''" property and put a high number (e.g '''1000'''). Do the same with "'''damage cap'''" and then choose the "'''damage type'''" property and select "FALL".
Change the properties
::{| class=standard-table
!  Property Name || Value || Help
|-
| Damage || 1000 || The amount of damage done to entities that touch this trigger. The damage is done every half-second.  
|-
| Damage cap || 1000 || Maximum damage dealt per second. This field is only used if you select the Doubling w/Forgiveness damage model, via the spawnflag.
|-
| Damage type || FALL || -
|}
 
==See also==
*[[trigger_hurt]]
 
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Level Design]]
[[Category:Portal 2 Tutorials]]
[[Category:Portal 2 Tutorials]]

Revision as of 06:20, 18 January 2012

"Could you just jump to that pit?" - Wheatley

Death pits are used as obstacles in Portal 2 and destroy objects and players that drop into them, just like shredders and slime. They trigger a fade to black for players that fall into them.


Entities you need

trigger_hurt (using the block tool)


Making the deadly pit

Take your block tool and make a block, with the trigger texture, in the place where you want the player's death. After that press [Ctrl+T] and make it trigger_hurt. You can see many properties but we are only going to use the "damage", "damage cap" (only if have choosen the Dowbling w/Forgiveness) and the "damage type" properties.

Final things you need to do

Change the properties

Property Name Value Help
Damage 1000 The amount of damage done to entities that touch this trigger. The damage is done every half-second.
Damage cap 1000 Maximum damage dealt per second. This field is only used if you select the Doubling w/Forgiveness damage model, via the spawnflag.
Damage type FALL -

See also