mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
Fixed up videocam code, need to test
This commit is contained in:
@@ -281,6 +281,7 @@
|
||||
var/icon_on = "videocam_on"
|
||||
var/icon_off = "videocam"
|
||||
var/canhear_range = 7
|
||||
var/watcherslist = list()
|
||||
|
||||
/obj/item/device/videocam/attack_self(mob/user)
|
||||
on = !on
|
||||
@@ -310,4 +311,6 @@
|
||||
/obj/item/device/videocam/hear_talk(mob/M as mob, msg)
|
||||
if (camera && on)
|
||||
if(get_dist(src, M) <= canhear_range)
|
||||
talk_into(M, msg)
|
||||
talk_into(M, msg)
|
||||
for(var/mob/living/carbon/human/H in watcherslist)
|
||||
H.show_message(text("\blue (Newscaster) [] says, '[]'",M,msg), 1)
|
||||
Reference in New Issue
Block a user