Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /datum/species/ethereal/proc/handle_light(mob/living/carbon/human/H)
- if((H.stat != DEAD) && (!H.IsStun()))
- var/percent = max(H.health, 0) / 100d
- current_color = rgb(r2 + ((r1-r2)*percent), g2 + ((g1-g2)*percent), b2 + ((b1-b2)*percent))
- to_chat(world, "aaa")
- H.set_light(4 + (energyrange * energy), 2 + (energypower * energy), current_color)
- H.dna.features["mcolor"] = copytext(current_color, 2)
- else
- H.set_light(0)
- H.dna.features["mcolor"] = "7f7f7f"
- H.update_body()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement