Dropper (Portal 2)

From Valve Developer Community
Revision as of 10:55, 15 May 2011 by Jzbradley (talk | contribs)
Jump to: navigation, search
Русский
Dropboxicon.png

A dropper is a puzzle element in Portal 2. Things like gel and cubes fall out of it. It can be hooked up to a button.

Creating Droppers

1. Create a func_instance entity with the following properties:

Property Name Value
Fix up Name box_dropper
VMF Filename instances/gameplay/cube_dropper_normal.vmf

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 cube dropper. For example, 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 box_dropper instance:@cube_dropper;Trigger 0.00 No
Io11.png OnTrigger box_dropper instance:@cube_dropper_autorespawn;Enable 0.00 No

3. Hammer may indicate that these are invalid. Ignore it.

There are different instances for each cube type, and several different designs. Just substitute the kind you need for the VMF Filename parameter above.

Item, parameters Dropper style
VMF Filename
prop_weighted_cube, Standard Small, modern
instances/gameplay/cube_dropper_dropontrigger_normal.vmf
prop_weighted_cube, Standard Small, modern
instances/gameplay/cube_dropper_multiple_normal.vmf
prop_weighted_cube, Standard Long, exposed tube
instances/gameplay/cube_dropper_large.vmf
prop_weighted_cube, Standard Long exposed tube, dirty
instances/gameplay/cube_dropper_large_dirty.vmf
prop_weighted_cube, Reflector Small, modern
instances/gameplay/reflectocube_dropper_dropontrigger_normal.vmf
prop_weighted_cube, Reflector Small, modern
instances/gameplay/reflectocube_dropper_multiple_normal.vmf
prop_weighted_cube, Reflector Long, exposed tube
instances/gameplay/reflectocube_dropper_large.vmf
prop_weighted_cube, Reflector Long exposed tube, dirty
instances/gameplay/reflectocube_dropper_large_dirty.vmf
prop_weighted_cube, Sphere Small, modern
instances/gameplay/sphere_dropper_dropontrigger_normal.vmf
prop_weighted_cube, Sphere Small, modern
instances/gameplay/sphere_dropper_multiple_normal.vmf
prop_weighted_cube, Sphere Long, exposed tube
instances/gameplay/sphere_dropper_large.vmf
prop_weighted_cube, Sphere Long exposed tube, dirty
instances/gameplay/sphere_dropper_large_dirty.vmf
prop_weighted_cube, $item_type, $cube_type, $rusted, $paint_power, $use_new_skin_method Small, modern
instances/gameplay/item_dropper.vmf
Gel, Water Small, modern
instances/gameplay/paint_dropper_erase.vmf
Gel, Bounce Small, modern
instances/gameplay/paint_dropper_bounce.vmf
Gel, Speed Small, modern
instances/gameplay/paint_dropper_speed.vmf
Gel, $paint_type Small, modern
instances/gameplay/paint_dropper.vmf
prop_monster_box, walking Normal with music
instances/gameplay/cube_dropper_a4.vmf
prop_monster_box, hiding Normal with music
instances/gameplay/cube_dropper_a4_box.vmf
prop_monster_box, walking Normal with no tube
instances/gameplay/cube_dropper_monster.vmf
prop_monster_box, hiding Normal with no tube
instances/gameplay/cube_dropper_monster_box.vmf
Only what you put in Big box with opening
instances/gameplay/cube_dropper_pendleton.vmf
prop_weighted_cube, $paint_type, Wet Small, modern
instances/gameplay/paint_bomb_dropper_modern.vmf
prop_weighted_cube, Bounce, Dry Small, bare tube
instances/gameplay/paint_bomb_dropper_bounce.vmf
prop_weighted_cube, Speed, Dry Small, bare tube
instances/gameplay/paint_bomb_dropper_speed.vmf
prop_paint_bomb, $paint_type, $bomb_type Portal 1 Style
instances/gameplay/paint_bomb_dropper.vmf
prop_paint_bomb, $paint_type, $bomb_type Dirty
instances/gameplay/paint_bomb_dropper_auto.vmf
People, alive Big box with opening
instances/gameplay/cube_dropper_player.vmf