Difference between revisions of "Pit"

From Valve Developer Community
Jump to: navigation, search
m
m
 
Line 4: Line 4:
 
[[File:pit.png|thumb|right|250px|"Could you just jump into that pit?" <br>- '''Wheatley''']]
 
[[File:pit.png|thumb|right|250px|"Could you just jump into that pit?" <br>- '''Wheatley''']]
  
'''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.
+
'''Bottomless pits''' are used as obstacles in [[Portal 2]] and destroy objects and players that drop into them, just like [[Shredder|grinders]] and [[slime|deadly goo]]. They trigger a fade to black for players that fall into them.
  
  

Latest revision as of 00:40, 7 April 2016

Русский
"Could you just jump into that pit?"
- Wheatley

Bottomless pits are used as obstacles in Portal 2 and destroy objects and players that drop into them, just like grinders and deadly goo. 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 you have chosen Doubling 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