Page MenuHomeFeedback Tracker

Secondary muzzle with firemode hidden from player can be unloaded to ground or container but not to inventory
New, NormalPublic

Description

As the title states, a weapon class containing the below code is able to be loaded from the player's inventory via drag and drop, and can be unloaded to external containers, but cannot be unloaded to a player's inventory.

muzzles[] = {"this", "secondaryMuzzle"};

class secondaryMuzzle: Rifle_Base_F
{
    modes[] = {"Single"};
    class Single: Mode_SemiAuto
    {
        showToPlayer = 0;
    };
};

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Attached is a pbo that contains the code below:

class CfgWeapons
{
	class arifle_MX_Base_F;
	class arifle_MX_GL_F: arifle_MX_Base_F
	{
		class GL_3GL_F;
	};
	class TEST_arifle_MX_GL_F_base: arifle_MX_GL_F
	{
		class GL_3GL_F: GL_3GL_F
		{
			class Single;
		};
	};

	class TEST_arifle_MX_GL_F: TEST_arifle_MX_GL_F_base
	{
		baseWeapon = "TEST_arifle_MX_GL_F";

		class GL_3GL_F: GL_3GL_F
		{
			class Single: Single
			{
				showToPlayer = 0;
			};
		};
	};
};

You are able to drag and drop into the player's inventory space, but nothing will occur.

Dragging and dropping into the ground container will result in the magazine being unloaded to the ground.

Event Timeline

Vespade created this task.Jul 4 2024, 4:25 AM
SaMatra added a subscriber: SaMatra.Jul 4 2024, 5:47 AM