Forum Jump :

Author Message


Posts: 2
Rank:


Level: Member

Country: de
Location:
Occupation:
Age:
In-game name:

 
#177793 Posted at 2015-03-17 01:13        
     
Thanks for your quick reaction!

there are several issues with Backpacks which have predefined stuff in.
for example the "R3F Uniformes" Mod is adding googles and headgear to every Backpack....but thats not a good Idea, because everytime you enter the Virtual Arsenal it adds a pair of googles and headgear to your Backpack.:(

another example is:
Vanilla Backpacks with predefined loadout cant be saved in a restricted Arsenal even when they are whitelisted!

it makes sense to make several different looking Bags, but it is not reasonable to make bags with predefined loadout.

In this case its better to use an Initscript for the specific unit and fill the Backpack when the unit is created!

this also offers the possibility to add weapon items like silencers,pointers,flashlights and scopes without adding new weaponclasses.

an Initscript for example can look like this:

private ["_unit","_cloth","_hat","_gogg","_unarmed","_lau","_airsup"];
_unit = _this select 0;
_unarmed = false;
_airsup = false;
switch (typeof _unit) do {
case "FARC_Officer_F" : {_cloth = "U_I_OfficerUniform";_hat = "H_Beret_blk";_gogg = "G_Aviator"};
case "FARC_Officer_unarmed_F" : {_cloth = "U_I_OfficerUniform";_hat = "H_Beret_blk";_gogg = "G_Aviator";_unarmed = true;};
case "FARC_Leader_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";_gogg = "G_Aviator";_airsup = true;};
case "FARC_Soldier_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
case "FARC_Marksman_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
case "FARC_Grenadier_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
case "FARC_Medic_F" : {_cloth = "U_I_CombatUniform";_hat = "H_Booniehat_dgtl";};
case "FARC_Guard_F" : {_cloth = "U_I_CombatUniform";_hat = "H_Booniehat_dgtl";};
case "FARC_Rookie_F" : {_cloth = "U_BG_leader";};
case "FARC_Courier_F" : {_cloth = "U_BG_Guerilla3_1";_hat = "H_Hat_camo";};
case "FARC_ATSoldier_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";_lau ="launch_NLAW_F"};
case "FARC_AASoldier_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";_lau ="launch_I_Titan_F"};
case "FARC_ARSoldier_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
case "FARC_ARBearer_F" : {_cloth = "U_I_CombatUniform";_hat = "H_Bandanna_camo";};
case "FARC_Engineer_F" : {_cloth = "U_I_CombatUniform";_hat = "H_Watchcap_camo";};
case "FARC_Demoman_F" : {_cloth = "U_I_CombatUniform";_hat = "H_Watchcap_camo";};
case "FARC_Driver_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
case "FARC_Pilot_F" : {_cloth = "U_BG_Guerrilla_6_1";_hat = "H_Cap_headphones";_gogg = "G_Aviator";_unarmed = true;};
case "FARC_Unarmed_F" : {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";_unarmed = true;};
default {_cloth = "U_I_CombatUniform";_hat = "H_MilCap_dgtl";};
};

if (!isNil "_cloth") then {removeUniform _unit;_unit forceAddUniform _cloth};
if (!isNil "_hat") then {removeHeadgear _unit;_unit addHeadgear _hat};
if (!isNil "_gogg") then {removeGoggles _unit;_unit addGoggles _gogg} else {removeGoggles _unit;if (random 1 < 0.2) then {_unit addGoggles (["G_Aviator","G_Balaclava_oli","G_Spectacles","G_Bandanna_oli"] select (floor random 3));};};
_unit addItemToUniform "FirstAidKit";
_unit addItemToUniform "Handgrenade";
if (_unarmed) then {} else {for "_i" from 1 to 3 do {_unit addItemToUniform "16Rnd_9x21_Mag";};};
if (_unarmed) then {} else {_unit addWeapon "hgun_Rook40_F"};
if (_unarmed) then {} else {if (!isNil "_lau") then {_unit addWeapon _lau};};
if (_unarmed) then {} else {_unit addPrimaryWeaponItem "acc_flashlight";};
if (daytime < 8 || daytime > 17) then {_unit enableGunLights "forceOn"};


Greetz Cyborg

This post was edited by CHIMERA_Cyborg (2015-03-17 14:05, ago)