readded defines; tweaked size

This commit is contained in:
Unknown
2018-08-08 12:39:19 +02:00
parent 9ca7e38f7a
commit 054be386de
4 changed files with 9 additions and 4 deletions

View File

@@ -453,6 +453,11 @@ GLOBAL_LIST_INIT(pda_styles, list(MONO, VT, ORBITRON, SHARE))
// Used by PDA and cartridge code to reduce repetitiveness of spritesheets
#define PDAIMG(what) {"<span class="pda16x16 [#what]"></span>"}
//Filters
#define AMBIENT_OCCLUSION list("type"="drop_shadow","x"=0,"y"=-2,"size"=4,"border"=4,"color"="#04080FAA")
#define EYE_BLUR list("type"="blur", "size"=4)
#define GRAVITY_MOTION_BLUR list("type"="motion_blur","x"=0,"y"=0)
#define STANDARD_GRAVITY 1 //Anything above this is high gravity, anything below no grav
#define GRAVITY_DAMAGE_TRESHOLD 3 //Starting with this value gravity will start to damage mobs

View File

@@ -30,7 +30,7 @@
/obj/screen/plane_master/game_world/backdrop(mob/mymob)
if(istype(mymob) && mymob.client && mymob.client.prefs && mymob.client.prefs.ambientocclusion)
add_filter("ambient_occlusion", 0, list("type" = "drop_shadow", "x" = 0, "y" = -2, "size" = 4, "border" = 4, "color" = "#04080FAA"))
add_filter("ambient_occlusion", 0, AMBIENT_OCCLUSION)
else
remove_filter("ambient_occlusion")
update_filters()

View File

@@ -148,7 +148,7 @@
/mob/living/proc/gravity_animate()
if(!get_filter("gravity"))
add_filter("gravity",1,list("type"="motion_blur", "x"=0, "y"=0))
add_filter("gravity",1, GRAVITY_MOTION_BLUR)
INVOKE_ASYNC(src, .proc/gravity_pulse_animation)
/mob/living/proc/gravity_pulse_animation()

View File

@@ -228,8 +228,8 @@
/mob/proc/add_eyeblur()
var/obj/screen/plane_master/game_world/GW = locate(/obj/screen/plane_master/game_world) in client.screen
var/obj/screen/plane_master/floor/F = locate(/obj/screen/plane_master/floor) in client.screen
GW.add_filter("blurry_eyes", 2, list("type"="blur", "size"=2))
F.add_filter("blurry_eyes", 2, list("type"="blur", "size"=2))
GW.add_filter("blurry_eyes", 2, EYE_BLUR)
F.add_filter("blurry_eyes", 2, EYE_BLUR)
/mob/proc/remove_eyeblur()
var/obj/screen/plane_master/game_world/GW = locate(/obj/screen/plane_master/game_world) in client.screen