UGX-Mods

Call of Duty 5: World at War => Help Desk => Modding => Topic started by: MJPWGaming on July 24, 2015, 01:44:00 am

Title: Disabling Begining Sounds
Post by: MJPWGaming on July 24, 2015, 01:44:00 am
Hi so in my map I had the power on and I was wondering how to disable the sounds the power makes when turning on as well as the sounds it makes when you start the game (not the round sounds).
Title: Re: Disabling Begining Sounds
Post by: DuaLVII on July 24, 2015, 07:40:40 am
Heya MJPW,

The solution to your problem is very simple.
First you need too navigate too your mapname_amb.csc which is a client script, This may either exist in your mods/modname/clientscripts folder itself or within raw/clientscript.

When you open your mapname_amb.csc you can either disable the function for playing both powerdown and poweron or disable only powerdown leaving the poweron sound.

To disable both you can just find;
Code Snippet
Plaintext
thread power_audio_2d();

And comment it out;
Code Snippet
Plaintext
//thread power_audio_2d();



To disable just powerdown sound, find;
Code Snippet
Plaintext
playsound( 0, "power_down_2d", (0,0,0) );

and comment it out;
Code Snippet
Plaintext
//playsound( 0, "power_down_2d", (0,0,0) );



Happy modding!
DuaLVII