Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LZ fog before first drop and sentryguns to guard agains early FOB rush (they last only ten minits) #6296

Closed
wants to merge 17 commits into from
25 changes: 20 additions & 5 deletions code/game/objects/structures/blocker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,26 @@
attack_hand(M)
return XENO_NONCOMBAT_ACTION

GLOBAL_LIST_INIT(landing_zone_fog, list())
/obj/structure/blocker/landing_zone_fog
name = "dense fog"
desc = "It looks way too dangerous to traverse. Best wait until it has cleared up."
icon = 'icons/effects/effects.dmi'
icon_state = "smoke"
opacity = TRUE

/obj/structure/blocker/landing_zone_fog/Initialize()
GLOB.landing_zone_fog += src
. = ..()

/obj/structure/blocker/landing_zone_fog/proc/Clear()
cuberound marked this conversation as resolved.
Show resolved Hide resolved
GLOB.landing_zone_fog -= src
QDEL_IN(src, rand(3 SECONDS,5 SECONDS))

/obj/structure/blocker/landing_zone_fog/Destroy()
GLOB.landing_zone_fog -= src
. = ..()


/obj/structure/blocker/forcefield
name = "forcefield"
Expand Down Expand Up @@ -100,21 +120,16 @@

if(!visible)
invisibility = 101


/obj/structure/blocker/forcefield/vehicles
types = list(/obj/vehicle/)


/obj/structure/blocker/forcefield/vehicles/handle_vehicle_bump(obj/vehicle/multitile/multitile_vehicle)
if(multitile_vehicle.vehicle_flags & VEHICLE_BYPASS_BLOCKERS)
return TRUE
return FALSE

/obj/structure/blocker/forcefield/multitile_vehicles
types = list(/obj/vehicle/multitile/)


/obj/structure/blocker/forcefield/multitile_vehicles/handle_vehicle_bump(obj/vehicle/multitile/multitile_vehicle)
if(multitile_vehicle.vehicle_flags & VEHICLE_BYPASS_BLOCKERS)
return TRUE
Expand Down
4 changes: 4 additions & 0 deletions code/modules/shuttle/shuttles/dropship.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@
xeno_announcement(SPAN_XENOANNOUNCE("The dropship has landed."), "everything")
xeno_announce = FALSE

for(var/fog in GLOB.landing_zone_fog)
var/obj/structure/blocker/landing_zone_fog/landing_zone_fog = fog
landing_zone_fog.Clear()
cuberound marked this conversation as resolved.
Show resolved Hide resolved

/obj/docking_port/stationary/marine_dropship/on_dock_ignition(obj/docking_port/mobile/departing_shuttle)
. = ..()
turn_on_landing_lights()
Expand Down
Loading