[3D Sound] Playing external sounds in-game based on offsetted coords?
-
Has anyone succeded it?
Could be something really interesting and it wouldn't require too much extra-hacking with a proper sound library.
We could use SFML for example : https://www.sfml-dev.org/tutorials/2.0/audio-spatialization.phpGet the player coords
Vector3 pCoords
, calculate the relative distance to theVector3 origin
, get theVector3 result
and play the sound. Of course this should be used at last resort when internal game sounds are not sufficient and I can imagine the mayhem it would be if everyone starts initiating their own sound engine in every mod...Forgot to say, I'm out of thermal paste and can't risk starting GTA V to try this out.
-
@winject I think @jedijosh920 has succeeded in doing that.
-
@AHK1221 Is there a specific mod of his that does that?
-
@Jitnaught idk he told me he knows how to do it tho.