package Items
using RTDB, BaseStats, WeaponFxPackage

[ notQueryable ]
Base_Grit : Base_Tech_Handgun
{
	buyPrice += 
	[
		"Price.KrauserArmory", "Price.MediumManufactureQuality"
	];
	sellPrice += 
	[
		"Price.KrauserArmory", "Price.MediumManufactureQuality"
	];
	fk< ItemBlueprint > blueprint = "Items.Base_Tech_Handgun_NoAttachments_Blueprint";
	displayName = "LocKey#81409";
	string friendlyName = "w_handgun_krauser_grit";
	fk< UIIcon > hudIcon = "HUDWeaponIcons.Grit";
	localizedDescription = "LocKey#81413";
	gameplayDescription = "LocKey#92672";
	fk< SlotItemPartListElement >[] slotPartList += 
	[
		{
			slot = "AttachmentSlots.Receiver";
			fk< ItemPartListElement >[] itemPartList = 
			[
				{
					item = "Items.w_handgun__krausser_grit__rcv1";
				}
			];
		}, 
		{
			slot = "AttachmentSlots.Barrel";
			fk< ItemPartListElement >[] itemPartList = 
			[
				{
					item = "Items.w_handgun__krausser_grit__base1";
				}
			];
		}, 
		{
			slot = "AttachmentSlots.Magazine";
			fk< ItemPartListElement >[] itemPartList = 
			[
				{
					item = "Items.w_handgun__krausser_grit__mag_std";
				}
			];
		}, 
		{
			slot = "AttachmentSlots.MagazineEmpty";
			fk< ItemPartListElement >[] itemPartList = 
			[
				{
					item = "Items.w_handgun__krausser_grit__mag_stdr";
				}
			];
		}
	];
	CName audioName = "wea_set_grit";
	CName[] tags += 
	[
		"Preload", "Weapon", "Handgun", "Dogtown_Weapon", "Grit"
	];
	fk< TriggerMode >[] triggerModes = 
	[
		"TriggerMode.SemiAuto", "TriggerMode.Charge"
	];
	fk< TriggerMode > primaryTriggerMode = "TriggerMode.SemiAuto";
	fk< TriggerMode > secondaryTriggerMode = "TriggerMode.Charge";
	fk< WeaponManufacturer > manufacturer = "WeaponManufacturer.Street";
	fk< WeaponEvolution > evolution = "WeaponEvolution.Tech";
	fk< Item > ammo = "Ammo.HandgunAmmo";
	fk< Crosshair > crosshair = "Crosshairs.Tech_Simple";
	enableNpcRPGData = true;
	previewEffectName = "weaponPreview";
	previewEffectTag = "pierce";
	npcRPGData = 
	{
		statModifierGroups += 
		[
		];
	} : Base_Grit_NPC_Data;
	statModifierGroups += 
	[
		"Items.Base_Grit_Technical_Stats", "Items.Base_Grit_Handling_Stats", "Items.Base_Grit_Recoil_Stats", "Items.Base_Grit_Spread_Stats", "Items.Base_Grit_Aim_Stats", "Items.Base_Grit_Constant_Stats", "Items.Base_Grit_Damage_Stats"
	];
	fk< GameplayLogicPackage >[] OnAttach += 
	[
		"EquipmentGLP.MediumStaminaRegen", "EquipmentGLP.MediumStaminaDelay", "Items.TechWeaponChargedFullAutoAbility"
	];
	fk< StatPool >[] statPools = 
	[
		"BaseStatPools.FullAutoTechCharge"
	];
	CName audioSwitchName = "w_pistol_type";
	CName audioSwitchValue = "w_pistol_power";
	fk< WeaponFxPackage > fxPackage = "WeaponFxPackage.TechHandgun";
	bool useNewSpawnMethod = true;
	baseReloadTime = 1.5f;
	baseEmptyReloadTime = 1.25f;
	uninterruptibleReloadStart = 0.5f;
	uninterruptibleEmptyReloadStart = 0.5f;
	float weaponNearPlane = 14.0f;
	float weaponFarPlane = 19.0f;
	float weaponEdgesSharpness = 0.4958f;
	float weaponVignetteIntensity = 0.1357f;
	float weaponVignetteRadius = 0.6482f;
	float weaponVignetteCircular = 0.0f;
	float weaponBlurIntensity = 1.0f;
	float weaponNearPlane_aim = 15.0f;
	float weaponFarPlane_aim = 23.7f;
	float weaponEdgesSharpness_aim = 0.4958f;
	float weaponVignetteIntensity_aim = 0.1357f;
	float weaponVignetteRadius_aim = 0.6814f;
	float weaponVignetteCircular_aim = 0.1745f;
	float weaponBlurIntensity_aim = 1.f;
}

Base_Grit_NPC_Data : Base_Tech_Handgun_NPC_Data
{
	statModifierGroups += 
	[
		"Items.Base_Grit_NPC_Technical_Stats", "Items.Base_Grit_NPC_Damage_Stats"
	];
}

Base_Grit_Technical_Stats : StatModifierGroup
{
	statModifiers = 
	[
		{
			value = 1.f;
		} : NumShotsToFireModifier, 
		{
			value = 0.2f;
		} : CycleTimeModifier, 
		{
			value = 30.f;
		} : MagazineCapacityModifier, 
		{
			value = 1.f;
		} : ProjectilesPerShotModifier, 
		"BaseStats.ProjectilesPerShotCombinedModifier", {
			value = 0.1143f;
		} : CycleTime_BurstMaxChargeModifier, 
		{
			value = 1.f;
		} : NumShotsInBurstMaxChargeModifier, 
		{
			value = 1.5f;
		} : ChargeDischargeTimeModifier, 
		{
			value = 0.0f;
		} : ChargeMaxTimeInChargedStateModifier, 
		{
			value = 0.5f;
		} : ChargeReadyPercentageModifier, 
		{
			value = 1.5f;
		} : ChargeTimeModifier, 
		{
			value = 100.f;
		} : ChargeModifier, 
		{
			value = 1.f;
		} : TechPierceEnabledModifier, 
		{
			value = 0.2f;
		} : TechPierceChargeLevelModifier, 
		{
			value = -0.25f;
		} : TechPierceDamageFactorModifier
	];
}

Base_Grit_Damage_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			statType = "BaseStats.DPS";
			modifierType = "Additive";
			value = 53f;
		} : ConstantStatModifier
	];
}

Base_Grit_NPC_Damage_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			statType = "BaseStats.DPS";
			modifierType = "Additive";
			value = 40f;
		} : ConstantStatModifier
	];
}

Base_Grit_NPC_Technical_Stats : StatModifierGroup
{
	statModifiers = 
	[
		{
			value = 1.f;
		} : NumShotsToFireModifier, 
		{
			value = 0.2f;
		} : CycleTimeModifier, 
		{
			value = 30.f;
		} : MagazineCapacityModifier, 
		{
			value = 1.f;
		} : ProjectilesPerShotModifier, 
		"BaseStats.ProjectilesPerShotCombinedModifier", {
			value = 0.1143f;
		} : CycleTime_BurstMaxChargeModifier, 
		{
			value = 1.f;
		} : NumShotsInBurstMaxChargeModifier, 
		{
			value = 0.5f;
		} : ChargeDischargeTimeModifier, 
		{
			value = 0.0f;
		} : ChargeMaxTimeInChargedStateModifier, 
		{
			value = 0.5f;
		} : ChargeReadyPercentageModifier, 
		{
			value = 0.25f;
		} : ChargeTimeModifier, 
		{
			value = 100.f;
		} : ChargeModifier, 
		{
			value = 0.f;
		} : TechPierceEnabledModifier, 
		{
			value = 0.2f;
		} : TechPierceChargeLevelModifier, 
		{
			value = -0.25f;
		} : TechPierceDamageFactorModifier
	];
}

Base_Grit_Handling_Stats : StatModifierGroup
{
	statModifiers = 
	[
		{
			value = 1.5f;
		} : ReloadTimeModifier, 
		{
			value = 1.25f;
		} : EmptyReloadTimeModifier, 
		{
			value = 0.85f;
		} : ReloadEndTimeModifier, 
		{
			value = 1.65f;
		} : EmptyReloadEndTimeModifier, 
		{
			value = 1.1f;
		} : ZoomLevelModifier, 
		{
			value = 2.567f;
		} : EquipDuration_FirstModifier
	];
}

Base_Grit_Recoil_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			float value = 0.f;
		} : RecoilDirModifier, 
		{
			float value = 50.f;
		} : RecoilAngleModifier, 
		{
			float value = 0.03f;
		} : RecoilHoldDurationModifier, 
		{
			float value = 0.03f;
		} : RecoilTimeModifier, 
		{
			float value = 0.2f;
		} : RecoilRecoveryTimeModifier, 
		{
			float value = 1.f;
		} : RecoilEnableLinearXModifier, 
		{
			float value = 1.f;
		} : RecoilEnableLinearYModifier, 
		{
			float value = 1.f;
		} : RecoilEnableLinearXADSModifier, 
		{
			float value = 1.f;
		} : RecoilEnableLinearYADSModifier, 
		{
			value = -0.33f;
		} : RecoilFullChargeMultModifier
	];
}

Base_Grit_Spread_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			float value = 0.f;
		} : SpreadMinXModifier, 
		{
			float value = 0.f;
		} : SpreadMinYModifier, 
		{
			float value = 1.f;
		} : SpreadUseInAdsModifier, 
		{
			float value = 0.f;
		} : SpreadAdsMinXModifier, 
		{
			float value = 0.f;
		} : SpreadAdsMinYModifier, 
		{
			float value = 0.0f;
		} : SpreadAdsMaxXModifier, 
		{
			float value = 0.375f;
		} : SpreadAdsMaxYModifier, 
		{
			float value = 0.0f;
		} : SpreadAdsChangePerShotModifier, 
		{
			float value = 1.75f;
		} : SpreadResetSpeedModifier, 
		{
			float value = 0.2f;
		} : SpreadResetTimeThresholdModifier, 
		{
			float value = 1.f;
		} : SpreadRandomizeOriginPointModifier, 
		{
			float value = 1.f;
		} : SpreadUseCircularSpreadModifier, 
		{
			value = 1.f;
		} : SpreadUseCircularSpreadModifier, 
		{
			value = 1.f;
		} : SpreadUseEvenDistributionModifier, 
		{
			value = 1.f;
		} : SpreadEvenDistributionRowCountModifier, 
		{
			value = 0.03f;
		} : SpreadEvenDistributionJitterSizeModifier, 
		{
			value = -0.33f;
		} : SpreadChargeMultModifier, 
		{
			value = -0.33f;
		} : SpreadFullChargeMultModifier
	];
}

Base_Grit_Aim_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			statType = "BaseStats.AimFOV";
			modifierType = "Additive";
			value = 49;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.AimOffset";
			modifierType = "Additive";
			value = 0.f;
		} : ConstantStatModifier
	];
}

Base_Grit_Constant_Stats : StatModifierGroup
{
	fk< StatModifier >[] statModifiers = 
	[
		{
			statType = "BaseStats.SpreadDefaultX";
			modifierType = "Additive";
			value = 1.0f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.SpreadAdsDefaultX";
			modifierType = "Additive";
			value = 0.2f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.SpreadMaxX";
			modifierType = "Additive";
			value = 4.0f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.SpreadAdsMaxX";
			modifierType = "Additive";
			value = 0.8f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.SpreadChangePerShot";
			modifierType = "Additive";
			value = 0.0f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.SpreadAdsChangePerShot";
			modifierType = "Additive";
			value = 0.0f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.RecoilKickMin";
			modifierType = "Additive";
			value = 0.8f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.RecoilKickMax";
			modifierType = "Additive";
			value = 1.1f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.FullAutoOnFullCharge";
			modifierType = "Additive";
			value = 1.0f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.ChargeMultiplier";
			modifierType = "Additive";
			value = 0.15f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.HeadshotDamageMultiplier";
			modifierType = "Additive";
			value = -0.25f;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.EffectiveRange";
			modifierType = "Multiplier";
			value = 0.8333;
		} : ConstantStatModifier, 
		{
			statType = "BaseStats.FirePower";
			modifierType = "Multiplier";
			value = 1.591f;
		} : ConstantStatModifier, 
		"AttackModifier.WeaponArmorPenetrationMedium"
	];
}

w_handgun__krausser_grit__rcv1 : WeaponHandgunReceiverBase
{
	string friendlyName = "w_handgun__krausser_grit__rcv1";
	CName appearanceResourceName = "w_handgun__krausser_grit__rcv1_01";
}

w_handgun__krausser_grit__base1 : WeaponHandgunBarrelBase
{
	string friendlyName = "w_handgun__krausser_grit__base1";
	CName appearanceResourceName = "w_handgun__krausser_grit__base1_01";
}

w_handgun__krausser_grit__mag_std : WeaponMagazineBase
{
	string friendlyName = "w_handgun__krausser_grit__mag_std";
	CName appearanceResourceName = "w_handgun__krausser_grit__mag_std_01";
}

w_handgun__krausser_grit__mag_stdr : WeaponMagazineBaseEmpty
{
	string friendlyName = "w_handgun__krausser_grit__mag_stdr";
	CName appearanceResourceName = "w_handgun__krausser_grit__mag_stdr_01";
}

