mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-04 14:42:56 +00:00
Allows mass driver buttons to send logic signals - They send LOGIC_FLICKER, since they are only on when pressed, then turn off when released - Can send logic signals to a different ID tag than their associated driver/door ID tag, configurable from the multitool menu Allows light switches to send logic signals - Will send LOGIC_ON or LOGIC_OFF signals to match their current state - Send both when toggled and on the process() cycle - Light control can be toggled via the multitool menu, so you can use them as purely light switches, purely logic switches, or as dual switches Allows light switches to be made from metal sheets, just like mass driver buttons (1 sheet per button) - Fixes a resource duplication bug where driver buttons can be disassembled for more metal than it takes to build them Begins to move some code for various button types into the buttons.dm file, rather than being scattered across multiple files - Driver buttons code moved from door_control.dm - Ignition switch code moved from igniter.dm Renames driver_button.dm to buttons_switches.dm - This is the file that contained the mountable frames for driver buttons, and now also contains the frame for light switches.
23 lines
803 B
Plaintext
23 lines
803 B
Plaintext
/obj/item/mounted/frame/driver_button
|
|
name = "mass driver button frame"
|
|
desc = "Used for repairing or building mass driver buttons"
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "launcherbtt_frame"
|
|
mount_reqs = list("simfloor")
|
|
sheets_refunded = 1
|
|
|
|
/obj/item/mounted/frame/driver_button/do_build(turf/on_wall, mob/user)
|
|
new /obj/machinery/driver_button(get_turf(user), get_dir(user, on_wall))
|
|
qdel(src)
|
|
|
|
/obj/item/mounted/frame/light_switch
|
|
name = "light switch frame"
|
|
desc = "Used for repairing or building light switches"
|
|
icon = 'icons/obj/power.dmi'
|
|
icon_state = "light-p"
|
|
mount_reqs = list("simfloor", "nospace")
|
|
sheets_refunded = 1
|
|
|
|
/obj/item/mounted/frame/light_switch/do_build(turf/on_wall, mob/user)
|
|
new /obj/machinery/light_switch(get_turf(user), get_dir(user, on_wall))
|
|
qdel(src) |