mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 02:32:20 +00:00
This commit overhauls mass drivers. Every component of mass drivers are now buildable. This means: - Mass Drivers - Mass Driver Control Computers - Mass Driver Buttons Mass driver control computers now support multiple mass drivers. You can link mass-drivers to buttons via multitool. Buttons have a range of 7 for their mass driver link. Computers have infinite range.
60 lines
1.4 KiB
Plaintext
60 lines
1.4 KiB
Plaintext
/obj/machinery/driver_button
|
|
name = "mass driver button"
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "launcherbtt"
|
|
desc = "A remote control switch for a mass driver."
|
|
var/id_tag = "default"
|
|
var/active = 0
|
|
settagwhitelist = list("id_tag")
|
|
anchored = 1.0
|
|
use_power = 1
|
|
idle_power_usage = 2
|
|
active_power_usage = 4
|
|
|
|
/obj/machinery/driver_button/New(turf/loc, var/w_dir=null)
|
|
..()
|
|
switch(w_dir)
|
|
if(NORTH)
|
|
pixel_y = 25
|
|
if(SOUTH)
|
|
pixel_y = -25
|
|
if(EAST)
|
|
pixel_x = 25
|
|
if(WEST)
|
|
pixel_x = -25
|
|
|
|
/obj/machinery/ignition_switch
|
|
name = "ignition switch"
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "launcherbtt"
|
|
desc = "A remote control switch for a mounted igniter."
|
|
var/id = null
|
|
var/active = 0
|
|
anchored = 1.0
|
|
use_power = 1
|
|
idle_power_usage = 2
|
|
active_power_usage = 4
|
|
|
|
/obj/machinery/flasher_button
|
|
name = "flasher button"
|
|
desc = "A remote control switch for a mounted flasher."
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "launcherbtt"
|
|
var/id = null
|
|
var/active = 0
|
|
anchored = 1.0
|
|
use_power = 1
|
|
idle_power_usage = 2
|
|
active_power_usage = 4
|
|
|
|
/obj/machinery/crema_switch
|
|
desc = "Burn baby burn!"
|
|
name = "crematorium igniter"
|
|
icon = 'icons/obj/power.dmi'
|
|
icon_state = "crema_switch"
|
|
anchored = 1.0
|
|
req_access = list(access_crematorium)
|
|
var/on = 0
|
|
var/area/area = null
|
|
var/otherarea = null
|
|
var/id = 1 |