Skip to content

AudioGlobalEventManager

16.7

Class Documentation

Edit documentation

The client's global audio event manager: the object that routes game events, such as a champion kill or a pentakill, to announcer lines and music cues.

The object is the manager. When the client loads a bin that contains one, the object registers itself as the active manager, and it unregisters when it is destroyed. The client updates the active manager once per frame. A client that loads no such object has no manager, and everything described here is off.

The manager works with three event tables. Each table has one slot per game event, and each slot links the audio event for it:

Table Held by Slot links
AnnouncerVoEvents the manager AnnouncerVoEvent
ChampionMusicEvents the active MusicProfile ChampionMusicEvent
ThemeMusicEvents the active MusicProfile ThemeMusicEvent

The music tables are not part of the manager. A game mode supplies them through GameModeMapData.MusicProfile, and the manager keeps one active profile at a time. When a profile becomes active, the manager subscribes to the game events for the ChampionKill, ChampionExecuted, ChampionShutdown, MultiKill and PentaKill slots of all three tables.

When a subscribed game event arrives, the manager triggers the linked audio event of each table. The audio event passes the trigger to its event type, which picks an event name for the local player. The client stops there: no code queues the name or posts it to the audio engine, so no sound plays. An event type of the Cac kind picks no name: it runs a global contextual situation from GlobalContextualActionData, and its only audible effect is a mix state request. AudioContextEventType describes both paths.

Properties

0x766af9fc

Map<U32, AudioGlobalEventTargetCharacterRecords> = {}
16.20
Edit documentation

Units whose death triggers no audio event, per game event. The key is the client's numeric id of a game event. The value is an AudioGlobalEventTargetCharacterRecords.

When a champion kill or a champion execute arrives, the manager looks up the id of the event in this map. If the entry lists the character record of the killed unit, the manager triggers no audio event for it.

AnnouncerVoEvents

Embed<AnnouncerVoEvents>
Default value
{
  "RiftHeraldSteal": "0x0",
  "BaronKill": "0x0",
  "VoidGatorSteal": "0x0",
  "DragonKill": "0x0",
  "Aced": "0x0",
  "ChampionExecuted": "0x0",
  "BaronSteal": "0x0",
  "TowerKill": "0x0",
  "MultiKill": "0x0",
  "BountyStarting": "0x0",
  "0x6a4fa98c": "0x0",
  "MinionsSpawn": "0x0",
  "GrubsStolen": "0x0",
  "ElderSpawn": "0x0",
  "PentaKill": "0x0",
  "ChampionKill": "0x0",
  "VoidGatorKill": "0x0",
  "ElderDragonSteal": "0x0",
  "GameEnd": "0x0",
  "InhibitorKill": "0x0",
  "ElderDragonSolo": "0x0",
  "RiftHeraldKill": "0x0",
  "PlayerReconnect": "0x0",
  "BaronSolo": "0x0",
  "InhibitorRespawnSoon": "0x0",
  "BaronSpawn": "0x0",
  "GrubsKill": "0x0",
  "Respawn": "0x0",
  "DragonSteal": "0x0",
  "ElderDragonKill": "0x0",
  "GrubsSolo": "0x0",
  "GameStart": "0x0",
  "DragonSolo": "0x0",
  "0xba9bae76": [],
  "KillingSpree": "0x0",
  "0xc0a99193": "0x0",
  "PlayerDisconnect": "0x0",
  "0xd0cc4924": "0x0",
  "BountyEnded": "0x0",
  "RiftHeraldSpawn": "0x0",
  "FirstBlood": "0x0",
  "InhibitorRespawn": "0x0",
  "ChampionShutdown": "0x0",
  "RiftHeraldSolo": "0x0"
}
Edit documentation

The announcer event table: one AnnouncerVoEvent link per game event.

ChampionMusicEvents

Embed<ChampionMusicEvents>
Removed in 16.18
Default value
{
  "RiftHeraldSteal": "0x0",
  "BaronKill": "0x0",
  "DragonKill": "0x0",
  "Aced": "0x0",
  "ChampionExecuted": "0x0",
  "BaronSteal": "0x0",
  "TowerKill": "0x0",
  "MultiKill": "0x0",
  "BountyStarting": "0x0",
  "0x6a4fa98c": "0x0",
  "MinionsSpawn": "0x0",
  "GrubsStolen": "0x0",
  "ElderSpawn": "0x0",
  "PentaKill": "0x0",
  "ChampionKill": "0x0",
  "ElderDragonSteal": "0x0",
  "GameEnd": "0x0",
  "InhibitorKill": "0x0",
  "ElderDragonSolo": "0x0",
  "RiftHeraldKill": "0x0",
  "PlayerReconnect": "0x0",
  "BaronSolo": "0x0",
  "InhibitorRespawnSoon": "0x0",
  "BaronSpawn": "0x0",
  "GrubsKill": "0x0",
  "Respawn": "0x0",
  "DragonSteal": "0x0",
  "ElderDragonKill": "0x0",
  "GrubsSolo": "0x0",
  "GameStart": "0x0",
  "DragonSolo": "0x0",
  "0xba9bae76": [],
  "KillingSpree": "0x0",
  "PlayerDisconnect": "0x0",
  "0xd0cc4924": "0x0",
  "BountyEnded": "0x0",
  "RiftHeraldSpawn": "0x0",
  "FirstBlood": "0x0",
  "InhibitorRespawn": "0x0",
  "ChampionShutdown": "0x0",
  "RiftHeraldSolo": "0x0"
}
Edit documentation

The champion music event table. Removed from current builds: it is a property of MusicProfile.

GlobalContextualActionData

List2<Hash> = []
16.9
Type history (3 revisions)
Edit documentation

Contextual action tables that apply to every unit. Each item is the path hash of a GlobalContextualActionData object.

When the client checks whether a situation is defined for a unit, it searches the unit's own ContextualActionData objects first. If none of them defines the situation, it searches each object of this list in order. When a situation fires, the client runs the unit's own objects first and then every object of this list.

When an audio event type of the Cac kind triggers, the client runs the situation keyed by the event's NameHash in every object of this list that defines it.

MusicProfiles

List2<MusicProfile> = []
Removed in 16.20 16.18
Edit documentation

The music profiles of the manager. Removed from current builds: a game mode names its profile through GameModeMapData.MusicProfile.

objectPath

Hash = "0x0"
16.16
Add documentation

No documentation available yet. Click "Add documentation" to contribute!