Merge pull request #3297 from Tastyfish/stop-hotwiring-the-tesla-you-tossers

Trained Poly on proper tesla engine use.
This commit is contained in:
Fox McCloud
2016-01-21 18:21:48 -05:00
2 changed files with 7 additions and 6 deletions
@@ -57,13 +57,14 @@
return ..()
/obj/item/device/radio/headset/receive_range(freq, level, aiOverride = 0)
if (aiOverride)
return ..(freq, level)
if(ishuman(src.loc))
var/mob/living/carbon/human/H = src.loc
/obj/item/device/radio/headset/receive_range(freq, level)
if(ishuman(loc))
var/mob/living/carbon/human/H = loc
if(H.l_ear == src || H.r_ear == src)
return ..(freq, level)
else if(isanimal(loc))
// frankly, all the ones with inventory are small enough to not warrant snowflaking the slot check somehow
return ..(freq, level)
return -1
/obj/item/device/radio/headset/alt