Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 |
class ConcreteSpeechManager extends Engine.SpeechManager dependsOn(SpeechCategory) native; import enum EChannelID from SpeechCategory; var() config float SpeechPitch; var() config float SpeechInnerRadius; var() config float SpeechOuterRadius; var() config String AnnouncerType; var() config float VolumePriorityDisabledLagTime; var() config float SecondsPerWord; var transient private SpeechCategoryManager categoryManager; var transient private Array<SpeechChannel> channels; var transient private bool bIgnoreCategoryFrequency; var transient private Array<string> AIVoiceSetPrecache; var transient private Array<string> VOPrecache; var transient noexport private const int level_padding; var transient noexport private const int categoryMap_padding[5]; var transient noexport private const float VolumePriorityDisableTime_padding; // // Precaching functions // native simulated function PrecacheAIVoiceSet(String VoiceSetPackageName); native simulated function PrecacheVO(String SpeechTag); function int GetChannelID(String channelName) { if(channelName ~= "Movement") return EChannelID.CHANNEL_Movement; else if(channelName ~= "Dynamic") return EChannelID.CHANNEL_Dynamic; else if(channelName ~= "Scripted") return EChannelID.CHANNEL_Scripted; else if(channelName ~= "QuickChat") return EChannelID.CHANNEL_QuickChat; else if(channelName ~= "Announcer") return EChannelID.CHANNEL_Announcer; return -1; } function ToggleChannelLogging(String channelName) { local int channelIndex; channelIndex = GetChannelID(channelName); if(channelIndex > -1) channels[channelIndex].bDebugLogged = ! channels[channelIndex].bDebugLogged; } function ToggleChannel(String channelName) { local int channelIndex; channelIndex = GetChannelID(channelName); if(channelIndex > -1) channels[channelIndex].bDisabled = ! channels[channelIndex].bDisabled; } function ToggleCategoryFrequency() { bIgnoreCategoryFrequency = ! bIgnoreCategoryFrequency; } // // Disable a channel // function DisableChannel(String channelName) { local int channelIndex; channelIndex = GetChannelID(channelName); if(ChannelIndex > -1) channels[ChannelIndex].bDisabled = true; } // // Enable a channel // function EnableChannel(String channelName) { local int channelIndex; channelIndex = GetChannelID(channelName); if(ChannelIndex > -1) channels[ChannelIndex].bDisabled = false; } defaultproperties { SpeechPitch=1.0 SpeechInnerRadius=4096 SpeechOuterRadius=8192 AnnouncerType="Announcer1" VolumePriorityDisabledLagTime=1.0 SecondsPerWord=0.7 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |