pAI / MMI emote fixes.

Fixes #4191
This commit is contained in:
Ccomp5950
2014-02-18 06:47:06 -06:00
parent 5909abb080
commit d29a7fb260
+4 -2
View File
@@ -38,13 +38,15 @@
// Type 1 (Visual) emotes are sent to anyone in view of the item
if (m_type & 1)
for (var/mob/O in viewers(src, null))
var/list/can_see = get_mobs_in_view(1,src) //Allows silicon & mmi mobs carried around to see the emotes of the person carrying them around.
can_see |= viewers(src,null)
for (var/mob/O in can_see)
O.show_message(message, m_type)
// Type 2 (Audible) emotes are sent to anyone in hear range
// of the *LOCATION* -- this is important for pAIs to be heard
else if (m_type & 2)
for (var/mob/O in hearers(get_turf(src), null))
for (var/mob/O in get_mobs_in_view(7,src))
O.show_message(message, m_type)
/mob/proc/emote_dead(var/message)