Skip to content

Commit

Permalink
Alpha changes when in-doors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynx22330 committed Dec 2, 2024
1 parent 4020178 commit 23844c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/client/client_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@
if(PMW && A)
if(A.outdoors)
PMW.filters = list()
for(var/W in current_weathers)
for(var/datum/weather/WE in SSweather.curweathers)
if(WE.type == W)
PMW.alpha = WE.weather_alpha
else
PMW.alpha = 255
if(!PMW.filters || !islist(PMW.filters) || !PMW.filters.len)
PMW.filters = filter(type="alpha", render_source = "*rainzone", flags = MASK_INVERSE)

Expand Down

0 comments on commit 23844c1

Please sign in to comment.