Gel (Portal 2): Difference between revisions
P0rtalmaster (talk | contribs) |
(Added Reflection Gel Description and Tutorial) |
||
Line 9: | Line 9: | ||
There are three main types of gel. Repulsion gel is blue, and causes things to bounce around. Propulsion gel is orange, and makes objects slippery and players move quickly. Conversion gel is white, and allows the placement of [[portal|portals]]. | There are three main types of gel. Repulsion gel is blue, and causes things to bounce around. Propulsion gel is orange, and makes objects slippery and players move quickly. Conversion gel is white, and allows the placement of [[portal|portals]]. | ||
{{note|Entering "1" on ''$paint_type'' will result in an unused type of gel known as Reflection Gel. This gel uses a slightly modified version of the Conversion Gel texture and will reflect lasers. This gel was originally planned to be included in the ''Peer Review DLC'' co-op update, replacing the also unused Adhesion Gel, however the effects of the gel were considered too similar to those of the [[Discouragement Redirection Cube]]. | {{note|Entering "1" on ''$paint_type'' will result in an unused type of gel known as Reflection Gel. This gel uses a slightly modified version of the Conversion Gel texture and will reflect lasers. This gel was originally planned to be included in the ''Peer Review DLC'' co-op update, replacing the also unused Adhesion Gel, however the effects of the gel were considered too similar to those of the [[Discouragement Redirection Cube]]. It works but has some bugs: For example it has an awful texture by default and when the player has contact with it makes red splashes on the view. Also it cleans the other gel effects (like Propulsion, or Bounce effect) when Reflection Gel get in contact to an object. }} | ||
==Creating a Gel Dropper== | ==Creating a Gel Dropper== | ||
Line 28: | Line 28: | ||
| $trigger_to_stop || stop | | $trigger_to_stop || stop | ||
|- | |- | ||
| $paint_type || 0 = Bounce, 1= Stick, 2 = Speed, 3 = Conversion, 4 = Water | | $paint_type || 0 = Bounce, 1= Stick/Reflection , 2 = Speed, 3 = Conversion, 4 = Water | ||
|} | |} | ||
Line 65: | Line 65: | ||
# For paint to appear on surfaces, you need some light in your map (at least one light entity). Otherwise it will only coat certain entities like turrets and cubes. | # For paint to appear on surfaces, you need some light in your map (at least one light entity). Otherwise it will only coat certain entities like turrets and cubes. | ||
# There does not seem to be a way to put objects into a painted state through the [[Inputs_and_Outputs|I/O]] system, though there are inputs to remove paint. Nor does there appear to be any way of detecting precisely when gel or water lands on and coats a particular surface. | # There does not seem to be a way to put objects into a painted state through the [[Inputs_and_Outputs|I/O]] system, though there are inputs to remove paint. Nor does there appear to be any way of detecting precisely when gel or water lands on and coats a particular surface. | ||
=== Change texture of Reflection Gel === | |||
If you want to change the texture of Reflection Gel the follow these steps: | |||
# Create a "material/paintblobs" in your Portal 2/portal2 Folder and copy "blob_surface_speed.vmt" and "blob_surface_speed.vtf" from the portal2/pak01_dir.vpk and the folder "material/paintblobs" into the folder you just have created. | |||
# Rename it both to "blob_surface_stick" with the proper file ending. Dont forget to change the $basetexture entry in the VMT file to the right filename | |||
# Export the image out of blob_surface_stick.vmf with a tool like VTFEdit, change the pixel color to the color you wish and reimport it into the VTF File. You have to keep the resolution of 4x4 !! | |||
Here you can find another Tutorial for exchanging the Reflection Gel Texture (and there are ready to used Texture files, too): [http://www.moddb.com/mods/aperture-the-omega-project/tutorials/tut-exchange-portal-2-reflection-gel-texture Link] | |||
===See Also=== | ===See Also=== |
Revision as of 13:40, 22 May 2016
Gel or paint is a puzzle element of Portal 2. It flows out of droppers in blobs, and covers any surface or object it splashes on, changing its physical properties and coloring it if blue or orange. Water streams behave the same way gel does, but cleans gel off surfaces. Gel streams can be redirected with portals and funnels.

There are three main types of gel. Repulsion gel is blue, and causes things to bounce around. Propulsion gel is orange, and makes objects slippery and players move quickly. Conversion gel is white, and allows the placement of portals.

Creating a Gel Dropper
Using an instance
1. Create a func_instance entity with the following properties:
Property Name Value Fix up Name gel_dropper VMF Filename instances/gameplay/paint_dropper.vmf $paint_sprayer gel_sprayer $trigger_to_start start $trigger_to_stop stop $paint_type 0 = Bounce, 1= Stick/Reflection , 2 = Speed, 3 = Conversion, 4 = Water
If the cube dropper doesn't show up then save and reload so you can position it properly.
2. Create the entity you want to activate the gel dropper, such as a trigger_once at the entrance to the room, and give it the following outputs:

From scratch

- Create your pipe system using prop_statics. Use the 'Color' setting to change the color of the "Gel Flow" arrow. Make sure you have a proper dropper model at the end, and also use an 'interior cap' model inside the dropper.
- Create an info_paint_sprayer, and place it inside the dropper.
- Give it the settings that your map requires.
- Trigger the 'Start' and 'Stop' inputs as required.
If you want to create paint bombs, then the process is somewhat more complex:
- Create your pipe system.
- Create a prop_paint_bomb, and give it a name like "paint_bomb".
- Create a point_template. Give it a name like "paint_bomb_temp" and set 'Template 01' to "paint_bomb".
- Create an env_entity_maker. Give it a name like "paint_bomb_spawner" and set 'Point_template To Spawn' to "paint_bomb_temp".
- Trigger 'ForceSpawn' of "paint_bomb_spawner" with your output of choice (e.g. a button). If want them to drop at a regular time interval, you can use a logic_timer, and trigger 'ForceSpawn' using the 'OnTimer' output. Alternatively, you can trigger 'ForceSpawn' of "paint_bomb_spawner" whenever "paint_bomb" explodes.

Notes
- For paint to function in your map, you need to turn on the flag "Paint in map" in the Map Properties. This includes sticking to surfaces as well as affecting physics objects; boxes will look painted, but they will not act painted.
- For paint to appear on surfaces, you need some light in your map (at least one light entity). Otherwise it will only coat certain entities like turrets and cubes.
- There does not seem to be a way to put objects into a painted state through the I/O system, though there are inputs to remove paint. Nor does there appear to be any way of detecting precisely when gel or water lands on and coats a particular surface.
Change texture of Reflection Gel
If you want to change the texture of Reflection Gel the follow these steps:
- Create a "material/paintblobs" in your Portal 2/portal2 Folder and copy "blob_surface_speed.vmt" and "blob_surface_speed.vtf" from the portal2/pak01_dir.vpk and the folder "material/paintblobs" into the folder you just have created.
- Rename it both to "blob_surface_stick" with the proper file ending. Dont forget to change the $basetexture entry in the VMT file to the right filename
- Export the image out of blob_surface_stick.vmf with a tool like VTFEdit, change the pixel color to the color you wish and reimport it into the VTF File. You have to keep the resolution of 4x4 !!
Here you can find another Tutorial for exchanging the Reflection Gel Texture (and there are ready to used Texture files, too): Link