Search the Community
Showing results for tags 'hiddenselections'.
Found 6 results
-
Using hiddenSelections to create uniforms with vanilla assets
SaltyNewt posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
So what I'm trying to do is create a uniform using vanilla assets like the Worn Combat Fatigues from the campaign but with a different guerilla outfit like this, so to do this i copied the config of the U_I_G_Story_Protagonist_F uniform and I_G_Story_Protagonist_F unit classes to change them accordingly, specifically, changing the model and hiddenSelections from ig_guerrilla5_1 to ig_guerrilla_6_1. However, when I do this, rather than showing up in game as I want it to, the uniform texture and model just shows up as the guerrilla uniform without the NATO fatigue pants. I'm assuming this has something to do with how my hiddenSelections and hiddenSelectionsTextures is set up but I'm not sure what I'm doing wrong. Code is as follows: class PRO_G_Test : B_G_Soldier_F { author = "ViperLass"; scope = 2; scopeCurator = 2; scopeArsenal = 2; identityTypes[] = { "G_NATO_default" }; displayName = "Test"; faction = "PRO_Faction"; editorSubcategory = "PRO_Subcategory1"; model = "\A3\Characters_F_Bootcamp\Guerrilla\ig_guerrilla_6_1.p3d"; hiddenSelections[]= { "Camo", "insignia" }; hiddenSelectionsTextures[]= { "\A3\Characters_F_Bootcamp\Guerrilla\Data\ig_guerrilla_6_1_co.paa" }; nakedUniform="PRO_G_Uniform1"; uniformClass = "PRO_G_Uniform1"; weapons[] = { "arifle_MX_F", "Throw", "Put" }; respawnWeapons[] = { "arifle_MX_F", "Throw", "Put" }; Items[] = { "FirstAidKit", "FirstAidKit"}; RespawnItems[] = { "FirstAidKit", "FirstAidKit"}; magazines[] = { "SmokeShell", "SmokeShell", "Chemlight_green", "Chemlight_green", "HandGrenade", "HandGrenade", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag",}; respawnMagazines[] = { "SmokeShell", "SmokeShell", "Chemlight_green", "Chemlight_green", "HandGrenade", "HandGrenade", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag",}; linkedItems[] = { "V_PlateCarrier_Test", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; respawnLinkedItems[] = { "V_PlateCarrier_Test", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio"}; }; class PRO_G_Uniform1: Uniform_Base { author="ViperLass"; scope=2; displayName="Worn Combat Fatigues (Test)"; picture="\Proteus\UI\icon_PRO_guerrilla_01.paa"; model="\A3\Characters_F\Common\Suitpacks\suitpack_civilian_F.p3d"; hiddenSelections[]= { "camo" }; hiddenSelectionsTextures[]= { "\A3\Characters_F_Bootcamp\Guerrilla\Data\ig_guerrilla_6_1_co.paa" }; class ItemInfo: UniformItem { uniformModel="-"; uniformClass="PRO_G_Test"; containerClass="Supply40"; mass=40; }; }; -
I have a lattice object that I attached to the technique, but when the technique is defeated, the textures of the lattice object remain the same, I decided to use hiddenSelections[] = {"green", "sand", "broken"}; hiddenSelectionsTextures[] = {"data\green.paa", "data\sand.paa", "data\broken.paa"}; I decided to connect a script that will execute in a .skf file, but the arma does not react in any way, the object remains the same color. Help! How to make an object change color depending on whether the vehicle is alive or not. .sqf file: is there any other way to implement this idea?
-
Hello everyone: I need help deciphering what I am doing wrong when setting up my new balaclava. I already made several new textures for the vanilla arma3 balaclavas previously without problems. class CfgPatches { class TCGM_BanBal01 { units[]={}; weapons[]= { "TCGM_BalaclavaTI_JapR", "TCGM_BalaclavaTI_Skul", "TCGM_BalaclavaTI_SkulArdiDig" }; requiredVersion=0.1; requiredAddons[]={"A3_Characters_F"}; author="TCGM"; }; }; class CfgGlasses { class None; class TCGM_BalaclavaTI_JapR: None { author="TCGM"; _generalMacro="TCGM_BalaclavaTI_JapR"; scope=2; scopeCurator=2; scopeArsenal=2; displayName="$STR_TCGM_BB1SBHanRed"; faction="TCGM_SF"; model="\A3\Characters_F_Exp\BLUFOR\G_Balaclava_TI_F.p3d"; picture="\TCGM_BanBal01\Textures\ui\TCGM_icon_G_Balaclava_TI_M_blk_F_ca.paa"; hiddenSelections[]= { "camo" }; hiddenSelectionsTextures[]= { "\TCGM_BanBal01\Textures\BtiTCGM\TCGM_Balaclava_TI_JapR_co.paa" }; identityTypes[]={}; mass=6; }; class TCGM_BalaclavaTI_Skul: TCGM_BalaclavaTI_JapR { author="TCGM"; _generalMacro="TCGM_BalaclavaTI_Skul"; displayName="$STR_TCGM_BB1SBSkBlk"; faction="TCGM_SF"; picture="\TCGM_BanBal01\Textures\ui\TCGM_icon_G_Balaclava_TI_M_blk_F_ca.paa"; hiddenSelections[]= { "camo" }; hiddenSelectionsTextures[]= { "\TCGM_BanBal01\Textures\BtiTCGM\TCGM_Balaclava_TI_Skul_co.paa" }; }; class TCGM_BalaclavaTI_SkulArdiDig: TCGM_BalaclavaTI_JapR { author="TCGM"; _generalMacro="TCGM_BalaclavaTI_SkulAridDig"; displayName="$STR_TCGM_BB1SBSkDigAr"; faction="TCGM_SF"; picture="\TCGM_BanBal01\Textures\ui\TCGM_icon_G_Balaclava_TI_M_hex_F_ca.paa"; hiddenSelections[]= { "camo" }; hiddenSelectionsTextures[]= { "\TCGM_BanBal01\Textures\BtiTCGM\TCGM_Balaclava_TI_SkulHex_co.paa" }; }; }; Now I am starting to make my own models and have been successful in virtually the entire process... I have the new balaclava in the game working properly, with the default texture that I have embedded in the model. But I could not add a second texture as I did with vanilla balaclavas before. A second balaclava appears in the game but with the same texture as the first. class CfgPatches { class TCGM_BanBal02 { units[]={}; weapons[]= { "TCGM_Balaclava_Blk_Scrp" "TCGM_Balaclava_Blk_NoMask", }; requiredVersion=0.1; requiredAddons[]={"A3_Characters_F"}; author="TCGM"; }; }; class CfgGlasses { class None; class TCGM_Balaclava_Blk_Scrp: None { author="TCGM"; _generalMacro="TCGM_Balaclava_Blk_Scrp"; scope=2; scopeCurator=2; scopeArsenal=2; displayName="$STR_TCGM_BB1SBBlkScrp"; model="\TCGM_BanBal01\Models\TCGM_Balaclava_Blk_Scrp.p3d"; picture="\TCGM_BanBal01\Textures\ui\TCGM_icon_G_Balaclava_TI_M_blk_F_ca.paa"; hiddenSelections[]= { "camo" }; hiddenSelectionsTextures[]= { "\TCGM_BanBal01\Textures\BalTCGM\TCGM_Balaclava_Blk_Scrp_co.paa" }; identityTypes[]={}; mass = 7; faction="TCGM_SF"; }; class TCGM_Balaclava_Blk_NoMask: TCGM_Balaclava_Blk_Scrp { author="TCGM"; _generalMacro="TCGM_Balaclava_Blk_NoMask"; displayName="$STR_TCGM_BB1SBBlk"; picture="\TCGM_BanBal01\Textures\ui\TCGM_icon_G_Balaclava_TI_M_blk_F_ca.paa"; hiddenSelectionsTextures[]= { "\TCGM_BanBal01\Textures\BalTCGM\TCGM_Balaclava_Blk_co.paa" }; identityTypes[]={}; mass = 7; }; }; I made my model in blender from scratch, configured the texture and materials there and exported the work to the p3d format. https://imgur.com/RjPv1Za In Object Builder I added some LOD (level of detail) layers, like "Geometry" and I add the property "autocenter" with value "0" https://imgur.com/vfWnuKh I am sure there has to be a way to add a new balaclava using the same model with a new texture... Because I did it with the vanilla ones. Here is my file of model materials. TCGM_Balaclava_Blk_Scrp.rvmat class StageTI { texture="#(argb,8,8,3)color(0,0,0,0)"; }; ambient[]={1,1,1,1}; diffuse[]={1,1,1,1}; forcedDiffuse[]={0,0,0,0}; emmisive[]={0,0,0,1}; specular[]={0.1,0.1,0.1,1}; specularPower=20; PixelShaderID="Super"; VertexShaderID="Super"; class Stage1 { texture="TCGM_BanBal01\Textures\BalTCGM\TCGM_Balaclava_Blk_Scrp_nohq.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; class Stage2 { texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; class Stage3 { texture="#(argb,8,8,3)color(0,0,0,0,MC)"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; class Stage4 { texture="TCGM_BanBal01\Textures\BalTCGM\TCGM_Balaclava_Blk_Scrp_as.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; class Stage5 { texture="TCGM_BanBal01\Textures\BalTCGM\TCGM_Balaclava_Blk_Scrp_smdi.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; class Stage6 { texture="#(ai,64,64,1)fresnel(2,0.5)"; uvSource="none"; }; class Stage7 { texture="a3\data_f\env_land_ca.paa"; uvSource="tex"; class uvTransform { aside[]={1,0,0}; up[]={0,1,0}; dir[]={0,0,0}; pos[]={0,0,0}; }; }; Here is my "model.cfg" file class CfgSkeletons { class Default { isDiscrete = 1; skeletonInherit = ""; skeletonBones[] = {}; }; class OFP2_ManSkeleton { isDiscrete = 0; skeletonInherit = ""; skeletonBones[] = { "Pelvis","", "Spine","Pelvis", "Spine1","Spine", "Spine2","Spine1", "Spine3","Spine2", "Camera","Pelvis", "weapon","Spine1", "launcher","Spine1", // Head skeleton in hierarchy "neck","Spine3", "neck1","neck", "head","neck1", // New facial features "Face_Hub","head", "Face_Jawbone","Face_Hub", "Face_Jowl","Face_Jawbone", "Face_chopRight","Face_Jawbone", "Face_chopLeft","Face_Jawbone", "Face_LipLowerMiddle","Face_Jawbone", "Face_LipLowerLeft","Face_Jawbone", "Face_LipLowerRight","Face_Jawbone", "Face_Chin","Face_Jawbone", "Face_Tongue","Face_Jawbone", "Face_CornerRight","Face_Hub", "Face_CheekSideRight","Face_CornerRight", "Face_CornerLeft","Face_Hub", "Face_CheekSideLeft","Face_CornerLeft", "Face_CheekFrontRight","Face_Hub", "Face_CheekFrontLeft","Face_Hub", "Face_CheekUpperRight","Face_Hub", "Face_CheekUpperLeft","Face_Hub", "Face_LipUpperMiddle","Face_Hub", "Face_LipUpperRight","Face_Hub", "Face_LipUpperLeft","Face_Hub", "Face_NostrilRight","Face_Hub", "Face_NostrilLeft","Face_Hub", "Face_Forehead","Face_Hub", "Face_BrowFrontRight","Face_Forehead", "Face_BrowFrontLeft","Face_Forehead", "Face_BrowMiddle","Face_Forehead", "Face_BrowSideRight","Face_Forehead", "Face_BrowSideLeft","Face_Forehead", "Face_Eyelids","Face_Hub", "Face_EyelidUpperRight","Face_Hub", "Face_EyelidUpperLeft","Face_Hub", "Face_EyelidLowerRight","Face_Hub", "Face_EyelidLowerLeft","Face_Hub", "EyeLeft","Face_Hub", "EyeRight","Face_Hub", // Left upper side "LeftShoulder","Spine3", "LeftArm","LeftShoulder", "LeftArmRoll","LeftArm", "LeftForeArm","LeftArmRoll", "LeftForeArmRoll","LeftForeArm", "LeftHand","LeftForeArmRoll", "LeftHandRing","LeftHand", "LeftHandRing1","LeftHandRing", "LeftHandRing2","LeftHandRing1", "LeftHandRing3","LeftHandRing2", "LeftHandPinky1","LeftHandRing", "LeftHandPinky2","LeftHandPinky1", "LeftHandPinky3","LeftHandPinky2", "LeftHandMiddle1","LeftHand", "LeftHandMiddle2","LeftHandMiddle1", "LeftHandMiddle3","LeftHandMiddle2", "LeftHandIndex1","LeftHand", "LeftHandIndex2","LeftHandIndex1", "LeftHandIndex3","LeftHandIndex2", "LeftHandThumb1","LeftHand", "LeftHandThumb2","LeftHandThumb1", "LeftHandThumb3","LeftHandThumb2", // Right upper side "RightShoulder","Spine3", "RightArm","RightShoulder", "RightArmRoll","RightArm", "RightForeArm","RightArmRoll", "RightForeArmRoll","RightForeArm", "RightHand","RightForeArmRoll", "RightHandRing","RightHand", "RightHandRing1","RightHandRing", "RightHandRing2","RightHandRing1", "RightHandRing3","RightHandRing2", "RightHandPinky1","RightHandRing", "RightHandPinky2","RightHandPinky1", "RightHandPinky3","RightHandPinky2", "RightHandMiddle1","RightHand", "RightHandMiddle2","RightHandMiddle1", "RightHandMiddle3","RightHandMiddle2", "RightHandIndex1","RightHand", "RightHandIndex2","RightHandIndex1", "RightHandIndex3","RightHandIndex2", "RightHandThumb1","RightHand", "RightHandThumb2","RightHandThumb1", "RightHandThumb3","RightHandThumb2", // Left lower side "LeftUpLeg","Pelvis", "LeftUpLegRoll","LeftUpLeg", "LeftLeg","LeftUpLegRoll", "LeftLegRoll","LeftLeg", "LeftFoot","LeftLegRoll", "LeftToeBase","LeftFoot", // Right lower side "RightUpLeg","Pelvis", "RightUpLegRoll","RightUpLeg", "RightLeg","RightUpLegRoll", "RightLegRoll","RightLeg", "RightFoot","RightLegRoll", "RightToeBase","RightFoot" }; // location of pivot points (local axes) for hierarchical animation pivotsModel="A3\anims_f\data\skeleton\SkeletonPivots.p3d"; }; }; class CfgModels { class Default { sectionsInherit=""; sections[] = {}; skeletonName = ""; }; class ArmaMan: Default { htMin = 60; // Minimum half-cooling time (in seconds) htMax = 1800; // Maximum half-cooling time (in seconds) afMax = 30; // Maximum temperature in case the model is alive (in celsius) mfMax = 0; // Maximum temperature when the model is moving (in celsius) mFact = 1; // Metabolism factor - number from interval <0, 1> (0 - metabolism has no influence, 1 - metabolism has full influence (no other temperature source will be considered)). tBody = 37; // Metabolism temperature of the model (in celsius) sections[] = { "osobnost","Head_Injury","Body_Injury","l_leg_injury","l_arm_injury","r_arm_injury","r_leg_injury", "injury_body", "injury_legs", "injury_hands", "clan","clan_sign","Camo","CamoB","Camo1","Camo2","personality","hl", "injury_head", "insignia", "ghillie_hide" }; skeletonName = "OFP2_ManSkeleton"; }; class TCGM_Balaclava_Blk_Scrp: ArmaMan { sections[] = { "camo" }; }; }; Please Help me to find the solution. Thanks. https://imgur.com/bIXaasm
- 8 replies
-
- hiddenselections
- textures
- (and 6 more)
-
Spawn vehicle with hidden selection texture - SetObjectTexture - Help appreciated
MajorBlunderbuss posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello friends! A couple of days ago I've ran into some trouble I couldn't solve myself, and I found help here very fast. Right now, I'm at the point where I'm unable to find a solution for some sort of problem, again. What I'm trying to achive, is to spawn a vehicle - the AWC 302 Nyx (Wiesel), to be exactly - with alternate, official texture. The Nyx features the standard AAF-Camo, and alternatively an simple Olive-Camo. Since I'm making a own verison of DUWS - many of you will know what this is -, you will also know how those vehicles do spawn: Go to the headquarters, talk to the officer, choose the vehicle, spend the credits, and the vehicle will spawn outside of the HQ. Heres a little insight of how I try to spawn this vehicle with the alternate Olive-Camo: case 18: { if (commandpointsblu1 >= 28) then { hint "Vehicle ready !"; commandpointsblu1 = commandpointsblu1 - 28; ctrlSetText [1000, format["%1",commandpointsblu1]]; _vehic = "I_LT_01_AA_F" createVehicle _spawnPos; _vehic setObjectTexture [0,"Indep_Olive"]; _vehic setObjectTexture [1,"Indep_Olive"]; _vehic setObjectTexture [2,"Indep_Olive"]; _vehic animate ["showTools", 1]; _vehic animate ["showCamonetHull", 1]; _vehic animate ["showBags", 1]; _vehic animate ["showSLATHull", 0]; } else { hint "Not enough command points"; }; }; If I do place the vehicle in 3den-Editor, change it's visuals like the camo, SLAT-Armour, camonet etc., and then export it, copy paste it somewhere, the Olive-Camo is defined as "Indep_Olive", like above. Exported stuff looks like this: _veh = createVehicle ["I_LT_01_AA_F",position player,[],0,"NONE"]; [ _veh, ["Indep_Olive",1], ["showTools",1,"showCamonetHull",1,"showBags",1,"showSLATHull",0] ] call BIS_fnc_initVehicle; Of course I already found out that this won't work with SetObjectTexture, unfortunately. The vehicle does spawn with all the extras like SLAT-Armour, tools, but with missing textures (At least this showed me, that it somehow works). I then tried different things to achive my goal, changed something here and there, tried to find the path to those textures, etc. Funny enough: It's possible to use this code instead of the old one, and spawn the vehicle with all the extras and the correct textures. Bad thing is, It's spawn behaviour is totally different and all over the place - sometimes even glitches into the HQ. Results in apocalypse. If I'd use the new code instead of the old one, it'd look like this: case 18: { if (commandpointsblu1 >= 28) then { hint "Vehicle ready !"; commandpointsblu1 = commandpointsblu1 - 28; ctrlSetText [1000, format["%1",commandpointsblu1]]; _veh = createVehicle ["I_LT_01_AA_F",position player,[],25,"NONE"]; [ _veh, ["Indep_Olive",1], ["showTools",1,"showCamonetHull",1,"showBags",1,"showSLATHull",0] ] call BIS_fnc_initVehicle; } else { hint "Not enough command points"; }; }; It's a long and already ungrateful journey, and I don't know where else to look, what else to do. If there would be someone to point me in the right direction, or is able to make a functioning code of the examples above - old code or new one, doesn't matter as long as it works and the spawn behaviour is correct and identical to the old one, I'd - again - be more than very thankful. Hope to hear from you folks, enjoy your time! Regards, MajorBlunderbuss.- 3 replies
-
- setobjecttexture
- texture
-
(and 4 more)
Tagged with:
-
Hello, I am making a weapon sight for arma 3 with a custom model. I want to add some texture variations and i understood i can achieve this with hiddenselections. The problem is that I cant seem to get another texture assigned to it ingame. I looked over a number of other threads dealing with hiddenselections, but so far i could not find out where i am going wrong with this. My model has a selection named "camo" in Object builder: This is the Model.cfg, I just added this in the mod directory, do i need to assign the model.cfg to the model somewhere? class CfgModels { class Default { sectionsInherit = ""; sections[] = {}; skeletonName = ""; }; class Andor_hartman_mh1 : Default { sections[] = { "camo" }; }; }; This is the config.cpp: #include "basicDefines_A3.hpp" #include "CfgPatches.hpp" class asdg_OpticRail; class asdg_OpticRail1913: asdg_OpticRail { class compatibleItems { Andor_hartman_mh1 = 1; Andor_hartman_mh1_tan = 1; Andor_hartman_mh1_olive = 1; }; }; class cfgWeapons { class ItemCore; class InventoryItem_Base_F; class InventoryOpticsItem_Base_F; class Andor_hartman_mh1: ItemCore { displayName="Hartman MH1 (Black)"; author= "Andor"; picture="\Andor_Hartman_mh1\Data\Hartman_mh1_icon_ca.paa"; model = "\Andor_Hartman_mh1\Andor_hartman_mh1"; scope = 2; descriptionShort = "Hartman MH1"; weaponInfoType = "RscWeaponZeroing"; hiddenSelections[] = {"camo"}; hiddenSelectionTextures[] = {"\Andor_Hartman_mh1\Data\Hartman_mh1_CO.paa"}; class ItemInfo: InventoryOpticsItem_Base_F { mass = 6; //opticType = 1; optics = true; modelOptics="\A3\Weapons_F\empty"; class OpticsModes { class Hartman_mh1_optic { opticsID = 1; useModelOptics = 0; opticsZoomMin = 0.25; opticsZoomMax = 1.25; opticsZoomInit = 0.75; memoryPointCamera = "eye"; opticsFlare = 0; opticsDisablePeripherialVision = 0; distanceZoomMin = 200; distanceZoomMax = 200; cameraDir = ""; visionMode[] = {}; opticsPPEffects[] = {"OpticsBlur1"}; }; }; }; inertia = 0; }; class Andor_hartman_mh1_tan: Andor_hartman_mh1 { author= "Andor"; displayName="Hartman MH1 (Tan)"; hiddenSelections[] = {"camo"}; hiddenSelectionTextures[] = {"\Andor_Hartman_mh1\Data\Hartman_mh1_Tan_CO.paa"}; }; class Andor_hartman_mh1_olive: Andor_hartman_mh1 { author= "Andor"; displayName="Hartman MH1 (Olive)"; hiddenSelections[] = {"camo"}; hiddenSelectionTextures[] = {"\Andor_Hartman_mh1\Data\Hartman_mh1_Olive_CO.paa"}; }; }; The default texture i assigned in Object builder loads on all 3 variants. I have the feeling i am forgetting something simple?? Any help is much appreciated.
- 7 replies
-
- hiddenselections
- custom model
-
(and 2 more)
Tagged with:
-
Hello, retexturing the Vermin .45 SMG (Vector/SMG_01) is currently impossible, I`ve been told by [da12thMonkey] that it seems its .p3d is not set up for using hiddenSelections and hiddenSelectionsTextures via config file. I`ve been trying to retexture some of the vanilla weapons and got the Mk18 (M14EBR/srifle_EBR_F) aswell as the TRG21 variants (TAR-21/arifle_TRG21_F/arifle_TRG21_GL_F) working with a custom texture by creating a new class from each of the weapons mainclass. As to the Vector, I had no such luck, the weapon kept its original texture no matter what. Any chance that the vector`s .p3d will be changed in a future update to accept hiddenSelections and hiddenSelectionsTextures?