Adds some event/mapping props. (#40016)

This commit is contained in:
AnturK
2018-08-31 13:19:04 +02:00
committed by yogstation13-bot
parent bdd226e209
commit dff4a0096e
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/obj/effect/oneway
name = "one way effect"
desc = "Only lets things in from it's dir."
icon = 'icons/effects/mapping_helpers.dmi'
icon_state = "field_dir"
invisibility = INVISIBILITY_MAXIMUM
anchored = TRUE
/obj/effect/oneway/CanPass(atom/movable/mover, turf/target)
var/turf/T = get_turf(src)
var/turf/MT = get_turf(mover)
return ..() && (T == MT || get_dir(MT,T) == dir)
/obj/effect/wind
name = "wind effect"
desc = "Creates pressure effect in it's direction. Use sparingly."
icon = 'icons/effects/mapping_helpers.dmi'
icon_state = "field_dir"
invisibility = INVISIBILITY_MAXIMUM
var/strength = 30
/obj/effect/wind/Initialize()
. = ..()
START_PROCESSING(SSobj,src)
/obj/effect/wind/process()
var/turf/open/T = get_turf(src)
if(istype(T))
T.consider_pressure_difference(get_step(T,dir),strength)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@@ -1346,6 +1346,7 @@
#include "code\modules\atmospherics\machinery\portable\portable_atmospherics.dm"
#include "code\modules\atmospherics\machinery\portable\pump.dm"
#include "code\modules\atmospherics\machinery\portable\scrubber.dm"
#include "code\modules\awaymissions\away_props.dm"
#include "code\modules\awaymissions\bluespaceartillery.dm"
#include "code\modules\awaymissions\capture_the_flag.dm"
#include "code\modules\awaymissions\corpse.dm"