Class Cassie
A set of tools to use in-game C.A.S.S.I.E.
public static class Cassie- Inheritance
- 
      
      Cassie
- Inherited Members
Properties
Announcer
Gets the NineTailedFoxAnnouncer singleton.
public static NineTailedFoxAnnouncer Announcer { get; }Property Value
- NineTailedFoxAnnouncer
IsSpeaking
Gets a value indicating whether C.A.S.S.I.E is currently announcing. Does not include decontamination or Alpha Warhead Messages.
public static bool IsSpeaking { get; }Property Value
VoiceLines
Gets a IReadOnlyCollection<T> of NineTailedFoxAnnouncer.VoiceLine objects that C.A.S.S.I.E recognizes.
public static IReadOnlyCollection<NineTailedFoxAnnouncer.VoiceLine> VoiceLines { get; }Property Value
- IReadOnlyCollection<NineTailedFoxAnnouncer.VoiceLine>
Methods
CalculateDuration(string, bool, float)
Calculates the duration of a C.A.S.S.I.E message.
public static float CalculateDuration(string message, bool rawNumber = false, float speed = 1)Parameters
- messagestring
- The message, which duration will be calculated. 
- rawNumberbool
- Determines if a number won't be converted to its full pronunciation. 
- speedfloat
- The speed of the message. 
Returns
- float
- Duration (in seconds) of specified message. 
Clear()
Clears the C.A.S.S.I.E queue.
public static void Clear()ConvertNumber(int)
Converts a number into a Cassie-Readable String.
public static string ConvertNumber(int num)Parameters
- numint
- Number to convert. 
Returns
ConvertTeam(Team, string)
Converts a PlayerRoles.Team into a Cassie-Readable CONTAINMENTUNIT.
public static string ConvertTeam(Team team, string unitName)Parameters
- teamTeam
- PlayerRoles.Team. 
- unitNamestring
- Unit Name. 
Returns
CustomScpTermination(string, DamageHandlerBase)
Announces the termination of a custom SCP name.
public static void CustomScpTermination(string scpName, DamageHandlerBase info)Parameters
- scpNamestring
- SCP Name. Note that for larger numbers, C.A.S.S.I.E will pronounce the place (eg. "457" -> "four hundred fifty seven"). Spaces can be used to prevent this behavior. 
- infoDamageHandlerBase
- Hit Information. 
DelayedGlitchyMessage(string, float, float, float)
Reproduce a glitchy C.A.S.S.I.E announcement after a certain period of seconds.
public static void DelayedGlitchyMessage(string message, float delay, float glitchChance, float jamChance)Parameters
- messagestring
- The message to be reproduced. 
- delayfloat
- The seconds that have to pass before reproducing the message. 
- glitchChancefloat
- The chance of placing a glitch between each word. 
- jamChancefloat
- The chance of jamming each word. 
DelayedMessage(string, float, bool, bool, bool)
Reproduce a non-glitched C.A.S.S.I.E message after a certain amount of seconds.
public static void DelayedMessage(string message, float delay, bool isHeld = false, bool isNoisy = true, bool isSubtitles = false)Parameters
- messagestring
- The message to be reproduced. 
- delayfloat
- The seconds that have to pass before reproducing the message. 
- isHeldbool
- Indicates whether C.A.S.S.I.E has to hold the message. 
- isNoisybool
- Indicates whether C.A.S.S.I.E has to make noises during the message. 
- isSubtitlesbool
- Indicates whether C.A.S.S.I.E has to make subtitles. 
GlitchyMessage(string, float, float)
Reproduce a glitchy C.A.S.S.I.E announcement.
public static void GlitchyMessage(string message, float glitchChance, float jamChance)Parameters
- messagestring
- The message to be reproduced. 
- glitchChancefloat
- The chance of placing a glitch between each word. 
- jamChancefloat
- The chance of jamming each word. 
IsValid(string)
Gets a value indicating whether the given word is a valid C.A.S.S.I.E word.
public static bool IsValid(string word)Parameters
- wordstring
- The word to check. 
Returns
IsValidSentence(string)
Gets a value indicating whether the given sentence is all valid C.A.S.S.I.E word.
public static bool IsValidSentence(string sentence)Parameters
- sentencestring
- The sentence to check. 
Returns
Message(string, bool, bool, bool)
Reproduce a non-glitched C.A.S.S.I.E message.
public static void Message(string message, bool isHeld = false, bool isNoisy = true, bool isSubtitles = false)Parameters
- messagestring
- The message to be reproduced. 
- isHeldbool
- Indicates whether C.A.S.S.I.E has to hold the message. 
- isNoisybool
- Indicates whether C.A.S.S.I.E has to make noises during the message. 
- isSubtitlesbool
- Indicates whether C.A.S.S.I.E has to make subtitles. 
MessageTranslated(string, string, bool, bool, bool)
Reproduce a non-glitched C.A.S.S.I.E message with a possibility to custom the subtitles.
public static void MessageTranslated(string message, string translation, bool isHeld = false, bool isNoisy = true, bool isSubtitles = true)Parameters
- messagestring
- The message to be reproduced. 
- translationstring
- The translation should be show in the subtitles. 
- isHeldbool
- Indicates whether C.A.S.S.I.E has to hold the message. 
- isNoisybool
- Indicates whether C.A.S.S.I.E has to make noises during the message. 
- isSubtitlesbool
- Indicates whether C.A.S.S.I.E has to make subtitles. 
ScpTermination(Player, DamageHandlerBase)
Announce a SCP Termination.
public static void ScpTermination(Player scp, DamageHandlerBase info)Parameters
- scpPlayer
- SCP to announce termination of. 
- infoDamageHandlerBase
- HitInformation.