#Sniper elite v2 mods how to#
And one still needs to decompress the archive as detailed above.The arma series of games could provide ideas on how to enhance the gameplay from a multiplayer perspective while ghost recon wild lands is an example of things players could do in solo and campaign gameplay. This would make zeroing out the sound data unnecessary. It’s been said around the webs that merely changing the name of the sound files is enough to disable them.
#Sniper elite v2 mods mod#
Luckily, this mod doesn’t lock us out of multiplayer either. No more listening to that droning heartbeat sound while you’re sniping. We just have to go back into the hex editor and change the four more sounds that follow the one we’ve already done.Īnd that’s it. Apparently there is more than one sound file that makes up the heartbeat sound effect, but we’re on the right track since one of them is now silent. You’ll notice that the heartbeat sound still plays but it pauses every four beats. Now with Sniper Elite loaded up, we can start a new game and then look through the scope of a rifle to test our mod. Basically we’re hoping the game is smart enough to load both compressed and decompressed data. You may also be wondering why we haven’t tried to recompress the modded file with zlib and this would be an astute observation. Don’t forget to rename this modded file to the original filename of GmSnd.asr and backup the original file itself. With that part done, we can now save and test our modded archive file.
![sniper elite v2 mods sniper elite v2 mods](https://staticdelivery.nexusmods.com/mods/3693/images/thumbnails/1/1-1615244455-1982597432.jpeg)
To do this, you’ll need to be using a hex editor that has a fill with zeros feature. Using this knowledge, we can just change all the samples to zero to make the whole sound file only silence. So two bytes (16-bits) of zeros in the waveform data means silence for one sample in the 44100 samples per second of audio. The thing about WAV files is that they’re uncompressed (or lightly compressed in the case of ADPCM). Immediately following that, you just pace out the 45920 bytes of data, which should end just before a “smpl” header, and you have the entirety of the sound data selected. If you decode the bytes out as I did in the screenshot below, you eventually get to a string of text that reads simply “data” and is followed by a 4-byte (32-bit) integer that is the size of the waveform data-in this case, 45920. Somewhere in this vicinity of the file is the start of the heartbeat sound’s waveform data. It has the path of a wav file heartbeat01.wav followed by a RIFF header. One match in particular is very interesting. Taking this new file back into a hex editor shows a lot of readable strings and many matches for “heartbeat”. This gives us a new file of larger size in the same directory. To do this, fire up a command prompt or batch file and run the following.
![sniper elite v2 mods sniper elite v2 mods](https://i.ytimg.com/vi/0KV9Nk1P5F8/maxresdefault.jpg)
This tool has several operations but the one we’re interested in uses the -a switch to decompress any found data. It’s a command-line program, so extracting it into the Sniper Elite “Sounds” directory is the best way to work with it. Googling around, I quickly found a nifty tool called offzip that can do exactly this. In order to do anything with this file, it first needs to be decompressed. The “Zlb” part is curious enough and could mean that the file is actually compressed using Zlib. Opening the file in a hex editor shows no readable strings whatsoever except for the header of “AsuraZlb”. StreamingSounds.asr is probably music and GmSnd.en is probably speech, so that just leaves GmSnd.asr as the likely archive for the heartbeat sounds. So one must turn to modding, and that’s what I did.Ī quick perusal of the installation directory for the game reveals a “Sounds” directory with three files in it, clearly archives given their size. And there’s naturally no way to turn the sound off through options or config tweaking. It really serves no gameplay purpose considering the sound just plays constantly. The main problem I had with the game was the annoying-perhaps even disturbing-heartbeat sounds that play whenever you’re looking through the scope.