Table of Contents

Class Cassie

Namespace
Exiled.API.Features
Assembly
Exiled.API.dll

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

bool

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

message string

The message, which duration will be calculated.

rawNumber bool

Determines if a number won't be converted to its full pronunciation.

speed float

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

num int

Number to convert.

Returns

string

A CASSIE-readable string representing the number.

ConvertTeam(Team, string)

Converts a PlayerRoles.Team into a Cassie-Readable CONTAINMENTUNIT.

public static string ConvertTeam(Team team, string unitName)

Parameters

team Team

PlayerRoles.Team.

unitName string

Unit Name.

Returns

string

string Containment Unit text.

CustomScpTermination(string, DamageHandlerBase)

Announces the termination of a custom SCP name.

public static void CustomScpTermination(string scpName, DamageHandlerBase info)

Parameters

scpName string

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.

info DamageHandlerBase

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

message string

The message to be reproduced.

delay float

The seconds that have to pass before reproducing the message.

glitchChance float

The chance of placing a glitch between each word.

jamChance float

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

message string

The message to be reproduced.

delay float

The seconds that have to pass before reproducing the message.

isHeld bool

Indicates whether C.A.S.S.I.E has to hold the message.

isNoisy bool

Indicates whether C.A.S.S.I.E has to make noises during the message.

isSubtitles bool

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

message string

The message to be reproduced.

glitchChance float

The chance of placing a glitch between each word.

jamChance float

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

word string

The word to check.

Returns

bool

true if the word is valid; otherwise, false.

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

sentence string

The sentence to check.

Returns

bool

true if the sentence is valid; otherwise, false.

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

message string

The message to be reproduced.

isHeld bool

Indicates whether C.A.S.S.I.E has to hold the message.

isNoisy bool

Indicates whether C.A.S.S.I.E has to make noises during the message.

isSubtitles bool

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

message string

The message to be reproduced.

translation string

The translation should be show in the subtitles.

isHeld bool

Indicates whether C.A.S.S.I.E has to hold the message.

isNoisy bool

Indicates whether C.A.S.S.I.E has to make noises during the message.

isSubtitles bool

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

scp Player

SCP to announce termination of.

info DamageHandlerBase

HitInformation.