#define AMBIENT_OCCLUSION filter(type="drop_shadow", x=0, y=-2, size=4, border=4, color="#04080FAA")
/obj/plane_master/ambient_occlusion
name = "ambient occlusion master"
plane = OBJECTS_PLANE
appearance_flags = PLANE_MASTER
blend_mode = BLEND_OVERLAY
/obj/plane_master/ambient_occlusion/apply(mob/mymob)
if(istype(mymob) && mymob.client)
filters += AMBIENT_OCCLUSION
/obj/plane_master/ambient_occlusion/lying_enemy
plane = LYING_ENEMY_PLANE
/obj/plane_master/ambient_occlusion/lying_player
plane = LYING_PLAYER_PLANE
/obj/plane_master/ambient_occlusion/above_obj
plane = ABOVE_OBJECTS_PLANE
/obj/plane_master/ambient_occlusion/player_plane
plane = PLAYER_PLANE
/obj/plane_master/ambient_occlusion/enemy_plane
plane = ENEMY_PLANE
/obj/plane_master/ambient_occlusion/above_player_plane
plane = ABOVE_PLAYER_PLANE
/obj/plane_master/ambient_occlusion/effects_plane
plane = EFFECTS_PLANE
ID:2384312
Jul 14 2018, 11:21 am
|
|||||||
| |||||||
There doesn't seem to be an easy way to modify to multiple planes at once. I had to do this:
|