Jump to content
Sign in to follow this  
davidoss

Arsenal whitelisting

Recommended Posts

Hi.

I have setup the white listing for arsenal.

This is working great.
The problem are despairing TFR radio from inventory.
I think i knew why let me show you guys why:
 
There are classnames for blufor radio items whitelisted

bable_items = ["ItemRadio","tf_anprc152","tf_microdagr","tf_anprc154"];

Now using standard Bis_arsenal i cant load back my just created and saved loadout because the loadout is inactive.
I have asked me why? That was just now created and saved nothing was changed.
 
After some research i have changed to the XLA_fixed_arsenal and now i can load my just created and saved loadout but
the radio is always desapear from inventory with an info:
 
 

Item tf_anprc152_2 is not whitelisted;

Whaaat?
Why the classname has got changed from

tf_anprc152

to

tf_anprc152_2

 

in my inventory before i have saved the loadout?
Help me please  solve that problem.

  • Like 1

Share this post


Link to post
Share on other sites

you should check parent class of item too....tf_anprc152_2 parent is tf_anprc152

Share this post


Link to post
Share on other sites

I do not understand. Should i set more classnames like:

bable_items = ["ItemRadio","tf_anprc152","tf_microdagr","tf_anprc152_1","tf_anprc152_2","tf_anprc152_3","tf_anprc152_4","tf_anprc152_..."];

What is the last number possible?

Share this post


Link to post
Share on other sites

If I'm not mistaken its because every TFAR radio is unique so that individual settings can be applied, radios for the enemy picked up off fallen soldiers and retain settings etc. This means that if you have 100 players in game, theoretically the radios can go up to _100. Potentially higher based upon respawn.

Sent from my SGP561 using Tapatalk

Share this post


Link to post
Share on other sites

Well  i have found a fix for that.

// TFAR UNIQUE TO GENERIC
_forceReplace = [];
_forceReplace resize 1998;
for [{_i=0}, {_i<999}, {_i=_i+1}] do {
_forceReplace set [_i, ["tf_anprc152_" + (str (_i+1)), "tf_anprc152"]];
_forceReplace set [_i+999, ["tf_rf7800str_" + (str (_i+1)), "tf_rf7800str"]];
};

Works flawless.

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  

×