Respects Windows and our Inability to Pass Them

Blood that would splatter onto windows is now pixel-shifted and renders
above them so you can A: Clean it with ease and B: See it in all its
gorey glory.

I had to get creative with how I detected structures blocking blood
splatter.

Janiborgs riding, sprayers spraying and cleaner grenades foaming over
adjacent tiles won't clean off wall/windowblood. You have to use soap
and click on the blood.
This commit is contained in:
KasparoVy
2017-07-22 19:55:21 -04:00
parent 849f698256
commit 8dbfc8ee1d
6 changed files with 54 additions and 17 deletions
@@ -23,6 +23,7 @@ var/global/list/image/splatter_cache=list()
var/amount = 5
appearance_flags = NO_CLIENT_COLOR
var/dry_timer = 0
var/off_floor = FALSE
/obj/effect/decal/cleanable/blood/New()
..()
@@ -89,7 +90,7 @@ var/global/list/image/splatter_cache=list()
//Add "bloodiness" of this blood's type, to the human's shoes
/obj/effect/decal/cleanable/blood/Crossed(atom/movable/O)
if(ishuman(O))
if(!off_floor && ishuman(O))
var/mob/living/carbon/human/H = O
var/obj/item/organ/external/l_foot = H.get_organ("l_foot")
var/obj/item/organ/external/r_foot = H.get_organ("r_foot")