michail-nikolaev / task-force-arma-3-radio

TeamSpeak integration for Arma 3
http://radio.task-force.ru/en/
Other
313 stars 168 forks source link

Additional radios for third party addons #421

Closed kavinsky closed 10 years ago

kavinsky commented 10 years ago

Im working on spanish army radios for FFAAMod as additional addon for TFAR.

Currently on the 0.8.3 its imposible to add the full support to vehicular radios, i have this issue #358 with our land vehicles.

also could be cool if TFAR support faction long range radios to be added on init. something like

class CfgFactionClasses
{
    class ffaa
    {
        displayName = "FFAA";
                tfar_LRRadio = 'ffaa_tfar_pr4gv3";

    };
};
michail-nikolaev commented 10 years ago

Hm. Thanks feedback. Looks like good idea.

Do you have any question regarding new 3dparty API? It is not documented yet, but....

Be in touch.

kavinsky commented 10 years ago

seems good i dont see any bad thing on it atm. Good thing is standarization between personal radios and long range radios using same global configurations.

i leave you here the repository of ffaa_comp https://bitbucket.org/Kavinsky/ffaa-comp/src/c23f8d77ad66b2a1296fd9806fc23379b5eed215/addons/tfar/config.cpp?at=master (planning move to github tomorrow) on hold for 0.9.0 release

kavinsky commented 10 years ago

also need support for personal radios in factions.

class CfgFactionClasses
{
    class ffaa
    {
        displayName = "FFAA";
                tfar_LRRadio = 'ffaa_tfar_pr4gv3";
                tfar_PRadio = 'ffaa_tfar_motorolav400";
    };
};
michail-nikolaev commented 10 years ago

Okay... Also, are you able to set some variable in your addon on mission loading?

kavinsky commented 10 years ago

yes no problem

CorruptedHeart commented 10 years ago

We could support this method of radio selection for units but if the variables are set they will override the config.

michail-nikolaev commented 10 years ago

@kavinsky @CorruptedHeart we can check for (faction player) + "_default_faction_radio" here https://github.com/michail-nikolaev/task-force-arma-3-radio/blob/master/arma3/%40task_force_radio/addons/task_force_radio/functions/fn_radioToRequestCount.sqf#L29

CorruptedHeart commented 10 years ago

Well I like the idea of the faction based radio, I'd suggest moving it to 0.9.1 because it requires some more thinking about how to handle Side vs Faction default radio and when to decide upon which to use. Which touches a lot of code.

michail-nikolaev commented 10 years ago

@CorruptedHeart I think we should down it this version, it is required for @kavinsky addon

michail-nikolaev commented 10 years ago

I'll do

michail-nikolaev commented 10 years ago

variable: "OPF_F_backpack_tf_faction_radio"

michail-nikolaev commented 10 years ago

config:

backpack_tf_faction_radio_api personal_tf_faction_radio_api rifleman_tf_faction_radio_api

michail-nikolaev commented 10 years ago
class CfgFactionClasses
{
    class ffaa
    {
        displayName = "FFAA";
        backpack_tf_faction_radio_api = 'ffaa_tfar_pr4gv3";
        personal_tf_faction_radio_api = 'ffaa_tfar_motorolav400";
        rifleman_tf_faction_radio_api = 'bla-bla";
    };
} ;

@kavinsky please test