mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
Should fix non mobs from not Hear()'ing things from radios and the like.
This commit is contained in:
@@ -212,6 +212,19 @@
|
||||
|
||||
return hear
|
||||
|
||||
/proc/get_movables_in_radio_ranges(var/list/obj/item/device/radio/radios)
|
||||
|
||||
//set background = 1
|
||||
|
||||
. = list()
|
||||
// Returns a list of mobs who can hear any of the radios given in @radios
|
||||
for(var/i = 1; i <= radios.len; i++)
|
||||
var/obj/item/device/radio/R = radios[i]
|
||||
if(R)
|
||||
. |= get_hearers_in_view(R)
|
||||
. |= get_mobs_in_radio_ranges(radios)
|
||||
return .
|
||||
|
||||
/proc/get_mobs_in_radio_ranges(var/list/obj/item/device/radio/radios)
|
||||
|
||||
//set background = 1
|
||||
|
||||
Reference in New Issue
Block a user