mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
* 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.
24 lines
642 B
Plaintext
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
|