mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-27 18:42:19 +00:00
We were able to restore functionality after we blew up half the radio equipment, as well. AI satellite is now the Comms satellite.
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
/obj/item/device/radio/intercom
|
|
name = "Station Intercom (Radio)"
|
|
desc = "Talk through this."
|
|
icon_state = "intercom"
|
|
anchored = 1
|
|
w_class = 4.0
|
|
var/number = 0
|
|
var/anyai = 1
|
|
var/mob/living/silicon/ai/ai = list()
|
|
|
|
|
|
attack_ai(mob/user as mob)
|
|
src.add_fingerprint(user)
|
|
spawn (0)
|
|
attack_self(user)
|
|
|
|
attack_paw(mob/user as mob)
|
|
if ((ticker && ticker.mode.name == "monkey"))
|
|
return src.attack_hand(user)
|
|
|
|
|
|
attack_hand(mob/user as mob)
|
|
src.add_fingerprint(user)
|
|
spawn (0)
|
|
attack_self(user)
|
|
|
|
|
|
send_hear()
|
|
if (!(src.wires & WIRE_RECEIVE))
|
|
return
|
|
if (!src.listening)
|
|
return
|
|
|
|
/* var/turf/T = get_turf(src)
|
|
var/list/hear = hearers(7, T)
|
|
var/list/V
|
|
//find mobs in lockers, cryo and intellycards
|
|
for(var/mob/M in world)
|
|
if (isturf(M.loc))
|
|
continue //if M can hear us it is already was found by hearers()
|
|
if (!M.client)
|
|
continue //skip monkeys and leavers
|
|
if (!V) //lasy initialisation
|
|
V = view(7, T)
|
|
if (get_turf(M) in V) //this slow, but I don't think we'd have a lot of wardrobewhores every round --rastaf0
|
|
hear+=M */
|
|
return get_mobs_in_view(4,src)
|
|
|
|
|
|
hear_talk(mob/M as mob, msg)
|
|
if(!src.anyai && !(M in src.ai))
|
|
return
|
|
..() |