Contagion

Contagion

Not enough ratings
WWise :: Custom weapon sounds
By Wuffesan
This guide will explain in detail how to apply your own custom weapon sounds with WWise.
   
Award
Favorite
Favorited
Unfavorite
Getting Started
Installing WWise
Make sure you have installed wwise 2015 from contagion_sdk. Once installed, or if you already have it installed. You are good to go.

Understanding of WWise
For more information of how to use WWise, read this guide.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=311867564&searchtext=wwise


Contagion example project
Make sure to open up Contagion.wproj from contagion_sdk/Wwise_Contagion_Example. This project file contains everything you need (audio busses, gamestates etc.), and some example sounds.
Adding it In-Game
Once you have created your audio events, with the appropriate audio bus, you are then ready to add it into the game!

Auto Mounting Audiobanks
simply create a folder called auto, within soundbanks folder. Once you have created it, you then need to create a .txt file. Here is an example of how it can look like:
SoundbankList { "auto" "zps_glock18c.bnk" }

As you can see, I have created an audio bank called zps_glock18c. And since I did not write "auto/zps_glock18c.bnk", it means I have to place it within soundbanks folder.

That's all you need to do for mounting custom sounds automatically!

Audio Folder
Now it's time for the last portion. The custom audio manifest file!

For creating custom audio manifest files (which are automounted, if found), you simply need to create a folder called audio. And once that is done, you need to create a folder called weapons, within that folder.


Custom Audio Manifest
Now that's been created, it's time to create our file, "weapon_sig.caudio". This is how it should look like:
"Audio" { // Let's replace our wwise audio events with these Fire = "Weapon_Glock18c_Fire" Fire_Silencer = "Weapon_Glock18c_Fire_Silencer" }

Here is the list of available strings for our custom audio:
Fire_Silencer FireStart_Silencer FireStop_Silencer Fire FireStart FireStop FireEmpty Draw Holster Reload ReloadEmpty MeleeHit MeleeHitWorld MeleeMiss Unload
Adding it In-Game (Loopable firearm sounds)
Loopable sounds is a bit more complex, and sometimes confusing. Do note that its the same as single firearm sound (for all the scripts etc), but we will be also be using the following FireStart and FireStop events.


Editing the Audio
The audio has to be cut into 3 pieces. the start, the loopable portion, and the end portion. The end is usually the "tail" of the sound, while the start is similar to the loop. This is the tricky part, as you basically have to experiment until it sounds correctly.

Here is the *ACR cut up as loopable, as an example: Download ACR Loopable Sounds[contagion-game.com]
*The ACR is not a full auto rifle in-game, and is a WIP weapon. Spawnable trough cheat commands.


Playing the Audio
When we start firing, we first play FireStart. Fire event is used for the loopable portion, so make sure the loopable sound doesn't cut out prematurely. You can set the loop start & end via WWise, follow the images below.


Make sure to click on your copied ak47 (or ar15) fire loop


Double click on the audio source, to open up the Source Editor


Here you will be able to see 2 draggable bars to the left and right. One should be green, with the name "Loop Start" while the other one should be red with "Loop End".

As you can see on this example, the "Loop End" portion is at the very back, which is not recommended. This will cause some weird audio bugs, as it will play the whole sound (from start to end) until it replays the sound once again. So make sure it's setup correctly.
Final Results
2 Comments
Umncle_Imzya UwU 20 Sep, 2023 @ 9:57pm 
Dude, you are really life-savior! I am not interested in the modding for the Contagion, but because of your guide I've found a place where I can get a Wwise 2015! Now I can mod some old games! Thank you very much! :steamthumbsup:
That_1_Guy 16 Nov, 2022 @ 8:33pm 
I tried to install the version of wwise in the files as the location shown in the screenshot, but everything is greyed out for installation. I also tried to make an account and login to see if it'll let me install it but it gave me an error:

Could not login: The request was aborted: Could not create SSL/TLS secure channel

Any idea on what any of this means?