Jump to content
Sign in to follow this  
AdirB

Making items compatible

Recommended Posts

Hello, I made a re-texture for a scope and a weapon, and I'm trying to make the item compatible for the weapon.

I found this https://community.bistudio.com/wiki/Arma_3_Weapon_Config_Guidelines#New_config_parameters_.7Bconfig.cpp.7D

And I did this:

class CfgPatches {
	class clans_weapons {
		units[] = {};
		weapons[] = {"B"};
		requiredVersion = 0.1;
		requiredAddons[] = {"tfwp_main"};
	};
};

 class SlotInfo;
 class CowsSlot : SlotInfo
 {
     linkProxy = "\A3\data_f\proxies\weapon_slots\TOP";
     displayName = $STR_A3_CowsSlot0;
     compatibleItems[] = {"scope"};
};

class CfgWeapons {
	class A;
	class B : A 
	{
		author = "AUTHORNAME";
		scope = 2;
		weaponPoolAvailable = 1;
		displayName = "WEAPON";
		hiddenSelections[] = {"camo1", "camo2", "camo3"};
		hiddenSelectionsTextures[] = {".paa", ".paa", ".paa"};
    		class WeaponSlotsInfo
    		{
        		mass = 4;
        		class CowsSlot: CowsSlot {};
        		allowedSlots[] = {901};
    		};	
	};
};

But I can't see the scope in the arsenal.

I also heard that it is possible to do something with joint rails to make items compatible.

 

What should I do?

Edited by SoOCoOL

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  

×