mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
26 lines
748 B
Plaintext
26 lines
748 B
Plaintext
/obj/machinery/button
|
|
name = "button"
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "launcherbtt"
|
|
// plane = TURF_PLANE //Can't have them under tables, oh well.
|
|
// layer = ABOVE_TURF_LAYER
|
|
desc = "A remote control switch for something."
|
|
var/id = null
|
|
var/active = 0
|
|
anchored = 1.0
|
|
use_power = USE_POWER_IDLE
|
|
idle_power_usage = 2
|
|
active_power_usage = 4
|
|
|
|
/obj/machinery/button/attack_ai(mob/user as mob)
|
|
return attack_hand(user)
|
|
|
|
/obj/machinery/button/attackby(obj/item/weapon/W, mob/user as mob)
|
|
return attack_hand(user)
|
|
|
|
// VOREStation Edit Begin
|
|
/obj/machinery/button/attack_hand(obj/item/weapon/W, mob/user as mob)
|
|
if(..()) return 1
|
|
playsound(src, 'sound/machines/button.ogg', 100, 1)
|
|
// VOREStation Edit End
|