Profile image

Turret activation transverse limiter prototype

2,820 RichardScepton  10 months ago
32 downloads
Auto Credit Based on SenSkysh's AUTO-AIMED TURRET AK-2100

essentially this one prevents a turret from coming online unless a target is within it's arc of fire, in this one's case is set to -135 and +135

code: TargetHeading - Heading > - 135 | TargetHeading - Heading < 135

EDIT for /9/28/2023:

I perfected the code a while back, folks. Just a kindly reminder, this is meant for the activationGroup input in rotators and guns, not the inputs themselves. This is meant for ships with multiple turrets which don't need one gun firing on the wrong beam regardless of if a target is within it's transverse range or not.

For forwards facing turrets,

TargetSelected & (TargetHeading - Heading > 225 | TargetHeading - Heading < 135)

For backwards facing turrets,

TargetSelected & (TargetHeading - Heading > 45 & TargetHeading - Heading < 315)

For wing turrets on the starboard side,

TargetSelected & (TargetHeading - Heading < 180)

For wing turrets on the port side,

TargetSelected & (TargetHeading - Heading > 180)

General Characteristics

  • Predecessor AUTO-AIMED TURRET AK-2100
  • Created On Windows
  • Wingspan 16.4ft (5.0m)
  • Length 26.8ft (8.2m)
  • Height 16.1ft (4.9m)
  • Empty Weight 149,236lbs (67,692kg)
  • Loaded Weight 155,289lbs (70,438kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 8812

Parts

  • Number of Parts 88
  • Control Surfaces 0
  • Performance Cost 252
  • Log in to leave a comment
  • Profile image

    I perfected the code a while back, folks. Just a kindly reminder, this is meant for the activationGroup input in rotators and guns, not the inputs themselves. This is meant for ships with multiple turrets which don't need one gun firing on the wrong beam regardless of if a target is within it's transverse range or not.

    For forwards facing turrets,

    TargetSelected & (TargetHeading - Heading > 225 | TargetHeading - Heading < 135)

    For backwards facing turrets,

    TargetSelected & (TargetHeading - Heading > 45 & TargetHeading - Heading < 315)

    For wing turrets on the starboard side,

    TargetSelected & (TargetHeading - Heading < 180)

    For wing turrets on the port side,

    TargetSelected & (TargetHeading - Heading > 180)

    Pinned 7 months ago
  • Profile image

    @SILVERPANZER I actually developed a more simplified version of it a while back now as to perfect this one, you can see it on the activationGroup of my newer ship posts made for that War Challenge United challenge post (idk which lol). Thks for the input tho

    7 months ago
  • Profile image

    For some reason, the code bugged itself within the desc, here is it properly formatted:

    TargetHeading - Heading > - 135 | TargetHeading - Heading < 135

    EDIT: I tested it on a rack, ang the gun just wobbles when target is beyond transverse angle, might've need to completely redo it

    10 months ago