Discouragement Field

From Valve Developer Community
Revision as of 06:22, 14 May 2011 by RJackson (talk | contribs) (Written up a tutorial on making them. Not sure if it's the "proper" way, but it recreated the effect perfectly.)
Jump to navigation Jump to search
Death Field example.

The Death Field is a special energy field in Portal 2 which kills any player touching it, but not destroying other objects. It can be considered as the counterpart to the Emancipation Grid.

Tutorial

  • Create two prop_static entities
    • set their world-model to props/fizzler.mdl.
    • set their skin to 2
  • Position the models at either side of where you want the Discouragement Field to be.
  • Create a brush between the models, with a depth of 2 hammer units. (There are little notches in the fizzler.mdl - 2 units fits the notch perfectly).
    • Set the brush's texture to tools/toolsnodraw.
    • Set the texture of the 2 faces either side of the Discouragement Field to effects/laserplane
    • Turn this brush into the func_brush entity, call it laserfield_brush.
  • Create a new brush the same size as laserfield_brush.
    • Set it's texture to tools/toolstrigger
    • Convert it into the brush entity, trigger_hurt and name it laserfield_hurt.
      • Set it's "Damage" to 999
      • Set it's "Damage Cap" to 999
  • Create a logic_relay with the name lasergrid_off
    • Set the following outputs:
My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger laserfield_brush Disable <none> 0.00 No
Io11.png OnTrigger laserfield_hurt Disable <none> 0.00 No
  • Create a logic_relay with the name lasergrid_on
    • Set the following outputs:
My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger laserfield_brush Enable <none> 0.00 No
Io11.png OnTrigger laserfield_hurt Enable <none> 0.00 No
  • Turn the Discouragement Field on or off via the Trigger input of lasergrid_on and lasergrid_off.