Discouragement Field: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (moved Death Field to Discouragement Field) |  (Written up a tutorial on making them.  Not sure if it's the "proper" way, but it recreated the effect perfectly.) | ||
| Line 3: | Line 3: | ||
| 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]]. | 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 <code>props/fizzler.mdl</code>. | |||
| ** set their skin to <code>2</code> | |||
| * 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 <code>tools/toolsnodraw</code>. | |||
| ** Set the texture of the 2 faces either side of the ''Discouragement Field'' to <code>effects/laserplane</code> | |||
| ** 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 <code>tools/toolstrigger</code> | |||
| ** Convert it into the brush entity, <code>trigger_hurt</code> and name it ''laserfield_hurt''. | |||
| *** Set it's "Damage" to <code>999</code> | |||
| *** Set it's "Damage Cap" to <code>999</code> | |||
| * Create a [[logic_relay]] with the name ''lasergrid_off'' | |||
| ** Set the following outputs: | |||
| {| class=standard-table | |||
| !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | |||
| |- | |||
| | [[Image:Io11.png]] || OnTrigger || laserfield_brush || Disable || <none>  || 0.00 || No | |||
| |- | |||
| | [[Image:Io11.png]] || OnTrigger || laserfield_hurt || Disable || <none>  || 0.00 || No | |||
| |} | |||
| * Create a [[logic_relay]] with the name ''lasergrid_on'' | |||
| ** Set the following outputs: | |||
| {| class=standard-table | |||
| !   || My Output || Target Entity || Target Input || Parameter || Delay || Only Once | |||
| |- | |||
| | [[Image:Io11.png]] || OnTrigger || laserfield_brush || Enable || <none>  || 0.00 || No | |||
| |- | |||
| | [[Image:Io11.png]] || OnTrigger|| laserfield_hurt || Enable || <none>  || 0.00 || No | |||
| |} | |||
| * Turn the ''Discouragement Field'' on or off via the <code>Trigger</code> input of ''lasergrid_on'' and ''lasergrid_off''. | |||
| [[Category:Portal 2 Level Design]] | [[Category:Portal 2 Level Design]] | ||
Revision as of 06:22, 14 May 2011
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
 
- set their world-model to 
- 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.
 
- Set the brush's texture to 
- Create a new brush the same size as laserfield_brush.
- Set it's texture to tools/toolstrigger
- Convert it into the brush entity, trigger_hurtand name it laserfield_hurt.- Set it's "Damage" to 999
- Set it's "Damage Cap" to 999
 
- Set it's "Damage" to 
 
- Set it's texture to 
- Create a logic_relay with the name lasergrid_off
- Set the following outputs:
 
| My Output | Target Entity | Target Input | Parameter | Delay | Only Once | |
|---|---|---|---|---|---|---|
|  | OnTrigger | laserfield_brush | Disable | <none> | 0.00 | No | 
|  | 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 | |
|---|---|---|---|---|---|---|
|  | OnTrigger | laserfield_brush | Enable | <none> | 0.00 | No | 
|  | OnTrigger | laserfield_hurt | Enable | <none> | 0.00 | No | 
- Turn the Discouragement Field on or off via the Triggerinput of lasergrid_on and lasergrid_off.
