mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: C.L. <killer65311@gmail.com>
23 lines
696 B
Plaintext
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()
|