mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
Landmark Shuttles (#8512)
The lifeless live again. Or in this case, what never actually lived here. Ports Baystation12/Baystation12#17460 probably for real this time. What this allows us to do is create shuttles on runtime and make shuttles easier by just making landmarks and a shuttle instead of areas and shuttles. Also allows runtime landmark creation via flares or whatever AND allows shuttles to use different landmarks at will. I removed most of the overmap stuff, I think. It shouldn't be hard to slam it in whenever we need to. Changes: "Shuttle code has been completely reworked." "Shuttles can now be modified to have more than one destination." "Shuttles now have a takeoff sound." "You can now throw mobs against walls to damage them. A lot." "You now need a neckgrab to throw mobs." "BEING UNBUCKLED DURING SHUTTLE LAUNCH IS DANGEROUS! Don't do it." "Adminghosts can now interact with all shuttles."
This commit is contained in:
@@ -73,12 +73,12 @@
|
||||
|
||||
/datum/computer/file/embedded_program/docking/New()
|
||||
..()
|
||||
var/datum/existing = locate(id_tag) //in case a datum already exists with our tag
|
||||
if(existing)
|
||||
existing.tag = null //take it from them
|
||||
|
||||
tag = id_tag //Greatly simplifies shuttle initialization
|
||||
if(id_tag)
|
||||
SSshuttle.docking_registry[id_tag] = src
|
||||
|
||||
/datum/computer/file/embedded_program/docking/Destroy()
|
||||
SSshuttle.docking_registry -= id_tag
|
||||
return ..()
|
||||
|
||||
/datum/computer/file/embedded_program/docking/receive_signal(datum/signal/signal, receive_method, receive_param)
|
||||
var/receive_tag = signal.data["tag"] //for docking signals, this is the sender id
|
||||
|
||||
Reference in New Issue
Block a user