From 7d418a1bb7d6cb1e464351abe237f36cd10d125e Mon Sep 17 00:00:00 2001 From: "sieve32@gmail.com" Date: Wed, 1 Aug 2012 16:54:30 +0000 Subject: [PATCH] -Completely removes new_players from the dead_mob_list because it was decided that they shouldn't be there -MMIs will no longer hear binary chat. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4271 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/procs/global_lists.dm | 11 ++++++---- code/modules/mob/living/carbon/brain/brain.dm | 20 +++++++++++++++---- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/code/defines/procs/global_lists.dm b/code/defines/procs/global_lists.dm index 7e17b8cb5e7..30e6e64dfdc 100644 --- a/code/defines/procs/global_lists.dm +++ b/code/defines/procs/global_lists.dm @@ -94,10 +94,13 @@ proc/rebuild_mob_lists() proc/add_to_mob_list(var/mob/A)//Adds an individual mob if(A) mob_list |= A - if(A.stat == 2) - dead_mob_list |= A - if(A.stat != 2) - living_mob_list |= A + if(istype(A,/mob/new_player))//New players are only on the mob list, but not the dead/living + return + else + if(A.stat == 2) + dead_mob_list |= A + if(A.stat != 2) + living_mob_list |= A // if(A.client) // player_list |= A diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm index 82c94634efc..585add5e15b 100644 --- a/code/modules/mob/living/carbon/brain/brain.dm +++ b/code/modules/mob/living/carbon/brain/brain.dm @@ -21,13 +21,25 @@ say_understands(var/other) if (istype(other, /mob/living/silicon/ai)) - return 1 + if(!(container && istype(container, /obj/item/device/mmi)))//Goddamn is this hackish, but this say code is so odd + return 0 + else + return 1 if (istype(other, /mob/living/silicon/decoy)) - return 1 + if(!(container && istype(container, /obj/item/device/mmi))) + return 0 + else + return 1 if (istype(other, /mob/living/silicon/pai)) - return 1 + if(!(container && istype(container, /obj/item/device/mmi))) + return 0 + else + return 1 if (istype(other, /mob/living/silicon/robot)) - return 1 + if(!(container && istype(container, /obj/item/device/mmi))) + return 0 + else + return 1 if (istype(other, /mob/living/carbon/human)) return 1 if (istype(other, /mob/living/carbon/metroid))