CGPlayer_C::PlayVocal
function · objectlayer · primitive
- Address
0x62f880· 180 bytes, up to0x62f933- Meaning
- Plays a player's vocal two yards up after the player's chances (slot 34)
- Confidence
- verified, proof one
- Finding
- objectlayer/sounds#vocal-sounds
- Test
objectlayer::diff_sound_z_bias
Finding: Vocal sounds in objectlayer: unit sounds
Slot 34, 0x623490(kind, force), plays a vocal of the unit's sound data at its position. Unless
forced a kind passes a chance: 71 in 101 for kind 0, 61 for 2, 41 for 5, always otherwise; kind 5
plays at most once every 10 seconds, forced or not. Kinds 0 to 3 and 8 stay silent while 0x4591f0
holds. The player's slot 34 uses 36, 31 and 41 in 101 and raises the sound two yards.
| kind | row | caller |
|---|---|---|
| 0, 1 | +0x04, +0x08 | a swing's exertion, critical |
| 2, 3, 9 | +0x0c, +0x10, +0x14 | a hit's pain, critical, crushing |
| 4, 5, 7, 8 | +0x1c, +0x20, +0x2c, +0x34 | $FDX, 5; an alert reaction, 8 |
| 10, 11, 12 | +0x30, +0x64, +0x68 |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- PlaySoundAtPosition sound
- ClntObjMgrGetActivePlayer objectlayer
- CGUnit_C::GetSoundData objectlayer
- GetVocalSound objectlayer
- AlertSoundAllowed objectlayer
- GetVocalSoundClass objectlayer
- PlayerVocalChancePasses objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.