Skip to content

Commit

Permalink
Aeon torp def (FAForever#2781)
Browse files Browse the repository at this point in the history
* Projectile speed

This is a copy of sera torp defence values. Makes such units as Exodus and Beacon intercept projectiles correctly.

* OnLostTarget

Copy from seraphim torp defence. Makes projectile to slow down and die one it loses its target. Cosmetic change.
  • Loading branch information
Apofenas authored and JaggedAppliance committed Jun 17, 2019
1 parent a035897 commit 55be4c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions projectiles/AIMAntiTorpedo01/AIMAntiTorpedo01_proj.bp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ ProjectileBlueprint {
Physics = {
Acceleration = 30,
DestroyOnWater = false,
MaxSpeed = 20,

InitialSpeed = 120,
MaxSpeed = 30,
# this is a workaround for tracking projectiles not intercepting correctly. Original value: true
StayUnderwater = true,
TrackTarget = true,
Expand Down
7 changes: 6 additions & 1 deletion projectiles/AIMAntiTorpedo01/AIMAntiTorpedo01_script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
#
local QuasarAntiTorpedoChargeSubProjectile = import('/lua/aeonprojectiles.lua').ATorpedoSubProjectile

AIMAntiTorpedo01 = Class(QuasarAntiTorpedoChargeSubProjectile) {}
AIMAntiTorpedo01 = Class(QuasarAntiTorpedoChargeSubProjectile) {
OnLostTarget = function(self)
self:SetAcceleration(-3.6)
self:SetLifetime(0.5)
end,
}

TypeClass = AIMAntiTorpedo01

0 comments on commit 55be4c1

Please sign in to comment.