Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Bomb Defuse sounds problems.
#1
So when the bomb is defused, it plays at full volume to anyone with in range, instead i want it to play from the bomb site being defused at like the original plant noise would. Anyone know a work around?


This is taken from globallogics ( cmmod or xkmod both have it similar )..

Code:
doBombSound()
{
    if(!self.beep) {
        self.beep = true;
        for(i = 0; i < level.players.size; i++) {
            level.players[i].nearBomb = false;
            if(distance(self.origin, level.players[i].origin) < 1200 && isAlive(level.players[i])) {
                level.players[i].nearBomb = true;
            }
        }
        for(i = 0; i < level.players.size; i++)
        {
            if(level.players[i].nearBomb)
            {
            level.players[i] playLocalSound( "fly_gear_pull_out" );
            //level.players[i] playSoundToPlayer("fly_gear_pull_out", level.players[i]);
            //playsoundatposition("fly_gear_pull_out",(player.origin));
            }
        }
        wait 1;
        for(i = 0; i < level.players.size; i++)
        {
            if(level.players[i].nearBomb)
            {
            level.players[i] playLocalSound( "fly_gear_pull_out" );
            }
        }
        wait 0.3;
        
    }
}

and its called upon from this thread..

Code:
    while( self continueHoldThinkLoop( player, waitForWeapon, timedOut, useTime ) )
    {
        timedOut += 0.05;

        if ( !isDefined( useWeapon ) || player getCurrentWeapon() == useWeapon )
        {
            self.curProgress += (50 * self.useRate);
            self.useRate = 1;
            waitForWeapon = false;
            player thread doBombSound();
        }

If someone gets this working, ill give them a cookie AND my mum.
Reply

#2
Code:
doBombSound()
{
if(!self.beep)
{
        self.beep = true;
        self playSound("fly_gear_pull_out");
}
}

all I can think of and it looks like you tried all the other ways.
[Image: b_560_95_1.png]
Reply

#3
does self playsound play globally? or you dont know?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable Planting on Bomb clemi555 4 3,417 11-04-2013, 07:59
Last Post: clemi555
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,690 09-29-2013, 19:46
Last Post: Nekochan
  Help Playing sounds ingame? Some 2 3,385 09-10-2013, 10:42
Last Post: Yamato
  COD 2 or COD 4 plant/defuse noise. koil 2 2,141 07-25-2013, 11:00
Last Post: koil
  [Release] Modern Warfare 3 Fast File Sounds master131 5 18,312 05-21-2013, 16:46
Last Post: ZURA.
  [FIX] Mw3 server problems 99IRock 0 3,781 02-02-2013, 00:05
Last Post: 99IRock
  Hot Problems AZUMIKKEL 5 3,957 01-20-2013, 16:19
Last Post: Arteq
  Problems trying to import BO2 Camos DidUknowiPwn 3 3,010 12-27-2012, 18:11
Last Post: DidUknowiPwn
  Help Server problems (Wierd!) 99IRock 3 4,377 12-03-2012, 20:26
Last Post: 99IRock
  Help New .iwi files problems Shady360 3 4,128 11-30-2012, 13:05
Last Post: Shady360

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.