package ReloadTest
using RTDB, AttachmentSlots, ItemCategory, ItemType, AIActionTarget

WeaponTestsComposite : AIActionSmartComposite
{
	type = "AISmartCompositeType.Sequence";
	nodes = 
	[
		"ReloadTest.ReloadSelector", "ReloadTest.Delay", "GenericArchetype.Success"
	];
}

Delay : AIAction
{
	loop = 
	{
		duration = 1.f;
	};
}

ReloadSelector : AIActionSelector
{
	activationCondition = 
	{
		condition = 
		{
			AND = 
			[
				"Condition.HasAnyWeapon", "Condition.NotInCover", "Condition.NotIsEnteringOrLeavingCover", "Condition.NotTicketEquip"
			];
		} : AIActionAND;
	};
	actions = 
	[
		"ItemHandling.InstantReloadSprint", "ItemHandling.ReloadAssaultRifle", "ItemHandling.ReloadHandgun", "ItemHandling.ReloadLightMachineGun", "ItemHandling.ReloadHeavyMachineGun", "ItemHandling.ReloadPrecisionRifle", "ItemHandling.ReloadRevolver", "ItemHandling.ReloadShotgun", "ItemHandling.ReloadShotgunDual", "ItemHandling.ReloadSniperRifle", "ItemHandling.ReloadSubmachineGun"
	];
	defaultAction = "ItemHandling.ReloadDefault";
}

