Difference between revisions of "Setting Up Weapon Audio"

From Killing Floor 2 Wiki
Jump to: navigation, search
Line 1: Line 1:
 
RS2 Weapons are setup to provide 2d 1st person audio and blended near/ distant 3d audio for 3p. The 1st person audio also utilizes the KF2 echo system.
 
RS2 Weapons are setup to provide 2d 1st person audio and blended near/ distant 3d audio for 3p. The 1st person audio also utilizes the KF2 echo system.
  
=== '''2d First Person Weapon Audio Single Shot (no fully auto)''' ===
+
==='''2d First Person Weapon Audio Single Shot (no fully auto)'''===
  
* Stereo single shot audio should be set up as 2d.
+
*Stereo single shot audio should be set up as 2d.
* Reverb is applied within Wwise. Shot should be dry with a mild tail.
+
*Reverb is applied within Wwise. Shot should be dry with a mild tail.
* 4-5 variations are a good standard. Wwise provides the ability for random pitch shifting.
+
*4-5 variations are a good standard. Wwise provides the ability for random pitch shifting.
* The same audio is used within Wwise with different effects applied for each environment setting.
+
*The same audio is used within Wwise with different effects applied for each environment setting.[[File:WwiseEnvironmentalSoundsForWeapons2p.png|center|thumb]]
  
 
The reverb setting is applied to the effects tab for each environment. Use the existing sharesets.
 
The reverb setting is applied to the effects tab for each environment. Use the existing sharesets.
  
* Set these to “Render”, if not you will have CPU performance issues
+
*Set these to “Render”, if not you will have CPU performance issues[[File:ReverbSharesetsSetting.png|center|thumb]]
  
 
Use the “Environment_Reverb” state groups for the weapon environment setups.
 
Use the “Environment_Reverb” state groups for the weapon environment setups.
 
+
[[File:EnvironmentReverbStateGroupSetting.png|center|thumb]]
 
In the properties of the AKEvent in UE3 you need to set the “Use Environment Reverb Switch Group” to true. This picks the proper state when you fire.
 
In the properties of the AKEvent in UE3 you need to set the “Use Environment Reverb Switch Group” to true. This picks the proper state when you fire.
  
=== '''3p Shoot Sounds Single Shot (No Full Auto)''' ===
+
==='''3p Shoot Sounds Single Shot (No Full Auto)'''===
  
* Set up a blend container
+
*Set up a blend container
* Set up a random container for the distant shots
+
*Set up a random container for the distant shots
* Set up a switch container that uses the same  “Environment_Reverb” state group settings for the near shots ( including the reverb effects)
+
*Set up a switch container that uses the same  “Environment_Reverb” state group settings for the near shots ( including the reverb effects)
* Use the same shots as you did for 1p for the 3p near shots
+
*Use the same shots as you did for 1p for the 3p near shots[[File:WwiseEnvironemntalSoundsForWeapons3p.png|center|thumb]]
  
 
Set the attenuation to use “WEP_Rifle_3P” for 3P weapons sounds. This is good starting point. You can switch to custom and adjust if needed.
 
Set the attenuation to use “WEP_Rifle_3P” for 3P weapons sounds. This is good starting point. You can switch to custom and adjust if needed.
 +
[[File:AttenuationEditorWeaponAudio.png|center|thumb]]
  
* Set up the Blend Container to use the near and distant shot sounds
+
*Set up the Blend Container to use the near and distant shot sounds
* 417 and 1000 seem to work well overall for the blend (adjust as needed)  
+
*417 and 1000 seem to work well overall for the blend (adjust as needed)[[File:BlendTrackEditorWeaponAudio.png|center|thumb]]
  
=== '''Full Auto Shoot Sounds''' ===  
+
==='''Full Auto Shoot Sounds'''===  
  
* These consist of a looped fire sound, a tail for the loop, and a single shot (if it is multi fire mode)
+
*These consist of a looped fire sound, a tail for the loop, and a single shot (if it is multi fire mode)
* Echo should only be applied to the tail (and single shot) for 1P sounds. Not the looping sound.
+
*Echo should only be applied to the tail (and single shot) for 1P sounds. Not the looping sound.
* Care should be taken when creating the looping distant sound so that it properly blends with the near sound. These will fire at the same time and need to crossfade in a pleasant manner.
+
*Care should be taken when creating the looping distant sound so that it properly blends with the near sound. These will fire at the same time and need to crossfade in a pleasant manner.
* Make sure to set these up in script as high rate of fire weapons. That switches them over to the looping system.
+
*Make sure to set these up in script as high rate of fire weapons. That switches them over to the looping system.[[File:WwiseEnvironmentalSoundsForWeaponsLoop.png|center|thumb]]
  
=== '''Echo System''' ===
+
==='''Echo System'''===
 
We are using the KF2 echo system. This does a ray trace in 4 directions from the player when you shoot. It finds the nearest 4 reverb volume edges in each direction and plays an echo from there (with speed of sound applied in the engine).
 
We are using the KF2 echo system. This does a ray trace in 4 directions from the player when you shoot. It finds the nearest 4 reverb volume edges in each direction and plays an echo from there (with speed of sound applied in the engine).
  
 
Wwise Setup for Echo
 
Wwise Setup for Echo
  
* Import echo sounds and place them in a switch container and child random container under the 1P Actor-Mixer (the switch  
+
*Import echo sounds and place them in a switch container and child random container under the 1P Actor-Mixer (the switch
* I set up both indoor and outdoor (indoor is a dummy with volume set to 0, I don’t use echoes indoors, it gets messy)
+
*I set up both indoor and outdoor (indoor is a dummy with volume set to 0, I don’t use echoes indoors, it gets messy)
  
 
In the AKEvent in UE3 set the “Advanced” settings. Set the “Use Advanced Sound Functionality” box to true. Set the echo sound slots to use the echo sounds you have imported for the gun shot.
 
In the AKEvent in UE3 set the “Advanced” settings. Set the “Use Advanced Sound Functionality” box to true. Set the echo sound slots to use the echo sounds you have imported for the gun shot.
  
* For any sound (1p, 3p, echoes) that use the Environment Switch groups set up in wwise, make sure you check the Use Environment Reverb Switch Group in the Unreal Event properties. See picture below.
+
*For any sound (1p, 3p, echoes) that use the Environment Switch groups set up in wwise, make sure you check the Use Environment Reverb Switch Group in the Unreal Event properties. See picture below.
  
=== '''Handling Sounds (KF2 only - RS2 does not play 3rd person handling sounds due to the high player numbers)''' ===
+
==='''Handling Sounds (KF2 only - RS2 does not play 3rd person handling sounds due to the high player numbers)'''===
 
I create a single set of reload and handling sounds that play in 2D for the owner of the weapon and 3D for others. These sounds are contained in the animations and cannot call distinct sounds. This solves the issue of strange panning when in first person.
 
I create a single set of reload and handling sounds that play in 2D for the owner of the weapon and 3D for others. These sounds are contained in the animations and cannot call distinct sounds. This solves the issue of strange panning when in first person.
  
 
Use an RTPC to define the position type. Code sets this value based on whether you are the owner of the weapon or not. It is only updated if you change camera modes.
 
Use an RTPC to define the position type. Code sets this value based on whether you are the owner of the weapon or not. It is only updated if you change camera modes.
 +
[[File:RTPCSetting.png|center|thumb]]

Revision as of 16:26, 3 January 2019

RS2 Weapons are setup to provide 2d 1st person audio and blended near/ distant 3d audio for 3p. The 1st person audio also utilizes the KF2 echo system.

2d First Person Weapon Audio Single Shot (no fully auto)

  • Stereo single shot audio should be set up as 2d.
  • Reverb is applied within Wwise. Shot should be dry with a mild tail.
  • 4-5 variations are a good standard. Wwise provides the ability for random pitch shifting.
  • The same audio is used within Wwise with different effects applied for each environment setting.
    WwiseEnvironmentalSoundsForWeapons2p.png

The reverb setting is applied to the effects tab for each environment. Use the existing sharesets.

  • Set these to “Render”, if not you will have CPU performance issues
    ReverbSharesetsSetting.png

Use the “Environment_Reverb” state groups for the weapon environment setups.

EnvironmentReverbStateGroupSetting.png

In the properties of the AKEvent in UE3 you need to set the “Use Environment Reverb Switch Group” to true. This picks the proper state when you fire.

3p Shoot Sounds Single Shot (No Full Auto)

  • Set up a blend container
  • Set up a random container for the distant shots
  • Set up a switch container that uses the same  “Environment_Reverb” state group settings for the near shots ( including the reverb effects)
  • Use the same shots as you did for 1p for the 3p near shots
    WwiseEnvironemntalSoundsForWeapons3p.png

Set the attenuation to use “WEP_Rifle_3P” for 3P weapons sounds. This is good starting point. You can switch to custom and adjust if needed.

AttenuationEditorWeaponAudio.png
  • Set up the Blend Container to use the near and distant shot sounds
  • 417 and 1000 seem to work well overall for the blend (adjust as needed)
    BlendTrackEditorWeaponAudio.png

Full Auto Shoot Sounds

  • These consist of a looped fire sound, a tail for the loop, and a single shot (if it is multi fire mode)
  • Echo should only be applied to the tail (and single shot) for 1P sounds. Not the looping sound.
  • Care should be taken when creating the looping distant sound so that it properly blends with the near sound. These will fire at the same time and need to crossfade in a pleasant manner.
  • Make sure to set these up in script as high rate of fire weapons. That switches them over to the looping system.
    WwiseEnvironmentalSoundsForWeaponsLoop.png

Echo System

We are using the KF2 echo system. This does a ray trace in 4 directions from the player when you shoot. It finds the nearest 4 reverb volume edges in each direction and plays an echo from there (with speed of sound applied in the engine).

Wwise Setup for Echo

  • Import echo sounds and place them in a switch container and child random container under the 1P Actor-Mixer (the switch
  • I set up both indoor and outdoor (indoor is a dummy with volume set to 0, I don’t use echoes indoors, it gets messy)

In the AKEvent in UE3 set the “Advanced” settings. Set the “Use Advanced Sound Functionality” box to true. Set the echo sound slots to use the echo sounds you have imported for the gun shot.

  • For any sound (1p, 3p, echoes) that use the Environment Switch groups set up in wwise, make sure you check the Use Environment Reverb Switch Group in the Unreal Event properties. See picture below.

Handling Sounds (KF2 only - RS2 does not play 3rd person handling sounds due to the high player numbers)

I create a single set of reload and handling sounds that play in 2D for the owner of the weapon and 3D for others. These sounds are contained in the animations and cannot call distinct sounds. This solves the issue of strange panning when in first person.

Use an RTPC to define the position type. Code sets this value based on whether you are the owner of the weapon or not. It is only updated if you change camera modes.

RTPCSetting.png