mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Refactors plane masters a bit and introduces plane master controllers (#3228)
* Refactors plane masters a bit and introduces plane master controllers (#56717) * plane master controllers * small adjustments * bro its a comment CHILL OUT * powerful * Refactors plane masters a bit and introduces plane master controllers Co-authored-by: Qustinnus <Floydje123@hotmail.com>
This commit is contained in:
@@ -94,10 +94,11 @@
|
||||
/mob/proc/update_eye_blur()
|
||||
if(!client)
|
||||
return
|
||||
var/atom/movable/screen/plane_master/floor/OT = locate(/atom/movable/screen/plane_master/floor) in client.screen
|
||||
var/atom/movable/screen/plane_master/game_world/GW = locate(/atom/movable/screen/plane_master/game_world) in client.screen
|
||||
GW.backdrop(src)
|
||||
OT.backdrop(src)
|
||||
var/atom/movable/plane_master_controller/game_plane_master_controller = hud_used.plane_master_controllers[PLANE_MASTERS_GAME]
|
||||
if(eye_blurry)
|
||||
game_plane_master_controller.add_filter("eye_blur", 1, gauss_blur_filter(clamp(eye_blurry * 0.1, 0.6, 3)))
|
||||
else
|
||||
game_plane_master_controller.remove_filter("eye_blur")
|
||||
|
||||
///Adjust the drugginess of a mob
|
||||
/mob/proc/adjust_drugginess(amount)
|
||||
|
||||
Reference in New Issue
Block a user