Difference between revisions of "Modified Fizzler Fields"

From Valve Developer Community
Jump to: navigation, search
m (Dark green Fizzler Field (Force Field))
(Change section names and improve SDF tutorial)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Modified fizzler fields''' are a custom element that is not shipped with [[Portal 2]]. It's basically a modified [[Emancipation Grid]] that behaves differently depending on the color of the field. This testing element was initially made for the map [http://forums.thinkingwithportals.com/downloads.php?view=detail&df_id=1585 FourthReaper's Penrose].
+
'''Modified fizzler fields''' are a custom element that is not shipped with [[Portal 2]]. It's basically a modified [[Emancipation Grid]] that behaves differently depending on the color of the field.
 +
{{note|For fields longer than 128 units, you wil need to use the <code>l</code>, <code>r</code> and <code>center</code> fizzler textures as explained [[Emancipation Grid#Larger Fizzlers|here]]. For fields taller than 128 units, you will need to split it into multiple 128-unit high brushes.}}
 
http://s18.postimg.org/oelik7qtl/2016_01_01_00002.jpg
 
http://s18.postimg.org/oelik7qtl/2016_01_01_00002.jpg
  
 
==Creation==
 
==Creation==
This assumes you have a level to put the fields in.  If not, [[Level_Design_Introduction_(Portal_2)/Your_First_Level|this page]] or [http://sites.google.com/site/renshdtutorials/home/general-hammer/beginner this page] will show you the basics. You will also need to have downloaded the [http://forums.thinkingwithportals.com/downloads.php?view=detail&df_id=1597 texture pack] that contains the custom fizzler textures (Look at the vmf of this file to see exactly how it works).
+
This assumes you have a level to put the fields in.  If not, [[Level_Design_Introduction_(Portal_2)/Your_First_Level|this page]] will show you the basics. You will also need to have downloaded the [https://www.dropbox.com/s/fzx5svyy51wfxs1/Modified%20Fizzler%20Fields.zip?dl=0 Field texture pack] that contains the custom fizzler textures (Look at the vmf of this file to see exactly how it works).
 
{{note|If the texture is misaligned, use the tool texture, click on the surface you want to align, then click on "Fit" button.}}
 
{{note|If the texture is misaligned, use the tool texture, click on the surface you want to align, then click on "Fit" button.}}
  
  
===Green Fizzler Field (Surface Division Field)===
+
===Surface Division Field (Green field)===
Essentially a world portal that prevent portal from being fired through it.
+
Essentially a [[linked_portal_door|world portal]] that portals cannot be fired through. It does not fizzle cubes or clear portals. Because this field is a portal, you will need to make a second field which it is linked to. This testing element was initially made for the map [http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=1585 FourthReaper's Penrose].
It is a good idea to always make sure the '''Surface Division Field''' is fully enclosed. This means if you want it to stand in the middle of a room, you must build a frame around it (top, bottom, and both sides). If you don't do this, you will get an error when you try to compile the level. This is due to the world portal being unable to seal a room (odd feature of this item, but whatever) when it is out in the open. A world portal, aka [[linked portal door]] apparently needs to seal a room or the level is considered to have a leak.
 
  
1. Create a [[trigger portal cleanser]] that is 128*128*1. Then set the field as follows:
+
1. Create a 128*128*1 {{ent|trigger_portal_cleanser}} textured with the [[Tool textures|tools/nodraw]] texture. Set the field to be visible and uncheck the <code>Clients</code> flag.
::{| class=standard-table
 
|-
 
!Property Name || Value
 
|-
 
| Visible || Yes
 
|-
 
|} {{note|You can make it more than one unit thick, but I recommend only one unit to avoid odd visual behavior when passing through it.}}
 
  
2. Texture all of it in tools/nodraw.
+
2. Texture the face you will see with <code>fr_surface_division_field</code>.
  
3. Texture the faces you will see with fr_surface_division_field.
+
3. Create a {{ent|linked_portal_door}} and apply the following settings:
  
4. Create a '''linked portal door''' and apply with the following settings:
 
 
{{note|You will need to create ''two'' Surface Division Fields if you want the field to stand away from a wall.  If you don't have two of them back to back, you will be unable to use the field from behind.}}
 
 
::{| class=standard-table
 
::{| class=standard-table
 
|-
 
|-
Line 35: Line 25:
 
| Linked Partner || green_field_2  
 
| Linked Partner || green_field_2  
 
|-
 
|-
| Width || 64
+
| Width || Half of the field's width
 
|-
 
|-
| Height || 64
+
| Height || Half of the field's height
 
|-
 
|-
 
| Start active || Yes
 
| Start active || Yes
 
|-
 
|-
|}{{note|It is helpful if you put the field in front of the ''linked portal door''.  This can minimize the likelihood of odd visual behavior when you pass things like lasers or funnels through field.  If you have lasers or funnels, it is also helpful to put a '''func_brush''' behind the field.  This will help to prevent odd visual behavior.}}
+
|}
This will create the '''linked portal door''' in the exact center of the '''trigger portal cleanser'''.  Of course, if you made the ''trigger portal cleanser'' a different size, you will want to make the ''linked portal door'' a different size.
+
 
 +
For the second field, the Name and Linked Partner should be swapped.
  
{{note|The size of the ''linked portal door'' is half the size of the ''trigger portal cleanser''The two ''linked portal doors'' should be the same size.  If they are not, you might get very strange behavior in-game when looking at the ''linked portal door''.}}
+
{{tip|It is helpful if you put the field in front of the <code>linked_portal_door</code>This can minimize the likelihood of odd visual behavior when you pass things like lasers or funnels through field.  If you have lasers or funnels, it is also helpful to put a <code>func_brush</code> behind the field.  This will help to prevent odd visual behavior.}}
 +
{{note|If the player is able to see the back of the field, you will also need to apply the field texture to the back and add a second <code>linked_portal_door</code> facing in the opposite directon.}}
  
===Orange Fizzler Field (Force Deflection Field)===
+
This will create a <code>linked_portal_door</code> which covers the entire <code>trigger_portal_cleanser</code>.
 +
 
 +
===Force Deflection Field (Orange field)===
 
This field prevents everything from passing it, except portal shots. It is essentially a reskin of grating.
 
This field prevents everything from passing it, except portal shots. It is essentially a reskin of grating.
 
This field is created in a similar way as the green field.  It does, however, have few differences as well.
 
This field is created in a similar way as the green field.  It does, however, have few differences as well.
  
1. Create a [[func brush]] and texture it like you did the surface division field, except use fr_force_deflection_field.
+
1. Create a [[func_brush]] and texture it like you did the surface division field, except use fr_force_deflection_field.
  
 
2. Set it as follows:
 
2. Set it as follows:
Line 65: Line 59:
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
  
===Yellow Fizzler Field (Matter Inquisition Field)===
+
===Matter Inquisition Field (Yellow field)===
 
This field will fizzle things and block portals but will not reset portals.
 
This field will fizzle things and block portals but will not reset portals.
  
Line 74: Line 68:
 
3. Uncheck the ''Clients'' flag and check the ''Physics Objects'' flag under '''flags'''.
 
3. Uncheck the ''Clients'' flag and check the ''Physics Objects'' flag under '''flags'''.
  
===Purple Fizzler Field (Compressed Smoke Field)===
+
===Compressed Smoke Field (Purple field)===
 
This field will block the player and prevent portals from being fired through it, but allow physic objects to pass.
 
This field will block the player and prevent portals from being fired through it, but allow physic objects to pass.
  
Line 85: Line 79:
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
  
===Pink Fizzler Field (Liquid Coloring Excision Field)===
+
===Liquid Coloring Excision Field (Pink field)===
 
It is esentially a fizzler for paint. It block portals, but does not fizzle portals or cubes. Only paint will be destroyed when the field is active.
 
It is esentially a fizzler for paint. It block portals, but does not fizzle portals or cubes. Only paint will be destroyed when the field is active.
  
Line 94: Line 88:
 
3. Texture the faces that you'll see with fr_liquid_coloring_excision_field.
 
3. Texture the faces that you'll see with fr_liquid_coloring_excision_field.
  
5. Create a [[trigger paint cleanser]] that is the same size. Texture this in tools/trigger. No properties need to be changed.
+
5. Create a [[trigger_paint_cleanser]] that is the same size. Texture this in tools/trigger. No properties need to be changed.
  
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
  
===Red Fizzler Field (Death Fizzler Field)===
+
===Death Fizzler (Red field)===
This field prevents everything from passing it, except lasers (as a non solid glass)
+
This field prevents everything from passing it, except lasers (as a non solid glass).
 +
This field was featured in Portal Stories: Mel.
  
 
1. Create a field as you did with the green field, steps 1 and 2
 
1. Create a field as you did with the green field, steps 1 and 2
Line 107: Line 102:
 
3. Texture with fr_death_field_fizzler
 
3. Texture with fr_death_field_fizzler
  
4. Create a trigger_hurt (same size that the previous field), and texture it with tools/trigger
+
4. Create a [[trigger_hurt]] (same size that the previous field), and texture it with tools/trigger
  
 
5. Set it as follows:
 
5. Set it as follows:
Line 119: Line 114:
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
 
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
  
===Dark green Fizzler Field (Force Field)===
+
===Physics Repulsion Field (Dark green field)===
 
This fizzler only blocks physic objects (as cubes); you can shoot through it, and this doesn't fizzle portals
 
This fizzler only blocks physic objects (as cubes); you can shoot through it, and this doesn't fizzle portals
  
 
1. Create a field as you did with the orange field, steps 1 and 2, except use fr_forcefield
 
1. Create a field as you did with the orange field, steps 1 and 2, except use fr_forcefield
 +
 +
2. Create a [[func_clip_vphysics]] (same size that the previous field), and texture it with tools/trigger. No properties need to be changed.
 +
 +
{{Note|You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.}}
  
 
==Controlling the Fields==
 
==Controlling the Fields==
You can of course control these fields just like any other object.  If you choose to make the fields controllable, you will need to give the fields names.  I find it easiest to name the field for its color; such as green_field_1, purple_field_east, etc. That way I can remember where the devil the silly thing is in the room.
+
You can of course control these fields just like any other object.  If you choose to make the fields controllable, you will need to give the fields names.  I find it easiest to name the field for its color; such as green_field_1, purple_field_east, etc. That way I can remember where the devil the silly thing is in the room. The, you just have to use enable/disable output, except for the green fizzler field where the output is Open/Close
 
+
(If you haven't followed my advice to give the same name of the two part of the field, you have to enable/disable both)
{{todo|add instructions on setting up control of the field's state.}}
 

Latest revision as of 03:23, 2 November 2017

Modified fizzler fields are a custom element that is not shipped with Portal 2. It's basically a modified Emancipation Grid that behaves differently depending on the color of the field.

Note:For fields longer than 128 units, you wil need to use the l, r and center fizzler textures as explained here. For fields taller than 128 units, you will need to split it into multiple 128-unit high brushes.

2016_01_01_00002.jpg

Creation

This assumes you have a level to put the fields in. If not, this page will show you the basics. You will also need to have downloaded the Field texture pack that contains the custom fizzler textures (Look at the vmf of this file to see exactly how it works).

Note:If the texture is misaligned, use the tool texture, click on the surface you want to align, then click on "Fit" button.


Surface Division Field (Green field)

Essentially a world portal that portals cannot be fired through. It does not fizzle cubes or clear portals. Because this field is a portal, you will need to make a second field which it is linked to. This testing element was initially made for the map FourthReaper's Penrose.

1. Create a 128*128*1 trigger_portal_cleanser textured with the tools/nodraw texture. Set the field to be visible and uncheck the Clients flag.

2. Texture the face you will see with fr_surface_division_field.

3. Create a linked_portal_door and apply the following settings:

Property Name Value
Name green_field_1
Linked Partner green_field_2
Width Half of the field's width
Height Half of the field's height
Start active Yes

For the second field, the Name and Linked Partner should be swapped.

Tip:It is helpful if you put the field in front of the linked_portal_door. This can minimize the likelihood of odd visual behavior when you pass things like lasers or funnels through field. If you have lasers or funnels, it is also helpful to put a func_brush behind the field. This will help to prevent odd visual behavior.
Note:If the player is able to see the back of the field, you will also need to apply the field texture to the back and add a second linked_portal_door facing in the opposite directon.

This will create a linked_portal_door which covers the entire trigger_portal_cleanser.

Force Deflection Field (Orange field)

This field prevents everything from passing it, except portal shots. It is essentially a reskin of grating. This field is created in a similar way as the green field. It does, however, have few differences as well.

1. Create a func_brush and texture it like you did the surface division field, except use fr_force_deflection_field.

2. Set it as follows:

Property Name Value
Solidity Never Solid

3. Create a second func brush and texture it with tools/invisible.

Note:Make sure the 2 func brushes are the same size. This will ensure that the orange field functions properly.
Note:You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.

Matter Inquisition Field (Yellow field)

This field will fizzle things and block portals but will not reset portals.

1. Create a field as you did with the green field, steps 1 and 2

2. Texture the face of the field with fr_matter_inquisition_field.

3. Uncheck the Clients flag and check the Physics Objects flag under flags.

Compressed Smoke Field (Purple field)

This field will block the player and prevent portals from being fired through it, but allow physic objects to pass.

1. Create a field as you did with the green field, steps 1 and 2

2. Texture the field with fr_compressed_smoke_field.

3. Create a func brush and texture it with tools/playerclip.

Note:You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.

Liquid Coloring Excision Field (Pink field)

It is esentially a fizzler for paint. It block portals, but does not fizzle portals or cubes. Only paint will be destroyed when the field is active.

1. Create a field as you did with the green field, steps 1 and 2

2. Uncheck the "Clients" flag. This will prevent the field from fizzling portals.

3. Texture the faces that you'll see with fr_liquid_coloring_excision_field.

5. Create a trigger_paint_cleanser that is the same size. Texture this in tools/trigger. No properties need to be changed.

Note:You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.

Death Fizzler (Red field)

This field prevents everything from passing it, except lasers (as a non solid glass). This field was featured in Portal Stories: Mel.

1. Create a field as you did with the green field, steps 1 and 2

2. Check the "Physics Objects" flag

3. Texture with fr_death_field_fizzler

4. Create a trigger_hurt (same size that the previous field), and texture it with tools/trigger

5. Set it as follows:

Property Name Value
Damage 1000
Note:You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.

Physics Repulsion Field (Dark green field)

This fizzler only blocks physic objects (as cubes); you can shoot through it, and this doesn't fizzle portals

1. Create a field as you did with the orange field, steps 1 and 2, except use fr_forcefield

2. Create a func_clip_vphysics (same size that the previous field), and texture it with tools/trigger. No properties need to be changed.

Note:You don't have to, but I prefer to give them the same name to save time when setting what activate/deactivate it.

Controlling the Fields

You can of course control these fields just like any other object. If you choose to make the fields controllable, you will need to give the fields names. I find it easiest to name the field for its color; such as green_field_1, purple_field_east, etc. That way I can remember where the devil the silly thing is in the room. The, you just have to use enable/disable output, except for the green fizzler field where the output is Open/Close (If you haven't followed my advice to give the same name of the two part of the field, you have to enable/disable both)