bab214e892
About The Pull Request I made a machine board for the PDA message server and added it to the telecomms techweb node. To keep the usefulness of the machine's password, a player built message server won't work until 15 minutes after construction. I've also converted a lot of magic numbers to defines, and changed the departmentType var on request consoles into a bitflag. I'm open to ideas other than a time gate when it comes to keeping the server password's usefulness. Why It's Good For The Game You can't build a Message Server right now. If it's destroyed, PDAs may be knocked out for the rest of the round. Changelog cl JJRcop add: You can now build a new PDA messaging server if you lose it. tweak: Requests console messages no longer work if the messaging server is offline. Emergency alerts will still function in that case as long as the rest of telecomms is online. /cl
116 lines
4.1 KiB
Plaintext
116 lines
4.1 KiB
Plaintext
// Radios use a large variety of predefined frequencies.
|
|
|
|
//say based modes like binary are in living/say.dm
|
|
|
|
#define RADIO_CHANNEL_COMMON "Common"
|
|
#define RADIO_KEY_COMMON ";"
|
|
|
|
#define RADIO_CHANNEL_SECURITY "Security"
|
|
#define RADIO_KEY_SECURITY "s"
|
|
#define RADIO_TOKEN_SECURITY ":s"
|
|
|
|
#define RADIO_CHANNEL_ENGINEERING "Engineering"
|
|
#define RADIO_KEY_ENGINEERING "e"
|
|
#define RADIO_TOKEN_ENGINEERING ":e"
|
|
|
|
#define RADIO_CHANNEL_COMMAND "Command"
|
|
#define RADIO_KEY_COMMAND "c"
|
|
#define RADIO_TOKEN_COMMAND ":c"
|
|
|
|
#define RADIO_CHANNEL_SCIENCE "Science"
|
|
#define RADIO_KEY_SCIENCE "n"
|
|
#define RADIO_TOKEN_SCIENCE ":n"
|
|
|
|
#define RADIO_CHANNEL_MEDICAL "Medical"
|
|
#define RADIO_KEY_MEDICAL "m"
|
|
#define RADIO_TOKEN_MEDICAL ":m"
|
|
|
|
#define RADIO_CHANNEL_SUPPLY "Supply"
|
|
#define RADIO_KEY_SUPPLY "u"
|
|
#define RADIO_TOKEN_SUPPLY ":u"
|
|
|
|
#define RADIO_CHANNEL_SERVICE "Service"
|
|
#define RADIO_KEY_SERVICE "v"
|
|
#define RADIO_TOKEN_SERVICE ":v"
|
|
|
|
#define RADIO_CHANNEL_AI_PRIVATE "AI Private"
|
|
#define RADIO_KEY_AI_PRIVATE "o"
|
|
#define RADIO_TOKEN_AI_PRIVATE ":o"
|
|
|
|
|
|
#define RADIO_CHANNEL_SYNDICATE "Syndicate"
|
|
#define RADIO_KEY_SYNDICATE "t"
|
|
#define RADIO_TOKEN_SYNDICATE ":t"
|
|
|
|
#define RADIO_CHANNEL_CENTCOM "CentCom"
|
|
#define RADIO_KEY_CENTCOM "y"
|
|
#define RADIO_TOKEN_CENTCOM ":y"
|
|
|
|
#define RADIO_CHANNEL_CTF_RED "Red Team"
|
|
#define RADIO_CHANNEL_CTF_BLUE "Blue Team"
|
|
|
|
|
|
#define MIN_FREE_FREQ 1201 // -------------------------------------------------
|
|
// Frequencies are always odd numbers and range from 1201 to 1599.
|
|
|
|
#define FREQ_SYNDICATE 1213 // Nuke op comms frequency, dark brown
|
|
#define FREQ_CTF_RED 1215 // CTF red team comms frequency, red
|
|
#define FREQ_CTF_BLUE 1217 // CTF blue team comms frequency, blue
|
|
#define FREQ_CENTCOM 1337 // CentCom comms frequency, gray
|
|
#define FREQ_SUPPLY 1347 // Supply comms frequency, light brown
|
|
#define FREQ_SERVICE 1349 // Service comms frequency, green
|
|
#define FREQ_SCIENCE 1351 // Science comms frequency, plum
|
|
#define FREQ_COMMAND 1353 // Command comms frequency, gold
|
|
#define FREQ_MEDICAL 1355 // Medical comms frequency, soft blue
|
|
#define FREQ_ENGINEERING 1357 // Engineering comms frequency, orange
|
|
#define FREQ_SECURITY 1359 // Security comms frequency, red
|
|
|
|
#define FREQ_STATUS_DISPLAYS 1435
|
|
#define FREQ_ATMOS_ALARMS 1437 // air alarms <-> alert computers
|
|
#define FREQ_ATMOS_CONTROL 1439 // air alarms <-> vents and scrubbers
|
|
|
|
#define MIN_FREQ 1441 // ------------------------------------------------------
|
|
// Only the 1441 to 1489 range is freely available for general conversation.
|
|
// This represents 1/8th of the available spectrum.
|
|
|
|
#define FREQ_ATMOS_STORAGE 1441
|
|
#define FREQ_NAV_BEACON 1445
|
|
#define FREQ_AI_PRIVATE 1447 // AI private comms frequency, magenta
|
|
#define FREQ_PRESSURE_PLATE 1447
|
|
#define FREQ_AIRLOCK_CONTROL 1449
|
|
#define FREQ_ELECTROPACK 1449
|
|
#define FREQ_MAGNETS 1449
|
|
#define FREQ_LOCATOR_IMPLANT 1451
|
|
#define FREQ_SIGNALER 1457 // the default for new signalers
|
|
#define FREQ_COMMON 1459 // Common comms frequency, dark green
|
|
|
|
#define MAX_FREQ 1489 // ------------------------------------------------------
|
|
|
|
#define MAX_FREE_FREQ 1599 // -------------------------------------------------
|
|
|
|
// Transmission types.
|
|
#define TRANSMISSION_WIRE 0 // some sort of wired connection, not used
|
|
#define TRANSMISSION_RADIO 1 // electromagnetic radiation (default)
|
|
#define TRANSMISSION_SUBSPACE 2 // subspace transmission (headsets only)
|
|
#define TRANSMISSION_SUPERSPACE 3 // reaches independent (CentCom) radios only
|
|
|
|
// Filter types, used as an optimization to avoid unnecessary proc calls.
|
|
#define RADIO_TO_AIRALARM "to_airalarm"
|
|
#define RADIO_FROM_AIRALARM "from_airalarm"
|
|
#define RADIO_SIGNALER "signaler"
|
|
#define RADIO_ATMOSIA "atmosia"
|
|
#define RADIO_AIRLOCK "airlock"
|
|
#define RADIO_MAGNETS "magnets"
|
|
|
|
#define DEFAULT_SIGNALER_CODE 30
|
|
|
|
//Requests Console
|
|
#define REQ_NO_NEW_MESSAGE 0
|
|
#define REQ_NORMAL_MESSAGE_PRIORITY 1
|
|
#define REQ_HIGH_MESSAGE_PRIORITY 2
|
|
#define REQ_EXTREME_MESSAGE_PRIORITY 3
|
|
|
|
#define REQ_DEP_TYPE_ASSISTANCE (1<<0)
|
|
#define REQ_DEP_TYPE_SUPPLIES (1<<1)
|
|
#define REQ_DEP_TYPE_INFORMATION (1<<2)
|