Menu

#4005 VTOL Turrets always show target out of Arc

stable 0.38
closed
None
fixed
1
2014-01-26
2014-01-24
Hammer
No

I was testing a VTOL with a chin turret and no matter the turret facing is target always shows Not in Arc.

foobar

1 Attachments

Discussion

  • foij

    foij - 2014-01-24

    Did you try right-clicking on the VTOL and then selecting turret twist left or right?
    Works for me.

     
  • foij

    foij - 2014-01-24

    Nevermind, I lied. Tried it again with a Garuda Heavy VTOL and also got the 'target not in arc' error.

     
  • Nicholas Walczak

    Fixed in [r10406]. Tank has a getTurretLoc2(), which isn't overridden by VTOL. So, what was happening was in Compute.inArc, it looks like the VTOL has a dual turret (VTOL.LOC_TURRET = 6 and TANK.LOC_TURRET2 = 6), so it was using the facing of the secondary turret instead, and since there was no secondary turret it was using the facing of the unit.

    I added a VTOL.LOC_TURRET2 and the corresponding abbreviation and name ("TU2" and "Turret 2").

     

    Related

    Commit: [r10406]

  • Nicholas Walczak

    • assigned_to: Nicholas Walczak
    • Resolution: none --> fixed
     
  • Dylan Myers

    Dylan Myers - 2014-01-26
    • Status: open --> closed
     

Log in to post a comment.