Files
Paradise/code/game/objects/radio/intercom.dm
Ren Erthilo 1fa9b6a848 TG: Committing fixes to code for examining mobs. Burn damage wasn't showing properly
on some mobs. Fixed grammar, icons and stuff.
Added some  stylesheet classes. Approved by Urist. If you're adding game text,
please use the class that best describes the text. This way all the text
formatting can be edited from the stylesheet rather than traipsing through the
code like I am.
Cyborg names reflect their module choice.
Cyborgs can no longer drop their module-items on conveyor belts.
Please remember to add the line: gender = PLURAL to any new item defines if the
item is plural, ie metal rods and such.
Much more to come. ;-; Just need to check them and merge... why did I start
climbing this mountain?
 Revision: r3232
Author: 	 elly1...@rocketmail.com
Date: 	Mar 2, 2012
2012-04-25 02:06:30 +01:00

57 lines
1.2 KiB
Plaintext

/obj/item/device/radio/intercom
name = "station intercom"
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 hear
return get_mobs_in_view(4, src)
hear_talk(mob/M as mob, msg)
if(!src.anyai && !(M in src.ai))
return
..()