Page MenuHomeFeedback Tracker

Multiple Pistol Attachments \ Slots
New, UrgentPublic

Description

So when creating a mod i came across an issue and im not sure if it is intended or not.

So empty p3d's can be used for creating new or additional slots to a prexisting slot item. You then use those for proxy attaching more than one of the same kind of item attachment in that "attachment slot".

For reference/example, like how the current grenades work on attaching to vests. Can attach multiple grenades to the vest and it can be any grenade as long as it has the proper "cfg slots and attachment" for it in the config.. Or like how you have multiple attachments to the body to hold multiple "shoulder" or rifle attachments.

Its works fine for Rifles.

However it doesnt for pistols.... I want to be able to do this but with pistols. I want to be able to create multiple "pistol" attachment slots for a single item.

So instead of only being able to only use a single attachment in config like so

attachments = "pistol"

Instead, I want to be able to create more slots in the config that extends from the vanilla "pistol" slot attachment. Here is some examples from the config, not pretty but it should show what im tryin to do.

        attachments[] = {"Pistol", "Pistol1","Pistol2",Pistol3","Pistol4"};
		class GUIInventoryAttachmentsProps
		{
			class Pistolslots
			{
				name = "Pistol";
				description = "";
				attachmentSlots[] = {"Pistol", "Pistol1","Pistol2",Pistol3","Pistol4"};
				icon = "pistol";
			};
		};
};

class CfgSlots
{
	class Slot_Pistol1
    {
        name="Pistol";
        displayName="Pistol1";
        ghostIcon="Pistol";
        show="true";
    };
	class Slot_Pistol2
    {
        name="Pistol";
        displayName="Pistol2";
        ghostIcon="Pistol";
        show="true";
    };
	class Slot_Pistol3
    {
        name="Pistol";
        displayName="Pistol3";
        ghostIcon="Pistol";
        show="true";
    };
	class Slot_Pistol4
    {
        name="Pistol";
        displayName="Pistol4";
        ghostIcon="Pistol";
        show="true";
    };
};
class CfgNonAIVehicles
{
    class ProxyAttachment;
    class Proxy_pistolproxy1: ProxyAttachment
    {
        scope=2;
        inventorySlot="Pistol";
        model="\proxies\PistolProxy1.p3d";
    };
    class Proxy_pistolproxy2: ProxyAttachment
    {
        scope=2;
        inventorySlot="Pistol";
        model="\proxies\PistolProxy2.p3d";
    };
    class Proxy_pistolproxy3: ProxyAttachment
    {
        scope=2;
        inventorySlot="Pistol";
        model="\proxies\PistolProxy3.p3d";
    };
    class Proxy_pistolproxy4: ProxyAttachment
    {
        scope=2;
        inventorySlot="Pistol";
        model="\proxies\PistolProxy4.p3d";
    };
};

Trying to create new slots for more "pistol" attachments doesnt work. Only the vanilla "pistol" attachment works and i can not create more pistol attachments from it so i can proxy multiple pistols to a single item.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

It will not let me create new attachment slots for with the purpose of creating multiple "pistol" attachment slots to a single item to allow for multiple "pistol" proxy attachments. It will not let you add more slots for the "pistol" attachment. Only one pistol slot can be used for a single item.

Unless im missing something it doesn't seem to work, ive tried it in a few different configurations and nothing.

Additional Information

I want to be able to attach more than one pistol to an item.

It works fine with rifles, but it doesn't for pistols. I see no reason it shouldn't work for both. Please make it work, thanks.

Event Timeline

MediCropper updated the task description. (Show Details)Aug 27 2019, 4:15 PM
MediCropper updated the task description. (Show Details)Aug 27 2019, 4:17 PM
MediCropper edited Steps To Reproduce. (Show Details)
MediCropper updated the task description. (Show Details)Aug 27 2019, 4:23 PM
MediCropper edited Additional Information. (Show Details)