Jump to content
sinny

Trying to tweak DAC - Need some help

Recommended Posts

Ok, after fiddeling around some, i solved it

 

Change your "DAC_Change_Weapons.sqf" to something like this:

(its not pretty, but it works)

private   ["_unit","_val","_countM","_data","_i", "_i1", "_i2", "_i3", "_i4", "_i5", "_i6","_randomno1", "_randomno2", "_randomno3", "_randomno4", "_randomno5", "_randomno6"];

_unit = _this select 0;
_val = _this select 1;
_uniformContents = [];
_vestContents = [];
_countM = 0;
_data = [];
_randomno1=floor random 3;
_randomno2=floor random 3;
_randomno3=floor random 3;
_randomno4=floor random [10,0,0];
_randomno5=floor random [0,10,5];
_randomno6=floor random 3;

waituntil {(DAC_Basic_Value > 0)};

sleep 0.5;

_data = [(call compile _val)] call DAC_fConfigWeapons;

if(count _data > 0) then
{
        _weapons = ["CUP_arifle_AK107","CUP_arifle_AK47","CUP_arifle_AK74","rhs_weap_ak74m_2mag","rhs_weap_ak74m_2mag_camo","rhs_weap_ak74m_2mag_npz","rhs_weap_ak74m_camo","rhs_weap_ak74m_desert","rhs_weap_ak74m_camo_folded","rhs_weap_ak74m_plummag_folded","rhs_weap_ak74m_desert_folded","rhs_weap_akm","rhs_weap_akms","CUP_arifle_AKS","CUP_arifle_AKS74","CUP_arifle_AKS74U","rhs_weap_asval","CUP_srifle_CZ550","CUP_srifle_CZ550_rail","CUP_srifle_LeeEnfield","CUP_sgun_M1014","CUP_srifle_M14","CUP_srifle_M14_DMR","CUP_srifle_M24_wdl","rhs_weap_M590_8RD","rhs_weap_M590_5RD","CUP_hgun_MicroUzi","CUP_lmg_PKM","rhs_weap_pkm","CUP_lmg_Pecheneg","rhs_weap_pkp","CUP_arifle_RPK74_45","CUP_arifle_RPK74","CUP_arifle_RPK74M","CUP_arifle_Sa58RIS1","CUP_arifle_Sa58RIS1_des","CUP_arifle_Sa58P","CUP_arifle_Sa58P_des","CUP_hgun_SA61","CUP_srifle_SVD","CUP_srifle_SVD_des","rhs_weap_svdp_wd_npz","rhs_weap_svds","CUP_lmg_UK59"] call BIS_fnc_selectRandom;
        _launcher = ["","","","","rhs_weap_igla","","","","","CUP_launch_M136","","","","","","rhs_weap_rpg26","","","","","","rhs_weap_rpg7","","","","","","CUP_launch_RPG18","","","","","","CUP_launch_RPG18","","","","","","CUP_launch_9K32Strela","","","","",""] call BIS_fnc_selectRandom;
        _vest = ["","","CUP_V_O_SLA_Flak_Vest03","","","CUP_V_I_Carrier_Belt","","","rhs_6sh46","","","CUP_V_B_GER_Carrier_Rig_2_Brown","","","CUP_V_B_GER_Vest_1","","","CUP_V_I_Guerilla_Jacket","","","TRYK_LOC_AK_chestrig_OD","","","rhs_vest_commander","","","CUP_V_B_LHDVest_Blue","","","CUP_V_B_LHDVest_Green","","","CUP_V_B_LHDVest_Red","","","CUP_V_B_LHDVest_Yellow","","","CUP_V_O_Ins_Carrier_Rig_MG","","","CUP_V_O_SLA_Carrier_Belt03","","","V_BandollierB_blk","","","V_BandollierB_rgr","","","CUP_V_OI_TKI_Jacket1_06","","","CUP_V_OI_TKI_Jacket1_05","","","CUP_V_OI_TKI_Jacket4_05","","","CUP_V_O_TK_OfficerBelt2","","","CUP_V_OI_TKI_Jacket2_06","","","CUP_V_OI_TKI_Jacket2_05","","","TRYK_V_Bulletproof_BL"] call BIS_fnc_selectRandom;
        _backpack = ["","CUP_B_AlicePack_Khaki","CUP_B_AlicePack_Bedroll","B_AssaultPack_rgr","CUP_B_CivPack_WDL","CUP_B_HikingPack_Civ","rhs_sidor","CUP_B_RUS_Backpack","TRYK_B_Alicepack","TRYK_B_FieldPack_Wood"] call BIS_fnc_selectRandom;
        _uniform = ["rds_uniform_Villager3", "TRYK_shirts_DENIM_WHB_Sleeve","CUP_U_B_CZ_WDL_TShirt","CUP_U_I_GUE_Anorak_01","CUP_U_I_GUE_Anorak_03","CUP_U_I_GUE_Anorak_02","rds_uniform_assistant","CUP_U_O_CHDKZ_Bardak","CUP_U_O_CHDKZ_Lopotev","CUP_U_O_CHDKZ_Kam_03","CUP_U_O_CHDKZ_Kam_04","rds_uniform_citizen1","rds_uniform_citizen2","rds_uniform_citizen3","rds_uniform_citizen4","rhs_uniform_df15","U_C_Driver_3","CUP_U_C_Fireman_01","rds_uniform_Functionary1","rds_uniform_Functionary2","rhs_uniform_gorka_r_g","rhs_uniform_gorka_r_y","U_BG_Guerilla1_1","U_BG_Guerilla2_2","U_BG_Guerilla3_1","U_BG_leader","rhs_chdkz_uniform_3","CUP_U_C_Labcoat_02","CUP_U_I_GUE_Flecktarn2","CUP_U_I_GUE_Flecktarn3","CUP_U_C_Rescuer_01","CUP_U_C_Policeman_01","CUP_U_C_Profiteer_02","CUP_U_C_Profiteer_03","CUP_U_C_Profiteer_01"] call BIS_fnc_selectRandom;
        _headgear = ["H_RacingHelmet_3_F","H_RacingHelmet_1_black_F","H_RacingHelmet_1_red_F","H_RacingHelmet_1_blue_F","","H_RacingHelmet_2_F","H_RacingHelmet_4_F","H_RacingHelmet_3_F","","H_Bandanna_gry","CUP_H_FR_BandanaGreen","H_Bandanna_surfer_blk","rhs_beanie_green","CUP_H_C_Beanie_01","CUP_H_C_Beanie_03","CUP_H_ChDKZ_Beanie","","rhs_beanie","H_Booniehat_khk","H_Booniehat_tan","H_Cap_blk","","H_Cap_blu","H_Cap_grn","H_Cap_press","CUP_H_PMC_Cap_Back_Grey","CUP_H_PMC_Cap_Back_Tan","CUP_H_NAPA_Fedora","rhs_fieldcap_digi","","CUP_H_C_Fireman_Helmet_01","H_Cap_marshal","CUP_H_C_Policecap_01","rds_Profiteer_cap1","rds_Profiteer_cap4","","H_Shemag_olive","CUP_H_SLA_Helmet","CUP_H_SLA_TankerHelmet","CUP_H_TK_TankerHelmet","","rhs_ssh68","CUP_H_TK_Helmet","TRYK_H_Bandana_H","TRYK_H_woolhat_cu","rhs_tsh4_bala","","rhs_tsh4_ess","rhs_tsh4_ess_bala","rds_Woodlander_cap4","rds_Woodlander_cap3","","rds_Woodlander_cap2","CUP_H_RUS_ZSH_1","rhs_zsh7a_mike","rhs_zsh7a"] call BIS_fnc_selectRandom;
		_goggles = [ "L_Shemagh_Tan","","","PU_shemagh_Tan","","","NeckTight_Tan","","","G_Aviator","","","rhs_balaclava","","","G_Balaclava_blk","","","G_Balaclava_oli","","","Balaclava_GRY","","","G_Bandanna_beast","","","G_Bandanna_oli","","","T_HoodBDU","","","CUP_FR_NeckScarf","","","G_Spectacles","","","G_Squares_Tinted","","","G_Spectacles_Tinted","","","TRYK_Beard_BK","","","TRYK_US_ESS_Glasses"] call BIS_fnc_selectRandom;
        _face = ["GreekHead_A3_03","GreekHead_A3_04","GreekHead_A3_06","WhiteHead_09","WhiteHead_11","WhiteHead_19","WhiteHead_17","WhiteHead_14","WhiteHead_15","WhiteHead_20"] call BIS_fnc_selectRandom;
        _speaker = ["CUP_D_Male01_CZ_ACR","CUP_D_Male01_CZ_ACR","rhs_Male03RUS","rhs_Male04RUS","rhs_Male05RUS","CUP_D_Male01_RU","CUP_D_Male02_RU","CUP_D_Male03_RU","CUP_D_Male04_RU","CUP_D_Male05_RU"] call BIS_fnc_selectRandom;
        _itemBackpack1 = ["FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","Binocular","ItemMap","ItemCompass","ItemWatch","ItemRadio","FirstAidKit","rds_car_FirstAidKit","RyanZombiesAntiVirusTemporary_Item","RyanZombiesAntiVirusCure_Item"] call BIS_fnc_selectRandom;
        _itemBackpack2 = ["FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","Binocular","ItemMap","ItemCompass","ItemWatch","ItemRadio","FirstAidKit","rds_car_FirstAidKit","RyanZombiesAntiVirusTemporary_Item","RyanZombiesAntiVirusCure_Item"] call BIS_fnc_selectRandom;
        _itemBackpack3 = ["FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","FirstAidKit","Medikit","MineDetector","rhs_mag_an_m14_th3","rhs_mag_an_m8hc","Chemlight_blue","Chemlight_green","Chemlight_red","Chemlight_yellow","rhs_mag_fakel","rhs_mag_fakels","rhs_mag_m18_purple","rhs_mag_m18_red","rhs_mag_m18_yellow","rhs_mag_m67","rhs_mag_m69","rhs_mag_mk84","rhs_mag_m7a3_cs","rhs_mag_mk3a2","rhs_mag_nspd","rhs_mag_nspn_green","rhs_mag_nspn_red","rhs_mag_nspn_yellow","rhs_mag_plamyam","rhs_mag_rdg2_black","rhs_mag_rdg2_white","rhs_mag_rgd5","CUP_HandGrenade_RGD5","rhs_mag_rgn","MiniGrenade","rhs_mag_rgo","CUP_HandGrenade_RGO","rhs_mag_m18_green","HandGrenade","rhs_mag_zarya2","Binocular","ItemMap","ItemCompass","ItemWatch","ItemRadio","FirstAidKit","rds_car_FirstAidKit","RyanZombiesAntiVirusTemporary_Item","RyanZombiesAntiVirusCure_Item"] call BIS_fnc_selectRandom;

        removeAllWeapons _unit;
        removeAllItems _unit;
        removeAllAssignedItems _unit;
        removeUniform _unit;
        removeVest _unit;
        removeBackpack _unit;
        removeheadgear _unit;
        removeGoggles _unit;
        sleep 0.1;

        // AddGear
        _unit forceAddUniform _uniform;
	_unit addBackpack _backpack;
                for "_i1" from 1 to _randomno1 do {_unit addItemToBackpack _itemBackpack1;};
                for "_i2" from 1 to _randomno2 do {_unit addItemToBackpack _itemBackpack2;};
                for "_i3" from 1 to _randomno3 do {_unit addItemToBackpack _itemBackpack3;};

	_unit addVest _vest;
	_primWeapon = [_unit, _weapons, _randomno5] call BIS_fnc_addWeapon;
	_launcher = [_unit, _launcher, _randomno4] call BIS_fnc_addWeapon;

        _unit addHeadgear _headgear;
	_unit addGoggles _goggles;
        _unit setFace _face;
        _unit setSpeaker _speaker;

        // Weapon Selection
        sleep 0.5;
        _unit selectWeapon (primaryWeapon _unit);reload _unit;

        if(isPlayer _unit) then {showCompass true}; 
        // I have no idea what the fuck this could possibly be for.
};

 

 

 

 

 

 

Hi all!

 

First off, im not a coder and im not sure if i´m totally off with my try to tweak the DAC-config files.

Anyway, i would be really greatful if someone could help me or point me in the right direction.

 

I would like to add backpacks, headgear, uniforms, backpacks and googles in the dac (weapons config)

 

The original config files comes with "Weapon" and "Magazine"... everything marked with red was added by me...

 

Oh... and it doesnt work  :cry2:

Many thanks!

 

........................................................................................................................................................

 DAC_Config_Weapons.sqf

 

private ["_TypNumber","_TempArray","_Weapon_Pool","_Magazine_Pool","_Headgear_Pool"];
_TypNumber = _this select 0;_TempArray = [];
switch (_TypNumber) do
{
//-------------------------------------------------------------------------------------------------
case 1:
{
_Weapon_Pool = ["arifle_MX_GL_Black_F","MMG_02_black_F","ItemCompass","ItemMap","TRYK_U_B_GRY_PCUs","TRYK_U_B_GRY_PCUs"];
_Magazine_Pool = [["30Rnd_545x39_AK",6],["1Rnd_HE_GP25",6],["FlareWhite_GP25",2],["HandGrenade_East",2]];

_Headgear_Pool = ["H_RacingHelmet_1_F","H_Bandanna_khk"];
};
//-------------------------------------------------------------------------------------------------
Default
{
if(DAC_Basic_Value != 5) then
{
DAC_Basic_Value = 5;publicvariable "DAC_Basic_Value";
hintc "Error: DAC_Config_Weapons > No valid config number";
};
if(true) exitwith {};
};
};
_TempArray = [_Weapon_Pool] + [_Magazine_Pool]
+ [_Headgear_Pool];
_TempArray

 

........................................................................................................................................................

DAC_Change_Weapons.sqf

 

private ["_unit","_val","_weapons","_magazines","_headgear","_countM","_data","_i","_c","_m","_n"];
_unit = _this select 0;_val = _this select 1;_weapons = [];_magazines = [];_headgear = [];_countM = 0;_data = [];_i = 0;_c = 0;_m = 0;
_n = 0;
waituntil {(DAC_Basic_Value > 0)};
sleep 0.5;
_data = [(call compile _val)] call DAC_fConfigWeapons;
if(count _data > 0) then
{
    _weapons = _data select 0;_magazines = _data select 1;
    {_unit removeweapon _x}foreach (weapons _unit);
    {_unit removemagazine _x}foreach (magazines _unit);

    {_unit removeHeadgear _x}foreach (headgear _unit);
    sleep 0.1;
    while{_i < count _magazines} do
    {
        while{(_m < ((_magazines select _i) select 1))} do {_unit addMagazine ((_magazines select _i) select 0);_m = _m + 1};
        _m = 0;_i = _i + 1;
    };
    while{_c < count _weapons} do
    {
        _unit addWeapon (_weapons select _c);_c = _c + 1;
    };
    sleep 0.5;

    while{_n < count _headgear} do
    {
        _unit addHeadgear (_headgear select _n);_n = _n + 1;
    };
    sleep 0.5;

    _unit selectWeapon (primaryWeapon _unit);reload _unit;
    if(isPlayer _unit) then {showCompass true};
};

Share this post


Link to post
Share on other sites

Okey, i found something here... 

Some guy have edit the DAC_Change_Weapons.sqf to be able to use all of the items in the virtual armory...

But i cant find this: // The structure of the weapon config has also been significantly changed. check dac_config_weapons.sqf

 

http://pastebin.com/2272NHVi

//
// DAC_CHANGE_WEAPONS.SQF
// BY SCHUMACHER
// 2/4/2015
// The Arma 3 DAC release does not properly support unit equipment, this allows everything to be used with information you can retrieve from the virtual arsenal.
// The structure of the weapon config has also been significantly changed. check dac_config_weapons.sqf
 
private   ["_unit","_val","_weapons","_items","_uniform","_uniformContents", "_vest", "_vestContents", "_backpack", "_backpackContents", "_headgear", "_goggles", "_data"];
 
_unit = _this select 0;_val = _this select 1;_weapons = [];_items = [];_uniform = "";_uniformContents = [];_vest = [];_vestContents = [];_backpack = [];_backpackContents = [];_headgear = "";_goggles = "";_data = [];
 
waituntil {(DAC_Basic_Value > 0)};
 
sleep 0.5;
 
_data = [(call compile _val)] call DAC_fConfigWeapons;
 
if(count _data > 0) then
{
        _weapons = _data select 0;
        _items = _data select 1;
        _uniform = _data select 2;
        _uniformContents = _data select 3;
        _vest = _data select 4;
        _vestContents = _data select 5;
        _backpack = _data select 6;
        _backpackContents = _data select 7;
        _headgear = _data select 8;
        _goggles = _data select 9;
       
        removeAllWeapons _unit;
        removeAllItems _unit;
        removeAllAssignedItems _unit;
        removeUniform _unit;
        removeVest _unit;
        removeBackpack _unit;
        removeHeadgear _unit;
        removeGoggles _unit;
        sleep 0.1;
       
        // Uniform
        _unit forceAddUniform _uniform;
        {
                for "_i" from 1 to (_x select 1) do {_unit addItemToUniform (_x select 0);};
        } forEach _uniformContents;
       
        //Vest
        _unit addVest _vest;
        {
                for "_i" from 1 to (_x select 1) do {_unit addItemToVest (_x select 0);};
        } forEach _vestContents;
       
        //Backpack
        _unit addBackpack _backpack;
        {
                for "_i" from 1 to (_x select 1) do {_unit addItemToBackpack (_x select 0);};
        } forEach _backpackContents;
       
        // Headgear & Goggles
        _unit addHeadgear _headgear;
        _unit addGoggles _goggles;
       
        // Items
        {
                _unit linkItem _x;
        } forEach _items
       
        // Weapons
        {
                _unit addWeapon _x;
        } forEach _weapons
       
        // Weapon Selection
        sleep 0.1;
        _unit selectWeapon (primaryWeapon _unit);reload _unit;
       
        if(isPlayer _unit) then {showCompass true}; // I have no idea what the fuck this could possibly be for.
};

Share this post


Link to post
Share on other sites

i have tried this, but there is something missing...

//////////////////////////////
//    Dynamic-AI-Creator    //
//    Version 3.1b - 2014   //
//--------------------------//
//    DAC_Config_Weapons    //
//--------------------------//
//    Script by Silola      //
//    silola@freenet.de     //
//////////////////////////////
private ["_TypNumber","_TempArray","_weapons","_items","_uniform","_uniformContents","_vest","_vestContents","_backpack","_backpackContent","_headgear","_goggles","_speaker"];

_TypNumber = _this select 0;_TempArray = [];

switch (_TypNumber) do
{
//-------------------------------------------------------------------------------------------------
case 1:
  {
  _weapons  = ["hlc_rifle_ak47"];
  _items = ["ItemMap", "ItemCompass", "ItemWatch", "ItemGPS"];
  _uniform = "U_BG_Guerrilla_6_1";
  _uniformContents = [];
  _vest = "V_Chestrig_oli";
  _vestContents = [["rhs_mag_m67", 1], ["FirstAidKit", 1], ["hlc_30Rnd_762x39_t_ak", 5], ["hlc_30Rnd_762x39_b_ak", 2]];
  _backpack = "B_Kitbag_rgr";
  _backpackContents = [];
  _headgear = "H_Bandanna_cbr";
  _goggles = "";
  _speaker = "Male01PER";
  };
//-------------------------------------------------------------------------------------------------
Default
{
  if(DAC_Basic_Value != 5) then
  {
    DAC_Basic_Value = 5;publicvariable "DAC_Basic_Value";
    hintc "Error: DAC_Config_Weapons > No valid config number";
  };
  if(true) exitwith {};
  };
};

_TempArray = [_weapons] + [_items] + [_uniform] + [_uniformContents] + [_vest] + [_vestContents] + [_backpack] + [_backpackContent] + [_headgear] + [_goggles] + [_speaker];
_TempArray

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

×