Skip to content

Commit

Permalink
[MIRROR] Makes no client colour consistently work with planemasters
Browse files Browse the repository at this point in the history
  • Loading branch information
CrimsonShrike authored and SuhEugene committed Oct 15, 2023
1 parent 26fc12b commit 4261cbd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions code/__defines/__renderer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@

#define DEFAULT_APPEARANCE_FLAGS (PIXEL_SCALE)

#define DEFAULT_RENDERER_APPEARANCE_FLAGS (PLANE_MASTER | NO_CLIENT_COLOR)

/atom/appearance_flags = DEFAULT_APPEARANCE_FLAGS
/atom/movable/appearance_flags = DEFAULT_APPEARANCE_FLAGS | TILE_BOUND // Most AMs are not visibly bigger than a tile.
/image/appearance_flags = DEFAULT_APPEARANCE_FLAGS
Expand Down
4 changes: 1 addition & 3 deletions code/__defines/_renderer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/// The base /renderer definition and defaults.
/atom/movable/renderer
abstract_type = /atom/movable/renderer
appearance_flags = PLANE_MASTER
appearance_flags = DEFAULT_RENDERER_APPEARANCE_FLAGS
screen_loc = "CENTER"
plane = LOWEST_PLANE
blend_mode = BLEND_OVERLAY
Expand Down Expand Up @@ -132,7 +132,6 @@ INITIALIZE_IMMEDIATE(/atom/movable/renderer)
name = "Letterbox"
group = RENDER_GROUP_SCENE
plane = BLACKNESS_PLANE
appearance_flags = PLANE_MASTER | NO_CLIENT_COLOR
blend_mode = BLEND_MULTIPLY
mouse_opacity = MOUSE_OPACITY_UNCLICKABLE

Expand Down Expand Up @@ -188,7 +187,6 @@ GLOBAL_LIST_EMPTY(zmimic_renderers)
name = "Lighting"
group = RENDER_GROUP_SCENE
plane = LIGHTING_PLANE
appearance_flags = PLANE_MASTER | NO_CLIENT_COLOR
relay_blend_mode = BLEND_MULTIPLY
mouse_opacity = MOUSE_OPACITY_UNCLICKABLE

Expand Down
3 changes: 2 additions & 1 deletion code/game/objects/effects/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,14 @@
/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
appearance_flags = PIXEL_SCALE | NO_CLIENT_COLOR
icon = 'icons/effects/352x352.dmi'
icon_state = "singularity_s11"
pixel_x = -176
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/effects/particles/particles.dm
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@
/obj/particle_emitter/heat
particle_type = "heat"
render_target = HEAT_EFFECT_TARGET
appearance_flags = PIXEL_SCALE | NO_CLIENT_COLOR


/obj/particle_emitter/heat/Initialize()
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mechs/equipment/utility.dm
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,12 @@

/obj/ebeam/warp
plane = WARP_EFFECT_PLANE
appearance_flags = DEFAULT_APPEARANCE_FLAGS | TILE_BOUND | NO_CLIENT_COLOR
z_flags = ZMM_IGNORE

/obj/effect/warp/small
plane = WARP_EFFECT_PLANE
appearance_flags = PIXEL_SCALE
appearance_flags = PIXEL_SCALE | NO_CLIENT_COLOR
icon = 'icons/effects/96x96.dmi'
icon_state = "singularity_s3"
pixel_x = -32
Expand Down

0 comments on commit 4261cbd

Please sign in to comment.