Skip to content

Aircraft types cannot intercept projectiles shot by ground units #1764

@ViniciusMomesso

Description

@ViniciusMomesso

Description

Projectiles interception reach success when made by ground units and infantry, but when it comes to an aircraft, the same cannot be said. Even with ForceWeapon logic, it does not work for the purpose. Shield is a cool feature and it works really well to preserve the aircraft's health, but sounds a little bit unrealistic for my goals at this moment. I'd be glad if this would be fixed.

Phobos Version

Latest

Conditions to reproduce

No response

INI code

[Aircrafttype]
....
Secondary=AAInterceptorWeapon
...
Interceptor=true
Interceptor.Weapon=1
Interceptor.CanTargetHouses=enemies

[AAInterceptorWeapon]
Damage=50
ROF=15
Speed=70
Range=10
MinimumRange=5
ProjectileRange=15
Projectile=AAIntProj
...

[AAIntProj]
AG=yes
AA=yes
Image=MEDUSA 
ROT=10
Ranged=yes
Proximity=no
Acceleration=100
...

[AAUnitProj]
....
Armor=special_2
Strength=50
Interceptable=true

Steps to reproduce

1.Build the related technos
2.Try to shutdown the aircraft.

Expected behaviour

The projectiles should be successfully intercepted or some them.

Actual behaviour

The aircraft does not even try to intercept the projectiles under any circumstances.

Additional context

No response

Checklist

  • The issue happens on the latest official version of Phobos and wasn't fixed yet.
  • I agree to elaborate the details if requested and provide thorough testing if the bugfix is implemented.
  • I added a very descriptive title to this issue.
  • I used the GitHub search and read the issue list to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, gifs, videos, debug and exception logs, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions