Killsounds and Deathsounds
Last updated
Last updated
Killsounds and Deathsounds use the file located in:
englishclient_mp_common.bsp.pak000_dir/scripts/vscripts/client/cl_obituary.gnut
Follow this guide if you don't know how to unpack the vpk.
Scroll through cl_obituary.gnut until you find the first appearance of:
string attackerString
string weaponString
string victimString
This should be around line 253.
Right under these strings, add the following code for killsounds:
Replace [number] with however many killsounds you plan on using.
For deathsounds, add this code:
Replace [number] with however many deathsounds you plan on using.
With the way we wrote these killsound and deathsound if-statements, killsounds will play specifically when you kill an enemy player OR when you kill a Frontier Defense/Bounty Hunt Titan. Deathsounds will play whenever you die, but have a tendency to play 2 random sounds instead of 1 if you die while inside your titan.
Assuming you added both killsounds and deathsounds, the final product should look something like this:
Save the file, and your killsounds are now properly added into your vpk.
Follow this guide if you don't know how to repack your vpk.
Place the killsounds/deathsounds you'll be using in the Titanfall2>r2>media folder. Remember to start from 0 in naming.
Follow this guide if you don't know how to convert your files to .bik.
To call the killsounds in the autoexec, write them out like so:
where [number] is the current number of each specific killsound. Having multiple, you'll need to write out this line multiple times, which looks like:
Of course, deathsounds are written out the same way and look like this:
Follow this guide for more info about the autoexec and how to properly set it up.
After all of this is done, you should now have your killsounds and/or deathsounds properly working.
If you don't enjoy the background noise of the original killsound behind your brand new one(s), you can simply remove it by commenting out code.
Go to scripts/vscripts/client/cl_player.gnut
.
Scroll down to line 1414, around halfway through the file. You should see this code:
We're going to comment out the code for the while(true)
statement by using /*
and */
.
The code should now look like this: