Files
Bubberstation/code/modules/awaymissions/cordon.dm
SkyratBot b365a52a96 [MIRROR] secret gateway update [MDB IGNORE] (#8747)
* secret gateway update (#62003)

admins are now notified about a secret gateway load failing, also logs this
secret z levels are protected from incorporeal movement
fixes unpowered ruin areas being powered
adds a bunch of new areas for secret gateways, since var edited areas probably arent a good idea its good to have a few presets
adds cordon turfs and areas, ingame they just look like the z level border, they are completely indestructible, you cant pass them, and if you somehow do, the cordon area kills you (idea from goon but the code and sprites are mine)
adds a z level injector mapping trait, injects a z level trait into the z level its placed on, if you want to add something like ash storms or whatever to your map
adds an anti xray z level trait, you can optionally add this with the z level injector to protect your map against any xray or whatever

* secret gateway update

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
2021-10-11 16:16:36 +01:00

57 lines
1.4 KiB
Plaintext

/turf/cordon
name = "cordon"
icon = 'icons/turf/walls.dmi'
icon_state = "cordon"
invisibility = INVISIBILITY_ABSTRACT
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
explosion_block = INFINITY
rad_insulation = RAD_FULL_INSULATION
opacity = TRUE
density = TRUE
blocks_air = TRUE
always_lit = TRUE
bullet_bounce_sound = null
/turf/cordon/AfterChange()
. = ..()
SSair.high_pressure_delta -= src
/turf/cordon/attack_ghost(mob/dead/observer/user)
return FALSE
/turf/cordon/rust_heretic_act()
return FALSE
/turf/cordon/acid_act(acidpwr, acid_volume, acid_id)
return FALSE
/turf/cordon/Melt()
to_be_destroyed = FALSE
return src
/turf/cordon/singularity_act()
return FALSE
/turf/cordon/ScrapeAway(amount, flags)
return src // :devilcat:
/turf/cordon/bullet_act(obj/projectile/hitting_projectile, def_zone, piercing_hit)
return BULLET_ACT_HIT
/turf/cordon/Adjacent(atom/neighbor, atom/target, atom/movable/mover)
return FALSE
/area/cordon
name = "CORDON"
icon_state = "cordon"
static_lighting = FALSE
base_lighting_alpha = 255
area_flags = UNIQUE_AREA|NOTELEPORT|HIDDEN_AREA|NO_ALERTS
requires_power = FALSE
/area/cordon/Entered(atom/movable/arrived, area/old_area)
. = ..()
for(var/mob/living/enterer as anything in arrived.get_all_contents_type(/mob/living))
to_chat(enterer, span_userdanger("This was a bad idea..."))
enterer.dust(TRUE, FALSE, TRUE)