|
Post by alexmars on May 16, 2019 8:10:37 GMT
Hello fellow shooter template users, I have few problems and asking to help you. 1) states I have problem to find a way to switch audio state while I am shooting and I'm in Scope mode. I am implementing sound with Wwise and the code to switch on the State is:
AkSoundEngine.SetState ("Scope_mode", "Scope_mode_on");
Can you please help me to find where to put Scope mode on and off states?
2) shot tail sound
While in burst mode (shooting assault riffle) I trigger shot sounds every shot while pressing shot button. Is there a way to trigger shot tail sound when I stop shooting (mouse button up) right after last shot sound?
Looking forward for you help! Thanks!
|
|
|
Post by Invector on May 17, 2019 15:31:31 GMT
1- a good way to know if it's on scope view or not is using the 'isUsingScopeView' bool from the vShooterMeleeInput
2- I'm not sure what a shot tail is... if it's something like a bullet sound, you sound attach a soundclip directly to the bullet object
|
|
|
Post by alexmars on May 23, 2019 14:52:29 GMT
2- I'm not sure what a shot tail is... if it's something like a bullet sound, you sound attach a soundclip directly to the bullet object Hi Invector. When you shoot a gun you can hear the attack sound (bang sound) and the reverb or reflections from the shot sound. So this reflections are the tail of the shot sound. When I shoot a Riffle in the game I trigger sound each time rifle shoots a bullet, and sometimes it has a delay between shots. And the burst sounds quite unstable. Instead of triggering sounds each time I found that better to start loop event when you press a button and stop it when you stop shooting. This way it sounds way more natural. My question is how to trigger loop while burst and stop loop sound when you stop shooting?
|
|
|
Post by Invector on May 24, 2019 0:43:38 GMT
Hmm... You could check the option Loop of the AudioSource while the input is being pressed (and if the weapon is an automatic weapon) and uncheck when you release the input
|
|
|
Post by komposite on Sept 23, 2020 17:02:23 GMT
Don't know why I haven't seen this post before fellow Wwise user
Indeed, has Invector said, it's a good way to get the bool isInScopeView, it will allow you to enable a state easily with Wwise.
Regarding reverb tail, I advise you to set this directly into Wwise, and, on the reverb sound, set a voice limitation of 1 (or more, it's really at your discretion), and also set "discard oldest instance" for the voice management.
This way, you'll be able able to switch with ease the kind of reverb sound you're using with a simple trigger activating a switch.
If you got more question regarding this, feel free to ask
|
|