Jump to content
Sign in to follow this  
d3nn16

reuse built-in radio message with kbTell

Recommended Posts

Hi,

I am trying to use kbTell to send a message over side channel whenever a player is hit by friendly fire (not killed).

So I want to reuse the radio message that is used by AI when you fire at them:

Alpha 1-1 4: 2 - Cease Fire -

I did a full search on all the Arma addon files without finding the special .bikb file that would contain the "Cease fire" message definition. Instead I found that this message is defined in \a3\dubbing_radio_f\config.bin. So I figured out I just need copy the classes to a bikb file in my mission folder:

sentences.bikb

class Sentences
{
class __2_1___Cease_fire_1
{
	textOrig = "%2.1 — Cease fire";
	text = "$STR_A3___2_1___Cease_fire";
	wordsClass = "Normal";
	speech[] = {"XMIT","%2.1","CeaseFire"};
	gesture = "";
	class Arguments {};
};
class __2_1___Cease_fire_4
{
	textOrig = "%2.1 — Cease fire";
	text = "$STR_A3___2_1___Cease_fire";
	wordsClass = "Combat";
	speech[] = {"XMIT","%2.1","HoldFire"};
	gesture = "";
	class Arguments {};
};
class __2_1___Cease_fire_5
{
	textOrig = "%2.1 — Cease fire";
	text = "$STR_A3___2_1___Cease_fire";
	wordsClass = "Combat";
	speech[] = {"XMIT","%2.1","DoNotFire"};
	gesture = "";
	class Arguments {};
};
class __2_1___Cease_fire
{
	textOrig = "%2.1 — Cease fire";
	text = "$STR_A3___2_1___Cease_fire";
	wordsClass = "Normal";
	speech[] = {"XMIT","%2.1","CheckYourFire"};
	gesture = "";
	class Arguments {};
};
};

class Arguments{};
class Special {};

startWithVocal[] = {};
startWithConsonant[] = {};

My questions:

- Is this the only way of reusing the standard radio messages with kbTell?

- Is "%2.1" a special code (what I find strange is the .1 after %2)? When AI says "Cease Fire" it replaces %2.1 with the ID of the shooter in the group (eg: Alpha 1-1-4: 2 - Cease Fire -, where 2 is the ID of the shooter)

Thanks

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×