Page MenuHomeFeedback Tracker

Removing weapons with empty magazines array after using pylons system
New, NormalPublic

Description

As mentioned in title if some vehicle turret has magazines[] = {} and pylons is changed, then weapons from this turret will be removed.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Engine
Steps To Reproduce
  1. Set magazines[] = {}; for some turret of vehicle with pylons in config
  2. Start the game
  3. Start mission with this vehicle in editor
  4. Check changed turret of this vehicle - it will be empty magazine
  5. Go back to editor and make some changes in pylons of vehicle
  6. Check changed turret of this vehicle again - no weapons at all
Additional Information

Video:
https://youtu.be/SkKGRFGIyIo

Test mod:
https://disk.yandex.ru/d/CRtoBg41_wOXbA

class CfgPatches
{
	class test
	{
		requiredAddons[]=
		{
			"A3_Air_F"
		};
	};
};

class CfgVehicles
{
	class Air;
	class Helicopter: Air
	{
		class Turrets;
	};
	class Helicopter_Base_F: Helicopter
	{
		class Turrets: Turrets
		{
			class MainTurret;
		};
	};
	class Heli_Attack_01_base_F: Helicopter_Base_F
	{
	};
	class Heli_Attack_01_dynamicLoadout_base_F: Heli_Attack_01_base_F
	{
	};
	class B_Heli_Attack_01_dynamicLoadout_F: Heli_Attack_01_dynamicLoadout_base_F
	{
		class Turrets: Turrets
		{
			class MainTurret: MainTurret
			{
				magazines[] = {};
			};
		};
	};
};

Event Timeline