Home   Help Search Login Register  

Author Topic: Sound for one side only  (Read 471 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Sound for one side only
« on: 28 Nov 2004, 14:37:37 »
Hi!

Is there a way of making sounds using "playsound" to only be heard by one side in multiplayer?

Like: ? side player == GUER : playsound "sound"

or something?
Weeee...

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Sound for one side only
« Reply #1 on: 28 Nov 2004, 17:09:35 »
Yes,and thats the correct syntax :)
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Sound for one side only
« Reply #2 on: 28 Nov 2004, 17:33:44 »
It might be that GUER doesn't work there. It's odd. Seems like BIS wasn't really sure what to call the resistance so they've called it at least GUER, RESISTANCE and GUERRILA.  ::)

I'm using
?side player == resistance:
and it seems to work.
Not all is lost.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Sound for one side only
« Reply #3 on: 28 Nov 2004, 21:26:37 »
If you're talking MP, would that not still play for both sides? I'm not very familiar with MP, but still....  :P

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Sound for one side only
« Reply #4 on: 28 Nov 2004, 21:56:57 »
Yes Tyger, we're talking about MP
No Tyger, the sound not play on both, or any other, sides but resistance.  :)

Using
?side player == resistance: playsound "sound"

if player's side is resistance then play 'sound'. If it's not then don't.

Jack plays on resistance and hears the sound
Bob plays on west and doesn't hear the sound.
 ;D
Not all is lost.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Sound for one side only
« Reply #5 on: 29 Nov 2004, 23:25:28 »
well, you learn something new everyday  ;D
like i said, not much familiar with multiplayer.  :P

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:Sound for one side only
« Reply #6 on: 30 Nov 2004, 18:00:35 »
Whops, it was the right syntax? I suppose I should have tried it first. At least Tyger learned something new, hehe. Cheers mate!  ;D
Thanks guys.  :)
Weeee...