mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* surely adding this will be a good idea * OKAY WE'RE IN BUSINESS * REAL * now in glorious SOUND ripped directly from my HL1 game files * Misc cleanup * louda * moved tech node oughta have more stuff in adv, and would cut down on a pretty powerful machine being built too early I'd imagine
26 lines
873 B
Plaintext
26 lines
873 B
Plaintext
/datum/wires/mass_driver
|
|
holder_type = /obj/machinery/mass_driver
|
|
proper_name = "Mass Driver"
|
|
|
|
/datum/wires/mass_driver/New(atom/holder)
|
|
wires = list(WIRE_LAUNCH, WIRE_SAFETY)
|
|
..()
|
|
|
|
/datum/wires/mass_driver/on_pulse(wire)
|
|
var/obj/machinery/mass_driver/the_mass_driver = holder
|
|
switch(wire)
|
|
if(WIRE_LAUNCH)
|
|
the_mass_driver.drive()
|
|
holder.visible_message(span_notice("The drive mechanism activates."))
|
|
if(WIRE_SAFETY)
|
|
the_mass_driver.power = 3
|
|
holder.visible_message(span_notice("You hear a worrying whirring noise emitting from the mass driver."))
|
|
|
|
/datum/wires/mass_driver/on_cut(wire, mend, source)
|
|
var/obj/machinery/mass_driver/the_mass_driver = holder
|
|
switch(wire)
|
|
if(WIRE_SAFETY)
|
|
if(the_mass_driver.power > 1)
|
|
the_mass_driver.power = 1
|
|
holder.visible_message(span_notice("The whirring noise emitting from the mass driver stops."))
|