/
misc.dm
171 lines (137 loc) · 3.74 KB
/
misc.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/obj/stop
var/victim = null
icon_state = "empty"
name = "Geas"
desc = "You can't resist."
//Paints the wall it spawns on, then dies
/obj/paint
name = "coat of paint"
icon = 'icons/effects/effects.dmi'
icon_state = "wall_paint_effect"
layer = TURF_DETAIL_LAYER
blend_mode = BLEND_MULTIPLY
/obj/paint/Initialize()
. = ..()
return INITIALIZE_HINT_LATELOAD
/obj/paint/LateInitialize(mapload)
var/turf/simulated/wall/W = get_turf(src)
if(istype(W))
W.paint_color = color
W.update_icon()
var/obj/structure/wall_frame/WF = locate() in loc
if(WF)
WF.paint_color = color
WF.update_icon()
qdel(src)
/obj/paint/pink
color = COLOR_PINK
/obj/paint/sun
color = COLOR_SUN
/obj/paint/red
color = COLOR_RED
/obj/paint/silver
color = COLOR_SILVER
/obj/paint/black
color = COLOR_DARK_GRAY
/obj/paint/green
color = COLOR_GREEN_GRAY
/obj/paint/blue
color = COLOR_NAVY_BLUE
/obj/paint/ocean
color = COLOR_OCEAN
/obj/paint/palegreengray
color = COLOR_PALE_GREEN_GRAY
/obj/paint/brown
color = COLOR_DARK_BROWN
//Stripes the wall it spawns on, then dies
/obj/paint_stripe
name = "stripe of paint"
icon = 'icons/effects/effects.dmi'
icon_state = "white"
layer = TURF_DETAIL_LAYER
blend_mode = BLEND_MULTIPLY
/obj/paint_stripe/Initialize()
. = ..()
return INITIALIZE_HINT_LATELOAD
/obj/paint_stripe/LateInitialize(mapload)
var/turf/simulated/wall/W = get_turf(src)
if(istype(W))
W.stripe_color = color
W.update_icon()
var/obj/structure/wall_frame/WF = locate() in loc
if(WF)
WF.stripe_color = color
WF.update_icon()
qdel(src)
/obj/paint_stripe/green
color = COLOR_GREEN_GRAY
/obj/paint_stripe/red
color = COLOR_RED_GRAY
/obj/paint_stripe/paleblue
color = COLOR_PALE_BLUE_GRAY
/obj/paint_stripe/yellow
color = COLOR_BROWN
/obj/paint_stripe/blue
color = COLOR_BLUE_GRAY
/obj/paint_stripe/brown
color = COLOR_DARK_BROWN
/obj/paint_stripe/mauve
color = COLOR_PALE_PURPLE_GRAY
/obj/paint_stripe/white
color = COLOR_SILVER
/obj/paint_stripe/gunmetal
color = COLOR_GUNMETAL
/obj/gas_setup //cryogenic
icon = 'icons/mob/screen1.dmi'
icon_state = "x3"
var/tempurature = 70
var/pressure = 20* ONE_ATMOSPHERE
/obj/gas_setup/Initialize()
SHOULD_CALL_PARENT(FALSE)
atom_flags |= ATOM_FLAG_INITIALIZED
var/obj/machinery/atmospherics/pipe/P = locate() in loc
if(P && !P.air_temporary)
P.air_temporary = new(P.volume, tempurature)
var/datum/gas_mixture/G = P.air_temporary
G.adjust_gas(GAS_OXYGEN,((pressure*P.volume)/(R_IDEAL_GAS_EQUATION*temperature)))
return INITIALIZE_HINT_QDEL
/obj/heat
icon = 'icons/effects/fire.dmi'
icon_state = "3"
appearance_flags = PIXEL_SCALE | NO_CLIENT_COLOR
render_target = HEAT_EFFECT_TARGET
mouse_opacity = MOUSE_OPACITY_UNCLICKABLE
/// Example of a warp filter
/obj/effect/warp
plane = WARP_EFFECT_PLANE
appearance_flags = PIXEL_SCALE | NO_CLIENT_COLOR
icon = 'icons/effects/352x352.dmi'
icon_state = "singularity_s11"
pixel_x = -176
pixel_y = -176
z_flags = ZMM_IGNORE
/obj/effect/cold_mist
icon = 'icons/effects/tile_effects.dmi'
icon_state = "frontfog"
layer = FIRE_LAYER
alpha = 170
/obj/effect/cold_mist/Initialize()
. = ..()
AddOverlays(image(icon = 'icons/effects/tile_effects.dmi', icon_state = "backfog", layer = BELOW_OBJ_LAYER))
//Handling it as an overlay is not layering properly with render targets
/obj/effect/cold_mist_gas_back
icon = 'icons/effects/tile_effects.dmi'
icon_state = "backfog"
layer = BELOW_OBJ_LAYER
render_target = COLD_EFFECT_BACK_TARGET
/obj/effect/cold_mist_gas
icon = 'icons/effects/tile_effects.dmi'
icon_state = "frontfog"
render_target = COLD_EFFECT_TARGET
layer = FIRE_LAYER
appearance_flags = DEFAULT_APPEARANCE_FLAGS | KEEP_TOGETHER
var/obj/effect/cold_mist_gas_back/b = null
/obj/effect/cold_mist_gas/Initialize()
. = ..()
b = new()
vis_contents += b