Profile image

The Trigonometry

817 JeffersonAirraid  yesterday

Hello, it's me. I need huge help, very huge. I don't need any builds or turrets. I need 2 Controllers - Main and Secondary.

Main should be coded to be the theoretical center of world, aka point 0;0. It also should get the information transferred from 2nd Controller, and it's also must transfer the information to the Rotators and Guns to aim at enemies that cannot be targeted normally (because all of us know that basic target range is about 16-20 kilometres, while I need it to be about 45).

Secondary controller should do next things: He must be somehow connected to camera, that will track and focus on enemies, and Controller will calculate the enemy coordinates and transfer information to Main controller, which will then Aim guns at those targets.

I totally don't know how to code it. If you are god of coding - PLEASE, code it and make build, and message me. It's the only thing that I totally cannot do by myself.

  • Log in to leave a comment
  • Profile image
    106k Monarchii

    well, this is something that I can't help.. ish..?


    it's not perfect(as in, for planes rolling and all), but I do use this for mine on ships or some else :
    .
    |[ Fore Facing ]|
    TargetSelected ? (((TargetHeading - Heading) + (rate(TargetHeading) * (TargetDistance / 1000)))/ 180) : 0
    .
    |[ Aft Facing ]|
    TargetSelected ? (((TargetHeading +180 - Heading) + (rate(TargetHeading) * (TargetDistance / 1000)))/ 180) * clamp01(TargetDistance < 50000) * clamp01(TargetDistance > 2) : 0
    .
    |[ Vertical/Elevation(the important one) ]|
    TargetSelected ? (clamp((TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/825)/825 + (asin((cos(TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/825)/825) * (TargetDistance + rate(TargetDistance)*TargetDistance/825) * 9.81)/(pow(825, 2)))/2) -PitchAngle*cos(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/825)/825) - RollAngle*sin(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/825)/825)),-7,33)/90) : 0
    (the -7,33 is the depression/elevation you want)

    8 hours ago