🧬Editing audio metadata
Understanding audio metadata files is not for the faint of heart. Even though chat_weaponaudio
gives you all the original XML files, most do not understand how it works. And this page will not go in depth either.
Adding more audio items
Find suitable source material
First we need proper audio files to add to the weapon_audio_bank.awc
. I recommend using native-audio-tool from Joe to convert MP3 files into proper WAV files. Then add those to my AWC file.
Get a rel template
Either copy paste any existing audio item from me or use CodeWalker's audio tool and search for audio_item_weaponname
and copy paste whatever weapon you wanna base the sound off from.
This includes the complete hierarchy needed for said audio item! From every single SimpleSound
to EnvelopeSound
.
Finish it up
Now edit everything needed to properly construct the WeaponAudioItem
type inside dat151.rel
. After you have somehow successfully edited both the dat54
and dat151
files. You can simply use whatever you have called your audio item in any weapons.meta
. As an example for audio_item_glock17
.
<Item type="WeaponAudioItem" ntOffset="0">
<Name>audio_item_glock17</Name>
<FallBackWeapon>w_ptl_glock17_npc</FallBackWeapon>
<Weapons>
<Item>
<Category>player</Category>
<Weapon>w_ptl_glock17</Weapon>
</Item>
<Item>
<Category>player_backup</Category>
<Weapon>w_ptl_glock17</Weapon>
</Item>
</Weapons>
</Item>
But again, this whole process takes massive amounts of time and will more than likely be too difficult for most. Hence why I won't give any support for this neither. If you want more weapon sounds, please make a suggestion in the support discord and I will simply update the existing package to include it.
Last updated