Files
CHOMPStation2/code/game/machinery/buttons_vr.dm
CHOMPStation2StaffMirrorBot d82d0807a5 [MIRROR] Polaris Hook Removal Part 1 (#11887)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: C.L. <killer65311@gmail.com>
2025-10-30 21:40:35 +01:00

23 lines
696 B
Plaintext

/obj/machinery/button/attack_hand(obj/item/W, mob/user as mob)
if(..()) return 1
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_BUTTON_PRESSED, src, user)
playsound(src, 'sound/machines/button.ogg', 100, 1)
/obj/machinery/button/windowtint/multitint
name = "tint control"
desc = "A remote control switch for polarized windows and doors."
/obj/machinery/button/windowtint/multitint/toggle_tint()
use_power(5)
active = !active
update_icon()
var/in_range = range(src,range)
for(var/obj/structure/window/reinforced/polarized/W in in_range)
if(W.id == src.id || !W.id)
W.toggle()
for(var/obj/machinery/door/D in in_range)
if(D.icon_tinted)
if(D.id_tint == src.id || !D.id_tint)
D.toggle()