Posts
86
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
UGX V.I.P. | |
Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager. | |
BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
If what your're looking for is falloff distance, that is set up in the csv file that the sound you are playing is located in. You will need to make this a 3D sound and set the distances up. If I were you I would read "sound_mod_docs" in your bo3root/docs_modtools folder. It explains setting up aliases. Basically a "sound file" within the cod engine is sort of an array of variables in which the engine processes and modifes the way the sound is played based on the criteria that you declare in the csv file. So essentially, the game will never just play a raw wav file without adjusting the properties of the sound based on the csv, for the most part.
But first before you get into that headache, what function exactly are you using to play the radios? Generally if you want a 3d sound to have falloff distance, default sounds probably have this set up in the csv already, so if you are doing:
Hope that helps you.
*Keep in mind some of the sounds you might be using could possibly be set up as 2D sounds and not 3D, so you probably won't hear them in game if you are doing PlaySoundAtPosition() in some cases. Also, be careful when editing the sound aliases, because if you put erroneous data into any of the fields, this will fuck up the sound and it will either not play at all, or just sound undesirable. That is why I recommend reading that document I pointed out earlier. I went through this hassle before setting up sounds, and as long as you have patience and a bit of time it's not really that hard you will find. says yoda
If what your're looking for is falloff distance, that is set up in the csv file that the sound you are playing is located in. You will need to make this a 3D sound and set the distances up. If I were you I would read "sound_mod_docs" in your bo3root/docs_modtools folder. It explains setting up aliases. Basically a "sound file" within the cod engine is sort of an array of variables in which the engine processes and modifes the way the sound is played based on the criteria that you declare in the csv file. So essentially, the game will never just play a raw wav file without adjusting the properties of the sound based on the csv, for the most part.
But first before you get into that headache, what function exactly are you using to play the radios? Generally if you want a 3d sound to have falloff distance, default sounds probably have this set up in the csv already, so if you are doing:
Hope that helps you.
*Keep in mind some of the sounds you might be using could possibly be set up as 2D sounds and not 3D, so you probably won't hear them in game if you are doing PlaySoundAtPosition() in some cases. Also, be careful when editing the sound aliases, because if you put erroneous data into any of the fields, this will fuck up the sound and it will either not play at all, or just sound undesirable. That is why I recommend reading that document I pointed out earlier. I went through this hassle before setting up sounds, and as long as you have patience and a bit of time it's not really that hard you will find. says yoda
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
playSound plays at the location it is threaded on, so you are playing sound on player's location rather than to that player. If you want to play sound to a player only (2D), you do player playLocalSound("");
Thank you for your reply.
Is targetname etc. necessary?
I did this way, but have anything changed?
Code: [Select]
function radio_sound()
{
//You want to do :
PlaySoundAtPosition("radio_sound", (20,20,20)); //While this function plays the sound in 3d space, so the volume will scale according to the distance the player is from the origin of the sound.
//or
PlaySoundAtPosition("radio_sound", entity.origin);
}
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. | |
Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. | |
Oil Rig Beta Access |
I don't understand what you mean about the targetname, but I think what you need to do is something like this
Thanks for the clarification.
I don't understand what you mean about the targetname, but I think what you need to do is something like this
Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |