Jump to content
Hellmaker2a

Custom Slots Conflict

Recommended Posts

Hi all,

I post this message in order to ask you some advice.

I created customs slots on a class belt inheriting from  vanilla "MilitaryBelt ". I have tested it locally and on my own server, and all works fine, no problems.

Nevertheless some users have reported to me that sometimes some slots do not work. So I could understand that this came from a conflict with other mods having custom slots.

I did a test with  "Mass'sManyItemOverhaul" and actually there is a conflict.

Is there a way to get around this problem and avoid this type of conflict? I don't really have any ideas...

inventorySlot = inventorySlot + "myslot"; is not possible i think ^^

This the part of code i have use :

class CfgSlots
{
	class CompassSlot
	{
		name = "CompassSlot";
		displayName = "Compass";
		ghostIcon = "Compass";
	};
	
	class RadioSlot
	{
		name = "RadioSlot";
		displayName = "Radio";
		ghostIcon = "Radio";
	};
	
	class HandcuffsSlot
	{
		name = "HandcuffsSlot";
		displayName = "Handcuffs";
		ghostIcon = "Handcuffs";
	};
	
	class CanteenSlot
	{
		name = "CanteenSlot";
		displayName = "Canteen";
		ghostIcon = "Canteen";
	};
	
	class BinocularsSlot
	{
		name = "BinocularsSlot";
		displayName = "Binocular/Rangefinder";
		ghostIcon = "Binocular";
	};
	
	class LightsSlot
	{
		name = "LightsSlot";
		displayName = "Flashlight";
		ghostIcon = "Flashlight";
	};
};

class cfgVehicles
{
	class Transmitter_Base;
	class Inventory_Base;
	class Bottle_Base;
	class ItemOptics;
	class Chemlight_ColorBase;
	
	class Compass: Inventory_Base
	{
		inventorySlot = "CompassSlot";
	};
	
	class OrienteeringCompass: Inventory_Base
	{
		inventorySlot = "CompassSlot";
	};
	
	class PersonalRadio: Transmitter_Base
	{
		inventorySlot = "RadioSlot";
	};
	
	class Handcuffs: Inventory_Base
	{
		inventorySlot = "HandcuffsSlot";
	};
	
	class Canteen: Bottle_Base
	{
		inventorySlot = "CanteenSlot";
	};	
	
	class Rangefinder: ItemOptics
	{
		inventorySlot = "BinocularsSlot";
	};

	class Binoculars: ItemOptics
	{
		inventorySlot = "BinocularsSlot";
	};
	
	class Flashlight: Inventory_Base
	{
		inventorySlot = "LightsSlot";
	};
	
	/*
		Military Belt
	*/
	class MilitaryBelt;
	class Hell_MilitaryBelt_OD: MilitaryBelt
	{
		scope = 2;
		displayName = "Military Belt";
		descriptionShort = "Military belt can carry : Compass, Radio, Handcuffs, Canteen, Binoculars/Rangefinder, Flashlight, Knifes, and Gun Holster";
		attachments[] = {"CompassSlot", "RadioSlot", "HandcuffsSlot", "CanteenSlot", "BinocularsSlot", "LightsSlot", "Knife", "VestHolster"};
		hiddenSelections[] = {"camoGround","camoMale","camoFemale"};
		hiddenSelectionsTextures[] = {
			"Hell_Belts\Data\Hell_MilitaryBelt_OD_co.paa",
			"Hell_Belts\Data\Hell_MilitaryBelt_OD_co.paa",
			"Hell_Belts\Data\Hell_MilitaryBelt_OD_co.paa"
		};
	};
};

Thanks in advance !

Edited by Hellmaker2a

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

×