Playing a sound?
-
The title basically says it all. I’d like to be able to play an arbitrary sound effect from FL’s definitions on the client. Thus far the only way I’ve been able to achieve this is through PlaySoundEffect on the server, but having to send a message to the server only for it to reply to the game to play a sound is… crazy.
So is there any way of doing this that isn’t quite as hacked together? Can PlaySoundEffect actually be called from the client directly? All attempts have failed so far.
-
I’ll just bump this up. I’ve been toying with this again of late and still can’t figure out anything. I’d identified 0x5645C0 in Freelancer.exe as something that at least has something to do with it, but it doesn’t seem to be using a straight up hash of the sound nickname.
I’d also like something similar for voice.
-
I’ve uploaded a new version of Console to play a sound effect - should be easy enough to rip out the code. As for voice, not sure, but it looks like you should at least be able to play NNVoice via void (0x489E80)( UINT nickname, int something / = 0 */ );.
-
Nice! Thanks a lot man.