Hi,
I just made some step sounds (run, walk) and made a sound shader but I dont know how to integrate it in the Game.
Here Are the files:
Thanks
Step sounds how to intigrate in humanplayer.cpp
Re: Step sounds how to intigrate in humanplayer.cpp
Hi BigJJ,
Well, I looked at your files, they both sound good and work fine. You can try the following in the console to verify:
There is no need to load a level for this, just press F1 at the main menu and enter these commands.
If you repeat the MusicPlay() command (use arrow-up key...), the sound plays again, just as intended.
That test at least verifies that the sound shader is correct and properly read, and the the audio system is generally fine as well.
If it doesn't work in the game, it's probably a problem with the calling code, but that's hard to tell without any code to look at.![Wink ;)](./images/smilies/icon_wink.gif)
Ah, that's what I call a sound idea!bigjj13 wrote:I just made some step sounds (run, walk) and made a sound shader
![Walkman :wman:](./images/smilies/walkman.gif)
Well, I looked at your files, they both sound good and work fine. You can try the following in the console to verify:
Code: Select all
MusicStop() -- Stops the currently playing music.
MusicLoad("Ambient/Footstepswalk") -- Loads your sound.
MusicPlay() -- Plays the previously loaded sound.
If you repeat the MusicPlay() command (use arrow-up key...), the sound plays again, just as intended.
That test at least verifies that the sound shader is correct and properly read, and the the audio system is generally fine as well.
If it doesn't work in the game, it's probably a problem with the calling code, but that's hard to tell without any code to look at.
![Wink ;)](./images/smilies/icon_wink.gif)
Best regards,
Carsten
Carsten
Re: Step sounds how to intigrate in humanplayer.cpp
Hi,
the sound works fine, but I dont know how your SoundSystem works.
I tried several things but there was allways a compiling error.
Sincerely
the sound works fine, but I dont know how your SoundSystem works.
I tried several things but there was allways a compiling error.
Sincerely
Re: Step sounds how to intigrate in humanplayer.cpp
Well, which errors do you get?bigjj13 wrote:I tried several things but there was allways a compiling error.
What code is rising them?
If you want us to help you, you must provide more details.
![Thumb Up :up:](./images/smilies/thumbup.gif)
Also, did you look at other places in the code that successfully plays sounds, such as Games/DeathMatch/Code/Item.cpp?
Best regards,
Carsten
Carsten
Who is online
Users browsing this forum: No registered users and 95 guests