mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 02:32:20 +00:00
This commit adjusts the speech parsing system to allow for an infinite number of languages to be present in the same message. You can transition freely between any language you are able to speak simply by putting it's language key in the middle of the sentence. Honestly, this was a massive pain in the ass, and there's probably still broken stuff, even though I've spent around 8 hours testing and refining this.
25 lines
954 B
Plaintext
25 lines
954 B
Plaintext
//Languages!
|
|
#define LANGUAGE_HUMAN 1
|
|
#define LANGUAGE_ALIEN 2
|
|
#define LANGUAGE_DOG 4
|
|
#define LANGUAGE_CAT 8
|
|
#define LANGUAGE_BINARY 16
|
|
#define LANGUAGE_OTHER 32768
|
|
|
|
#define LANGUAGE_UNIVERSAL 65535
|
|
|
|
//Language flags.
|
|
#define WHITELISTED 1 // Language is available if the speaker is whitelisted.
|
|
#define RESTRICTED 2 // Language can only be accquired by spawning or an admin.
|
|
#define HIVEMIND 16 // Broadcast to all mobs with this language.
|
|
#define NONGLOBAL 32 // Do not add to general languages list
|
|
#define INNATE 64 // All mobs can be assumed to speak and understand this language (audible emotes)
|
|
#define NO_TALK_MSG 128 // Do not show the "\The [speaker] talks into \the [radio]" message
|
|
#define NO_STUTTER 256 // No stuttering, slurring, or other speech problems
|
|
|
|
//Auto-accent level defines.
|
|
#define AUTOHISS_OFF 0
|
|
#define AUTOHISS_BASIC 1
|
|
#define AUTOHISS_FULL 2
|
|
#define AUTOHISS_NUM 3 //Number of auto-accent options.
|