Files
CHOMPStation2/code/game/machinery/buttons.dm
Leshana 6e56fc99c6 Port Eris icons and sounds for lightswitches and sounds for buttons
* New icons for light switches, based on Eris light switch icons, except these ones go up/down for on/off!  And have glowing button overlays.
* Added sounds to clicking buttons!
* Brought over a few more icons for objects that will likely be useful for parts lathe.
2017-04-18 23:20:58 -04:00

24 lines
642 B
Plaintext

/obj/machinery/button
name = "button"
icon = 'icons/obj/objects.dmi'
icon_state = "launcherbtt"
desc = "A remote control switch for something."
var/id = null
var/active = 0
anchored = 1.0
use_power = 1
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(loc, 'sound/machines/button.ogg', 100, 1)
// VOREStation Edit End