-
-
Notifications
You must be signed in to change notification settings - Fork 452
/
overlays.dm
94 lines (81 loc) · 2.29 KB
/
overlays.dm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/obj/effect/overlay
name = "overlay"
/obj/effect/overlay/singularity_act()
return
/obj/effect/overlay/singularity_pull()
return
/obj/effect/overlay/beam//Not actually a projectile, just an effect.
name="beam"
icon='icons/effects/beam.dmi'
icon_state="b_beam"
var/atom/BeamSource
/obj/effect/overlay/beam/Initialize(mapload)
. = ..()
QDEL_IN(src, 10)
/obj/effect/overlay/palmtree_r
name = "palm tree"
icon = 'icons/misc/beach2.dmi'
icon_state = "palm1"
density = TRUE
layer = WALL_OBJ_LAYER
anchored = TRUE
/obj/effect/overlay/palmtree_l
name = "palm tree"
icon = 'icons/misc/beach2.dmi'
icon_state = "palm2"
density = TRUE
layer = WALL_OBJ_LAYER
anchored = TRUE
/obj/effect/overlay/coconut
gender = PLURAL
name = "coconuts"
icon = 'icons/misc/beach.dmi'
icon_state = "coconuts"
/obj/effect/overlay/sparkles
gender = PLURAL
name = "sparkles"
desc = "Flashing lights, lights."
icon = 'icons/effects/effects.dmi'
icon_state = "shieldsparkles"
anchored = TRUE
/obj/effect/overlay/vis
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
anchored = TRUE
vis_flags = VIS_INHERIT_DIR | VIS_INHERIT_ID
///When detected to be unused it gets set to world.time, after a while it gets removed
var/unused = 0
///overlays which go unused for this amount of time get cleaned up
var/cache_expiration = 2 MINUTES
/obj/effect/overlay/airlock_part
anchored = TRUE
plane = FLOAT_PLANE
layer = FLOAT_LAYER - 1
vis_flags = VIS_INHERIT_ID
var/side_id
var/open_px = 0
var/open_py = 0
var/move_start_time = 0 // for opening; closing uses reversed.
var/move_end_time = 5
var/aperture_angle = 0
var/obj/machinery/door/airlock/parent
// in case some caveman is still using 512
/obj/effect/overlay/airlock_part/Click()
parent.Click(arglist(args))
/obj/effect/overlay/closet_door
anchored = TRUE
plane = FLOAT_PLANE
layer = FLOAT_LAYER
vis_flags = VIS_INHERIT_ID
appearance_flags = KEEP_TOGETHER | LONG_GLIDE | PIXEL_SCALE
/obj/effect/overlay/light_visible
name = ""
icon = 'icons/effects/light_overlays/light_32.dmi'
icon_state = "light"
plane = O_LIGHTING_VISUAL_PLANE
appearance_flags = RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
alpha = 0
vis_flags = NONE
/obj/effect/overlay/light_visible/cone
icon = 'icons/effects/light_overlays/light_cone.dmi'
alpha = 110