mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Adds some event/mapping props. (#40016)
This commit is contained in:
30
code/modules/awaymissions/away_props.dm
Normal file
30
code/modules/awaymissions/away_props.dm
Normal 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 |
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user