Removes unnecessary extra stuff I did, makes bot radios cleaner

This commit is contained in:
Tastyfish
2016-04-16 18:36:21 -04:00
parent 3e7222610f
commit 0820c03a18
3 changed files with 15 additions and 15 deletions
@@ -84,6 +84,20 @@
hud_possible = list(DIAG_STAT_HUD, DIAG_BOT_HUD, DIAG_HUD) //Diagnostic HUD views
/obj/item/device/radio/headset/bot
subspace_transmission = 1
canhear_range = 0
/obj/item/device/radio/headset/bot/recalculateChannels()
var/mob/living/simple_animal/bot/B = loc
if(istype(B))
if(!B.radio_config)
B.radio_config = list("AI Private" = 1)
if(!(B.radio_channel in B.radio_config)) // put it first so it's the :h channel
B.radio_config.Insert(1, "[B.radio_channel]")
B.radio_config["[B.radio_channel]"] = 1
config(B.radio_config)
/mob/living/simple_animal/bot/proc/get_mode()
if(client) //Player bots do not have modes, thus the override. Also an easy way for PDA users/AI to know when a bot is a player.
if(paicard)
@@ -123,15 +137,7 @@
//This access is so bots can be immediately set to patrol and leave Robotics, instead of having to be let out first.
access_card.access += access_robotics
set_custom_texts()
Radio = new/obj/item/device/radio/headset(src)
Radio.subspace_transmission = 1
Radio.canhear_range = 0 // anything greater will have the bot broadcast the channel as if it were saying it out loud.
if(!radio_config)
radio_config = list("AI Private" = 1)
if(!(radio_channel in radio_config)) // put it first so it's the :h channel
radio_config.Insert(1, "[radio_channel]")
radio_config["[radio_channel]"] = 1
Radio.config(radio_config)
Radio = new/obj/item/device/radio/headset/bot(src)
add_language("Galactic Common", 1)
add_language("Sol Common", 1)