Any Cube Dropper

Avatar
Zephlon
19 Posts
Posted Jul 24, 2011
I want to have a cube dropper that will drop a cube of the user's choice (not a monster box). One button to change between the cube types showing the selected one in a glass box. And another button to drop the cube.

Basically, I want something like Portal 2 Playground's cube spawner in my level.

Advertisement
Registered users don’t see ads! Register now!
Avatar
iWork925
1,080 Posts
Posted Jul 24, 2011
Replied 1 hour later
maybe decompile and see how he did it.
Avatar
Zephlon
19 Posts
Posted Jul 24, 2011
Replied 3 minutes later
I tried that but I couldn't understand it.
Avatar
Skotty
671 Posts
Posted Jul 25, 2011
Replied 5 hours later
I will create a modified instance for you.

Edit:
I uploaded it after 3 hours of work, see attachments.
You must set the same prefixname of a dropper and its previewbox with the buttons.

Attachments
dropper_cube_type_chooseable_with_previews.7z
0.01 MB 23 downloads
Avatar
Zephlon
19 Posts
Posted Jul 25, 2011
Replied 9 hours later
I tried using your instances, but can't get them to work.

I discovered that if I make a cube and give it an input "Skin" with a parameter override of 1, it will change into the companion cube.

Avatar
Vordwann
767 Posts
Posted Jul 25, 2011
Replied 48 minutes later
That'll only work with a reflectocube if you enable using new skins.
Avatar
Skotty
671 Posts
Posted Jul 25, 2011
Replied 46 minutes later
Just put both instances (the dropper and the preview with the buttons) in your map with func_instance and set both fixup names the same! Nothing else to do.
Avatar
Zephlon
19 Posts
Posted Jul 25, 2011
Replied 47 minutes later
One more thing, I don't want it to fizzle a cube that has been dropped. (In other words, I want to be able to drop multiple cubes.) How can I change that?
Advertisement
Registered users don’t see ads! Register now!
Avatar
Skotty
671 Posts
Posted Jul 25, 2011
Replied 4 hours later
You can change it by changing the instance.
Open the dropper instance and remove the output "OnEndTouchAll !activator AddOutput OnUser1 !self:Dissolve" from the trigger_multiple named "Trigger" (it's the big one!). Now save the file and recompile your map. It should work.