42enum SCR_ECommunicationSoundEventPriority
63 private static const int SUBTITLES_MAX_DISTANCE = 20;
64 static const int DEFAULT_EVENT_PRIORITY_DELAY = 100;
65 private static const string DAMAGE_TYPE_SIGNAL_NAME =
"DamageType";
66 private static const string HIT_SCREAM_INTENSITY_SIGNAL_NAME =
"HitScreamIntensity";
85 int size = metadata.Count();
96 for (
int i =
size - 1; i >= 0; i--)
113 for (
int i = 0; i < textIdx; i++)
117 param[paramIndex] = metadata[i];
124 string localizedText =
WidgetManager.Translate(metadata[textIdx], param[0], param[1], param[2], param[3], param[4], param[5], param[6], param[7], param[8]);
126 SCR_ChatComponent.RadioProtocolMessage(localizedText);
164 SCR_ECommunicationSoundEventPriority priority = SCR_ECommunicationSoundEventPriority.SOUND_HIT +
m_iHitScreamIntensity;
165 if (priority >= SCR_ECommunicationSoundEventPriority.SOUND_DEATH)
166 priority = SCR_ECommunicationSoundEventPriority.SOUND_DEATH - 1;
190 if (delayMS < remainingTime)
196 if (remainingTime <= 0)
257 if (callsignBaseComponent)
289 SetScriptedMethodsCall(
true);
297 if (callsignBaseComponent)
ArmaReforgerScripted GetGame()
SCR_AIInfoComponentClass SNIPER
ScriptInvokerBase< OnSoundEventStartedDelegate > OnSoundEventStartedInvoker
SCR_CommunicationSoundComponentClass GUNNER
SCR_CommunicationSoundComponentClass RECON
func OnSoundEventFinishedDelegate
SCR_CommunicationSoundComponentClass COMM_TRUCK
SCR_CommunicationSoundComponentClass DRIVER
SCR_CommunicationSoundComponentClass APC
SCR_CommunicationSoundComponentClass FUEL_TRUCK
SCR_CommunicationSoundComponentClass SOUND_BREATH
SCR_CommunicationSoundComponentClass AT_SOLDIER
SCR_CommunicationSoundComponentClass MACHINE_GUNNER
SCR_CommunicationSoundComponentClass TRUCK
SCR_CommunicationSoundComponentClass CAR
SCR_CommunicationSoundComponentClass OFFICER
func OnSoundEventStartedDelegate
SCR_CommunicationSoundComponentClass SOUND_KNOCKOUT
SCR_CommunicationSoundComponentClass SOLDIER
SCR_CommunicationSoundComponentClass SOUND_NONE
ScriptInvokerBase< OnSoundEventFinishedDelegate > OnSoundEventFinishedInvoker
SCR_CommunicationSoundComponentClass SOUND_HIT
SCR_CommunicationSoundComponentClass MORTAR
SCR_CommunicationSoundComponentClass SUPPLY_TRUCK
SCR_CommunicationSoundComponentClass OPERATOR
SCR_CommunicationSoundComponentClass MAN
SCR_CommunicationSoundComponentClass SOUND_PAIN_RELIEVE
SCR_CommunicationSoundComponentClass COPILOT
SCR_CommunicationSoundComponentClass PILOT
SCR_CommunicationSoundComponentClass COMMANDER
SCR_CommunicationSoundComponentClass SOUND_DEATH
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
proto external Managed FindComponent(typename typeName)
Component of assigning and storing squad names.
ScriptInvokerBase< SCR_CallsignBaseComponent_OnCallsignChanged > GetOnCallsignChanged()
void ShowSubtitles(array< string > metadata)
EDamageType m_eEDamageType
override void OnSoundEventStarted(string eventName, AudioHandle handle, int priority)
int m_iHitScreamIntensity
override void OnSoundEventFinished(string eventName, AudioHandle handle, int priority, bool terminated)
ref OnSoundEventStartedInvoker m_OnSoundEventStarted
string m_sDelayedSoundEvent
SCR_ECommunicationSoundEventPriority m_eDelayedSoundEventPriority
int m_iDamageTypeSignalIdx
void ~SCR_CommunicationSoundComponent()
void SetCallsignSignals(int company, int platoon, int squad, int character, int characterRole)
int m_iHitScreamIntensitySignalIdx
static bool m_bShowSubtitles
OnSoundEventFinishedInvoker GetOnSoundEventFinished()
void SCR_CommunicationSoundComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
void PlayDelayedSoundEventPriority()
ref OnSoundEventFinishedInvoker m_OnSoundEventFinished
override void OnPostInit(IEntity owner)
void SoundEventHit(bool critical, EDamageType damageType)
OnSoundEventStartedInvoker GetOnSoundEventStarted()
static void SetSubtitiles()
SignalsManagerComponent m_SignalsManagerComponent
void SoundEventDeath(bool silent)
void DelayedSoundEventPriority(string eventName, SCR_ECommunicationSoundEventPriority priority, int delayMS, EDamageType damageType=EDamageType.TRUE)
ScriptCallQueue Class provide "lazy" calls - when we don't want to execute function immediately but l...
IEntity GetOwner()
Owner entity of the fuel tank.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
proto native bool IsEmpty()