Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
dOOmcLiF

Прокси для магазинов

Захотелось сделать подсумки с аттачментами, чтобы было видно какой именно магазин лежит в нём. Все получалось хорошо до момента с прокси. В 3д модели прокси добавлял через ванильные файлы, распакованные через DayZ Tools на диск Р. Однако в игре прокси не видно.

 

Код config.cpp:

class cfgVehicles
{	
	class Container_Base;
	
	class TacticalPouch_Base: Container_Base
	{
		scope = 0;
		displayName = "";
		descriptionShort = "";
		model = "\TacticalPouches\tacticalPouch.p3d";
		rotationFlags=0;
		itemSize[] = {4,3};
		inventorySlot[] = 
		{
			"VestPouch"
		};
		hiddenSelections[] = 
		{
			"zbytek"
		};
		hiddenSelectionsTextures[] = 
		{
			"\TacticalPouches\data\taco_co.paa"
		};
		attachments[]=
		{
			"Mags_AK_30Rnd_A",
			"Mags_AK_30Rnd_B",
			"Mags_AK_30Rnd_C",
			"Mags_Pistol_15Rnd",
		};
		weight=250;
		repairableWithKits[]={5,2};
		repairCosts[]={30,25};
		allowOwnedCargoManipulation=1;
		randomQuantity=2;
		lootTag[]=
		{
			"Military_east",
			"Military_west"
		};
        hiddenSelectionsMaterials[]=
        {
            "\TacticalPouches\data\taco.rvmat"
        };
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=100;
                    healthLevels[] = 
                    {
                        {1.0,{"\TacticalPouches\data\taco.rvmat"}},
                        {0.7,{"\TacticalPouches\data\taco.rvmat"}},
                        {0.5,{"\TacticalPouches\data\taco_damage.rvmat"}},
                        {0.3,{"\TacticalPouches\data\taco_damage.rvmat"}},
                        {0.0,{"\TacticalPouches\data\taco_destruct.rvmat"}}
                    };
				};
			};
		};
		class AnimEvents
		{
			class SoundWeapon
			{
				class pickUpItem_Light
				{
					soundSet="pickUpCourierBag_Light_SoundSet";
					id=796;
				};
				class pickUpItem
				{
					soundSet="pickUpCourierBag_SoundSet";
					id=797;
				};
			};
		};
	};
	
	class TacticalPouch_OD: TacticalPouch_Base
	{
		scope = 2;
		displayName = "$STR_tactical_pouch_name";
		descriptionShort = "$STR_tactical_pouch_desc";
		model = "\TacticalPouches\tacticalPouch.p3d";
		hiddenSelections[] = 
		{
			"zbytek"
		};
		hiddenSelectionsTextures[] = 
		{
			"\TacticalPouches\data\taco_co.paa"
		};
	};
};

class CfgMagazines
{
	class DefaultMagazine;
	class Magazine_Base: DefaultMagazine {};
	class Mag_AK74_30Rnd: Magazine_Base
	{
		inventorySlot[] = 
		{
			"Mags_AK_30Rnd_A", 
			"Mags_AK_30Rnd_B", 
			"Mags_AK_30Rnd_C"
		};
	};
	class Mag_Glock_15Rnd: Magazine_Base
	{
		inventorySlot[] = 
		{
			"Mags_Pistol_15Rnd"
		};
	};
};


class CfgSlots
{
	class Slot_Mags_AK_30Rnd_A
	{
		name="Mags_AK_30Rnd_A";
		displayName="$STR_mags_ak_att";
		ghostIcon="set:dayz_inventory image:magazine2";
	};
	class Slot_Mags_AK_30Rnd_B
	{
		name="Mags_AK_30Rnd_B";
		displayName="$STR_mags_ak_att";
		ghostIcon="set:dayz_inventory image:magazine2";
	};
	class Slot_Mags_AK_30Rnd_C
	{
		name="Mags_AK_30Rnd_C";
		displayName="$STR_mags_ak_att";
		ghostIcon="set:dayz_inventory image:magazine2";
	};
	class Slot_Mags_Pistol_15Rnd
	{
		name="Mags_Pistol_15Rnd";
		displayName="$STR_mags_pistol_att";
		ghostIcon="set:dayz_inventory image:magazine";
	};
};

class CfgNonAIVehicles
{
	class ProxyAttachment;
	class Proxymagazine_ak74_30rnd: ProxyAttachment
	{
		scope = 2;
		model = "\DZ\weapons\attachments\magazine\magazine_ak74_30rnd.p3d";
		inventorySlot[] = 
		{
			"Mags_AK_30Rnd_A",
			"Mags_AK_30Rnd_B",
			"Mags_AK_30Rnd_C"
		};
	};
	class Proxymagazine_glock19: ProxyAttachment
	{
		scope = 2;
		model = "\DZ\weapons\attachments\magazine\magazine_glock19.p3d";
		inventorySlot[] = 
		{
			"Mags_Pistol_15Rnd"
		};
	};
};

У меня есть подозрение, что у классов магазинов нет поля для inventorySlot, т.к. к оружию они прикрепляются через magazines.
Может кто-нибудь подсказать в какую сторону копать?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Самый лучший вариант это просто скачать какой нибудь Tactical Flava или FOG мод, разбинарить и посмотреть как сделано. 

Share this post


Link to post
Share on other sites
MagicByte MagicByte MagicByte

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Поддержка