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
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 Cassie.CassieAnnouncementDispatcher.AllAnnouncements objects that C.A.S.S.I.E recognizes.
public static IReadOnlyCollection<CassieAnnouncement> VoiceLines { get; }
Property Value
- IReadOnlyCollection<CassieAnnouncement>
Methods
CalculateDuration(string)
Calculates the duration of a C.A.S.S.I.E message.
public static float CalculateDuration(string message)
Parameters
messagestringThe message, which duration will be calculated.
Returns
- float
Duration (in seconds) of specified message.
CalculateDuration(string, bool, float)
Calculates the duration of a C.A.S.S.I.E message.
[Obsolete("Please use CalculateDuration(string)", true)]
public static float CalculateDuration(string message, bool obsolete1, float obsolete2)
Parameters
messagestringThe message, which duration will be calculated.
obsolete1boolAn obsolete parameter.
obsolete2floatAnother obsolete parameter.
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
numintNumber to convert.
Returns
ConvertTeam(Team, string)
Converts a PlayerRoles.Team into a Cassie-Readable CONTAINMENTUNIT.
public static string ConvertTeam(Team team, string unitName)
Parameters
teamTeamPlayerRoles.Team.
unitNamestringUnit Name.
Returns
CustomScpTermination(string, DamageHandlerBase)
Announces the termination of a custom SCP name.
public static void CustomScpTermination(string scpName, DamageHandlerBase info)
Parameters
scpNamestringSCP 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.
infoDamageHandlerBaseHit 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
messagestringThe message to be reproduced.
delayfloatThe seconds that have to pass before reproducing the message.
glitchChancefloatThe chance of placing a glitch between each word.
jamChancefloatThe 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
messagestringThe message to be reproduced.
delayfloatThe seconds that have to pass before reproducing the message.
isHeldboolIndicates whether C.A.S.S.I.E has to hold the message.
isNoisyboolIndicates whether C.A.S.S.I.E has to make noises during the message.
isSubtitlesboolIndicates 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
messagestringThe message to be reproduced.
glitchChancefloatThe chance of placing a glitch between each word.
jamChancefloatThe 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
wordstringThe 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
sentencestringThe 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
messagestringThe message to be reproduced.
isHeldboolIndicates whether C.A.S.S.I.E has to hold the message.
isNoisyboolIndicates whether C.A.S.S.I.E has to make noises during the message.
isSubtitlesboolIndicates 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
messagestringThe message to be reproduced.
translationstringThe translation should be show in the subtitles.
isHeldboolIndicates whether C.A.S.S.I.E has to hold the message.
isNoisyboolIndicates whether C.A.S.S.I.E has to make noises during the message.
isSubtitlesboolIndicates 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
scpPlayerSCP to announce termination of.
infoDamageHandlerBaseHitInformation.