Skip to content

Commit

Permalink
Improve/fix the Tempest's anti-torpedo weapon (FAForever#6077)
Browse files Browse the repository at this point in the history
  • Loading branch information
Basilisk3 authored Apr 26, 2024
1 parent f7420f6 commit 2c53884
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 8 deletions.
2 changes: 2 additions & 0 deletions changelog/3810.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@

- (#6091) Count cargo for veterancy when a transport or carrier is killed

- (#6077) Improve the targeting of the Tempest's anti-torpedo weapon.

## Contributors

With thanks to the following people who contributed through coding:
Expand Down
5 changes: 0 additions & 5 deletions units/UAS0401/UAS0401_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ UAS0401 = ClassUnit(ASeaUnit, ExternalFactoryComponent) {
Weapons = {
MainGun = ClassWeapon(ADFCannonOblivionWeapon) {},
Torpedo01 = ClassWeapon(AANChronoTorpedoWeapon) {},
Torpedo02 = ClassWeapon(AANChronoTorpedoWeapon) {},
Torpedo03 = ClassWeapon(AANChronoTorpedoWeapon) {},
Torpedo04 = ClassWeapon(AANChronoTorpedoWeapon) {},
Torpedo05 = ClassWeapon(AANChronoTorpedoWeapon) {},
Torpedo06 = ClassWeapon(AANChronoTorpedoWeapon) {},
AntiTorpedo01 = ClassWeapon(AIFQuasarAntiTorpedoWeapon) {},
AntiTorpedo02 = ClassWeapon(AIFQuasarAntiTorpedoWeapon) {},
},
Expand Down
51 changes: 48 additions & 3 deletions units/UAS0401/UAS0401_unit.bp
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ UnitBlueprint{
Label = "AntiTorpedo01",
LeadTarget = false,
MaxRadius = 45,
MinRadius = 5,
MinRadius = 10,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 80,
Expand All @@ -436,7 +436,6 @@ UnitBlueprint{
{
MuzzleBones = {
"Anti_Torpedo_Muzzle01",
"Anti_Torpedo_Muzzle02",
},
RackBone = "Anti_Torpedo_Muzzle01",
},
Expand All @@ -448,7 +447,53 @@ UnitBlueprint{
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RangeCategory = "UWRC_Countermeasure",
RateOfFire = 1,
RateOfFire = 0.7,
TargetCheckInterval = 1.0,
TargetRestrictDisallow = "UNTARGETABLE",
TargetRestrictOnlyAllow = "TORPEDO",
TargetType = "RULEWTT_Projectile",
TrackingRadius = 1.0,
Turreted = false,
WeaponCategory = "Defense",
},
{
AlwaysRecheckTarget = false,
BallisticArc = "RULEUBA_None",
CollideFriendly = false,
Damage = 3,
DamageType = "Normal",
DisableWhileReloading = true,
DisplayName = "Quasar Anti Torpedo",
FireTargetLayerCapsTable = {
Sub = "Water",
Water = "Water",
},
FiringTolerance = 180,
Label = "AntiTorpedo02",
LeadTarget = false,
MaxRadius = 45,
MinRadius = 10,
MuzzleSalvoDelay = 0,
MuzzleSalvoSize = 1,
MuzzleVelocity = 80,
ProjectileId = "/projectiles/AIMAntiTorpedo02/AIMAntiTorpedo02_proj.bp",
ProjectileLifetime = 1.5,
RackBones = {
{
MuzzleBones = {
"Anti_Torpedo_Muzzle02",
},
RackBone = "Anti_Torpedo_Muzzle02",
},
},
RackFireTogether = false,
RackRecoilDistance = 0,
RackReloadTimeout = 10,
RackSalvoChargeTime = 0,
RackSalvoReloadTime = 0,
RackSalvoSize = 1,
RangeCategory = "UWRC_Countermeasure",
RateOfFire = 0.7,
TargetCheckInterval = 1.0,
TargetRestrictDisallow = "UNTARGETABLE",
TargetRestrictOnlyAllow = "TORPEDO",
Expand Down

0 comments on commit 2c53884

Please sign in to comment.