Gel (Portal 2): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Added two notes on how to make gel work in your maps, hope it helps someone!)
Line 35: Line 35:


3. Hammer may indicate that this is invalid. Ignore it.
3. Hammer may indicate that this is invalid. Ignore it.
===Notes===
1. For paint to function in your map you need to turn on the flag "Paint in map" in the map properties.
2. For paint to stick to walls you NEED to run RAD on Fast or Normal, otherwise it will only coat certain entities like turrets and cubes.


===See Also===
===See Also===

Revision as of 09:53, 16 May 2011

Template:Otherlang2

The Repulsion gel effect.

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. 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 types of gel, and water. 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

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
$trigger_to_start start_gel
$trigger_to_stop stop_gel
$paint_type 0 = Bounce, 1 = Stick, 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:

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnTrigger gel_dropper instance:@start_gel;Trigger 0.00 No

3. Hammer may indicate that this is invalid. Ignore it.

Notes

1. For paint to function in your map you need to turn on the flag "Paint in map" in the map properties.

2. For paint to stick to walls you NEED to run RAD on Fast or Normal, otherwise it will only coat certain entities like turrets and cubes.

See Also

List of Dropper Instances