Please or Register to create posts and topics.

How do I make a plug?

In "manic mechanic" theres a part with plugs and wires, the plugs snap to an area, and they can be taken out, how do I make this???

Portal 1.5 http://www.moddb.com/mods/portal-15

There are all kinds of tutorials about it. The concept comes from HL2, so just look for general HL2 tutorials.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

But in hl2 you can't take them back out, that's why I used "Manic Mechanic" as an example. So how do I make them so they can be taken out also?

[edit]
I found a tutorial covering removal also
http://www.twhl.co.za/tutorial.php?id=160

Portal 1.5 http://www.moddb.com/mods/portal-15

Yeah making them not be able to removed isn't anything special. It's just different entity work. For example, the plugs in Kleiner's lab you can't remove.

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Man, plugs. Plugs man. Plugs. Fuck them to hell.

Valve made that system ridiculously complicated and expensive. Even more so when a plug can be pulled out, and reinserted from any end of the plug itself.

I've found that an easier way to deal with plugs is saying "fuck it, make a plug-in bro aka new entity" Sadly as you cannot do this in Portal the next best thing would be to use "OnUser" inputs and outputs to get the plugs jacked-in status incase you do want them to come out. However I haver never thought about what happens if a plug has both ends going through a portal, which allows it to essentially cover mass distances from one socket to another.

This could pose a serious problem. If you close the portal allowing the plug to go between socket to socket some crazy shit will likely ensue. You will have to take EXTRA caution with this one.

Currently working on Darksiders 3.

Don't worry, I'm not actually making a "plug", but I'm using the exact same method that would be used when making a plug, minus the wire, generator, sounds, and the plug model itself, but seeing as it uses the exact same physics as what I'm trying to make, I decided to just make a plug, and delete the unnecessary aspects.

Portal 1.5 http://www.moddb.com/mods/portal-15

MrTwo - I'm curious how plugs are expensive? The I/O isn't that heavy, it just detects when the plug model is in the area, teleports it to it's plugged-in destination, and disables pickup. Sparks, flickering lights, and so on are all outside of the actual plug mechanics. So I'm curious where you found they were expensive on the engine?

[Important Threads] Forum Rules | Welcome to the new Thinking With Portals
Please do not Private Message me for assistance. Post a thread if you have questions or concerns.
If you need to contact the staff privately, contact the Global Moderators via Discord.

Yeah, making a plug is easy. For removable plugs, do what msleeper said but keep pickup enabled and just disable motion and disable the teleport trigger after it's fired. Make sure "Enable motion on pickup" is checked for the plug, and have the insertion trigger re-enable a second or so after you remove the plug.

I will do anything if it involves eating cake... Unless it's illegal... There's no cake in jail.

Sorry for not answering, I've been so busy editing (and also that "real life" thing that happens sometimes) that I've been away from TWP for a while.

Msleeper's and Sandvich's explanations are very close to how I made it. If there's still something you can't figure out, have a look at the source vmf for Manic Mechanic. (It comes with the download.)

Sendificate series: Sendificate | A Beam Too Far | Airtime | 302
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic