diff --git a/code/modules/mob/living/carbon/human/human_mob.dm b/code/modules/mob/living/carbon/human/human_mob.dm index 5f44270409e..f4b5626df38 100644 --- a/code/modules/mob/living/carbon/human/human_mob.dm +++ b/code/modules/mob/living/carbon/human/human_mob.dm @@ -2064,3 +2064,14 @@ Eyes need to have significantly high darksight to shine unless the mob has the X /mob/living/carbon/human/proc/check_brain_threshold(threshold_level) var/obj/item/organ/internal/brain/brain_organ = get_int_organ(/obj/item/organ/internal/brain) return brain_organ.damage >= (brain_organ.max_damage * threshold_level) + +/* + * Invokes a hallucination on the mob. Hallucination must be a path or a string of a path + */ +/mob/living/carbon/human/proc/invoke_hallucination(hallucination_to_make) + var/string_path = text2path(hallucination_to_make) + if(!ispath(hallucination_to_make)) + if(!string_path) + return + hallucination_to_make = string_path + new hallucination_to_make(get_turf(src), src)