OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Colonel_Klink on 10 Sep 2002, 13:58:05

Title: Adding new voices with cfgVoice??
Post by: Colonel_Klink on 10 Sep 2002, 13:58:05
In the config.cpp for Resistance, and for OFP there is a class called cfgVoice.

In the config.cpp there is a section for each vehicle type called namesound. For example if namesound="tank"; is used with an armored vehicle when the enemy sees that vehicle they will say (example) "Target tank"

Now the question is: has anybody experimented with this to get custom sounds such as (example) namesound= radar; where the new sound would be a voice saying "radar"?
Ofp becomes a bit weird when you build an addon such as a radar and the leader says "Two, get in tank"
Title: Re:Adding new voices with cfgVoice??
Post by: SelectThis on 10 Sep 2002, 17:45:40
Have you tired putting the path to your sound in the namesound bit?

eg namesound = "\yourpboname\yoursound.wav";

or something like that...

Was just a thought, havent tested it myself.

SelectThis
Title: Re:Adding new voices with cfgVoice??
Post by: Chris Death on 10 Sep 2002, 18:22:58
I remember my men shouting: "12 o clock enemy Charly"

I think it was Ebud who did this (not sure if it was the same
technique).

Maybe it was different, because "charly" was already in the game before.

~S~ CD
Title: Re:Adding new voices with cfgVoice??
Post by: Colonel_Klink on 11 Sep 2002, 12:20:23
Hmm I'll try that tonight SelectThis. I shall report back on due course.
Thanks
Title: Re:Adding new voices with cfgVoice??
Post by: ebud on 12 Sep 2002, 21:25:26
All I did was, in the "namesound", rather than use "soldier", "officer" etc, I just used the phonetic alphabet "charlie".
Title: Re:Adding new voices with cfgVoice??
Post by: KKB on 13 Sep 2002, 03:32:08
My solution for it is to set either the namesound to "" (which means there is nothing heard) or to use the thing that comes nearest.
I don't think putting a actual namesound file in the pbo will work since the standard bis ones are available in versions for multiple different voices. And even if it works it will sound weird if the voice changes the moment the new object is mentioned.

Browse voice.pbo to see what is already there and comes closest to what u need.
Title: Re:Adding new voices with cfgVoice??
Post by: Colonel_Klink on 13 Sep 2002, 15:32:58
KKB
Yeah changing voice would be a problem.. I think changing namesound to target would probably work except it would come out as "gunner target target" it would sound weird but at least the radar wouldn't be called tank.
Title: Re:Adding new voices with cfgVoice??
Post by: KKB on 13 Sep 2002, 17:40:15
Col. Klink: Why don't you use 'House' or 'Building'?
Title: Re:Adding new voices with cfgVoice??
Post by: Colonel_Klink on 15 Sep 2002, 15:37:37
Quote
Col. Klink: Why don't you use 'House' or 'Building'?
True, very true. That was just an example. But what do I call a Hawk Missile launcher?