UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Custom sounds don't work

broken avatar :(
Created 11 years ago
by Soy-Yo
0 Members and 1 Guest are viewing this topic.
1,595 views
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
I didn't want to ask for help for this but I've been fighting against it for a few days and can't make it work. :-[

I was trying to add some custom sounds for the doors opening and closing. I created the sounds and converted them to .wav; I have a soundalias created in the mod's folder and in raw (I don't know if it has errors, I got it from a tutorial); I added the sounds to the mod.csv and the .wav files into the mod, sound/SFX and sound_assets; and I added it to the script.
Code Snippet
custom_sounds.csv
name,sequence,file,platform,vol_min,vol_max,pitch_min,pitch_max,dist_min,dist_max,dist_reverb_max,limit_count,limit_type,entity_limit_count,entity_limit_type,bus,priority,spatialized,type,probability,loop,masterslave,loadspec,reverb_falloff_curve,subtitle,compression,randomize_type,secondaryaliasname,chainaliasname,volumefalloffcurve,startdelay,speakermap,reverb_send,lfe percentage,center percentage,platform,envelop_min,envelop_max,envelop percentage,occlusion_level,min_priority,max_priority,min_priority_threshold,max_priority_threshold

close_door_sound,1,SFX/cube/close_door_sound.wav,!wii,1,1,1,1,50,250,1000,,,,,full_vol,50,3d,,0.4,,,,curve3,,,pitch,,,curve2,,,,,,,,,,,30,50,0.1,1
open_door_sound,1,SFX/cube/open_door_sound.wav,!wii,1,1,1,1,50,250,1000,,,,,full_vol,50,3d,,0.4,,,,curve3,,,pitch,,,curve2,,,,,,,,,,,30,50,0.1,1
Code Snippet
mod.csv
sound,close_door_sound
sound,open_door_sound
Code Snippet
Plaintext
door animScripted( "open_door", door.origin, door.angles, %cube_doors_open );
door playSound( "open_door_sound" );


door animScripted( "close_door", door.origin, door.angles, %cube_doors_close );
door playSound( "close_door_sound" );
What is wrong here? :-\
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 2 years ago
Posts
3,997
Respect
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
You dont need to add sounds in mod.csv, but you do need to add soundalias:
Code Snippet
Plaintext
sound,announcer,,all_sp
Marked as best answer by Soy-Yo 11 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
hmm... try taking this out

Code Snippet
Plaintext
!wii

and try

sound,SOUNDALIASNAME,,,

in mod.csv
Last Edit: October 17, 2015, 08:10:30 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
Thank you guys. I was sure I had something wrong. ;)
I think that Hitman's solution worked too but I had failed when writing the soundalias. ::)

 
Loading ...