Files
VOREStation/code/modules/power/singularity/emitter_vr.dm
T
Cameron Lennox 453080616b SM, Tesla, and general engineering adjustments [MDB IGNORE] [IDB IGNORE] (#19339)
* Update supermatter.dm

* fix

* clamps these

* gwah

* Stops tesla from zapping unwrenched coils

* tesla upgrade

* unglobals this

* fix these

* Update coil.dm

* Update coil.dm

* Descriptions

* Update coil.dm

* Update coil.dm

* Update coil.dm

* Update coil.dm

* Update coil.dm

* ranges

* UGH

* Update vorestation.dme

* meth

* monster math

* Update coil.dm

* Update coil.dm

* Update coil.dm

* THEY DID THE MATH

* the monster math

* egwah

* desc

* Update coil.dm

* Returns

* Update coil.dm

* Lowers amount gained

* this

* im dumb

* tesy

* Update coil.dm

* Update coil.dm

* fixes initial density on blast doors

* dot

* fixes these

* Mapper Tools

* icon

* these

* Fixes the sound following people

* recursive geigers

* Make this a proc

* Update supermatter.dm

* less ear destroying

* these

* makes canisters not get softlocked

* Hotkeys

* proper return

* Makes shield gen useful. Gets rid of a harddel

Adds hydromagnetic trap

* math

* Makes buttons more clear.

* lol

* Fixes ancient runtime

* Adds craftable mass driver buttons

* button

* fixes this

* Makes misclicks not destroy solar panels

* Update solar.dm

* fix this

* make them both numbers

* upports reflectors

* Update reflector.dm

* Update reflectors.dm

* solar panel and climbable

* Gets rid of 'as X'

* Adds account console

* Update vorestation.dme

* Craftable message server

* Update message_server.dm

* These

* con struct

* Update smartfridge.dm

* whoop

* edits
2026-03-26 22:20:06 -04:00

47 lines
1.3 KiB
Plaintext

/obj/machinery/power/emitter
icon = 'icons/obj/singularity_vr.dmi' // New emitter sprite
icon_state = "emitter0"
var/previous_state = 0
/obj/machinery/power/emitter/Initialize(mapload)
. = ..()
previous_state = state
/obj/machinery/power/emitter/update_icon()
cut_overlays()
icon_state = "emitter[state]"
if (state != previous_state)
flick("emitterflick-[previous_state][state]",src)
previous_state = state
if(powered && powernet && avail(active_power_usage) && active)
var/image/emitterbeam = image(icon,"emitter-beam")
emitterbeam.plane = PLANE_LIGHTING_ABOVE
add_overlay(emitterbeam)
if(locked)
var/image/emitterlock = image(icon,"emitter-lock")
emitterlock.plane = PLANE_LIGHTING_ABOVE
add_overlay(emitterlock)
// The old emitter sprite
/obj/machinery/power/emitter/antique
name = "antique emitter"
desc = "An old fashioned heavy duty industrial laser."
icon_state = "emitter"
/obj/machinery/power/emitter/antique/update_icon()
if(powered && powernet && avail(active_power_usage) && active)
icon_state = "emitter_+a"
else
icon_state = "emitter"
/obj/machinery/power/emitter/antique/pre_mapped
anchored = TRUE
state = 2
/obj/machinery/power/emitter/antique/pre_mapped/Initialize(mapload)
. = ..()
connect_to_network()
update_icon()