Remove suit sounds

Grab your favourite IDE and tinker with the innards of game engines

Remove suit sounds

Postby andy4729 on Sun Mar 18, 2012 7:07 pm

Which file would contain the code for the suit speech sounds? and where abouts? I need to remove them all and can't be bothered to rename a blank sound about 50 different things to cover up the original voice sounds.

Also, would commenting out this code be sufficient?

Andy
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Re: Remove suit sounds

Postby Jangalomph on Sun Mar 18, 2012 10:10 pm

You could just make them all refer to one sound that is just a blank .wav in the code.
http://www.nomoreroominhell.com
I don’t know whether I was right or wrong, I guess I’ll never know… But I made it. And I guess I should be thankful for that. - Strelok
Has anyone really been far even as decided to use even go want to do look more like?
User avatar
Jangalomph
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Wed Jun 25, 2008 3:19 pm
Location: Sumter, SC

Re: Remove suit sounds

Postby Chris528 on Mon Mar 19, 2012 3:53 am

andy4729 wrote:Which file would contain the code for the suit speech sounds? and where abouts? I need to remove them all and can't be bothered to rename a blank sound about 50 different things to cover up the original voice sounds.

Also, would commenting out this code be sufficient?

Andy


A simple search for "SetSuitUpdate" in vc++ tells me that commenting out all the calls to the SetSuitUpdate function should work fine. A quick but less ideal solution would be to comment out the contents of CBasePlayer::SetSuitUpdate or add a return to the start of the function.

For example if you look through any of the weapon source files you would see that the SetSuitUpdate function gets called whenever you run out of ammo.
User avatar
Chris528
Member
Member
 
Joined: Sat Mar 01, 2008 10:21 pm

Re: Remove suit sounds

Postby Saxon on Mon Mar 19, 2012 10:16 am

Not a coding solution, but it would be easy enough to remove the references to this in a script file (I forget which one it is, but it's one of the ones in the /scripts/ folder)

I don't think HL2 will give you any issues if you just delete lines which refer to certain WAVs, just be sure to delete an entire block such as
Code: Select all
"HL2Player.SprintNoPower"
{
   "channel"   "CHAN_VOICE"
   "volume"   "0.8"
   "soundlevel"  "SNDLVL_60dB"

   "wave"   "player/suit_denydevice.wav"
}
Saxon
1337 p0st3r
1337 p0st3r
 
Joined: Sun Oct 19, 2008 10:12 am

Re: Remove suit sounds

Postby Chris528 on Tue Mar 20, 2012 5:02 am

Saxon wrote:Not a coding solution, but it would be easy enough to remove the references to this in a script file (I forget which one it is, but it's one of the ones in the /scripts/ folder)

I don't think HL2 will give you any issues if you just delete lines which refer to certain WAVs, just be sure to delete an entire block such as
Code: Select all
"HL2Player.SprintNoPower"
{
   "channel"   "CHAN_VOICE"
   "volume"   "0.8"
   "soundlevel"  "SNDLVL_60dB"

   "wave"   "player/suit_denydevice.wav"
}


That's really not an ideal method at all, simply commenting out the contents of CBasePlayer::SetSuitUpdate would be sufficient. What you're proposing involves spending an inordinate amount of time messing with script files, when you could instead simply remove the contents of a single function.
User avatar
Chris528
Member
Member
 
Joined: Sat Mar 01, 2008 10:21 pm

Re: Remove suit sounds

Postby andy4729 on Wed Mar 21, 2012 12:35 am

Thanks for the help guys :smt023
We're squatting in a system that consistently stalls
User avatar
andy4729
Regular
Regular
 
Joined: Sat Sep 09, 2006 7:26 pm
Location: Canterbury, United Kingdom

Return to Programming

Who is online

Users browsing this forum: No registered users