OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 999chris on 12 Apr 2005, 19:16:02

Title: Hey! I can hear a ruskie talking on the other side of the island...
Post by: 999chris on 12 Apr 2005, 19:16:02
Hello again, another query... this time about Talkish things like cutscenes and verbal briefings etc...

Now, This mission I am making I want to be able to play from two diffrent sides or 3 perhaps... ok,.. and I will be using Voices and stuff for each teams.... But really I am asking you lot to help me becasue... when playing on another team you can hear what the other side is saying even though you might be miles away... so what to do?
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: RujiK on 12 Apr 2005, 19:20:07
Are you using titletext or actual sounds?

(Like Homie_G say "Howdy")

Or both for that matter... And if both specify which one you hear\see.
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: 999chris on 12 Apr 2005, 19:26:55
Yeah the whole caboodle with Text lip sync and everything...

ap say "ROCK 'n' ROLL!"

then maybe later

ruskie say "Vlodstraken von vavorhcninc" ???

But I dont want aP to see/hear what ruskie is saying and vice versur.
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: macguba on 12 Apr 2005, 19:40:47
Is this an MP mission?
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: 999chris on 12 Apr 2005, 19:41:58
Possibly? can voice things be done in MP?
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: macguba on 12 Apr 2005, 19:44:18
I have no idea, I just wasn't sure whether it was SP or MP from your description.   I know nothing about MP.   I know a little about SP.

IIRC the say command should be hearable only from the immediate area of the object doing the saying.    If you want something to be heard at a distance you either need to fake it and make a nearby bush do the saying, or use a playSound command.

So if ruskie1 is on the other side of the island, and he says something, you shouldn't hear it.
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: Tyger on 12 Apr 2005, 20:41:15
Quote
I know a little about SP.

Mac, two words:

Bull sh*t ;D
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: dmakatra on 12 Apr 2005, 21:04:55
Mac, two words:

Bull sh*t ;D
Yea, he doesn't know anything at all. All he knows is to make long posts about what he doesn't understand and make perfectley polished mission by chance. ;D

:beat: *Gets Shot* :beat:
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: General Barron on 12 Apr 2005, 21:23:11
The problem is that sounds aren't handled properly in OFP. That is, they don't get quieter with distance the way real sounds do (linear vs logarithmic I believe). So ANY sound is going to be heard from farther away than it should be. Unfortunately, there isn't really any way to fix this, unless someone wants to try and make a DXDLL for sound (*wishful thinking*).

You can test this yourself by making a tank or something blow up on the other side of the island. You WILL be able to hear it (after a short delay).

However, if you keep that in mind, you can try to work around it. First off, try making the soundfile quieter. If you can't get it loud enough to be heard right, yet quiet enough NOT to be heard across the island, then I suppose you would have to use the "playsound" command instead (only on the computers you want to hear the sound).
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: macguba on 12 Apr 2005, 22:39:50
Quote
 and make perfectley polished mission by chance

 ;D ;D ;D
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: Killswitch on 15 Apr 2005, 17:38:10
Unfortunately, in OFP, sound attenuation over distance only really works with Creative Labs sound cards (EAX or no EAX, doesn't matter). I have an old SB Live (an insult to the PCI standard and a complete piece of ****, but OFP needs it) and a Hercules Fortissimo III (Cirrus Logic-based sound processor) and the latter, when used for OFP, makes the sound stage completely ridiculous - all sounds everywhere on an island are played as if they were right inside my player avatar's head.

Actually, I've heard people with the nVidia SoundStorm APU that have working sound in OFP too, so the CLabs-only rule isn't set in stone. But for most non-CLabs/non-SS people, you are SOL.
Title: Re:Hey! I can hear a ruskie talking on the other side of the island...
Post by: 456820 on 15 Apr 2005, 19:52:02
this may work but im not sure
make aload of triggers with the activation field the name of your voice
then have a script like this (might not work)
Code: [Select]
? sideplayer == west : goto "westbit"
? sideplayer == east : goto "eastbit"
? sideplayer == resistance : goto "resbit"

then set up the parts of script as westbit, eastbit and resbit and in those parts use
those triggers condition field with lines from script wich is activated by other triggers
very time consuming but it should work and other voices arent played if your not on there team.
if you dont understand (i cant blame you even i can just underestand what i mean) just say and i can expand abit