Files
Yogstation/code/datums/wires/mass_driver.dm
AMyriad 61e78aea65 [PORT] Gives mass driver a new sprite, sound, lets you build it and LAUNCH SHIT AT EVEN HIGHER VELOCITIES (#21349)
* 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
2024-02-11 17:11:57 +00:00

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."))