RADIO HEADSET update by Barhandar and me:

Three new channels and new :h-like shortcuts for each channel.
shortcuts now are:
	":r" = "right hand" (unchanged)
	":l" = "left hand" (unchanged)
	":i" = "intercom" (unchanged)
	":h" = "department" (unchanged for everyone except captain)
	":w" = "whisper" (NEW shortcut)
	":b" = "binary" (CHANGED)
	":a" = "alientalk" (unchanged)
	":t" = "Syndicate" (NEW channel)
	":c" = "Command" (NEW shortcut)
	":n" = "Science" (NEW channel) ("n" because all other letters are occupied)
	":m" = "Medical" (NEW shortcut)
	":e" = "Engineering" (NEW shortcut)
	":s" = "Security" (NEW shortcut)
Note:
":h" works as before, i.e. sends on engineering channel for engineers and CE, on medical channel for MD, CMO,etc and so on.
All heads have command channel in their headsets along with department channel.
Warden and QM aren't heads.
Captain have almost all channels in his/her headset, but some are switched off by default. The default channel for captain is "Command" now.
Bugs fixed:
If headset is tuned to other frequency dept channel don't work.
A receive wire in intercoms can be cut.
Some others bugs.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1020 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
rastaf.zero@gmail.com
2011-02-12 00:08:42 +00:00
parent 098a5b73e2
commit 785eb9dcc6
11 changed files with 429 additions and 254 deletions

View File

@@ -3,26 +3,30 @@
suffix = "\[3\]"
icon_state = "walkietalkie"
item_state = "walkietalkie"
var/last_transmission
var/frequency = 1459
var/secure_frequency
var/traitor_frequency = 0.0
var/obj/item/device/radio/patch_link = null
var/obj/item/weapon/syndicate_uplink/traitorradio = null
var/wires = WIRE_SIGNAL | WIRE_RECEIVE | WIRE_TRANSMIT
var/b_stat = 0.0
var/broadcasting = null
var/listening = 1.0
var/freerange = 0 // 0 - Sanitize frequencies, 1 - Full range
flags = 450.0
var
last_transmission
frequency = 1459 //common chat
traitor_frequency = 0 //tune to frequency to unlock traitor supplies
obj/item/device/radio/patch_link = null
obj/item/weapon/syndicate_uplink/traitorradio = null
wires = WIRE_SIGNAL | WIRE_RECEIVE | WIRE_TRANSMIT
b_stat = 0
broadcasting = 0
listening = 1
freerange = 0 // 0 - Sanitize frequencies, 1 - Full range
list/channels = list() //see communications.dm for full list. First channes is a "default" for :h
// "Example" = FREQ_LISTENING|FREQ_BROADCASTING
flags = 450
throw_speed = 2
throw_range = 9
w_class = 2.0
w_class = 2
var/const
WIRE_SIGNAL = 1 //sends a signal, like to set off a bomb or electrocute someone
WIRE_RECEIVE = 2
WIRE_TRANSMIT = 4
TRANSMISSION_DELAY = 5 // only 2/second/radio
FREQ_LISTENING = 1
//FREQ_BROADCASTING = 2
/obj/item/device/radio/beacon
name = "Tracking Beacon"
@@ -39,62 +43,101 @@
/obj/item/device/radio/electropack
name = "Electropack"
icon_state = "electropack0"
var/code = 2.0
var/on = 0.0
var/code = 2
var/on = 0
var/e_pads = 0.0
frequency = 1449
w_class = 5.0
flags = 323.0
flags = 323
item_state = "electropack"
/obj/item/device/radio/headset
name = "Radio Headset"
icon_state = "headset"
item_state = "headset"
var/protective_temperature = 0
var/bintran = 0
/obj/item/device/radio/headset/traitor
bintran = 1
/obj/item/device/radio/headset/headset_sec // -- TLE
name = "Security Radio Headset"
icon_state = "sec_headset"
item_state = "headset"
secure_frequency = 1359
/obj/item/device/radio/headset/headset_eng // -- TLE
name = "Engineering Radio Headset"
icon_state = "eng_headset"
item_state = "headset"
secure_frequency = 1357
/obj/item/device/radio/headset/headset_med // -- TLE
name = "Medical Radio Headset"
icon_state = "med_headset"
item_state = "headset"
secure_frequency = 1355
/obj/item/device/radio/headset/headset_com // -- TLE
name = "Command Radio Headset"
icon_state = "com_headset"
item_state = "headset"
secure_frequency = 1353
/obj/item/device/radio/intercom
name = "Station Intercom (Radio)"
icon_state = "intercom"
anchored = 1.0
var/number = 0
var/anyai = 1
var/mob/living/silicon/ai/ai = list()
/obj/item/device/radio/signaler
name = "Remote Signaling Device"
icon_state = "signaller"
item_state = "signaler"
var/code = 30.0
w_class = 1.0
var/code = 30
w_class = 1
frequency = 1457
var/delay = 0
var/airlock_wire = null
/obj/item/device/radio/intercom
name = "Station Intercom (Radio)"
icon_state = "intercom"
anchored = 1
var/number = 0
var/anyai = 1
var/mob/living/silicon/ai/ai = list()
/obj/item/device/radio/headset
name = "Radio Headset"
icon_state = "headset"
item_state = "headset"
var
protective_temperature = 0
translate_binary = 0
translate_hive = 0
/obj/item/device/radio/headset/traitor
translate_binary = 1
channels = list("Syndicate" = 1)
/obj/item/device/radio/headset/headset_sec // -- TLE
name = "Security Radio Headset"
icon_state = "sec_headset"
item_state = "headset"
channels = list("Security" = 1)
/obj/item/device/radio/headset/headset_eng // -- TLE
name = "Engineering Radio Headset"
icon_state = "eng_headset"
item_state = "headset"
channels = list("Engineering" = 1)
/obj/item/device/radio/headset/headset_med // -- TLE
name = "Medical Radio Headset"
icon_state = "med_headset"
item_state = "headset"
channels = list("Medical" = 1)
/obj/item/device/radio/headset/headset_com // -- TLE
name = "Command Radio Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Command" = 1)
/obj/item/device/radio/headset/headset_sci // -- Bar
name = "Science Radio Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Science" = 1)
/obj/item/device/radio/headset/heads/captain // -- Bar
name = "Captain's Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Command" = 1, "Science" = 0, "Medical" = 0, "Security" = 1, "Engineering" = 0)
/obj/item/device/radio/headset/heads/rd // -- Bar
name = "Research Director's Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Science" = 1, "Command" = 1, "Medical" = 1)
/obj/item/device/radio/headset/heads/hos // -- Bar
name = "Head of Security's Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Security" = 1, "Command" = 1)
/obj/item/device/radio/headset/heads/ce // -- Bar
name = "Chief Engineer's Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Engineering" = 1, "Command" = 1)
/obj/item/device/radio/headset/heads/cmo // -- Bar
name = "Chief Medical Officer's Headset"
icon_state = "com_headset"
item_state = "headset"
channels = list("Medical" = 1, "Command" = 1)