mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
- Ports the overmap, ships, sectors, and "landable" ships from baystation. - Ports necessary computers to control ships and overmap shuttles. - Shims missing machine and computer functionality pending future enhancements. - Includes required new sprites and sounds.
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
/obj/effect/overmap
|
|
name = "map object"
|
|
icon = 'icons/obj/overmap.dmi'
|
|
icon_state = "object"
|
|
|
|
var/known = 1 //shows up on nav computers automatically
|
|
var/scannable //if set to TRUE will show up on ship sensors for detailed scans
|
|
|
|
//Overlay of how this object should look on other skyboxes
|
|
/obj/effect/overmap/proc/get_skybox_representation()
|
|
return
|
|
|
|
/obj/effect/overmap/proc/get_scan_data(mob/user)
|
|
return desc
|
|
|
|
/obj/effect/overmap/Initialize()
|
|
. = ..()
|
|
if(!global.using_map.use_overmap)
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
if(known)
|
|
//layer = ABOVE_LIGHTING_LAYER
|
|
plane = PLANE_LIGHTING_ABOVE
|
|
for(var/obj/machinery/computer/ship/helm/H in global.machines)
|
|
H.get_known_sectors()
|
|
|
|
/obj/effect/overmap/Crossed(var/obj/effect/overmap/visitable/other)
|
|
if(istype(other))
|
|
for(var/obj/effect/overmap/visitable/O in loc)
|
|
SSskybox.rebuild_skyboxes(O.map_z)
|
|
|
|
/obj/effect/overmap/Uncrossed(var/obj/effect/overmap/visitable/other)
|
|
if(istype(other))
|
|
SSskybox.rebuild_skyboxes(other.map_z)
|
|
for(var/obj/effect/overmap/visitable/O in loc)
|
|
SSskybox.rebuild_skyboxes(O.map_z)
|