Skip to content

Commit

Permalink
Command Headsets
Browse files Browse the repository at this point in the history
  • Loading branch information
imtakingabreakdontatme committed Dec 22, 2015
1 parent 2eeb711 commit 66ed760
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/__DEFINES/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define SPAN_SANS "sans"
#define SPAN_PAPYRUS "papyrus"
#define SPAN_REALLYBIG "reallybig"
#define SPAN_COMMAND "commmand_headset"

//bitflag #defines for return value of the radio() proc.
#define ITALICS 1
Expand Down
4 changes: 4 additions & 0 deletions code/game/gamemodes/nuclear/nuclear.dm
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
else
message_admins("Warning: Nuke Ops spawned without access to leave their spawn area!")

var/obj/item/device/radio/headset/syndicate/alt/A = locate() in synd_mind.current
if(A)
A.command = TRUE

if (nuke_code)
var/obj/item/weapon/paper/P = new
P.info = "The nuclear authorization code is: <b>[nuke_code]</b>"
Expand Down
7 changes: 7 additions & 0 deletions code/game/objects/items/devices/radio/headset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
icon_state = "syndie_headset"
item_state = "syndie_headset"

/obj/item/device/radio/headset/syndicate/alt/leader
name = "team leader headset"
command = TRUE

/obj/item/device/radio/headset/syndicate/New()
..()
make_syndie()
Expand Down Expand Up @@ -115,6 +119,9 @@
item_state = "headset"
keyslot = new /obj/item/device/encryptionkey/headset_com

/obj/item/device/radio/headset/heads
command = TRUE

/obj/item/device/radio/headset/heads/captain
name = "\proper the captain's headset"
desc = "The headset of the king. \nChannels are as follows: :c - command, :s - security, :e - engineering, :u - supply, :v - service, :m - medical, :n - science."
Expand Down
5 changes: 5 additions & 0 deletions code/game/objects/items/devices/radio/radio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
var/const/FREQ_LISTENING = 1
//FREQ_BROADCASTING = 2

var/command = FALSE //If we are speaking into a command headset, our text is LARGE

/obj/item/device/radio/proc/set_frequency(new_frequency)
remove_radio(src, frequency)
frequency = add_radio(src, new_frequency)
Expand Down Expand Up @@ -233,6 +235,9 @@
if(!M.IsVocal())
return

if(command)
spans |= SPAN_COMMAND

/* Quick introduction:
This new radio system uses a very robust FTL signaling technology unoriginally
dubbed "subspace" which is somewhat similar to 'blue-space' but can't
Expand Down
1 change: 1 addition & 0 deletions interface/stylesheet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ h1.alert, h2.alert {color: #000000;}
.papyrus {font-family: "Papyrus", cursive, sans-serif;}
.robot {font-family: "Courier New", cursive, sans-serif;}

.commmand_headset {font-weight: bold; font-size: 3;}
.big {font-size: 3;}
.reallybig {font-size: 4;}
.greentext {color: #00FF00; font-size: 3;}
Expand Down

0 comments on commit 66ed760

Please sign in to comment.