mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
http://nanotrasen.com/phpBB3/viewtopic.php?f=10&t=4548&start=50#p37266 Added a power switch (/obj/structure/powerswitch), which is used to split or connect two cables. The way it works is simple. It connects the powernets by adding cable on the floor it's on and removing it when it's turned off. In-file description: //This is a power switch. When turned on it looks at the cables around the tile that it's on and notes which cables are trying to connect to it. //After it knows this it creates the number of cables from the center to each of the cables attempting to conenct. These cables cannot be removed //with wirecutters. When the switch is turned off it removes all the cables on the tile it's on. //The switch uses a 5s delay to prevent powernet change spamming. Screenshot: http://www.kamletos.si/power%20switch.PNG git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3072 316c924e-a436-60f5-8080-3fe189b3f50e